6e338a673a1b6dd5f4f92aa0af69225e5cafba77
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         strncat: Move AC_LIBOBJ invocations to module description.
4         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5         invocations from here...
6         * modules/strncat (configure.ac): ... to here.
7
8 2011-05-22  Bruno Haible  <bruno@clisp.org>
9
10         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
11         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12         invocations from here...
13         * modules/strdup (configure.ac): ... to here.
14         * modules/strdup-posix (configure.ac): ... and here.
15
16 2011-05-22  Bruno Haible  <bruno@clisp.org>
17
18         strcspn: Move AC_LIBOBJ invocations to module description.
19         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
20         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
21         here...
22         * modules/strcspn (configure.ac): ... to here.
23
24 2011-05-22  Bruno Haible  <bruno@clisp.org>
25
26         strchrnul: Move AC_LIBOBJ invocations to module description.
27         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
28         gl_PREREQ_STRCHRNUL invocations from here...
29         * modules/strchrnul (configure.ac): ... to here.
30
31 2011-05-22  Bruno Haible  <bruno@clisp.org>
32
33         strcasestr*: Move AC_LIBOBJ invocations to module description.
34         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
35         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36         * modules/strcasestr-simple (configure.ac): ... to here.
37         * modules/strcasestr (configure.ac): ... and here.
38
39 2011-05-22  Bruno Haible  <bruno@clisp.org>
40
41         strcase: Move AC_LIBOBJ invocations to module description.
42         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
43         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
44         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
45         gl_PREREQ_STRNCASECMP invocations from here...
46         * modules/strcase (configure.ac): ... to here.
47
48 2011-05-22  Bruno Haible  <bruno@clisp.org>
49
50         stpncpy: Move AC_LIBOBJ invocations to module description.
51         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52         here...
53         * modules/stpncpy (configure.ac): ... to here.
54
55 2011-05-22  Bruno Haible  <bruno@clisp.org>
56
57         stpcpy: Move AC_LIBOBJ invocations to module description.
58         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
59         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
60         here...
61         * modules/stpcpy (configure.ac): ... to here.
62
63 2011-05-21  Bruno Haible  <bruno@clisp.org>
64
65         stat: Move AC_LIBOBJ invocations to module description.
66         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
67         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
68         here...
69         * modules/stat (configure.ac): ... to here.
70
71 2011-05-21  Bruno Haible  <bruno@clisp.org>
72
73         sleep: Move AC_LIBOBJ invocations to module description.
74         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
75         * modules/sleep (configure.ac): ... to here.
76
77 2011-05-21  Bruno Haible  <bruno@clisp.org>
78
79         signbit: Move AC_LIBOBJ invocations to module description.
80         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
81         * modules/signbit (configure.ac): ... to here.
82
83 2011-05-21  Bruno Haible  <bruno@clisp.org>
84
85         sigprocmask: Move AC_LIBOBJ invocations to module description.
86         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
87         gl_PREREQ_SIGPROMASK invocations from here...
88         * modules/sigprocmask (configure.ac): ... to here.
89
90 2011-05-21  Bruno Haible  <bruno@clisp.org>
91
92         sigaction: Move AC_LIBOBJ invocations to module description.
93         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
94         gl_PREREQ_SIGACTION invocations from here...
95         * modules/sigaction (configure.ac): ... to here.
96
97 2011-05-21  Bruno Haible  <bruno@clisp.org>
98
99         sig2str: Move AC_LIBOBJ invocations to module description.
100         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
101         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
102         here...
103         * modules/sig2str (configure.ac): ... to here.
104
105 2011-05-21  Bruno Haible  <bruno@clisp.org>
106
107         setlocale: Move AC_LIBOBJ invocations to module description.
108         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
109         gl_PREREQ_SETLOCALE invocations from here...
110         * modules/setlocale (configure.ac): ... to here.
111
112 2011-05-21  Bruno Haible  <bruno@clisp.org>
113
114         unsetenv: Move AC_LIBOBJ invocations to module description.
115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
116         and gl_PREREQ_UNSETENV invocations from here...
117         * modules/unsetenv (configure.ac): ... to here.
118         (Depends-on): Update.
119
120 2011-05-21  Bruno Haible  <bruno@clisp.org>
121
122         setenv: Move AC_LIBOBJ invocations to module description.
123         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
124         here...
125         * modules/setenv (configure.ac): ... to here.
126
127 2011-05-21  Bruno Haible  <bruno@clisp.org>
128
129         selinux-h: Move AC_LIBOBJ invocations to module description.
130         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
131         AC_LIBOBJ invocation from here...
132         * modules/selinux-h (configure.ac): ... to here.
133
134 2011-05-21  Bruno Haible  <bruno@clisp.org>
135
136         select: Respect rules for use of AC_LIBOBJ.
137         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
138         here...
139         * modules/select (configure.ac): ... to here.
140
141 2011-05-21  Bruno Haible  <bruno@clisp.org>
142
143         scandir: Move AC_LIBOBJ invocations to module description.
144         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
145         invocations from here...
146         * modules/scandir (configure.ac): ... to here.
147
148 2011-05-21  Bruno Haible  <bruno@clisp.org>
149
150         rpmatch: Move AC_LIBOBJ invocations to module description.
151         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
153         here...
154         * modules/rpmatch (configure.ac): ... to here.
155
156 2011-05-21  Bruno Haible  <bruno@clisp.org>
157
158         rmdir: Respect rules for use of AC_LIBOBJ.
159         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
160         * modules/rmdir (configure.ac): ... to here.
161
162 2011-05-21  Bruno Haible  <bruno@clisp.org>
163
164         renameat: Move AC_LIBOBJ invocations to module description.
165         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
166         here...
167         * modules/renameat (configure.ac): ... to here.
168
169 2011-05-21  Bruno Haible  <bruno@clisp.org>
170
171         rename: Respect rules for use of AC_LIBOBJ.
172         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
173         here...
174         * modules/rename (configure.ac): ... to here.
175
176 2011-05-21  Bruno Haible  <bruno@clisp.org>
177
178         remove: Move AC_LIBOBJ invocations to module description.
179         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
180         here...
181         * modules/remove (configure.ac): ... to here.
182
183 2011-05-21  Bruno Haible  <bruno@clisp.org>
184
185         relocatable-lib: Move AC_LIBOBJ invocations to module description.
186         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
187         macro.
188         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
189         * modules/relocatable-lib (configure.ac): ... to here.
190         * modules/relocatable-prog-wrapper (configure.ac): Invoke
191         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
192
193 2011-05-21  Bruno Haible  <bruno@clisp.org>
194
195         relocatable-prog: Move AC_LIBOBJ invocations to module description.
196         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
197         here...
198         * modules/relocatable-prog (configure.ac): ... to here.
199
200 2011-05-21  Bruno Haible  <bruno@clisp.org>
201
202         regex: Move AC_LIBOBJ invocations to module description.
203         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
204         invocations from here...
205         * modules/regex (configure.ac): ... to here.
206
207 2011-05-21  Bruno Haible  <bruno@clisp.org>
208
209         realloc-*: Move AC_LIBOBJ invocations to module description.
210         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
211         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
212         AC_LIBOBJ invocations from here...
213         * modules/realloc-gnu (configure.ac): ... to here.
214         * modules/realloc-posix (configure.ac): ... and here.
215
216 2011-05-21  Bruno Haible  <bruno@clisp.org>
217
218         readutmp: Move AC_LIBOBJ invocations to module description.
219         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
220         * modules/readutmp (configure.ac): ... to here.
221
222 2011-05-21  Bruno Haible  <bruno@clisp.org>
223
224         readlinkat: Move AC_LIBOBJ invocations to module description.
225         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
226         here...
227         * modules/readlinkat (configure.ac): ... to here.
228
229 2011-05-21  Bruno Haible  <bruno@clisp.org>
230
231         readlink: Move AC_LIBOBJ invocations to module description.
232         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
233         gl_PREREQ_READLINK invocations from here...
234         * modules/readlink (configure.ac): ... to here.
235
236 2011-05-21  Bruno Haible  <bruno@clisp.org>
237
238         readline: Move AC_LIBOBJ invocations to module description.
239         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
240         gl_PREREQ_READLINE invocations from here...
241         * modules/readline (configure.ac): ... to here.
242
243 2011-05-21  Bruno Haible  <bruno@clisp.org>
244
245         read: Move AC_LIBOBJ invocations to module description.
246         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
247         * modules/read (configure.ac): ... to here.
248
249 2011-05-21  Bruno Haible  <bruno@clisp.org>
250
251         rawmemchr: Move AC_LIBOBJ invocations to module description.
252         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
254         from here...
255         * modules/rawmemchr (configure.ac): ... to here.
256
257 2011-05-21  Bruno Haible  <bruno@clisp.org>
258
259         random_r: Move AC_LIBOBJ invocations to module description.
260         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
261         gl_PREREQ_RANDOM_R invocations from here...
262         * modules/random_r (configure.ac): ... to here.
263
264 2011-05-21  Bruno Haible  <bruno@clisp.org>
265
266         pwrite: Move AC_LIBOBJ invocations to module description.
267         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
268         * modules/pwrite (configure.ac): ... to here.
269
270 2011-05-21  Bruno Haible  <bruno@clisp.org>
271
272         putenv: Move AC_LIBOBJ invocations to module description.
273         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
274         * modules/putenv (configure.ac): ... to here.
275
276 2011-05-21  Bruno Haible  <bruno@clisp.org>
277
278         login_tty: Move AC_LIBOBJ invocations to module description.
279         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
280         * modules/login_tty (configure.ac): ... to here.
281
282 2011-05-21  Bruno Haible  <bruno@clisp.org>
283
284         openpty: Move AC_LIBOBJ invocations to module description.
285         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
286         * modules/openpty (configure.ac): ... to here.
287
288 2011-05-21  Bruno Haible  <bruno@clisp.org>
289
290         forkpty: Move AC_LIBOBJ invocations to module description.
291         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
292         * modules/forkpty (configure.ac): ... to here.
293
294 2011-05-21  Bruno Haible  <bruno@clisp.org>
295
296         ptsname: Move AC_LIBOBJ invocations to module description.
297         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
298         invocations from here...
299         * modules/ptsname (configure.ac): ... to here.
300
301 2011-05-21  Bruno Haible  <bruno@clisp.org>
302
303         pread: Move AC_LIBOBJ invocations to module description.
304         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
305         * modules/pread (configure.ac): ... to here.
306
307 2011-05-21  Bruno Haible  <bruno@clisp.org>
308
309         posix_spawn*: Move AC_LIBOBJ invocations to module description.
310         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
311         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
312         * modules/posix_spawn (configure.ac): ... to here.
313         * modules/posix_spawnp (configure.ac): ... and here.
314
315 2011-05-21  Bruno Haible  <bruno@clisp.org>
316
317         popen: Move AC_LIBOBJ invocations to module description.
318         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
319         invocations from here...
320         * modules/popen (configure.ac): ... to here.
321
322 2011-05-21  Bruno Haible  <bruno@clisp.org>
323
324         poll: Move AC_LIBOBJ invocations to module description.
325         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
326         invocations from here...
327         * modules/poll (configure.ac): ... to here.
328
329 2011-05-21  Bruno Haible  <bruno@clisp.org>
330
331         pipe-posix: Move AC_LIBOBJ invocations to module description.
332         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
333         * modules/pipe-posix (configure.ac): ... to here.
334
335 2011-05-21  Bruno Haible  <bruno@clisp.org>
336
337         openat: Respect rules for use of AC_LIBOBJ.
338         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
339         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
340         * modules/openat (configure.ac): ... to here.
341
342 2011-05-21  Bruno Haible  <bruno@clisp.org>
343
344         obstack-printf*: Move AC_LIBOBJ invocations to module description.
345         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
346         invocation from here...
347         * modules/obstack-printf (configure.ac): ... to here.
348         * modules/obstack-printf-posix (configure.ac): ... and here.
349
350 2011-05-21  Bruno Haible  <bruno@clisp.org>
351
352         nl_langinfo: Move AC_LIBOBJ invocations to module description.
353         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
354         from here...
355         * modules/nl_langinfo (configure.ac): ... to here.
356
357 2011-05-21  Bruno Haible  <bruno@clisp.org>
358
359         nanosleep: Move AC_LIBOBJ invocations to module description.
360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
361         gl_PREREQ_NANOSLEEP invocations from here...
362         * modules/nanosleep (configure.ac): ... to here.
363
364 2011-05-21  Bruno Haible  <bruno@clisp.org>
365
366         mountlist: Move AC_LIBOBJ invocations to module description.
367         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
368         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
369         * modules/mountlist (configure.ac): ... to here.
370
371 2011-05-21  Bruno Haible  <bruno@clisp.org>
372
373         mktime: Respect rules for use of AC_LIBOBJ.
374         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
375         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
376         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
377         (gl_FUNC_MKTIME_INTERNAL): ... and here...
378         * modules/mktime (configure.ac): ... to here.
379         * modules/mktime-internal (configure.ac): ... and here.
380         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
381
382 2011-05-21  Bruno Haible  <bruno@clisp.org>
383
384         mkstemps: Move AC_LIBOBJ invocations to module description.
385         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
386         here...
387         * modules/mkstemps (configure.ac): ... to here.
388
389 2011-05-21  Bruno Haible  <bruno@clisp.org>
390
391         mkstemp: Move AC_LIBOBJ invocations to module description.
392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
393         gl_PREREQ_MKSTEMP invocations from here...
394         * modules/mkstemp (configure.ac): ... to here.
395
396 2011-05-21  Bruno Haible  <bruno@clisp.org>
397
398         mkostemps: Move AC_LIBOBJ invocations to module description.
399         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
400         here...
401         * modules/mkostemps (configure.ac): ... to here.
402
403 2011-05-21  Bruno Haible  <bruno@clisp.org>
404
405         mkostemp: Move AC_LIBOBJ invocations to module description.
406         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
407         gl_PREREQ_MKOSTEMP invocations from here...
408         * modules/mkostemp (configure.ac): ... to here.
409
410 2011-05-21  Bruno Haible  <bruno@clisp.org>
411
412         mknod: Move AC_LIBOBJ invocations to module description.
413         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
414         * modules/mknod (configure.ac): ... to here.
415
416 2011-05-21  Bruno Haible  <bruno@clisp.org>
417
418         mkfifoat: Move AC_LIBOBJ invocations to module description.
419         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
420         here...
421         * modules/mkfifoat (configure.ac): ... to here.
422
423 2011-05-21  Bruno Haible  <bruno@clisp.org>
424
425         mkfifo: Respect rules for use of AC_LIBOBJ.
426         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
427         here...
428         * modules/mkfifo (configure.ac): ... to here.
429
430 2011-05-21  Bruno Haible  <bruno@clisp.org>
431
432         mkdtemp: Move AC_LIBOBJ invocations to module description.
433         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
434         invocations from here...
435         * modules/mkdtemp (configure.ac): ... to here.
436
437 2011-05-21  Bruno Haible  <bruno@clisp.org>
438
439         mkdir: Move AC_LIBOBJ invocations to module description.
440         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
441         * modules/mkdir (configure.ac): ... to here.
442
443 2011-05-21  Bruno Haible  <bruno@clisp.org>
444
445         memset: Move AC_LIBOBJ invocations to module description.
446         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
448         here...
449         * modules/memset (configure.ac): ... to here.
450
451 2011-05-21  Bruno Haible  <bruno@clisp.org>
452
453         memrchr: Move AC_LIBOBJ invocations to module description.
454         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
456         here...
457         * modules/memrchr (configure.ac): ... to here.
458
459 2011-05-21  Bruno Haible  <bruno@clisp.org>
460
461         mempcpy: Move AC_LIBOBJ invocations to module description.
462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
464         here...
465         * modules/mempcpy (configure.ac): ... to here.
466
467 2011-05-21  Bruno Haible  <bruno@clisp.org>
468
469         memmove: Move AC_LIBOBJ invocations to module description.
470         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
472         here...
473         * modules/memmove (configure.ac): ... to here.
474
475 2011-05-21  Bruno Haible  <bruno@clisp.org>
476
477         memmem*: Move AC_LIBOBJ invocations to module description.
478         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
479         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
480         here...
481         (gl_FUNC_MEMMEM): ... and here...
482         * modules/memmem-simple (configure.ac): ... to here.
483         * modules/memmem (configure.ac): ... and here.
484
485 2011-05-21  Bruno Haible  <bruno@clisp.org>
486
487         memcpy: Move AC_LIBOBJ invocations to module description.
488         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
490         here...
491         * modules/memcpy (configure.ac): ... to here.
492
493 2011-05-21  Bruno Haible  <bruno@clisp.org>
494
495         memcmp: Simplify autoconf macro.
496         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
497         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
498         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
499
500 2011-05-21  Bruno Haible  <bruno@clisp.org>
501
502         memcmp: Move AC_LIBOBJ invocations to module description.
503         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
504         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
505         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
506         * modules/memcmp (configure.ac): ... to here.
507         (Depends-on): Update conditions.
508
509 2011-05-21  Bruno Haible  <bruno@clisp.org>
510
511         memchr: Respect rules for use of AC_LIBOBJ.
512         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
513         invocations from here...
514         * modules/memchr (configure.ac): ... to here.
515
516 2011-05-21  Bruno Haible  <bruno@clisp.org>
517
518         mbtowc: Move AC_LIBOBJ invocations to module description.
519         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
520         invocations from here...
521         * modules/mbtowc (configure.ac): ... to here.
522
523 2011-05-21  Bruno Haible  <bruno@clisp.org>
524
525         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
526         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
527         gl_PREREQ_MBSRTOWCS invocations from here...
528         * modules/mbsrtowcs (configure.ac): ... to here.
529
530 2011-05-21  Bruno Haible  <bruno@clisp.org>
531
532         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
533         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
534         gl_PREREQ_MBSNRTOWCS invocations from here...
535         * modules/mbsnrtowcs (configure.ac): ... to here.
536
537 2011-05-21  Bruno Haible  <bruno@clisp.org>
538
539         mbsinit: Move AC_LIBOBJ invocations to module description.
540         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
541         invocations from here...
542         * modules/mbsinit (configure.ac): ... to here.
543
544 2011-05-21  Bruno Haible  <bruno@clisp.org>
545
546         mbrlen: Move AC_LIBOBJ invocations to module description.
547         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
548         invocations from here...
549         * modules/mbrlen (configure.ac): ... to here.
550
551 2011-05-21  Bruno Haible  <bruno@clisp.org>
552
553         mbrtowc: Respect rules for use of AC_LIBOBJ.
554         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
555         invocations from here...
556         * modules/mbrtowc (configure.ac): ... to here.
557
558 2011-05-21  Bruno Haible  <bruno@clisp.org>
559
560         malloc-*: Move AC_LIBOBJ invocations to module description.
561         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
562         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
563         AC_LIBOBJ invocations from here...
564         * modules/malloc-gnu (configure.ac): ... to here.
565         * modules/malloc-posix (configure.ac): ... and here.
566
567 2011-05-21  Bruno Haible  <bruno@clisp.org>
568
569         lstat, openat: Respect rules for use of AC_LIBOBJ.
570         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
571         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
572         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
573         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
574         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
575         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
576         here.
577         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
578
579 2011-05-21  Bruno Haible  <bruno@clisp.org>
580
581         lseek: Move AC_LIBOBJ invocations to module description.
582         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
583         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
584         * modules/lseek (configure.ac): ... to here.
585
586 2011-05-21  Bruno Haible  <bruno@clisp.org>
587
588         linkat: Move AC_LIBOBJ invocations to module description.
589         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
590         here...
591         * modules/linkat (configure.ac): ... to here.
592
593 2011-05-21  Bruno Haible  <bruno@clisp.org>
594
595         link: Respect rules for use of AC_LIBOBJ.
596         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
597         * modules/link (configure.ac): ... to here.
598
599 2011-05-21  Bruno Haible  <bruno@clisp.org>
600
601         lchown: Move AC_LIBOBJ invocations to module description.
602         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
603         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
604         * modules/lchown (configure.ac): ... to here.
605
606 2011-05-21  Bruno Haible  <bruno@clisp.org>
607
608         iswctype: Move AC_LIBOBJ invocations to module description.
609         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
610         here...
611         * modules/iswctype (configure.ac): ... to here.
612
613 2011-05-21  Bruno Haible  <bruno@clisp.org>
614
615         iswblank: Move AC_LIBOBJ invocations to module description.
616         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
617         here...
618         * modules/iswblank (configure.ac): ... to here.
619
620 2011-05-21  Bruno Haible  <bruno@clisp.org>
621
622         atanl: Move AC_LIBOBJ invocations to module description.
623         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
624         * modules/atanl (configure.ac): ... to here.
625
626 2011-05-21  Bruno Haible  <bruno@clisp.org>
627
628         acosl: Move AC_LIBOBJ invocations to module description.
629         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
630         * modules/acosl (configure.ac): ... to here.
631
632 2011-05-21  Bruno Haible  <bruno@clisp.org>
633
634         asinl: Respect rules for use of AC_LIBOBJ.
635         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
636         * modules/asinl (configure.ac): ... to here.
637
638 2011-05-21  Bruno Haible  <bruno@clisp.org>
639
640         tanl: Move AC_LIBOBJ invocations to module description.
641         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
642         * modules/tanl (configure.ac): ... to here.
643
644 2011-05-21  Bruno Haible  <bruno@clisp.org>
645
646         cosl: Move AC_LIBOBJ invocations to module description.
647         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
648         * modules/cosl (configure.ac): ... to here.
649
650 2011-05-21  Bruno Haible  <bruno@clisp.org>
651
652         sinl: Move AC_LIBOBJ invocations to module description.
653         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
654         * modules/sinl (configure.ac): ... to here.
655
656 2011-05-21  Bruno Haible  <bruno@clisp.org>
657
658         logl: Move AC_LIBOBJ invocations to module description.
659         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
660         * modules/logl (configure.ac): ... to here.
661
662 2011-05-21  Bruno Haible  <bruno@clisp.org>
663
664         expl: Move AC_LIBOBJ invocations to module description.
665         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
666         * modules/expl (configure.ac): ... to here.
667
668 2011-05-21  Bruno Haible  <bruno@clisp.org>
669
670         roundl: Move AC_LIBOBJ invocations to module description.
671         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
672         * modules/roundl (configure.ac): ... to here.
673
674 2011-05-21  Bruno Haible  <bruno@clisp.org>
675
676         round: Move AC_LIBOBJ invocations to module description.
677         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
678         * modules/round (configure.ac): ... to here.
679
680 2011-05-21  Bruno Haible  <bruno@clisp.org>
681
682         roundf: Move AC_LIBOBJ invocations to module description.
683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
684         * modules/roundf (configure.ac): ... to here.
685
686 2011-05-21  Bruno Haible  <bruno@clisp.org>
687
688         truncl: Move AC_LIBOBJ invocations to module description.
689         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
690         * modules/truncl (configure.ac): ... to here.
691
692 2011-05-21  Bruno Haible  <bruno@clisp.org>
693
694         trunc: Move AC_LIBOBJ invocations to module description.
695         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
696         * modules/trunc (configure.ac): ... to here.
697
698 2011-05-21  Bruno Haible  <bruno@clisp.org>
699
700         truncf: Move AC_LIBOBJ invocations to module description.
701         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
702         * modules/truncf (configure.ac): ... to here.
703
704 2011-05-21  Bruno Haible  <bruno@clisp.org>
705
706         ceill: Move AC_LIBOBJ invocations to module description.
707         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
708         * modules/ceill (configure.ac): ... to here.
709
710 2011-05-21  Bruno Haible  <bruno@clisp.org>
711
712         ceil: Move AC_LIBOBJ invocations to module description.
713         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
714         * modules/ceil (configure.ac): ... to here.
715
716 2011-05-21  Bruno Haible  <bruno@clisp.org>
717
718         ceilf: Move AC_LIBOBJ invocations to module description.
719         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
720         * modules/ceilf (configure.ac): ... to here.
721
722 2011-05-21  Bruno Haible  <bruno@clisp.org>
723
724         floorl: Respect rules for use of AC_LIBOBJ.
725         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
726         * modules/floorl (configure.ac): ... to here.
727
728 2011-05-21  Bruno Haible  <bruno@clisp.org>
729
730         floor: Respect rules for use of AC_LIBOBJ.
731         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
732         * modules/floor (configure.ac): ... to here.
733
734 2011-05-21  Bruno Haible  <bruno@clisp.org>
735
736         floorf: Move AC_LIBOBJ invocations to module description.
737         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
738         * modules/floorf (configure.ac): ... to here.
739
740 2011-05-20  Bruno Haible  <bruno@clisp.org>
741
742         sqrtl: Respect rules for use of AC_LIBOBJ.
743         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
744         * modules/sqrtl (configure.ac): ... to here.
745
746 2011-05-20  Bruno Haible  <bruno@clisp.org>
747
748         ldexpl: Respect rules for use of AC_LIBOBJ.
749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
750         * modules/ldexpl (configure.ac): ... to here.
751
752 2011-05-20  Bruno Haible  <bruno@clisp.org>
753
754         frexpl*: Respect rules for use of AC_LIBOBJ.
755         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
756         invocation from here...
757         * modules/frexpl (configure.ac): ... to here.
758         * modules/frexpl-nolibm (configure.ac): ... and here.
759
760 2011-05-20  Bruno Haible  <bruno@clisp.org>
761
762         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
763         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
764         invocation from here...
765         * modules/frexp (configure.ac): ... to here.
766         * modules/frexp-nolibm (configure.ac): ... and here.
767
768 2011-05-20  Bruno Haible  <bruno@clisp.org>
769
770         isnan: Respect rules for use of AC_LIBOBJ.
771         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
772         invocations here.
773         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
774         REPLACE_ISNAN.
775         * modules/isnand (configure.ac): Likewise.
776         * modules/isnanl (configure.ac): Likewise.
777
778 2011-05-20  Bruno Haible  <bruno@clisp.org>
779
780         isnanl*: Respect rules for use of AC_LIBOBJ.
781         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
782         invocation from here...
783         * modules/isnanl (configure.ac): ... to here.
784         * modules/isnanl-nolibm (configure.ac): ... and here.
785
786 2011-05-20  Bruno Haible  <bruno@clisp.org>
787
788         isnand*: Move AC_LIBOBJ invocations to module description.
789         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
790         invocation from here...
791         * modules/isnand (configure.ac): ... to here.
792         * modules/isnand-nolibm (configure.ac): ... and here.
793
794 2011-05-20  Bruno Haible  <bruno@clisp.org>
795
796         isnanf*: Move AC_LIBOBJ invocations to module description.
797         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
798         invocation from here...
799         * modules/isnanf (configure.ac): ... to here.
800         * modules/isnanf-nolibm (configure.ac): ... and here.
801
802 2011-05-20  Bruno Haible  <bruno@clisp.org>
803
804         isnan*: Separate the AC_LIBOBJ invocations.
805         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
806         AC_LIBOBJ invocation.
807         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
808         here.
809         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
810         AC_LIBOBJ invocation.
811         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
812         here.
813         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
814         AC_LIBOBJ invocation.
815         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
816         here.
817         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
818
819 2011-05-08  Bruno Haible  <bruno@clisp.org>
820
821         isinf: Move AC_LIBOBJ invocations to module description.
822         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
823         * modules/isinf (configure.ac): ... to here.
824
825 2011-05-08  Bruno Haible  <bruno@clisp.org>
826
827         isfinite: Move AC_LIBOBJ invocations to module description.
828         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
829         * modules/isfinite (configure.ac): ... to here.
830
831 2011-05-08  Bruno Haible  <bruno@clisp.org>
832
833         isblank: Move AC_LIBOBJ invocations to module description.
834         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
835         here...
836         * modules/isblank (configure.ac): ... to here.
837
838 2011-05-08  Bruno Haible  <bruno@clisp.org>
839
840         isapipe: Move AC_LIBOBJ invocations to module description.
841         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
842         gl_PREREQ_ISAPIPE invocations from here...
843         * modules/isapipe (configure.ac): ... to here.
844         (Depends-on): Update condition.
845
846 2011-05-08  Bruno Haible  <bruno@clisp.org>
847
848         ioctl: Move AC_LIBOBJ invocations to module description.
849         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
850         invocations from here...
851         * modules/ioctl (configure.ac): ... to here.
852         (Depends-on): Update condition.
853
854 2011-05-08  Bruno Haible  <bruno@clisp.org>
855
856         imaxdiv: Move AC_LIBOBJ invocations to module description.
857         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
858         invocations from here...
859         * modules/imaxdiv (configure.ac): ... to here.
860
861 2011-05-08  Bruno Haible  <bruno@clisp.org>
862
863         imaxabs: Move AC_LIBOBJ invocations to module description.
864         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
865         invocations from here...
866         * modules/imaxabs (configure.ac): ... to here.
867
868 2011-05-08  Bruno Haible  <bruno@clisp.org>
869
870         getaddrinfo: Move AC_LIBOBJ invocations to module description.
871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
872         AC_LIBOBJ invocations from here...
873         * modules/getaddrinfo (configure.ac): ... to here.
874         (Depends-on): Add conditions.
875
876 2011-05-08  Bruno Haible  <bruno@clisp.org>
877
878         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
879         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
880         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
881         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
882         (gl_PREREQ_INET_PTON): ... from here.
883         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
884         gl_PREREQ_INET_PTON here.
885         (Depends-on): Update condition.
886
887 2011-05-08  Bruno Haible  <bruno@clisp.org>
888
889         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
890         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
891         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
892         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
893         (gl_PREREQ_INET_NTOP): ... from here.
894         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
895         gl_PREREQ_INET_NTOP here.
896         (Depends-on): Update condition.
897
898 2011-05-08  Bruno Haible  <bruno@clisp.org>
899
900         iconv_open: Move AC_LIBOBJ invocations to module description.
901         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
902         AC_LIBOBJ invocations from here...
903         * modules/iconv_open (configure.ac): ... to here.
904
905 2011-05-08  Bruno Haible  <bruno@clisp.org>
906
907         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
908         If module 'iconv_open' is among the main modules and module
909         'iconv_open-utf' is among the tests dependencies, then
910         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
911         return the special iconv_t values. Therefore iconv() and iconv_close()
912         must support these special iconv_t values, already in lib, not only in
913         tests.
914         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
916         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
917         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
918         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
919         (Depends-on): Add the dependencies of iconv_open-utf.
920         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
921         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
922         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
923
924 2011-05-08  Bruno Haible  <bruno@clisp.org>
925
926         group-member: Move AC_LIBOBJ invocations to module description.
927         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
928         gl_PREREQ_GROUP_MEMBER invocations from here...
929         * modules/group-member (configure.ac): ... to here.
930
931 2011-05-08  Bruno Haible  <bruno@clisp.org>
932
933         grantpt: Move AC_LIBOBJ invocations to module description.
934         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
935         invocations from here...
936         * modules/grantpt (configure.ac): ... to here.
937
938 2011-05-08  Bruno Haible  <bruno@clisp.org>
939
940         glob: Move AC_LIBOBJ invocations to module description.
941         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
942         from here...
943         * modules/glob (configure.ac): ... to here.
944
945 2011-05-08  Bruno Haible  <bruno@clisp.org>
946
947         getusershell: Move AC_LIBOBJ invocations to module description.
948         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
949         Move AC_LIBOBJ invocation from here...
950         * modules/getusershell (configure.ac): ... to here.
951         (Depends-on): Update condition.
952
953 2011-05-08  Bruno Haible  <bruno@clisp.org>
954
955         gettimeofday: Move AC_LIBOBJ invocations to module description.
956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
957         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
958         gl_PREREQ_GETTIMEOFDAY invocations from here...
959         * modules/gettimeofday (configure.ac): ... to here.
960
961 2011-05-08  Bruno Haible  <bruno@clisp.org>
962
963         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
964         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
965         just gl_FUNC_TZSET.
966         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
967         (gl_FUNC_TZSET_CLOBBER): Remove actions.
968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
969         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
970
971 2011-05-08  Bruno Haible  <bruno@clisp.org>
972
973         getsubopt: Move AC_LIBOBJ invocations to module description.
974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
975         gl_PREREQ_GETSUBOPT invocations from here...
976         * modules/getsubopt (configure.ac): ... to here.
977
978 2011-05-08  Bruno Haible  <bruno@clisp.org>
979
980         getpass-gnu: Move AC_LIBOBJ invocations to module description.
981         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
982         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
983         * modules/getpass-gnu (configure.ac): ... to here.
984
985 2011-05-08  Bruno Haible  <bruno@clisp.org>
986
987         getpass: Move AC_LIBOBJ invocations to module description.
988         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
989         gl_PREREQ_GETPASS invocations from here...
990         * modules/getpass (configure.ac): ... to here.
991
992 2011-05-08  Bruno Haible  <bruno@clisp.org>
993
994         getpagesize: Move AC_LIBOBJ invocations to module description.
995         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
996         from here...
997         * modules/getpagesize (configure.ac): ... to here.
998
999 2011-05-08  Bruno Haible  <bruno@clisp.org>
1000
1001         getopt: Move AC_LIBOBJ invocations to module description.
1002         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1003         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1004         invocations from here...
1005         * modules/getopt-gnu (configure.ac): ... to here.
1006         * modules/getopt-posix (configure.ac): ... and here.
1007         (Depends-on): Update condition.
1008
1009 2011-05-08  Bruno Haible  <bruno@clisp.org>
1010
1011         getopt, argp: Respect rules for use of AC_LIBOBJ.
1012         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1013         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1014         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1015         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1016
1017 2011-05-08  Bruno Haible  <bruno@clisp.org>
1018
1019         getlogin_r: Move AC_LIBOBJ invocations to module description.
1020         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1021         gl_PREREQ_GETLOGIN_R invocations from here...
1022         * modules/getlogin_r (configure.ac): ... to here.
1023
1024 2011-05-08  Bruno Haible  <bruno@clisp.org>
1025
1026         getlogin: Move AC_LIBOBJ invocations to module description.
1027         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1028         here...
1029         * modules/getlogin (configure.ac): ... to here.
1030
1031 2011-05-08  Bruno Haible  <bruno@clisp.org>
1032
1033         getloadavg: Move AC_LIBOBJ invocations to module description.
1034         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1035         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1036         * modules/getloadavg (configure.ac): ... to here.
1037
1038 2011-05-08  Bruno Haible  <bruno@clisp.org>
1039
1040         gethrxtime: Move AC_LIBOBJ invocations to module description.
1041         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1042         LIB_GETHRXTIME from here...
1043         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1044         invocations from here...
1045         * modules/gethrxtime (configure.ac): ... to here.
1046
1047 2011-05-08  Bruno Haible  <bruno@clisp.org>
1048
1049         gethostname: Move AC_LIBOBJ invocations to module description.
1050         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1051         gl_PREREQ_GETHOSTNAME invocations from here...
1052         * modules/gethostname (configure.ac): ... to here.
1053
1054 2011-05-08  Bruno Haible  <bruno@clisp.org>
1055
1056         getgroups: Move AC_LIBOBJ invocations to module description.
1057         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1058         here...
1059         * modules/getgroups (configure.ac): ... to here.
1060
1061 2011-05-08  Bruno Haible  <bruno@clisp.org>
1062
1063         getdtablesize: Move AC_LIBOBJ invocations to module description.
1064         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1065         invocation from here...
1066         * modules/getdtablesize (configure.ac): ... to here.
1067
1068 2011-05-08  Bruno Haible  <bruno@clisp.org>
1069
1070         getdomainname: Move AC_LIBOBJ invocations to module description.
1071         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1072         gl_PREREQ_GETDOMAINNAME invocations from here...
1073         * modules/getdomainname (configure.ac): ... to here.
1074
1075 2011-05-08  Bruno Haible  <bruno@clisp.org>
1076
1077         getline: Move AC_LIBOBJ invocations to module description.
1078         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1079         invocations from here...
1080         * modules/getline (configure.ac): ... to here.
1081
1082 2011-05-08  Bruno Haible  <bruno@clisp.org>
1083
1084         getline: Simplify.
1085         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1086         It's already handled through the module dependency.
1087
1088 2011-05-08  Bruno Haible  <bruno@clisp.org>
1089
1090         getdelim: Move AC_LIBOBJ invocations to module description.
1091         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1092         and gl_PREREQ_GETDELIM invocations from here...
1093         * modules/getdelim (configure.ac): ... to here.
1094         (Depends-on): Fix condition.
1095
1096 2011-05-08  Bruno Haible  <bruno@clisp.org>
1097
1098         getcwd: Move AC_LIBOBJ invocations to module description.
1099         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1100         invocations from here...
1101         * modules/getcwd (configure.ac): ... to here.
1102
1103 2011-05-08  Bruno Haible  <bruno@clisp.org>
1104
1105         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1106         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1107         here...
1108         * modules/getcwd-lgpl (configure.ac): ... to here.
1109
1110 2011-05-07  Bruno Haible  <bruno@clisp.org>
1111
1112         crypto/gc: Move AC_LIBOBJ invocations to module description.
1113         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1114         * modules/crypto/gc (configure.ac): ... to here.
1115
1116 2011-05-07  Bruno Haible  <bruno@clisp.org>
1117
1118         fwriting: Move AC_LIBOBJ invocations to module description.
1119         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1120         here...
1121         * modules/fwriting (configure.ac): ... to here.
1122
1123 2011-05-07  Bruno Haible  <bruno@clisp.org>
1124
1125         fwritable: Move AC_LIBOBJ invocations to module description.
1126         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1127         here...
1128         * modules/fwritable (configure.ac): ... to here.
1129
1130 2011-05-07  Bruno Haible  <bruno@clisp.org>
1131
1132         futimens: Move AC_LIBOBJ invocations to module description.
1133         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1134         here...
1135         * modules/futimens (configure.ac): ... to here.
1136
1137 2011-05-07  Bruno Haible  <bruno@clisp.org>
1138
1139         ftruncate: Move AC_LIBOBJ invocations to module description.
1140         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1141         gl_PREREQ_FTRUNCATE invocations from here...
1142         * modules/ftruncate (configure.ac): ... to here.
1143
1144 2011-05-07  Bruno Haible  <bruno@clisp.org>
1145
1146         fsync: Move AC_LIBOBJ invocations to module description.
1147         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1148         invocations from here...
1149         * modules/fsync (configure.ac): ... to here.
1150
1151 2011-05-07  Bruno Haible  <bruno@clisp.org>
1152
1153         fsusage: Move AC_LIBOBJ invocations to module description.
1154         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1155         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1156         * modules/fsusage (configure.ac): ... to here.
1157
1158 2011-05-07  Bruno Haible  <bruno@clisp.org>
1159
1160         freopen: Move AC_LIBOBJ invocations to module description.
1161         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1162         invocations from here...
1163         * modules/freopen (configure.ac): ... to here.
1164
1165 2011-05-07  Bruno Haible  <bruno@clisp.org>
1166
1167         free: Move AC_LIBOBJ invocations to module description.
1168         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1169         invocations from here...
1170         * modules/free (configure.ac): ... to here.
1171
1172 2011-05-07  Bruno Haible  <bruno@clisp.org>
1173
1174         freadable: Move AC_LIBOBJ invocations to module description.
1175         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1176         here...
1177         * modules/freadable (configure.ac): ... to here.
1178
1179 2011-05-07  Bruno Haible  <bruno@clisp.org>
1180
1181         fpurge: Move AC_LIBOBJ invocations to module description.
1182         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1183         invocations from here...
1184         * modules/fpurge (configure.ac): ... to here.
1185
1186 2011-05-07  Bruno Haible  <bruno@clisp.org>
1187
1188         fpending: Move AC_LIBOBJ invocations to module description.
1189         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1190         gl_FUNC_FPENDING.
1191         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1192         invocations from here...
1193         * modules/fpending (configure.ac): ... to here.
1194
1195 2011-05-07  Bruno Haible  <bruno@clisp.org>
1196
1197         fopen: Move AC_LIBOBJ invocations to module description.
1198         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1199         invocations from here...
1200         * modules/fopen (configure.ac): ... to here.
1201
1202 2011-05-07  Bruno Haible  <bruno@clisp.org>
1203
1204         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1205         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1206         gl_FUNC_FNMATCH_POSIX.
1207         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1208         invocations from here...
1209         * modules/fnmatch (configure.ac): ... to here.
1210         * modules/fnmatch-gnu (configure.ac): ... and here.
1211
1212 2011-05-07  Bruno Haible  <bruno@clisp.org>
1213
1214         flock: Move AC_LIBOBJ invocations to module description.
1215         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1216         invocations from here...
1217         * modules/flock (configure.ac): ... to here.
1218
1219 2011-05-07  Bruno Haible  <bruno@clisp.org>
1220
1221         fileblocks: Move AC_LIBOBJ invocations to module description.
1222         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1223         gl_PREREQ_FILEBLOCKS invocations from here...
1224         * modules/fileblocks (configure.ac): ... to here.
1225
1226 2011-05-06  Bruno Haible  <bruno@clisp.org>
1227
1228         fflush: Move AC_LIBOBJ invocations to module description.
1229         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1230         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1231         invocations from here...
1232         * modules/fflush (configure.ac): ... to here.
1233
1234 2011-05-06  Bruno Haible  <bruno@clisp.org>
1235
1236         fdopendir: Move AC_LIBOBJ invocations to module description.
1237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1238         here...
1239         * modules/fdopendir (configure.ac): ... to here.
1240         (Depends-on): Improve conditions.
1241
1242 2011-05-06  Bruno Haible  <bruno@clisp.org>
1243
1244         _Exit: Move AC_LIBOBJ invocations to module description.
1245         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1246         invocations from here...
1247         * modules/_Exit (configure.ac): ... to here.
1248
1249 2011-05-21  Bruno Haible  <bruno@clisp.org>
1250
1251         euidaccess: Respect rules for use of AC_LIBOBJ.
1252         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1254         from here...
1255         * modules/euidaccess (configure.ac): ... to here.
1256
1257 2011-05-06  Bruno Haible  <bruno@clisp.org>
1258
1259         error: Move AC_LIBOBJ invocations to module description.
1260         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1261         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1262         invocations from here...
1263         * modules/error (configure.ac): ... to here.
1264
1265 2011-05-06  Bruno Haible  <bruno@clisp.org>
1266
1267         duplocale: Move AC_LIBOBJ invocations to module description.
1268         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1269         gl_PREREQ_DUPLOCALE invocations from here...
1270         * modules/duplocale (configure.ac): ... to here.
1271
1272 2011-05-05  Bruno Haible  <bruno@clisp.org>
1273
1274         dirfd: Move AC_LIBOBJ invocations to module description.
1275         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1276         gl_FUNC_DIRFD.
1277         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1278         here...
1279         * modules/dirfd (configure.ac): ... to here.
1280         (Depends-on): Fix condition.
1281
1282 2011-05-05  Bruno Haible  <bruno@clisp.org>
1283
1284         chown: Respect rules for use of AC_LIBOBJ.
1285         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1286         * modules/chown (configure.ac): ... to here.
1287
1288 2011-05-05  Bruno Haible  <bruno@clisp.org>
1289
1290         chdir-long: Move AC_LIBOBJ invocations to module description.
1291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1292         gl_PREREQ_CHDIR_LONG invocations from here...
1293         * modules/chdir-long (configure.ac): ... to here.
1294
1295 2011-05-05  Bruno Haible  <bruno@clisp.org>
1296
1297         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1298         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1299         from here...
1300         * modules/canonicalize-lgpl (configure.ac): ... to here.
1301
1302 2011-05-05  Bruno Haible  <bruno@clisp.org>
1303
1304         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1305         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1306         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1307         REPLACE_CALLOC.
1308         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1309         * modules/calloc-gnu (configure.ac): Likewise.
1310
1311 2011-05-05  Bruno Haible  <bruno@clisp.org>
1312
1313         btowc: Move AC_LIBOBJ invocations to module description.
1314         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1315         invocations from here...
1316         * modules/btowc (configure.ac): ... to here.
1317
1318 2011-05-21  Bruno Haible  <bruno@clisp.org>
1319
1320         atexit: Move AC_LIBOBJ invocations to module description.
1321         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1323         here...
1324         * modules/atexit (configure.ac): ... to here.
1325
1326 2011-05-05  Bruno Haible  <bruno@clisp.org>
1327
1328         atoll: Move AC_LIBOBJ invocations to module description.
1329         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1330         invocations from here...
1331         * modules/atoll (configure.ac): ... to here.
1332
1333 2011-05-05  Bruno Haible  <bruno@clisp.org>
1334
1335         argz: Move AC_LIBOBJ invocations to module description.
1336         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1337         * modules/argz (configure.ac): ... to here.
1338
1339 2011-05-05  Bruno Haible  <bruno@clisp.org>
1340
1341         alphasort: Move AC_LIBOBJ invocations to module description.
1342         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1343         gl_PREREQ_ALPHASORT invocations from here...
1344         * modules/alphasort (configure.ac): ... to here.
1345
1346 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1347
1348         verify: new macro verify_expr; verify_true deprecated
1349         * NEWS: Mention this.
1350         * doc/verify.texi (Compile-time Assertions): Document this.
1351         * lib/verify.h (verify_true): Deprecate.
1352         (verify_expr): New macro.
1353         * tests/test-verify.c (function): Test verify_expr.
1354
1355 2011-06-14  Jim Meyering  <meyering@redhat.com>
1356
1357         init.sh: give more portable redirection-related advice in a comment
1358         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1359         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1360         for lots of discussion.  Stefano Lattarini suggested the solution
1361         of putting "9>&2" after the command.  Reported by Bruno Haible.
1362
1363 2011-06-13  Bruno Haible  <bruno@clisp.org>
1364
1365         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1367         'none'.
1368
1369 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1370
1371         ftoastr: use strtof only if HAVE_STRTOF
1372         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1374         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1375         * modules/ftoastr (configure.ac): Check for strtof.
1376
1377 2011-06-13  Bruno Haible  <bruno@clisp.org>
1378
1379         gnulib-tool: Addendum to 2011-06-08 commit.
1380         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1381         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1382
1383 2011-06-13  Bruno Haible  <bruno@clisp.org>
1384
1385         fseeko: Provide a non-inline replacement of fseek().
1386         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1387         * modules/fseeko (Depends-on): Add fseek.
1388         * modules/fseek (License): Change to LGPLv2+.
1389
1390 2011-06-13  Bruno Haible  <bruno@clisp.org>
1391
1392         ftello: Provide a non-inline replacement of ftell().
1393         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1394         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1395         not have ftello() (such as on mingw).
1396         * modules/ftello (Depends-on): Add ftell.
1397         * modules/ftell (License): Change to LGPLv2+.
1398
1399 2011-05-07  Bruno Haible  <bruno@clisp.org>
1400
1401         ftell: Move AC_LIBOBJ invocations to module description.
1402         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1403         * modules/ftell (configure.ac): ... to here.
1404
1405 2011-05-07  Bruno Haible  <bruno@clisp.org>
1406
1407         ftello: Respect rules for use of AC_LIBOBJ.
1408         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1409         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1410         here...
1411         * modules/ftello (configure.ac): ... to here.
1412
1413 2011-05-07  Bruno Haible  <bruno@clisp.org>
1414
1415         fseeko: Simplify.
1416         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1417         (gl_FUNC_FSEEKO): Inline it here.
1418
1419 2011-05-07  Bruno Haible  <bruno@clisp.org>
1420
1421         fseek: Move AC_LIBOBJ invocations to module description.
1422         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1423         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1424         * modules/fseek (configure.ac): ... to here.
1425
1426 2011-05-07  Bruno Haible  <bruno@clisp.org>
1427
1428         fseek: Respect rules for use of AC_LIBOBJ.
1429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1430         here...
1431         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1432
1433 2011-05-07  Bruno Haible  <bruno@clisp.org>
1434
1435         fseeko: Respect rules for use of AC_LIBOBJ.
1436         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1437         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1438         here...
1439         * modules/fseeko (configure.ac): ... to here.
1440
1441 2011-06-13  Bruno Haible  <bruno@clisp.org>
1442
1443         gnulib-tool: Allow comments in the 'Depends-on' section.
1444         * doc/gnulib.texi (Module description): Mention comment syntax in the
1445         Depends-on section.
1446         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1447
1448 2011-06-13  Bruno Haible  <bruno@clisp.org>
1449
1450         file-set.h: guard __attibute__ use, now that it's not always defined
1451         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1452         versions that support it.  This fixes a coreutils build failure with
1453         the vendor cc on HP-UX 11.31.
1454
1455 2011-06-12  Bruno Haible  <bruno@clisp.org>
1456
1457         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1458         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1459         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1460         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1461         (acl, aclsort): New declarations.
1462         (aclv_nontrivial): New declaration.
1463         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1464         (file_has_acl): Read also the second kind of HP-UX ACLs.
1465         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1466         kind of HP-UX ACLs if the first kind fails.
1467         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1468         second kind of HP-UX ACLs.
1469         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1470         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1471         agree.
1472         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1473         hpuxjfs.
1474         Handle hpuxjfs.
1475         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1476         hpuxjfs.
1477         Handle hpuxjfs.
1478         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1479         (func_test_same_acls): Use both lsacl and getacl.
1480         Handle hpuxjfs.
1481         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1482         (func_test_same_acls): Use both lsacl and getacl.
1483         Handle hpuxjfs.
1484
1485 2011-06-12  Bruno Haible  <bruno@clisp.org>
1486
1487         acl: Complete the 2010-08-10 fix.
1488         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1489         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1490         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1491         explicitly.
1492         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1493         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1494
1495 2011-06-12  Bruno Haible  <bruno@clisp.org>
1496
1497         spawn-pipe tests: Comments.
1498         * tests/test-spawn-pipe-child.c (main): Update comment.
1499         Reported by James Youngman <jay@gnu.org>.
1500
1501 2011-06-11  James Youngman  <jay@gnu.org>
1502
1503         New module 'stat-size'.
1504         * modules/stat-size: New module.  Provides macros for accessing
1505         file size information in instances of struct stat.  Depends on the
1506         fileblocks module because it calls st_blocks.
1507         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1508         * doc/gnulib.texi: Include stat-size.texi.
1509         * doc/stat-size.texi: Documentation for this module.
1510         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1511         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1512         AC_STRUCT_ST_BLOCKS.
1513
1514 2011-06-09  Bruno Haible  <bruno@clisp.org>
1515
1516         thread: Support pthreads-win32.
1517         * lib/glthread/thread.h (gl_thread_self): Define differently on
1518         pthreads-win32.
1519         (gl_null_thread): New declaration.
1520         (gl_thread_self_pointer): New macro.
1521         * lib/glthread/thread.c (gl_null_thread): New constant.
1522         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1523         gl_thread_self.
1524         * tests/test-tls.c: Likewise.
1525         Suggested by Paul Eggert. Reported by Eric Blake.
1526
1527 2011-06-09  Bruno Haible  <bruno@clisp.org>
1528
1529         thread: Fix confusion between NULL and 0.
1530         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1531         Reported by Paul Eggert.
1532
1533 2011-06-09  Bruno Haible  <bruno@clisp.org>
1534
1535         spawn-pipe tests: Avoid test failure on HP-UX 11.
1536         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1537         is closed.
1538
1539 2011-06-09  Bruno Haible  <bruno@clisp.org>
1540
1541         acl tests: Fix compilation error on HP-UX 11.
1542         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1543
1544 2011-06-09  Bruno Haible  <bruno@clisp.org>
1545
1546         rmdir: Avoid test failure on HP-UX 10.20.
1547         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1548         EEXIST.
1549
1550 2011-06-08  Eric Blake  <eblake@redhat.com>
1551
1552         perror: fix test on mingw
1553         * modules/perror-tests (Depends-on): Add dup2.
1554
1555         strerror_r-posix: fix on MacOS
1556         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1557         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1558         logic bug.
1559         * lib/strerror_r.c (strerror_r): Fix the bug.
1560         * lib/strerror.c (strerror): Likewise.
1561         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1562         problem.
1563         * doc/posix-functions/strerror.texi (strerror): Likewise.
1564         * doc/posix-functions/perror.texi (perror): Likewise.
1565         * tests/test-strerror.c (main): Enhance test.
1566         * tests/test-strerror_r.c (main): Likewise.
1567
1568 2011-06-08  Bruno Haible  <bruno@clisp.org>
1569
1570         gnulib-tool: Better isolation between different gnulib-tool invocations.
1571         * gnulib-tool: New option --witness-c-macro.
1572         (witness_c_macro): New variable.
1573         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1574         AM_CPPFLAGS define it as a C macro.
1575         (func_emit_tests_Makefile_am): Likewise.
1576         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1577         read it from there.
1578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1579         m4_define, not AC_DEFUN.
1580         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1581         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1582         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1583         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1584         s|...|...|, to substitute the values of the GNULIB_* module indicator
1585         variables.
1586         * modules/dirent (Makefile.am): Likewise.
1587         * modules/fcntl-h (Makefile.am): Likewise.
1588         * modules/iconv-h (Makefile.am): Likewise.
1589         * modules/langinfo (Makefile.am): Likewise.
1590         * modules/locale (Makefile.am): Likewise.
1591         * modules/math (Makefile.am): Likewise.
1592         * modules/netdb (Makefile.am): Likewise.
1593         * modules/poll-h (Makefile.am): Likewise.
1594         * modules/pty (Makefile.am): Likewise.
1595         * modules/search (Makefile.am): Likewise.
1596         * modules/signal (Makefile.am): Likewise.
1597         * modules/spawn (Makefile.am): Likewise.
1598         * modules/stdio (Makefile.am): Likewise.
1599         * modules/stdlib (Makefile.am): Likewise.
1600         * modules/string (Makefile.am): Likewise.
1601         * modules/sys_ioctl (Makefile.am): Likewise.
1602         * modules/sys_select (Makefile.am): Likewise.
1603         * modules/sys_socket (Makefile.am): Likewise.
1604         * modules/sys_stat (Makefile.am): Likewise.
1605         * modules/sys_times (Makefile.am): Likewise.
1606         * modules/sys_utsname (Makefile.am): Likewise.
1607         * modules/sys_wait (Makefile.am): Likewise.
1608         * modules/termios (Makefile.am): Likewise.
1609         * modules/time (Makefile.am): Likewise.
1610         * modules/unistd (Makefile.am): Likewise.
1611         * modules/wchar (Makefile.am): Likewise.
1612
1613 2011-06-08  Eric Blake  <eblake@redhat.com>
1614
1615         strerror: simplify replacement
1616         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1617         * modules/strerror (configure.ac): No prereqs needed here...
1618         * modules/strerror-override (configure.ac): ...but this needs it.
1619         (Files): Add file for needed prereq macro.
1620
1621 2011-06-08  Bruno Haible  <bruno@clisp.org>
1622
1623         strerror_r-posix: Tweaks.
1624         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1625         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1627         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1628         (gl_FUNC_STRERROR_R): ... to here.
1629         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1630
1631 2011-06-07  Eric Blake  <eblake@redhat.com>
1632
1633         perror: document fixed bugs
1634         * doc/posix-functions/perror.texi (perror): Document recent
1635         patches.
1636
1637 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1638
1639         stat-time: get_stat_birthtime failure is better-defined
1640         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1641         return a timestamp whose tv_sec and tv_nsec values are both -1.
1642         Previously, the spec said only that the tv_nsec value was negative.
1643         This upward-compatible change simplifies GNU tar a bit.
1644
1645 2011-06-07  Eric Blake  <eblake@redhat.com>
1646
1647         strerror_r-posix: work around cygwin 1.7.9
1648         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1649         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1650         bug without replacing strerror_r.
1651         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1652         strerror_r is buggy, but without requiring strerror_r compilation.
1653         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1654
1655         test-perror: relax test to ignore cygwin bug
1656         * tests/test-perror2.c (main): Relax test on requiring detection
1657         of stream errors, and use unbuffered stream.
1658         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1659         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1660         * doc/posix-functions/fputc.texi (fputc): Likewise.
1661         * doc/posix-functions/fputs.texi (fputs): Likewise.
1662         * doc/posix-functions/fputws.texi (fputws): Likewise.
1663         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1664         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1665         * doc/posix-functions/getopt.texi (getopt): Likewise.
1666         * doc/posix-functions/perror.texi (perror): Likewise.
1667         * doc/posix-functions/printf.texi (printf): Likewise.
1668         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1669         * doc/posix-functions/psignal.texi (psignal): Likewise.
1670         * doc/posix-functions/putc.texi (putc): Likewise.
1671         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1672         Likewise.
1673         * doc/posix-functions/putchar.texi (putchar): Likewise.
1674         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1675         Likewise.
1676         * doc/posix-functions/puts.texi (puts): Likewise.
1677         * doc/posix-functions/putwc.texi (putwc): Likewise.
1678         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1679         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1680         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1681         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1682         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1683         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1684         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1685         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1686
1687 2011-05-22  Bruno Haible  <bruno@clisp.org>
1688
1689         strerror: Move AC_LIBOBJ invocations to module description.
1690         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1691         gl_PREREQ_STRERROR invocations from here...
1692         * modules/strerror (configure.ac): ... to here.
1693
1694 2011-05-21  Bruno Haible  <bruno@clisp.org>
1695
1696         perror: Use common idiom.
1697         * modules/perror (configure.ac): Reorder statements.
1698
1699 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1700
1701         tests: fix usage message in 'mktempd_'
1702         * tests/init.sh (mktempd_): In the usage message, use literal
1703         'mktempd_', not '$ME' (which is even undefined), as the name of
1704         the subroutine.
1705
1706 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1707
1708         tests init: new function 'fatal_', for hard errors
1709         Before this patch, the only way offered by tests/init.sh to
1710         properly signal a hard error was the `framework_failure_'
1711         function.  But the error message issued by that function,
1712         as its name would suggest, refers to a set-up failure in the
1713         testsuite, while hard errors can obviously also be due to
1714         other reasons.  The best way to fix this inconsistency is to
1715         introduce a new function with a more general error message.
1716         * tests/init.sh (fatal_): New function.
1717
1718 2011-06-06  Eric Blake  <eblake@redhat.com>
1719
1720         canonicalize-lgpl: use common idiom
1721         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1722         over newer POSIX -Rf.
1723         Reported by Bruno Haible.
1724
1725         canonicalize-lgpl: work around AIX realpath bug
1726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1727         * doc/posix-functions/realpath.texi (realpath): Document it.
1728         Reported by Bruno Haible.
1729
1730         strerror: work around FreeBSD bug
1731         * lib/strerror.c (strerror): Special case 0.
1732         Reported by Bruno Haible.
1733
1734         strerror-override: avoid bloating errno module
1735         * modules/errno (Files, configure.ac): Move replacement strings...
1736         * modules/strerror-override: ...to new module.
1737         * modules/strerror (Depends-on): Add strerror-override.
1738         * modules/strerror_r-posix (Depends-on): Likewise.
1739         * MODULES.html.sh: Document new module.
1740         Reported by Bruno Haible.
1741
1742 2011-06-06  Bruno Haible  <bruno@clisp.org>
1743
1744         spawn-pipe tests: Rename program.
1745         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1746         * tests/test-spawn-pipe-child.c: Update comment.
1747         * tests/test-spawn-pipe.sh: Update.
1748         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1749
1750         spawn-pipe tests: Link the child program only against libc.
1751         * tests/test-spawn-pipe-child.c: New file, extracted from
1752         tests/test-spawn-pipe.c.
1753         (main): Expect only one argument.
1754         (is_open): New function, copied from tests/test-pipe.c.
1755         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1756         (child_main): Remove function.
1757         (test_pipe): Pass only one argument to the child program.
1758         (main): Remove child process code. Expect the child program's name as
1759         first argument.
1760         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1761         argument.
1762         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1763         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1764         test-spawn-pipe-child against no libraries.
1765
1766 2011-06-06  Bruno Haible  <bruno@clisp.org>
1767
1768         careadlinkat: Avoid mismatch between ssize_t and int.
1769         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1770         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1771
1772 2011-06-06  Jim Meyering  <meyering@redhat.com>
1773
1774         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1775         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1776         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1777
1778 2011-06-05  Bruno Haible  <bruno@clisp.org>
1779
1780         ansi-c++-opt: Interoperability with libtool.
1781         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1782         set the variable to "no", not to ":".
1783         * NEWS: Mention the change.
1784
1785 2011-06-05  Bruno Haible  <bruno@clisp.org>
1786
1787         acl: Fix test failure on AIX 7.
1788         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1789         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1790
1791 2011-06-05  Bruno Haible  <bruno@clisp.org>
1792
1793         pipe-filter-ii: Fix test failure on AIX and IRIX.
1794         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1795         with EAGAIN, retry with a smaller buffer size.
1796
1797 2011-06-05  Bruno Haible  <bruno@clisp.org>
1798
1799         localename: Fix link dependencies.
1800         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1801         * modules/localename-tests (Makefile.am): Link test-localename with
1802         $(LIBTHREAD).
1803
1804 2011-06-05  Bruno Haible  <bruno@clisp.org>
1805
1806         error: Avoid gcc warning.
1807         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1808
1809 2011-06-05  Bruno Haible  <bruno@clisp.org>
1810
1811         unsetenv: Avoid gcc warning.
1812         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1813
1814 2011-06-05  Bruno Haible  <bruno@clisp.org>
1815
1816         setenv: Avoid gcc warning.
1817         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1818
1819 2011-06-05  Bruno Haible  <bruno@clisp.org>
1820
1821         sys_select: Ensure memset is declared also on AIX 7.
1822         * lib/sys_select.in.h: Include <string.h> also on AIX.
1823         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1824         self-contained also on AIX 7.1.
1825
1826 2011-06-04  Jim Meyering  <meyering@redhat.com>
1827
1828         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1829         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1830         function name, "error".
1831         (_gl_translatable_diag_func_re): New configurable variable.
1832
1833 2011-06-04  Bruno Haible  <bruno@clisp.org>
1834
1835         getopt: Avoid gcc warning.
1836         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1837
1838 2011-06-04  Bruno Haible  <bruno@clisp.org>
1839
1840         strerror_r: Fix comments.
1841         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1842         commit.
1843
1844 2011-06-04  Bruno Haible  <bruno@clisp.org>
1845
1846         perror: Fix compilation error.
1847         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1848         Undefine fprintf, not sprintf.
1849         * modules/perror (Depends-on): Remove intprops, verify.
1850
1851 2011-06-04  Bruno Haible  <bruno@clisp.org>
1852
1853         setlocale: Enable replacement on Cygwin 1.5.
1854         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1855         Cygwin 1.5.x.
1856         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1857         LC_CTYPE category also exists on Cygwin 1.5.x.
1858
1859 2011-06-04  Bruno Haible  <bruno@clisp.org>
1860
1861         strerror-override: Don't disable symbol renamings.
1862         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1863         * lib/strerror-override.c: Include config.h.
1864         (strerror_override): Don't undefine.
1865
1866 2011-06-03  Bruno Haible  <bruno@clisp.org>
1867
1868         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1869         * lib/localename.h: Update copyright header.
1870         * lib/localename.c: Likewise.
1871         * lib/relocatable.h: Likewise.
1872         * lib/relocatable.c: Likewise.
1873
1874 2011-06-02  Bruno Haible  <bruno@clisp.org>
1875
1876         doc: Fix a module name.
1877         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1878
1879 2011-06-02  Bruno Haible  <bruno@clisp.org>
1880
1881         pipe2: Remove dependency on 'nonblocking' module.
1882         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1883         O_NONBLOCK is defined by gnulib.
1884         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1885         is zero.
1886         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1887         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1888         defined by gnulib.
1889         (get_nonblocking_flag): New function.
1890         (main): Test O_NONBLOCK flag only if it is nonzero.
1891         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1892
1893 2011-06-03  Jim Meyering  <meyering@redhat.com>
1894
1895         maint: three new prohibit-header-without-use rules
1896         Prohibit use of cloexec.h, posixver.h, same.h without use.
1897         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1898         (sc_prohibit_posixver_without_use): Likewise.
1899         (sc_prohibit_same_without_use): Likewise.
1900
1901 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1902
1903         allocator: 'die' routine is now given requested size
1904         * lib/allocator.h (struct allocator.die): New size arg.
1905         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1906         If the actual problem is an ssize_t limitation, not a size_t or
1907         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1908
1909 2011-06-01  Eric Blake  <eblake@redhat.com>
1910
1911         strerror: drop strerror_r dependency
1912         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1913         * lib/strerror-override.c (strerror_override): ...to new file.
1914         * lib/strerror-override.h: Add prototype.
1915         * lib/strerror-impl.h: Delete.
1916         * lib/strerror.c (strerror): New implementation.
1917         * modules/errno (Files): Add new files.
1918         (configure.ac): Compile new file as appropriate.
1919         * modules/strerror (Files): Drop unused file.
1920         (Depends-on): Drop strerror_r-posix.
1921         * MODULES.html.sh: Document strerror_r-posix.
1922         Requested by Sam Steingold.
1923
1924         perror: call strerror_r directly
1925         * modules/perror (Files): Drop strerror-impl.h.
1926         * lib/perror.c (perror): Use our own stack buffer, rather than
1927         calling a wrapper that uses static storage.
1928         * doc/posix-functions/perror.texi (perror): Document a limitation
1929         of our replacement.
1930
1931         strerror_r: fix includes for FreeBSD
1932         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1933         since we use abort on some platforms.
1934         Reported by Matthias Bolte.
1935
1936 2011-05-31  Bruno Haible  <bruno@clisp.org>
1937
1938         Fix link errors in tests: openat-die uses gettext-h.
1939         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1940         against $(LIBINTL).
1941         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1942         against $(LIBINTL).
1943         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1944         $(LIBINTL).
1945         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1946         against $(LIBINTL).
1947         * modules/linkat-tests (Makefile.am): Link test-linkat against
1948         $(LIBINTL).
1949         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1950         $(LIBINTL).
1951         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1952         against $(LIBINTL).
1953         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1954         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1955         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1956         $(LIBINTL).
1957         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1958         $(LIBINTL).
1959         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1960         $(LIBINTL).
1961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1962
1963 2011-05-31  Bruno Haible  <bruno@clisp.org>
1964
1965         Fix link errors in tests: wait-process uses gettext-h.
1966         * modules/nonblocking-pipe-tests (Makefile.am): Set
1967         test_nonblocking_pipe_main_LDADD.
1968         * modules/nonblocking-socket-tests (Makefile.am): Link
1969         test-nonblocking-socket-main against $(LIBINTL).
1970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1971
1972 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         assert-h: work around 'verify' incompatibility
1975         * lib/verify.h: Use @...@ directives, not ifdef.
1976         * modules/assert-h (assert.h): Implement the directives.
1977         (assert.h): Substitute the symbol-prefix more consistently.
1978
1979 2011-05-29  Jim Meyering  <meyering@redhat.com>
1980
1981         trim: remove three superfluous assignments
1982         * lib/trim.c (trim2): Remove three superfluous assignments
1983         and correct brace positioning.
1984
1985 2011-05-29  Bruno Haible  <bruno@clisp.org>
1986
1987         wctype-h: Avoid namespace pollution on Solaris 2.6.
1988         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1989         identifiers.
1990         * doc/posix-headers/wctype.texi: Mention the problem.
1991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1992
1993 2011-05-28  Jim Meyering  <meyering@redhat.com>
1994
1995         parse-datetime.y: accommodate -Wstrict-overflow
1996         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1997         placate -Wstrict-overflow.
1998
1999         trim: avoid a warning from -O2 -Wstrict-overflow
2000         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2001
2002 2011-05-29  Bruno Haible  <bruno@clisp.org>
2003
2004         gnulib-tool: Fix bug in yesterday's commit.
2005         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2006         twice.
2007
2008 2011-05-29  Bruno Haible  <bruno@clisp.org>
2009
2010         Allow multiple gnulib generated include files to be combined.
2011         * gnulib-tool (func_compute_include_guard_prefix): New function.
2012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2013         ${gl_include_guard_prefix} references.
2014         (func_import, func_create_testdir): Invoke
2015         func_compute_include_guard_prefix.
2016         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2017         * lib/ctype.in.h: Likewise.
2018         * lib/dirent.in.h: Likewise.
2019         * lib/errno.in.h: Likewise.
2020         * lib/fcntl.in.h: Likewise.
2021         * lib/float.in.h: Likewise.
2022         * lib/getopt.in.h: Likewise.
2023         * lib/iconv.in.h: Likewise.
2024         * lib/langinfo.in.h: Likewise.
2025         * lib/locale.in.h: Likewise.
2026         * lib/math.in.h: Likewise.
2027         * lib/netdb.in.h: Likewise.
2028         * lib/netinet_in.in.h: Likewise.
2029         * lib/poll.in.h: Likewise.
2030         * lib/pthread.in.h: Likewise.
2031         * lib/pty.in.h: Likewise.
2032         * lib/sched.in.h: Likewise.
2033         * lib/se-selinux.in.h: Likewise.
2034         * lib/search.in.h: Likewise.
2035         * lib/signal.in.h: Likewise.
2036         * lib/spawn.in.h: Likewise.
2037         * lib/stdarg.in.h: Likewise.
2038         * lib/stddef.in.h: Likewise.
2039         * lib/stdint.in.h: Likewise.
2040         * lib/stdio.in.h: Likewise.
2041         * lib/stdlib.in.h: Likewise.
2042         * lib/string.in.h: Likewise.
2043         * lib/strings.in.h: Likewise.
2044         * lib/sys_file.in.h: Likewise.
2045         * lib/sys_ioctl.in.h: Likewise.
2046         * lib/sys_select.in.h: Likewise.
2047         * lib/sys_socket.in.h: Likewise.
2048         * lib/sys_stat.in.h: Likewise.
2049         * lib/sys_time.in.h: Likewise.
2050         * lib/sys_times.in.h: Likewise.
2051         * lib/sys_uio.in.h: Likewise.
2052         * lib/sys_utsname.in.h: Likewise.
2053         * lib/sys_wait.in.h: Likewise.
2054         * lib/sysexits.in.h: Likewise.
2055         * lib/termios.in.h: Likewise.
2056         * lib/time.in.h: Likewise.
2057         * lib/unistd.in.h: Likewise.
2058         * lib/wchar.in.h: Likewise.
2059         * lib/wctype.in.h: Likewise.
2060         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2061         * modules/ctype (Makefile.am): Likewise.
2062         * modules/dirent (Makefile.am): Likewise.
2063         * modules/errno (Makefile.am): Likewise.
2064         * modules/fcntl-h (Makefile.am): Likewise.
2065         * modules/float (Makefile.am): Likewise.
2066         * modules/getopt-posix (Makefile.am): Likewise.
2067         * modules/iconv-h (Makefile.am): Likewise.
2068         * modules/langinfo (Makefile.am): Likewise.
2069         * modules/locale (Makefile.am): Likewise.
2070         * modules/math (Makefile.am): Likewise.
2071         * modules/netdb (Makefile.am): Likewise.
2072         * modules/netinet_in (Makefile.am): Likewise.
2073         * modules/poll-h (Makefile.am): Likewise.
2074         * modules/pthread (Makefile.am): Likewise.
2075         * modules/pty (Makefile.am): Likewise.
2076         * modules/sched (Makefile.am): Likewise.
2077         * modules/search (Makefile.am): Likewise.
2078         * modules/selinux-h (Makefile.am): Likewise.
2079         * modules/signal (Makefile.am): Likewise.
2080         * modules/spawn (Makefile.am): Likewise.
2081         * modules/stdarg (Makefile.am): Likewise.
2082         * modules/stddef (Makefile.am): Likewise.
2083         * modules/stdint (Makefile.am): Likewise.
2084         * modules/stdio (Makefile.am): Likewise.
2085         * modules/stdlib (Makefile.am): Likewise.
2086         * modules/string (Makefile.am): Likewise.
2087         * modules/strings (Makefile.am): Likewise.
2088         * modules/sys_file (Makefile.am): Likewise.
2089         * modules/sys_ioctl (Makefile.am): Likewise.
2090         * modules/sys_select (Makefile.am): Likewise.
2091         * modules/sys_socket (Makefile.am): Likewise.
2092         * modules/sys_stat (Makefile.am): Likewise.
2093         * modules/sys_time (Makefile.am): Likewise.
2094         * modules/sys_times (Makefile.am): Likewise.
2095         * modules/sys_uio (Makefile.am): Likewise.
2096         * modules/sys_utsname (Makefile.am): Likewise.
2097         * modules/sys_wait (Makefile.am): Likewise.
2098         * modules/sysexits (Makefile.am): Likewise.
2099         * modules/termios (Makefile.am): Likewise.
2100         * modules/time (Makefile.am): Likewise.
2101         * modules/unistd (Makefile.am): Likewise.
2102         * modules/wchar (Makefile.am): Likewise.
2103         * modules/wctype-h (Makefile.am): Likewise.
2104         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2105
2106 2011-05-29  Bruno Haible  <bruno@clisp.org>
2107
2108         assert-h: Allow multiple gnulib generated replacements to coexist.
2109         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2110
2111 2011-05-29  Bruno Haible  <bruno@clisp.org>
2112
2113         argp: Allow coexistence with strerror_r-posix module.
2114         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2115         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2116         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2117         not the glibc signature.
2118
2119 2011-05-28  Bruno Haible  <bruno@clisp.org>
2120
2121         gnulib-tool: Alternative structure of testdirs, similar to --import.
2122         * gnulib-tool: New option --single-configure.
2123         (func_usage): Document it.
2124         (single_configure): New variable.
2125         (func_modules_transitive_closure_separately,
2126         func_modules_transitive_closure_separately,
2127         func_determine_use_libtests, func_modules_add_dummy_separately,
2128         func_modules_to_filelist_separately): New functions, extracted from
2129         func_import.
2130         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2131         (func_import): Use the new functions.
2132         (func_create_testdir): Set final_modules. Handle $single_configure =
2133         true case.
2134
2135 2011-05-28  Bruno Haible  <bruno@clisp.org>
2136
2137         getloadavg: Remove an unreliable safety check.
2138         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2139         getloadavg.c is in place.
2140         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2141         Reported by Sam Steingold <sds@gnu.org>.
2142
2143 2011-05-28  Bruno Haible  <bruno@clisp.org>
2144
2145         doc: Cleanup yet another file produced by texinfo.tex.
2146         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2147
2148 2011-05-28  Bruno Haible  <bruno@clisp.org>
2149
2150         Finish the conditional dependencies mechanism.
2151         * gnulib-tool: New option --no-conditional-dependencies.
2152         (func_usage): Document it. Don't mark --conditional-dependencies as
2153         experimental.
2154         (cond_dependencies): The possible values can now be true, false, empty.
2155         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2156         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2157         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2158
2159 2011-05-28  Bruno Haible  <bruno@clisp.org>
2160
2161         doc: Use a recent texinfo.tex.
2162         * doc/Makefile (tex_opts): New variable.
2163         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2164
2165 2011-05-28  Jim Meyering  <meyering@redhat.com>
2166
2167         intprops.h: adjust comment to match code change
2168         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2169         only once, it *may* have side effects.  Also fix an unrelated typo.
2170         (_GL_INT_SIGNED): Likewise.
2171
2172 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2173
2174         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2175
2176 2011-05-26  Bruno Haible  <bruno@clisp.org>
2177
2178         mbsrchr: Avoid collision with system function on Interix.
2179         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2180         Reported by Markus Duft <mduft@gentoo.org>.
2181
2182 2011-05-15  James Youngman  <jay@gnu.org>
2183
2184         getopt: for ambiguous options, enumerate the possibilities.
2185         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2186         the ambiguous options when an ambiguous prefix is given. This was
2187         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2188         glibc change was
2189         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2190
2191 2011-05-25  Eric Blake  <eblake@redhat.com>
2192
2193         getcwd: work around mingw bug
2194         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2195         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2196         Reported by Matthias Bolte.
2197
2198 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2199
2200         test-intprops: disable -Wtype-limits diagnostics
2201         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2202         diagnostics.  Otherwise, the integer overflow macros generate many
2203         diagnostics.  Reported by Jim Meyering in
2204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2205
2206         intprops: shorten, to pacify gcc -Woverlength-strings
2207         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2208         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2209         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2210         likely to run afoul of C compiler limits for string constant lengths.
2211         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2212
2213 2011-05-24  Eric Blake  <eblake@redhat.com>
2214
2215         docs: document recently fixed glibc printf bug
2216         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2217         * doc/posix-functions/printf.texi (printf): Likewise.
2218         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2219         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2220
2221         closein-tests: convert to init.sh
2222         * modules/closein-tests (Files): Add init.sh
2223         * tests/test-closein.sh Use it.
2224
2225         yesno-tests: convert to init.sh
2226         * modules/yesno-tests (Files): Add init.sh.
2227         * tests/test-yesno.sh: Use it.
2228
2229         atexit-tests: ensure reliable exit status
2230         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2231         Reported by Bruno Haible.
2232
2233 2011-05-24  Bruno Haible  <bruno@clisp.org>
2234
2235         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2236         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2237         gl_PREREQ_STRERROR_R invocations from here...
2238         * modules/strerror_r-posix (configure.ac): ... to here.
2239
2240 2011-05-24  Eric Blake  <eblake@redhat.com>
2241
2242         strerror_r: fix missing header
2243         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2244
2245         strerror_r: fix AIX test failures
2246         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2247         ERANGE failure.
2248
2249         strerror_r: fix Solaris test failures
2250         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2251         failures.
2252         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2253
2254         strerror_r: enforce POSIX recommendations
2255         * lib/strerror_r.c (safe_copy): New helper method.
2256         (strerror_r): Guarantee a non-empty string.
2257         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2258         recent POSIX rulings and to match our strerror guarantees.
2259         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2260
2261 2011-05-24  Jim Meyering  <meyering@redhat.com>
2262
2263         test-perror2.c: avoid warning about unused variable
2264         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2265
2266 2011-05-24  Eric Blake  <eblake@redhat.com>
2267
2268         perror: avoid spurious test failure on HP-UX
2269         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2270
2271         tests: fix logic bug in init.sh
2272         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2273         shell.
2274
2275 2011-05-24  Jim Meyering  <meyering@redhat.com>
2276
2277         utimensat: do not reference an out-of-scope buffer
2278         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2279         declared in an inner scope, yet "times" would be dereferenced outside
2280         the scope in which "ts" was valid.
2281         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2282         of ts[2] "out/up", so that the use of aliased "times" (via
2283         "times = ts;") does not end up referencing an out-of-scope "ts"
2284
2285         opendir-safer.c: don't clobber errno; don't close negative FD
2286         * lib/opendir-safer.c (opendir_safer):
2287         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2288         file descriptor, and more importantly, don't clobber the
2289         offending errno value with EINVAL.  Before, upon failure
2290         of dup_safer, we would pass the negative file descriptor to
2291         fdopendir, which would clobber errno.
2292
2293 2011-05-23  Bruno Haible  <bruno@clisp.org>
2294
2295         idcache: Fix module description.
2296         * modules/idcache (Include): Set to "idcache.h".
2297
2298 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         gnulib-tool: fix portability problem with MacOS sed
2301         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2302         before the "}".  Problem reported by Leo in
2303         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2304         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2305         sed_extract_condition1, sed_extract_condition2.
2306
2307 2011-05-23  Bruno Haible  <bruno@clisp.org>
2308
2309         hash: Simplify autoconf macro.
2310         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2311
2312 2011-05-23  Bruno Haible  <bruno@clisp.org>
2313
2314         getugroups: Fix module description.
2315         * modules/getugroups (Include): Set to "getugroups.h".
2316
2317 2011-05-23  Bruno Haible  <bruno@clisp.org>
2318
2319         linkat: Simplify autoconf macro.
2320         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2321
2322 2011-05-23  Bruno Haible  <bruno@clisp.org>
2323             Eric Blake  <eblake@redhat.com>
2324
2325         linkat, renameat: Update dependencies.
2326         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2327         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2328         symlinkat.
2329
2330 2011-05-23  Jim Meyering  <meyering@redhat.com>
2331
2332         maint.mk: more tight_scope improvements
2333         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2334         (_gl_TS_headers): Define only in if-0'd block.
2335         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2336         sometimes we must *not* use it.  Adjust uses accordingly.
2337         (sc_tight_scope): Use much simpler grep-based test to determine
2338         whether we skip this rule.
2339
2340         maint.mk: generalize/improve the tight-scope rule
2341         * top/maint.mk: Emit a warning when the test is skipped.
2342         (_gl_TS_dir): Add $(srcdir)/ prefix.
2343         (_gl_TS_function_match): Simplify, rather than trying
2344         to enumerate common types.  Otherwise, it would fail to match an
2345         "extern unsigned char const *" declaration in idutils.
2346         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2347         a way to support use of that type of macro.
2348         (_gl_TS_var_match): Simplify regexp.
2349         (_gl_TS_obj_files): New configurable variable.
2350         (_gl_TS_headers): Likewise.
2351
2352 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         verify: fix bug when gnulib <assert.h> is also included
2355         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2356         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2357         Perhaps there's a better way, but this fixes the immediate problem.
2358         Problem reported by Bruno Haible in
2359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2360
2361 2011-05-22  Bruno Haible  <bruno@clisp.org>
2362
2363         xgetcwd: Simplify autoconf macro.
2364         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2365
2366 2011-05-22  Bruno Haible  <bruno@clisp.org>
2367
2368         New module 'mktime-internal'.
2369         * modules/mktime-internal: New file.
2370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2371         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2372         mktime_internal as a C macro if libc has __mktime_internal.
2373         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2374         conditions.
2375         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2376
2377 2011-05-22  Bruno Haible  <bruno@clisp.org>
2378
2379         timegm: Correct mktime replacement statements.
2380         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2381         defining mktime as a C macro. This completes a 2009-07-28 commit.
2382
2383 2011-05-22  Bruno Haible  <bruno@clisp.org>
2384
2385         timegm: Simplify autoconf macro.
2386         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2387
2388 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         clock-time: change to LGPLv2+.
2391         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2392         BSD-like but we have no mark for that; this is good enough for now.
2393
2394 2011-05-21  Bruno Haible  <bruno@clisp.org>
2395
2396         strerror_r: Fix comments.
2397         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2398
2399 2011-05-21  Bruno Haible  <bruno@clisp.org>
2400
2401         relocatable-prog-wrapper: Fix possible link error.
2402         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2403         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2404         (gl_FUNC_SETENV): ... to here.
2405         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2406         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2407
2408 2011-05-21  Bruno Haible  <bruno@clisp.org>
2409
2410         relocatable-prog-wrapper: Assume strerror() exists.
2411         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2412         m4/strerror.m4.
2413         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2414         * lib/relocwrapper.c: Remove mention of strerror module.
2415         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2416         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2417         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2418         C macro.
2419
2420 2011-05-21  Bruno Haible  <bruno@clisp.org>
2421
2422         select: Simplify replacement idiom.
2423         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2424         Win32 platforms.
2425         * lib/sys_select.in.h (select): Simplify accordingly.
2426         * modules/select (Depends-on): Likewise.
2427
2428 2011-05-21  Bruno Haible  <bruno@clisp.org>
2429
2430         mkdir-p: Simplify autoconf macro.
2431         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2432         gl_FUNC_LCHOWN.
2433
2434 2011-05-21  Eric Blake  <eblake@redhat.com>
2435
2436         strerror_r: avoid clobbering strerror on cygwin
2437         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2438         fall back instead to sys_errlist.
2439         * modules/strerror (configure.ac): Add witness.
2440         * tests/test-strerror_r.c (main): Enhance test.
2441         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2442         * tests/test-perror2.c (main): Free memory before exit.
2443
2444 2011-05-21  Bruno Haible  <bruno@clisp.org>
2445
2446         mkdtemp: Use gnulib naming conventions.
2447         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2448         * modules/mkdtemp (configure.ac): Update.
2449
2450 2011-05-20  Eric Blake  <eblake@redhat.com>
2451
2452         strerror_r: avoid corrupting errno on Solaris
2453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2454         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2455
2456         strerror_r: avoid compiler warning
2457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2458
2459         strerror_r: simplify AIX code
2460         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2461
2462         test-perror: avoid spurious failure on FreeBSD
2463         * modules/perror-tests (Depends-on): Add strerror, now that
2464         strerror_r no longer pulls it in.
2465
2466 2011-05-20  Bruno Haible  <bruno@clisp.org>
2467
2468         strerror_r-posix: Remove unused dependencies.
2469         * modules/strerror_r-posix (Depends-on): Remove strerror.
2470         Reported by Eric Blake.
2471
2472 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2473
2474         intprops: remove assumption about A|B representation
2475         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2476         is a valid integer if both A and B are.  Although this is true for
2477         all known practical hosts, the C standard doesn't guarantee it,
2478         and the code need not assume it.  Also, this change may work around
2479         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2481
2482 2011-05-20  Eric Blake  <eblake@redhat.com>
2483
2484         perror: work around FreeBSD bug
2485         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2486         is broken.  Move AC_LIBOBJ...
2487         * modules/perror (configure.ac): Here.
2488         * doc/posix-functions/perror.texi (perror): Document this.
2489         * tests/test-perror2.c (main): Enhance test.
2490
2491         test-perror: check for strerror interactions
2492         * tests/macros.h (STREQ): Add macro.
2493         * modules/perror-tests (Files): Add second test.
2494         * tests/test-perror2.c (main): New file.
2495         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2496
2497         test-perror: rewrite to use init script
2498         * modules/perror-tests (Files): Add init.sh.
2499         * tests/test-perror.sh: Use temporary directory.
2500
2501 2011-05-20  Jim Meyering  <meyering@redhat.com>
2502
2503         maint: replace misused "a" with "an"
2504         * doc/intprops.texi: "a integer"
2505         * doc/regex.texi: "a explanation"
2506         * lib/alignof.h: "a object"
2507         * lib/argmatch.h: "a explanation"
2508         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2509         * lib/stdint.in.h: "a integer"
2510         * lib/userspec.c: "a owner"
2511         * doc/gnulib.texi: Fix "a idea", and reword.
2512
2513 2011-05-19  Jim Meyering  <meyering@redhat.com>
2514
2515         maint: correct misuse of "a" and "an"
2516         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2517         * lib/argp-help.c: "an docum...": s/an/a/
2518         * lib/argp-parse.c: "An vector": s/An/A/
2519         * lib/execute.c: "an native": s/an/a/
2520         * lib/spawn-pipe.c: Likewise.
2521         * lib/gc.h: "an Gc_rc": s/an/a/
2522         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2523         * lib/fts.c: "an stat.st_dev": s/an/a/
2524
2525 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         intprops-tests: work around HP-UX 11.23 cc bug with constants
2528         * tests/test-intprops.c (VERIFY): New macro.
2529         (main): Use it, instead of verify, to work around the compiler bug; see
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2531
2532         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2533         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2534         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2535         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2536         (_GL_REMAINDER_OVERFLOW): Use it.
2537
2538         intprops-tests: revert unsigned part of previous change
2539         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2540         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2541         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2543
2544 2011-05-19  Bruno Haible  <bruno@clisp.org>
2545
2546         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2547         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2548         strerror_r() returned without filling the buffer.
2549         Reported by Eric Blake.
2550
2551 2011-05-19  Eric Blake  <eblake@redhat.com>
2552
2553         strerror_r: guarantee unchanged errno
2554         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2555         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2556         failure.
2557         * tests/test-strerror_r.c (main): Enhance test.
2558
2559 2011-05-19  Bruno Haible  <bruno@clisp.org>
2560
2561         strerror_r: Reorder #if blocks.
2562         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2563         for consistency with the previous commit.
2564
2565 2011-05-19  Bruno Haible  <bruno@clisp.org>
2566
2567         perror: Avoid clobbering the strerror buffer when possible.
2568         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2569         * lib/strerror.c: Include it.
2570         * modules/strerror (Files): Add lib/strerror-impl.h.
2571         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2572         (my_strerror): New function, defined through lib/strerror-impl.h.
2573         (perror): Use it instead of strerror.
2574         * modules/perror (Files): Add lib/strerror-impl.h.
2575         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2576
2577 2011-05-19  Eric Blake  <eblake@redhat.com>
2578
2579         strerror_r: fix on newer cygwin
2580         * lib/strerror_r.c (strerror_r): Cygwin now has
2581         __xpg_strerror_r, use it.
2582
2583 2011-05-19  Bruno Haible  <bruno@clisp.org>
2584
2585         strerror_r: Avoid clobbering the strerror buffer when possible.
2586         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2587         (sys_nerr, sys_errlist): New declarations.
2588         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2589         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2590         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2591
2592 2011-05-19  Bruno Haible  <bruno@clisp.org>
2593
2594         strerror_r: Fix test failure on mingw.
2595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2596         EXTEND_STRERROR_R.
2597         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2598         macros from errno.in.h instead.
2599
2600 2011-05-19  Eric Blake  <eblake@redhat.com>
2601
2602         strerror: relax test for Solaris
2603         * tests/test-strerror.c (main): Permit Solaris behavior.
2604         * tests/test-strerror_r.c (main): Likewise.
2605
2606         strerror: enforce POSIX ruling on strerror(0)
2607         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2609         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2610         * doc/posix-functions/strerror.texi (strerror): Document it.
2611         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2612         * tests/test-strerror.c (main): Strengthen test.
2613         * tests/test-strerror_r.c (main): Likewise.
2614
2615 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2616
2617         intprop-tests: port to older and more-pedantic compilers
2618         * modules/intprops-tests (Files): Add tests/macros.h.
2619         * tests/test-intprops.c: Include macros.h.
2620         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2621         it's no longer documented to expand to an integer constant expression.
2622         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2623         argument is floating point, as it's no longer documented to expand
2624         to an integer constant expression in that case.
2625         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2626         compiler bugs reported by Bruno Haible.  See
2627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2628         (U0, U1): New constants, to work around the same bugs.  Also,
2629         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2630
2631         intprops: work around C compiler bugs
2632         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2633         bug in Sun C 5.11 2010/08/13 and other compilers; see
2634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2635
2636         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2637         * doc/intprops.texi (Integer Type Determination): Fix
2638         documentation for TYPE_IS_INTEGER: it returns an constant
2639         expression, not an integer constant expression.  Fix doc for
2640         TYPE_SIGNED: it returns an integer constant expression only if its
2641         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2642         hardly worth documented that way....)
2643
2644 2011-05-18  Bruno Haible  <bruno@clisp.org>
2645
2646         strerror_r: Avoid clobbering the strerror buffer when possible.
2647         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2648         Handle gnulib defined errno values here. When strerror() returns NULL
2649         or an empty string, return EINVAL.
2650         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2651         gnulib defined errno values here.
2652         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2653
2654 2011-05-18  Eric Blake  <eblake@redhat.com>
2655
2656         fnmatch: avoid compiler warning
2657         * lib/fnmatch_loop.c (FCT): Use correct type.
2658         Reported by Matthias Bolte.
2659
2660 2011-05-13  Jim Meyering  <meyering@redhat.com>
2661
2662         maint.mk: three new prohibit_<HDR>_without_use rules
2663         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2664         (sc_prohibit_stdio-safer_without_use): Likewise.
2665         (sc_prohibit_xfreopen_without_use): Likewise.
2666
2667 2011-05-17  Jim Meyering  <meyering@redhat.com>
2668
2669         announce-gen: fail if the NEWS delta is empty
2670         If there's nothing noteworthy in NEWS, then either you forgot
2671         or you shouldn't be releasing.
2672         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2673
2674 2011-05-17  Pádraig Brady <P@draigBrady.com>
2675
2676         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2677         reserved symbols starting with double underscore from the check.
2678
2679 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2680
2681         intprops: add doc
2682         * doc/intprops.texi: New file, documenting intprops.
2683         * doc/gnulib.texi (Particular Modules): Include it.
2684
2685         verify: add doc to gnulib manual and fix example
2686         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2687         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2688         (Compile-time Assertions): Fix example so it can't overflow.
2689
2690 2011-05-17  Jim Meyering  <meyering@redhat.com>
2691
2692         warnings.m4: don't usurp save_CPPFLAGS variable name
2693         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2694
2695         doc: fix typo
2696         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2697
2698 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2699             Bruno Haible  <bruno@clisp.org>
2700
2701         doc: Tweak recent change.
2702         * README (Portability guidelines): Tweak new text.
2703         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2704         Interix 6.1.
2705
2706 2011-05-16  Eric Blake  <eblake@redhat.com>
2707
2708         inttypes: avoid autoconf warning
2709         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2710         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2711
2712 2011-05-16  Sam Steingold <sds@gnu.org>
2713         and Eric Blake  <eblake@redhat.com>
2714
2715         vc-list-files: accept multiple directory operands
2716         * build-aux/vc-list-files: Iterate over all remaining operands.
2717
2718 2011-05-16  Bruno Haible  <bruno@clisp.org>
2719
2720         Fix confusion regarding deprecated modules.
2721         * modules/calloc (Status, Notice): Mark module as deprecated, not
2722         obsolete.
2723         * modules/fnmatch-posix (Status, Notice): Likewise.
2724         * modules/getdate (Status, Notice): Likewise.
2725         * modules/getopt (Status, Notice): Likewise.
2726         * modules/malloc (Status, Notice): Likewise.
2727         * modules/pipe (Status, Notice): Likewise.
2728         * modules/realloc (Status, Notice): Likewise.
2729         * modules/rename-dest-slash (Status, Notice): Likewise.
2730         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2731         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2732         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2733         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2734         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2735
2736 2011-05-16  Bruno Haible  <bruno@clisp.org>
2737
2738         doc: List the target platforms.
2739         * doc/gnulib-intro.texi (Target Platforms): New section.
2740         * doc/gnulib.texi (Introduction): Update menu.
2741         * README (Portability guidelines): Refer to the new section. Update
2742         statement about oldest supported environment. Remove rationale why
2743         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2744         unportable C89 function.
2745         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2746         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2747
2748 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2751
2752 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2753
2754         intprops-tests: new module
2755         * modules/intprops-tests, tests/test-intprops.c: New files.
2756
2757         intprops: add safe, portable integer overflow checking
2758         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2759         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2760         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2761         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2762         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2763         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2764         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2765         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2766         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2767         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2768         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2769
2770 2011-05-12  James Youngman  <jay@gnu.org>
2771
2772         Add a test for glibc's Bugzilla bug #12378.
2773         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2774         doesn't allow the literal matching of a lone "[" (which is
2775         required by POSIX).
2776         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2777
2778 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2779
2780         Sync glibc change fixing Bugzilla bug #12378.
2781         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2782         beginning and fall back to matching as normal character if the
2783         string ends before the matching ']' is found.  This is what POSIX
2784         requires.
2785
2786 2011-05-13  Eric Blake  <eblake@redhat.com>
2787
2788         getcwd-lgpl: relax test for FreeBSD
2789         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2790         issue.
2791         * tests/test-getcwd-lgpl.c (main): Relax test.
2792         Reported by Matthias Bolte.
2793
2794 2011-05-11  Eric Blake  <eblake@redhat.com>
2795
2796         test-fflush: silence compiler warning
2797         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2798
2799 2011-05-11  Bruno Haible  <bruno@clisp.org>
2800
2801         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2802         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2803         * modules/canonicalize (Depends-on): Add 'nocrash'.
2804         * modules/canonicalize-lgpl (Depends-on): Likewise.
2805         * doc/posix-functions/realpath.texi: Update platforms list.
2806         Reported by Ryan Schmidt <ryandesign@macports.org>.
2807
2808 2011-05-11  Bruno Haible  <bruno@clisp.org>
2809
2810         group-member: Declare function in <unistd.h>.
2811         * lib/unistd.in.h (group_member): New declaration.
2812         * lib/group-member.h: Remove file.
2813         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2814         * tests/test-unistd-c++.cc: Check signature of group_member.
2815         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2816         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2817         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2818         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2819         HAVE_GROUP_MEMBER.
2820         * modules/group-member (Files): Remove lib/group-member.h.
2821         (Depends-on): Add unistd. Specify conditions.
2822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2823         (Include): Change to <unistd.h>.
2824         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2825         HAVE_GROUP_MEMBER.
2826         * NEWS: Mention the change.
2827         * lib/euidaccess.c: Don't include group-member.h.
2828
2829 2011-05-11  Bruno Haible  <bruno@clisp.org>
2830
2831         group-member: Document module.
2832         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2833         module.
2834
2835 2011-05-11  Bruno Haible  <bruno@clisp.org>
2836
2837         fclose: Fix mistake earlier today.
2838         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2839
2840 2011-05-11  Eric Blake  <eblake@redhat.com>
2841
2842         fclose: preserve fflush errors
2843         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2844         Reported by Jim Meyering.
2845
2846         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2847         * build-aux/bootstrap (check_versions): When no specific version
2848         is required, merely check that the app produces an exit status
2849         that indicates its existence.
2850
2851         maint.mk: drop redundant check
2852         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2853         the same but better.
2854
2855 2011-05-11  Bruno Haible  <bruno@clisp.org>
2856
2857         fclose: Fix possible link error.
2858         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2859         unregister_shadow_fd. Improve comments.
2860         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2861         Eric Blake.
2862
2863 2011-05-11  Jim Meyering  <meyering@redhat.com>
2864
2865         maint.mk: improve "can not" detection and generalize rule name
2866         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2867         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2868         Use the same technique as in sc_prohibit_doubled_word, so that
2869         we recognize "can not" also when the words are separated by a newline.
2870         Suggested by Eric Blake.
2871         (perl_filename_lineno_text_): Define.  Factored out of...
2872         (prohibit_doubled_word_): ...here.  Use the new definition.
2873         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2874         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2875         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2876
2877 2011-05-10  Eric Blake  <eblake@redhat.com>
2878
2879         fclose: avoid double close race when possible
2880         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2881         all but WINDOWS_SOCKETS.
2882
2883 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2884
2885         openat: correct new comment
2886         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2887
2888 2011-05-10  Jim Meyering  <meyering@redhat.com>
2889
2890         openat: add comments
2891         * lib/openat-proc.c (openat_proc_name): Add comments,
2892         mostly from Eric Blake.
2893
2894 2011-05-09  Eric Blake  <eblake@redhat.com>
2895
2896         openat: reduce syscalls in first probe of /proc
2897         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2898         be a directory.  Simplify the probe for .. bugs.
2899         * modules/openat (Depends-on): Drop same-inode.
2900         Reported by Bastien ROUCARIES.
2901
2902 2011-05-09  Jim Meyering  <meyering@redhat.com>
2903
2904         maint.mk: change semantics/name of tight_scope variables
2905         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2906         Rename variables to align with semantics that make them more useful.
2907
2908         maint.mk: tweak new rule's name not to impinge
2909         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2910         (sc_tight_scope): Use new rule name rather than $@-0.
2911
2912         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2913         * top/maint.mk (sc_tight_scope): New rule.
2914         (sc_tight_scope-0): New rule, ifdef'd out.
2915         (_gl_TS_dir): Default.
2916         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2917         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2918
2919 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2920
2921         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2922         Haible <bruno@clisp.org>.
2923
2924 2011-05-08  Bruno Haible  <bruno@clisp.org>
2925
2926         Comments.
2927         * m4/isnanf.m4: Add comment.
2928         * m4/isnanl.m4: Likewise.
2929
2930 2011-05-08  Bruno Haible  <bruno@clisp.org>
2931
2932         glob: Remove obsolete macro.
2933         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2934
2935 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         intprops: Sun C 5.11 supports __typeof__
2938         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2939         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2940         which is new.
2941         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2942
2943         intprops: switch to usual gnulib indenting and naming
2944         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2945         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2946
2947         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2948
2949 2011-05-08  Jim Meyering  <meyering@redhat.com>
2950
2951         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2952         * top/maint.mk (release-prep): Use make's --no-print-directory
2953         option when generating the announcement.  This eliminates the
2954         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2955         generated announcement template.
2956
2957 2011-05-08  Bruno Haible  <bruno@clisp.org>
2958
2959         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2960         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2961         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2962
2963 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2964
2965         ignore-value, verify: Omit include files from lib_SOURCES.
2966         * modules/ignore-value, modules/verify (Makefile.am):
2967         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2968         that leads Automake to duplicate use of am__objects_... variables
2969         in Makefile.in.  See
2970         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2971
2972 2011-05-07  Bruno Haible  <bruno@clisp.org>
2973
2974         fclose: Simplify autoconf macro.
2975         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2976         defined.
2977
2978 2011-05-07  Bruno Haible  <bruno@clisp.org>
2979
2980         canonicalize-lgpl: Fix autoconf macro ordering bug.
2981         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2982         gl_STDLIB_H_DEFAULTS.
2983
2984 2011-05-06  Eric Blake  <eblake@redhat.com>
2985
2986         maintainer-makefile: make sc_po_check easier to tune
2987         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2988         to probe for strings, such as an alternate location for gnulib.
2989
2990         fclose: guarantee behavior on seekable stdin
2991         * modules/fclose (Depends-on): Add fflush.
2992         * doc/posix-functions/fclose.texi (fclose): Document this.
2993         * tests/test-fclose.c (main): Make test for this unconditional.
2994
2995 2011-05-06  Bruno Haible  <bruno@clisp.org>
2996
2997         fflush, fpurge: Relicense under LGPLv2+.
2998         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2999         * modules/fpurge (License): Likewise.
3000         With permission from Eric Blake and Jim Meyering.
3001         Suggested by Eric Blake.
3002
3003 2011-05-06  Karl Berry  <karl@gnu.org>
3004
3005         * MODULES.html.sh (func_all_modules): remove exit.
3006
3007 2011-05-06  Jim Meyering  <meyering@redhat.com>
3008
3009         maint.mk: use info-gnu@ as the default only for a stable release
3010         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3011         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3012         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3014
3015 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3016
3017         assert-h: new module, which supports C1X-style static_assert
3018         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3019         * lib/verify.h: Revamp so that this can be copied into assert.h,
3020         while retaining the ability to use it standalone as before.
3021         Rename private identifiers so as not to encroach on the
3022         standard C namespace, since this is now used by assert.h.
3023         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3024         the old verify_true.
3025         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3026         the old verify_true.  Use _GL_VERIFY_TYPE.
3027         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3028         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3029         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3030         defined when this file is copied into the replacement assert.h.
3031         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3032         and _Static_assert is not built in.
3033         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3034         defined, and use the new macros mentioned above.
3035         * doc/posix-headers/assert.texi: Document this.
3036
3037 2011-05-05  Bruno Haible  <bruno@clisp.org>
3038
3039         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3040         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3041         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3042         gl_REPLACE_FCLOSE here.
3043         * modules/fflush (Depends-on): Remove fclose.
3044         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3045         combination with module 'fclose'.
3046
3047 2011-05-05  Bruno Haible  <bruno@clisp.org>
3048
3049         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3050         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3051         gl_FUNC_FFLUSH.
3052         (gl_FUNC_FFLUSH): Use it.
3053         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3055         gl_REPLACE_FSEEKO here.
3056
3057 2011-05-05  Bruno Haible  <bruno@clisp.org>
3058
3059         tzset: Relicense under LGPL.
3060         * modules/tzset (License): Change to LGPL.
3061         No agreement needed; it's a no-op.
3062
3063         strtoimax, strtoumax: Relicense under LGPL.
3064         * modules/strtoimax (License): Change to LGPL.
3065         * modules/strtoumax (License): Likewise.
3066         With permission from Jim Meyering, Paul Eggert:
3067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3069
3070         getgroups: Relicense under LGPL.
3071         * modules/getgroups (License): Change to LGPL.
3072         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3076
3077         nanosleep: Relicense under LGPL.
3078         * modules/nanosleep (License): Change to LGPL.
3079         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3080         Haible:
3081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3085
3086         futimens: Relicense under LGPL.
3087         * modules/futimens (License): Change to LGPL.
3088         With permission from Eric Blake:
3089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3090
3091         fflush: Relicense under LGPL.
3092         * modules/fflush (License): Change to LGPL.
3093         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3097
3098         tmpfile: Relicense under LGPL.
3099         * modules/tmpfile (License): Change to LGPL.
3100         With permission from Ben Pfaff:
3101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3102
3103         isfinite: Relicense under LGPL.
3104         * modules/isfinite (License): Change to LGPL.
3105         With permission from Ben Pfaff, Bruno Haible:
3106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3108
3109         acosl..tanl: Relicense under LGPL.
3110         * modules/acosl (License): Change to LGPL.
3111         * modules/asinl (License): Likewise.
3112         * modules/atanl (License): Likewise.
3113         * modules/cosl (License): Likewise.
3114         * modules/expl (License): Likewise.
3115         * modules/logl (License): Likewise.
3116         * modules/sinl (License): Likewise.
3117         * modules/sqrtl (License): Likewise.
3118         * modules/tanl (License): Likewise.
3119         Source code originally from glibc and Paolo Bonzini. Agreements:
3120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3122
3123 2011-05-05  Bruno Haible  <bruno@clisp.org>
3124
3125         signal: Define sighandler_t.
3126         * lib/signal.in.h (sighandler_t): New type.
3127         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3128         whether sighandler_t is defined.
3129         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3130         * modules/signal (Depends-on): Add extensions.
3131         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3132         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3133         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3134
3135 2011-05-05  Eric Blake  <eblake@redhat.com>
3136
3137         maint: remove useless REPLACE_*_H macros
3138         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3139         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3140         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3141         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3142         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3143         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3144         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3145         * m4/btowc.m4: Update callers.
3146         * m4/dirfd.m4: Likewise.
3147         * m4/duplocale.m4: Likewise.
3148         * m4/fchdir.m4: Likewise.
3149         * m4/fdopendir.m4: Likewise.
3150         * m4/inet_ntop.m4: Likewise.
3151         * m4/inet_pton.m4: Likewise.
3152         * m4/ioctl.m4: Likewise.
3153         * m4/mbrlen.m4: Likewise.
3154         * m4/mbrtowc.m4: Likewise.
3155         * m4/mbsinit.m4: Likewise.
3156         * m4/mbsnrtowcs.m4: Likewise.
3157         * m4/mbsrtowcs.m4: Likewise.
3158         * m4/poll.m4: Likewise.
3159         * m4/setlocale.m4: Likewise.
3160         * m4/wcrtomb.m4: Likewise.
3161         * m4/wcsnrtombs.m4: Likewise.
3162         * m4/wcsrtombs.m4: Likewise.
3163         * m4/wctob.m4: Likewise.
3164         * m4/wcwidth.m4: Likewise.
3165         * modules/posix_spawn: Likewise.
3166         * modules/posix_spawn_file_actions_addclose: Likewise.
3167         * modules/posix_spawn_file_actions_adddup2: Likewise.
3168         * modules/posix_spawn_file_actions_addopen: Likewise.
3169         * modules/posix_spawn_file_actions_destroy: Likewise.
3170         * modules/posix_spawn_file_actions_init: Likewise.
3171         * modules/posix_spawnattr_destroy: Likewise.
3172         * modules/posix_spawnattr_getflags: Likewise.
3173         * modules/posix_spawnattr_getpgroup: Likewise.
3174         * modules/posix_spawnattr_getschedparam: Likewise.
3175         * modules/posix_spawnattr_getschedpolicy: Likewise.
3176         * modules/posix_spawnattr_getsigdefault: Likewise.
3177         * modules/posix_spawnattr_getsigmask: Likewise.
3178         * modules/posix_spawnattr_init: Likewise.
3179         * modules/posix_spawnattr_setflags: Likewise.
3180         * modules/posix_spawnattr_setpgroup: Likewise.
3181         * modules/posix_spawnattr_setschedparam: Likewise.
3182         * modules/posix_spawnattr_setschedpolicy: Likewise.
3183         * modules/posix_spawnattr_setsigdefault: Likewise.
3184         * modules/posix_spawnattr_setsigmask: Likewise.
3185         * modules/posix_spawnp: Likewise.
3186
3187 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3188
3189         Add option to do-release-commit-and-tag to specify branch.
3190         * build-aux/do-release-commit-and-tag: Add --branch.
3191
3192 2011-05-03  Bruno Haible  <bruno@clisp.org>
3193
3194         Avoid unnecessary compilation units, through conditional dependencies.
3195         * modules/accept (Depends-on): Add conditions to the dependencies.
3196         * modules/acosl (Depends-on): Likewise.
3197         * modules/argz (Depends-on): Likewise.
3198         * modules/asinl (Depends-on): Likewise.
3199         * modules/atanl (Depends-on): Likewise.
3200         * modules/atoll (Depends-on): Likewise.
3201         * modules/bind (Depends-on): Likewise.
3202         * modules/btowc (Depends-on): Likewise.
3203         * modules/canonicalize-lgpl (Depends-on): Likewise.
3204         * modules/ceil (Depends-on): Likewise.
3205         * modules/ceilf (Depends-on): Likewise.
3206         * modules/ceill (Depends-on): Likewise.
3207         * modules/chdir-long (Depends-on): Likewise.
3208         * modules/chown (Depends-on): Likewise.
3209         * modules/close (Depends-on): Likewise.
3210         * modules/connect (Depends-on): Likewise.
3211         * modules/cosl (Depends-on): Likewise.
3212         * modules/dirfd (Depends-on): Likewise.
3213         * modules/dprintf (Depends-on): Likewise.
3214         * modules/dprintf-posix (Depends-on): Likewise.
3215         * modules/error (Depends-on): Likewise.
3216         * modules/euidaccess (Depends-on): Likewise.
3217         * modules/expl (Depends-on): Likewise.
3218         * modules/faccessat (Depends-on): Likewise.
3219         * modules/fchdir (Depends-on): Likewise.
3220         * modules/fclose (Depends-on): Likewise.
3221         * modules/fcntl (Depends-on): Likewise.
3222         * modules/fdopendir (Depends-on): Likewise.
3223         * modules/fflush (Depends-on): Likewise.
3224         * modules/floor (Depends-on): Likewise.
3225         * modules/floorf (Depends-on): Likewise.
3226         * modules/floorl (Depends-on): Likewise.
3227         * modules/fnmatch (Depends-on): Likewise.
3228         * modules/fopen (Depends-on): Likewise.
3229         * modules/fprintf-posix (Depends-on): Likewise.
3230         * modules/frexp (Depends-on): Likewise.
3231         * modules/frexp-nolibm (Depends-on): Likewise.
3232         * modules/frexpl (Depends-on): Likewise.
3233         * modules/frexpl-nolibm (Depends-on): Likewise.
3234         * modules/fseek (Depends-on): Likewise.
3235         * modules/fsusage (Depends-on): Likewise.
3236         * modules/ftell (Depends-on): Likewise.
3237         * modules/ftello (Depends-on): Likewise.
3238         * modules/futimens (Depends-on): Likewise.
3239         * modules/getcwd (Depends-on): Likewise.
3240         * modules/getcwd-lgpl (Depends-on): Likewise.
3241         * modules/getdelim (Depends-on): Likewise.
3242         * modules/getdomainname (Depends-on): Likewise.
3243         * modules/getgroups (Depends-on): Likewise.
3244         * modules/gethostname (Depends-on): Likewise.
3245         * modules/getline (Depends-on): Likewise.
3246         * modules/getlogin_r (Depends-on): Likewise.
3247         * modules/getopt-posix (Depends-on): Likewise.
3248         * modules/getpeername (Depends-on): Likewise.
3249         * modules/getsockname (Depends-on): Likewise.
3250         * modules/getsockopt (Depends-on): Likewise.
3251         * modules/getsubopt (Depends-on): Likewise.
3252         * modules/getusershell (Depends-on): Likewise.
3253         * modules/glob (Depends-on): Likewise.
3254         * modules/grantpt (Depends-on): Likewise.
3255         * modules/iconv_open (Depends-on): Likewise.
3256         * modules/iconv_open-utf (Depends-on): Likewise.
3257         * modules/inet_ntop (Depends-on): Likewise.
3258         * modules/inet_pton (Depends-on): Likewise.
3259         * modules/ioctl (Depends-on): Likewise.
3260         * modules/isapipe (Depends-on): Likewise.
3261         * modules/isfinite (Depends-on): Likewise.
3262         * modules/isinf (Depends-on): Likewise.
3263         * modules/lchown (Depends-on): Likewise.
3264         * modules/ldexpl (Depends-on): Likewise.
3265         * modules/link (Depends-on): Likewise.
3266         * modules/linkat (Depends-on): Likewise.
3267         * modules/listen (Depends-on): Likewise.
3268         * modules/logl (Depends-on): Likewise.
3269         * modules/lstat (Depends-on): Likewise.
3270         * modules/mbrlen (Depends-on): Likewise.
3271         * modules/mbrtowc (Depends-on): Likewise.
3272         * modules/mbsinit (Depends-on): Likewise.
3273         * modules/mbsnrtowcs (Depends-on): Likewise.
3274         * modules/mbsrtowcs (Depends-on): Likewise.
3275         * modules/mbtowc (Depends-on): Likewise.
3276         * modules/memcmp (Depends-on): Likewise.
3277         * modules/mkdir (Depends-on): Likewise.
3278         * modules/mkdtemp (Depends-on): Likewise.
3279         * modules/mkfifo (Depends-on): Likewise.
3280         * modules/mkfifoat (Depends-on): Likewise.
3281         * modules/mknod (Depends-on): Likewise.
3282         * modules/mkostemp (Depends-on): Likewise.
3283         * modules/mkostemps (Depends-on): Likewise.
3284         * modules/mkstemp (Depends-on): Likewise.
3285         * modules/mkstemps (Depends-on): Likewise.
3286         * modules/mktime (Depends-on): Likewise.
3287         * modules/nanosleep (Depends-on): Likewise.
3288         * modules/open (Depends-on): Likewise.
3289         * modules/openat (Depends-on): Likewise.
3290         * modules/perror (Depends-on): Likewise.
3291         * modules/poll (Depends-on): Likewise.
3292         * modules/popen (Depends-on): Likewise.
3293         * modules/posix_spawn (Depends-on): Likewise.
3294         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3295         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3296         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3297         * modules/posix_spawnp (Depends-on): Likewise.
3298         * modules/pread (Depends-on): Likewise.
3299         * modules/printf-posix (Depends-on): Likewise.
3300         * modules/ptsname (Depends-on): Likewise.
3301         * modules/putenv (Depends-on): Likewise.
3302         * modules/pwrite (Depends-on): Likewise.
3303         * modules/readline (Depends-on): Likewise.
3304         * modules/readlink (Depends-on): Likewise.
3305         * modules/readlinkat (Depends-on): Likewise.
3306         * modules/recv (Depends-on): Likewise.
3307         * modules/recvfrom (Depends-on): Likewise.
3308         * modules/regex (Depends-on): Likewise.
3309         * modules/remove (Depends-on): Likewise.
3310         * modules/rename (Depends-on): Likewise.
3311         * modules/renameat (Depends-on): Likewise.
3312         * modules/rmdir (Depends-on): Likewise.
3313         * modules/round (Depends-on): Likewise.
3314         * modules/roundf (Depends-on): Likewise.
3315         * modules/roundl (Depends-on): Likewise.
3316         * modules/rpmatch (Depends-on): Likewise.
3317         * modules/select (Depends-on): Likewise.
3318         * modules/send (Depends-on): Likewise.
3319         * modules/sendto (Depends-on): Likewise.
3320         * modules/setenv (Depends-on): Likewise.
3321         * modules/setlocale (Depends-on): Likewise.
3322         * modules/setsockopt (Depends-on): Likewise.
3323         * modules/shutdown (Depends-on): Likewise.
3324         * modules/sigaction (Depends-on): Likewise.
3325         * modules/signbit (Depends-on): Likewise.
3326         * modules/sigprocmask (Depends-on): Likewise.
3327         * modules/sinl (Depends-on): Likewise.
3328         * modules/sleep (Depends-on): Likewise.
3329         * modules/snprintf (Depends-on): Likewise.
3330         * modules/snprintf-posix (Depends-on): Likewise.
3331         * modules/socket (Depends-on): Likewise.
3332         * modules/sprintf-posix (Depends-on): Likewise.
3333         * modules/sqrtl (Depends-on): Likewise.
3334         * modules/stat (Depends-on): Likewise.
3335         * modules/strchrnul (Depends-on): Likewise.
3336         * modules/strdup-posix (Depends-on): Likewise.
3337         * modules/strerror (Depends-on): Likewise.
3338         * modules/strerror_r-posix (Depends-on): Likewise.
3339         * modules/strndup (Depends-on): Likewise.
3340         * modules/strnlen (Depends-on): Likewise.
3341         * modules/strptime (Depends-on): Likewise.
3342         * modules/strsep (Depends-on): Likewise.
3343         * modules/strsignal (Depends-on): Likewise.
3344         * modules/strstr-simple (Depends-on): Likewise.
3345         * modules/strtod (Depends-on): Likewise.
3346         * modules/strtoimax (Depends-on): Likewise.
3347         * modules/strtok_r (Depends-on): Likewise.
3348         * modules/strtoumax (Depends-on): Likewise.
3349         * modules/symlink (Depends-on): Likewise.
3350         * modules/symlinkat (Depends-on): Likewise.
3351         * modules/tanl (Depends-on): Likewise.
3352         * modules/tcgetsid (Depends-on): Likewise.
3353         * modules/tmpfile (Depends-on): Likewise.
3354         * modules/trunc (Depends-on): Likewise.
3355         * modules/truncf (Depends-on): Likewise.
3356         * modules/truncl (Depends-on): Likewise.
3357         * modules/uname (Depends-on): Likewise.
3358         * modules/unlink (Depends-on): Likewise.
3359         * modules/unlockpt (Depends-on): Likewise.
3360         * modules/unsetenv (Depends-on): Likewise.
3361         * modules/usleep (Depends-on): Likewise.
3362         * modules/utimensat (Depends-on): Likewise.
3363         * modules/vasprintf (Depends-on): Likewise.
3364         * modules/vdprintf (Depends-on): Likewise.
3365         * modules/vdprintf-posix (Depends-on): Likewise.
3366         * modules/vfprintf-posix (Depends-on): Likewise.
3367         * modules/vprintf-posix (Depends-on): Likewise.
3368         * modules/vsnprintf (Depends-on): Likewise.
3369         * modules/vsnprintf-posix (Depends-on): Likewise.
3370         * modules/vsprintf-posix (Depends-on): Likewise.
3371         * modules/wcrtomb (Depends-on): Likewise.
3372         * modules/wcscasecmp (Depends-on): Likewise.
3373         * modules/wcscspn (Depends-on): Likewise.
3374         * modules/wcsdup (Depends-on): Likewise.
3375         * modules/wcsncasecmp (Depends-on): Likewise.
3376         * modules/wcsnrtombs (Depends-on): Likewise.
3377         * modules/wcspbrk (Depends-on): Likewise.
3378         * modules/wcsrtombs (Depends-on): Likewise.
3379         * modules/wcsspn (Depends-on): Likewise.
3380         * modules/wcsstr (Depends-on): Likewise.
3381         * modules/wcstok (Depends-on): Likewise.
3382         * modules/wcswidth (Depends-on): Likewise.
3383         * modules/wctob (Depends-on): Likewise.
3384         * modules/wctomb (Depends-on): Likewise.
3385         * modules/wctype (Depends-on): Likewise.
3386         * modules/wcwidth (Depends-on): Likewise.
3387         * modules/write (Depends-on): Likewise.
3388
3389 2011-05-03  Bruno Haible  <bruno@clisp.org>
3390
3391         Support for conditional dependencies.
3392         * doc/gnulib.texi (Module description): Document the syntax of
3393         conditional dependencies.
3394         * gnulib-tool: New option --conditional-dependencies.
3395         (func_usage): Document it.
3396         (cond_dependencies): New variable.
3397         (func_get_automake_snippet_conditional,
3398         func_get_automake_snippet_unconditional): New functions, extracted from
3399         func_get_automake_snippet.
3400         (func_get_automake_snippet): Use them.
3401         (sed_first_32_chars): New variable.
3402         (func_module_shellfunc_name): New function.
3403         (func_module_shellvar_name): New function.
3404         (func_module_conditional_name): New function.
3405         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3406         func_cond_module_condition): New functions.
3407         (func_modules_transitive_closure): Add support for conditional
3408         dependencies.
3409         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3410         conditional automake snippet in an automake conditional.
3411         (func_emit_autoconf_snippets): Emit shell functions that contain the
3412         code for conditional modules.
3413         (func_import, func_create_testdir): Update specification.
3414
3415 2011-05-03  Eric Blake  <eblake@redhat.com>
3416
3417         test-getaddrinfo: report error information
3418         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3419
3420 2011-05-03  Jim Meyering  <meyering@redhat.com>
3421
3422         bootstrap: avoid build failure when $GZIP is set
3423         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3424         program name.  If defined at all, it is supposed to list gzip options.
3425         Reported by Alan Curry in http://debbugs.gnu.org/8609
3426
3427 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3428
3429         readme-release: new module with release instructions
3430         * modules/readme-release: New module.
3431         * top/README-release: New file, from coreutils, grep, diffutils.
3432         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3433
3434 2011-05-02  Eric Blake  <eblake@redhat.com>
3435
3436         fflush: also replace fclose when fixing fflush
3437         * modules/fflush (Depends-on): Add fclose.
3438         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3439         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3440         memstreams with no backing fd.
3441         * doc/posix-functions/fclose.texi (fclose): Document the use of
3442         fflush module to fix the bug.
3443         * tests/test-fclose.c (main): Relax test when fclose is used in
3444         isolation.
3445
3446         fclose: add some tests
3447         * modules/fclose-tests: New test module.
3448         * tests/test-fclose.c: New file.
3449         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3450
3451         fclose: reduced dependencies
3452         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3453         simpler lseek.
3454         * lib/fclose.c (rpl_fclose): Likewise.
3455         Reported by Simon Josefsson.
3456
3457         exit: drop remaining clients
3458         * modules/argmatch (Depends-on): Replace exit with stdlib.
3459         * modules/copy-file (Depends-on): Likewise.
3460         * modules/execute (Depends-on): Likewise.
3461         * modules/exitfail (Depends-on): Likewise.
3462         * modules/obstack (Depends-on): Likewise.
3463         * modules/pagealign_alloc (Depends-on): Likewise.
3464         * modules/pipe-filter-gi (Depends-on): Likewise.
3465         * modules/pipe-filter-ii (Depends-on): Likewise.
3466         * modules/savewd (Depends-on): Likewise.
3467         * modules/spawn-pipe (Depends-on): Likewise.
3468         * modules/wait-process (Depends-on): Likewise.
3469         * modules/xsetenv (Depends-on): Likewise.
3470         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3471         * modules/git-merge-changelog (Depends-on): Likewise.
3472         * modules/long-options (Depends-on): Likewise.
3473         * modules/pt_chown (Depends-on): Likewise.
3474         * modules/sysexits (Depends-on): Likewise.
3475
3476         freading: relax license from LGPLv3+ to LGPLv2+
3477         * modules/freading (License): Relax LGPL version.
3478
3479 2011-05-02  Bruno Haible  <bruno@clisp.org>
3480
3481         fchdir: Remove unused dependencies.
3482         * modules/fchdir (Depends-on): Remove include_next.
3483
3484 2011-05-02  Bruno Haible  <bruno@clisp.org>
3485
3486         gnulib-tool: Refactor.
3487         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3488         from func_emit_autoconf_snippets.
3489         (func_emit_autoconf_snippets): Use it.
3490
3491 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3492
3493         * NEWS: Document removal of 'exit'.
3494         * modules/exit: Remove file.
3495
3496 2011-05-01  Bruno Haible  <bruno@clisp.org>
3497
3498         Update DEPENDENCIES.
3499         * DEPENDENCIES (gettext): Recommend the newest release.
3500         Reported by Simon Josefsson.
3501
3502 2011-05-01  Bruno Haible  <bruno@clisp.org>
3503
3504         gnulib-tool: Reduce code duplication.
3505         * gnulib-tool (func_emit_autoconf_snippets): New function.
3506         (func_import, func_create_testdir): Use it.
3507
3508 2011-04-30  Eric Blake  <eblake@redhat.com>
3509
3510         fclose: don't fail on non-seekable input stream
3511         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3512         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3513         since fflush is allowed to fail in that case.
3514
3515 2011-04-30  Bruno Haible  <bruno@clisp.org>
3516
3517         dup3: cleanup
3518         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3519
3520 2011-04-30  Bruno Haible  <bruno@clisp.org>
3521
3522         netdb: Make it work in C++ mode.
3523         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3524         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3525         module.
3526         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3527         gl_MODULE_INDICATOR_FOR_TESTS.
3528         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3529         * modules/netdb-c++-tests: New file.
3530         * tests/test-netdb-c++.cc: New file.
3531
3532 2011-04-30  Bruno Haible  <bruno@clisp.org>
3533
3534         New modules 'vfscanf', 'vscanf'.
3535         * modules/vfscanf: New file.
3536         * modules/vscanf: New file.
3537         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3538         here.
3539         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3540         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3541
3542 2011-04-30  Bruno Haible  <bruno@clisp.org>
3543
3544         passfd: Add comments.
3545         * lib/passfd.c: Add comments about platforms.
3546
3547 2011-04-30  Bruno Haible  <bruno@clisp.org>
3548
3549         sys_uio: Make <sys/uio.h> self-contained.
3550         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3551         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3552
3553 2011-04-30  Bruno Haible  <bruno@clisp.org>
3554
3555         sys_socket: Ensure 'struct iovec' definition.
3556         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3557         <sys/socket.h>.
3558         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3559
3560 2011-04-30  Bruno Haible  <bruno@clisp.org>
3561
3562         sys_uio: Protect definition of 'struct iovec'.
3563         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3564         it as a C struct.
3565
3566 2011-04-30  Bruno Haible  <bruno@clisp.org>
3567
3568         manywarnings: fix indentation
3569         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3570
3571 2011-04-30  Pádraig Brady <P@draigBrady.com>
3572
3573         manywarnings: add -Wno-missing-field-initializers if needed.
3574         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3575         option if it's needed to allow initialization with { 0, }
3576
3577 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3578
3579         announce-gen: cosmetic improvement
3580         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3581
3582 2011-04-29  Jim Meyering  <meyering@redhat.com>
3583
3584         vc-list-files: indent with spaces, not TABs
3585         * build-aux/vc-list-files: Convert leading TABs to spaces,
3586         to match the style of most other files in gnulib.
3587
3588         announce-gen: indent with spaces, not TABs
3589         * build-aux/announce-gen: Convert all TABs to spaces, to match
3590         the style of most other files in gnulib.
3591
3592 2011-04-29  Eric Blake  <eblake@redhat.com>
3593
3594         quotearg: avoid uninitialized variable use
3595         * lib/quotearg.c (quoting_options_from_style): Initialize
3596         remaining fields, and ensure that custom styles are only used via
3597         quoting_options rather than quoting_style.
3598
3599 2011-04-29  Jim Meyering  <meyering@redhat.com>
3600
3601         maint.mk: remove unused VC-tag variable
3602         * top/maint.mk (VC-tag): Remove unused variable.
3603
3604 2011-04-29  Bruno Haible  <bruno@clisp.org>
3605
3606         netdb: fix gai_strerror replacements
3607         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3608         * modules/netdb: Substitute it.
3609
3610 2011-04-29  Jim Meyering  <meyering@redhat.com>
3611
3612         test-getcwd.c: avoid new set-but-not-used warning
3613         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3614         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3615         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3616         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3617
3618         test-hash.c: avoid a new shadowing warning
3619         * tests/test-hash.c (main): Don't shadow "dup".
3620
3621 2011-04-28  Eric Blake  <eblake@redhat.com>
3622
3623         getaddrinfo: fix gai_strerror signature
3624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3625         and work around mingw with UNICODE defined.
3626         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3627         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3628         * modules/netdb (Makefile.am): Substitute it.
3629         * lib/netdb.in.h (gai_strerror): Declare replacement.
3630         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3631         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3632         the fix.
3633
3634         getsockopt: avoid compiler warning
3635         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3636         Reported by Matthias Bolte.
3637
3638         tests: drop unused link dependency
3639         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3640         * modules/dirent-safer-tests (Makefile.am): Likewise.
3641         * modules/fdopendir-tests (Makefile.am): Likewise.
3642         * modules/mkfifoat-tests (Makefile.am): Likewise.
3643         * modules/openat-safer-tests (Makefile.am): Likewise.
3644         * modules/openat-tests (Makefile.am): Likewise.
3645         * modules/readlinkat-tests (Makefile.am): Likewise.
3646         * modules/symlinkat-tests (Makefile.am): Likewise.
3647         * modules/linkat-tests (Makefile.am): Likewise.
3648         (Depends-on): Switch to filenamecat-lgpl.
3649         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3650         LIBINTL.
3651         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3652         * tests/test-linkat.c (main): Don't require xalloc.
3653
3654         hash, mgetgroups: drop xalloc dependency
3655         * lib/hash.c (includes): Adjust includes.
3656         * lib/mgetgroups.c (includes): Likewise.
3657         (xgetgroups): Move...
3658         * lib/xgetgroups.c: ...to new file.
3659         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3660         * modules/xgetgroups: New file, split from...
3661         * modules/mgetgroups: ...here.
3662         (Depends-on): Add xalloc-oversized.
3663         * modules/hash (Depends-on): Likewise.
3664         * modules/hash-tests (Depends-on): Drop xalloc.
3665         (test_hash_LDADD): Drop unused library.
3666         * tests/test-hash.c (main): Break xalloc dependency.
3667         (includes): Drop unused include.
3668
3669         xalloc-oversized: new module
3670         * modules/xalloc-oversized: New module.
3671         * modules/xalloc (Depends-on): Add it.
3672         * lib/xalloc.h (xalloc_oversized): Move...
3673         * lib/xalloc-oversized.h: ...into new file.
3674
3675         utimecmp: drop dependency on xmalloc
3676         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3677         due to memory pressure.
3678         * modules/utimecmp (Depends-on): Drop xalloc.
3679
3680 2011-04-27  Eric Blake  <eblake@redhat.com>
3681
3682         getcwd: fix mingw bugs
3683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3684         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3685         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3686
3687 2011-04-27  Bruno Haible  <bruno@clisp.org>
3688
3689         mkstemps: Ensure declaration on MacOS X 10.5.
3690         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3691         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3692         MacOS X.
3693
3694 2011-04-27  Bruno Haible  <bruno@clisp.org>
3695
3696         mkstemp: More documentation.
3697         * doc/posix-functions/mkstemp.texi: Document header file problem on
3698         MacOS X.
3699
3700 2011-04-27  Bruno Haible  <bruno@clisp.org>
3701
3702         mkstemp: Tweak configure message when cross-compiling.
3703         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3704         result as a guess.
3705
3706 2011-04-27  Bruno Haible  <bruno@clisp.org>
3707
3708         clean-temp: Clarify what it does.
3709         * lib/clean-temp.h: Add more comments.
3710         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3711         module.
3712         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3713         * doc/glibc-functions/mkstemps.texi: Likewise.
3714         * doc/glibc-functions/mkostemps.texi: Likewise.
3715
3716 2011-04-27  Eric Blake  <eblake@redhat.com>
3717
3718         fchdir: avoid extra chdir and fix test
3719         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3720         getcwd-lgpl.
3721         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3722         have to be canonical.
3723         (canonicalize_file_name): Drop unused macro.
3724         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3725
3726         filenamecat-lgpl: fix licence
3727         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3728         when it was first created.
3729
3730         linkat, renameat: add missing dependency
3731         * modules/linkat (Depends-on): Require getcwd-lgpl.
3732         * modules/renameat (Depends-on): Likewise.
3733
3734         tests: reduce dependencies
3735         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3736         * tests/test-renameat.c (main): Likewise.
3737         * modules/linkat-tests (Depends-on): Relax dependency.
3738         * modules/renameat-tests (Depends-on): Likewise.
3739         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3740         dependency explicit.
3741
3742         save-cwd: reduce default dependency
3743         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3744         * lib/save-cwd.c: Update comments.
3745         * NEWS: Document the semantic change.
3746
3747         getcwd: enhance tests
3748         * tests/test-getcwd-lgpl.c: New file, taken from...
3749         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3750         repeat long path stress tests from m4 probe.
3751         * modules/getcwd-lgpl-tests: New module.
3752         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3753         * m4/getcwd-abort-bug.m4: Update comment.
3754         * m4/getcwd-path-max.m4: Likewise.
3755
3756         getcwd-lgpl: new module
3757         * modules/getcwd-lgpl: New module.
3758         * lib/getcwd-lgpl.c: New file.
3759         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3760         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3761         * modules/getcwd (configure.ac): Set C witness.
3762         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3763
3764         getcwd: tweak comments
3765         * m4/getcwd-abort-bug.m4: Fix comments.
3766         * m4/getcwd-path-max.m4: Likewise.
3767         * m4/getcwd.m4: Likewise.
3768
3769 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3770         and Eric Blake  <eblake@redhat.com>
3771
3772         mkstemp: replace if system version uses wrong permissions
3773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3774         read/write mode bits set in file created by mkstemp.
3775         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3776
3777 2011-04-27  Eric Blake  <eblake@redhat.com>
3778
3779         passfd: avoid compiler warning
3780         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3781         Reported by Laine Stump.
3782
3783 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3784
3785         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3786         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3787
3788 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3789         and Eric Blake  <eblake@redhat.com>
3790
3791         mkstemp: mention clean-temp module
3792         * lib/mkstemp.c: Add comment.
3793         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3794
3795 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         inttypes: also provide default values for 32-bit tests
3798         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3799         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3800
3801 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3802
3803         strtoumax: remove dependency on strtoimax
3804         This is like the strtoull change of yesterday.
3805         * modules/strtoumax (Files): Add lib/strtoimax.c.
3806         (Depends-on): Remove strtoimax and add verify.
3807
3808         inttypes-incomplete: new module
3809         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3810         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3811         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3812         of gl_INTTYPES_H.
3813         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3814         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3815         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3816         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3817         * modules/strtoumax, modules/xstrtol (Depends-on):
3818         Depend on inttypes-incomplete, not inttypes.
3819         * modules/inttypes-incomplete: New module, containing the contents
3820         of the old modules/inttypes module, except that the Files: section
3821         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3822         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3823         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3824         (Depends-on): Depend only on inttypes-incomplete.
3825         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3826
3827         inttypes: omit now-redundant strtoimax and strtoumax work
3828         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3829         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3830
3831         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3832         This supports apps that need pointers to strtoimax and strtoumax,
3833         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3834         nonexistent functions.  See
3835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3836         et seq.
3837         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3838         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3839         a macro.
3840         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3841
3842 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3843
3844         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3845
3846 2011-04-25  Bruno Haible  <bruno@clisp.org>
3847
3848         strtol, strtoul: Mark modules as obsolete.
3849         * modules/strtol (Status, Notice): New sections.
3850         * modules/strtoul (Status, Notice): New sections.
3851
3852 2011-04-25  Bruno Haible  <bruno@clisp.org>
3853
3854         strtod: Remove check for strtod, unless supporting old platforms.
3855         * modules/strtod-obsolete: New file.
3856         * m4/strtod-obsolete.m4: New file.
3857         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3858         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3859         * modules/strtod (Depends-on): Add strtod-obsolete.
3860         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3861
3862 2011-04-25  Bruno Haible  <bruno@clisp.org>
3863
3864         strcase: Make module obsolete.
3865         * modules/strcase (Status, Notice): New sections.
3866
3867 2011-04-25  Bruno Haible  <bruno@clisp.org>
3868
3869         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3870         * modules/dup2-obsolete: New file.
3871         * m4/dup2-obsolete.m4: New file.
3872         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3873         gl_FUNC_DUP2_OBSOLETE is not also defined.
3874         * modules/dup2 (Depends-on): Add dup2-obsolete.
3875         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3876
3877 2011-04-25  Bruno Haible  <bruno@clisp.org>
3878
3879         strnlen: Avoid memchr related link error on old obsolete platforms.
3880         * modules/memchr-obsolete: New file.
3881         * m4/memchr-obsolete.m4: New file.
3882         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3883         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3884         * modules/memchr (Depends-on): Add memchr-obsolete.
3885         * modules/strnlen (Depends-on): Likewise.
3886         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3887
3888 2011-04-25  Jim Meyering  <meyering@redhat.com>
3889
3890         maint.mk: makefile_at_at_check extend and clean up
3891         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3892         in addition to */Makefile.am.
3893         Exempt legitimate uses of @VAR@ notation, e.g.,
3894         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3895         Remove obsolete coreutils-specific comment.
3896         Prompted by discussion here:
3897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3898
3899 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3900
3901         strtoul: remove dependency on strtol
3902         This is so that 'configure' need not check for strtol merely because
3903         the application needs strtoul.
3904         * modules/strtoul (Files): Add lib/strtol.c.
3905         (Depends-on): Remove strtol.
3906
3907         strtoull: remove dependency on strtoul
3908         This is like the strtoll change.
3909         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3910         (Depends-on): Remove strtoul.
3911
3912         strtoll: remove dependency on strtol
3913         This is so that 'configure' need not check for strtol merely because
3914         the application needs strtoll.
3915         * modules/strtoll (Files): Add lib/strtol.c.
3916         (Depends-on): Remove strtol.
3917
3918 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3919
3920         inttypes: Move some configure check to module 'imaxdiv'.
3921         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3922         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3923         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3924
3925 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3926
3927         inttypes: Move some configure check to module 'imaxabs'.
3928         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3929         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3930         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3931
3932 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3933
3934         inttypes: Remove configure tests that are not needed since 2009-12-31.
3935         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3936         gl_cv_header_working_inttypes_h.
3937
3938 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3939
3940         * modules/strnlen (Depends-on): Remove memchr.
3941         The strnlen implementation doesn't need the memchr module's fixes; see
3942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3943
3944         strtol: remove dependency on wchar
3945         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3946         * modules/strtol (Depends-on): Remove wchar.
3947
3948 2011-04-21  Eric Blake  <eblake@redhat.com>
3949
3950         passfd: fix test regression on Linux
3951         * modules/passfd-tests (configure.ac): Correct socketpair check.
3952
3953         passfd: speed up configure and drop unused code
3954         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3955         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3956         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3957         Instead of probing at configure for unix_scm_rights_bsd44_way,
3958         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3959         check to a struct member probe.
3960         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3961         (sendfd, recvfd): Update preprocessor checks.
3962         * modules/passfd (Files): Reflect rename, and drop unused file.
3963         (Depends-on): Drop unused dependency.
3964
3965         passfd: allow compilation on mingw
3966         * modules/sys_socket (Depends-on): Add sys_uio.
3967         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3968         iovec and a minimal struct msghdr.
3969         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3970         * tests/test-sys_socket.c (main): Enhance test.
3971         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3972         guaranteed to provide what we need.
3973         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3974         * modules/passfd-tests (Depends-on): Add sys_wait.
3975         * tests/test-passfd.c (main): Skip test on mingw, for now.
3976         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3977         partial 'struct msghdr' implementation.
3978
3979         sys_uio: new module
3980         * modules/sys_uio: New module.
3981         * modules/sys_uio-tests: Likewise.
3982         * lib/sys_uio.in.h: New file.
3983         * m4/sys_uio_h.m4: Likewise.
3984         * tests/test-sys_uio.c: Likewise.
3985         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3986         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3987
3988 2011-04-20  Jim Meyering  <meyering@redhat.com>
3989
3990         useless-if-before-free: avoid false-positive
3991         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3992         disjunct so that it too requires a terminating ";".  Without that,
3993         this script would identify as useless one statement from gcc that
3994         was not:
3995           if (aligned_ptr)
3996             free (((void **) aligned_ptr) [-1]);
3997
3998 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3999
4000         doc: update users.txt.
4001         * users.txt: Add barcode.
4002
4003 2011-04-19  Bruno Haible  <bruno@clisp.org>
4004
4005         ioctl: Remove link dependency on native Windows.
4006         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4007         (gl_close_fn, gl_ioctl_fn): New types.
4008         (struct fd_hook): Renamed from struct close_hook. Change type of
4009         private_close_fn field. Add private_ioctl_fn field.
4010         (close_hook_fn): Add parameter for primary close method.
4011         (execute_close_hooks, execute_all_close_hooks): Likewise.
4012         (ioctl_hook_fn): New type.
4013         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4014         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4015         argument.
4016         (unregister_fd_hook): Renamed from unregister_close_hook.
4017         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4018         Don't include <unistd.h>.
4019         (close): Remove undef.
4020         (anchor): Update.
4021         (execute_close_hooks): Add argument for primary close method.
4022         (execute_all_close_hooks): Likewise.
4023         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4024         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4025         argument. Allow each argument to be NULL.
4026         (unregister_fd_hook): Renamed from unregister_close_hook.
4027         * lib/close.c (rpl_close): Pass 'close' function pointer to
4028         execute_all_close_hooks.
4029         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4030         (primary_ioctl): New function.
4031         (ioctl): Don't call ioctlsocket here. Instead, call
4032         execute_all_ioctl_hooks.
4033         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4034         close method.
4035         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4036         (fd_sockets_hook): Renamed from close_sockets_hook.
4037         (gl_sockets_startup, gl_sockets_cleanup): Update.
4038         * modules/fd-hook: Renamed from modules/close-hook. Update.
4039         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4040         * modules/sockets (Depends-on): Likewise.
4041         * modules/ioctl (Depends-on): Add fd-hook.
4042         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4043         GNULIB_SOCKET.
4044
4045 2011-04-19  Bruno Haible  <bruno@clisp.org>
4046
4047         Move the support of O_NONBLOCK in open() to the 'open' module.
4048         * modules/nonblocking (Depends-on): Remove 'open'.
4049         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4050         gl_cv_have_open_O_NONBLOCK.
4051         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4052         O_NONBLOCK support.
4053         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4054
4055 2011-04-17  Bruno Haible  <bruno@clisp.org>
4056
4057         pipe2: Simplify code.
4058         * lib/pipe2.c (pipe2): Reduce code duplication.
4059
4060 2011-04-17  Bruno Haible  <bruno@clisp.org>
4061
4062         nonblocking: Add comment.
4063         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4064
4065 2011-04-17  Bruno Haible  <bruno@clisp.org>
4066
4067         nonblocking: Add tests for sockets.
4068         * tests/test-nonblocking-socket.sh: New file.
4069         * tests/test-nonblocking-socket-main.c: New file.
4070         * tests/test-nonblocking-socket-child.c: New file.
4071         * tests/test-nonblocking-socket.h: New file.
4072         * tests/socket-server.h: New file.
4073         * tests/socket-client.h: New file.
4074         * modules/nonblocking-socket-tests: New file.
4075         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4076
4077 2011-04-17  Bruno Haible  <bruno@clisp.org>
4078
4079         nonblocking: Add tests for pipes.
4080         * tests/test-nonblocking-pipe.sh: New file.
4081         * tests/test-nonblocking-pipe-main.c: New file.
4082         * tests/test-nonblocking-pipe-child.c: New file.
4083         * tests/test-nonblocking-pipe.h: New file.
4084         * tests/test-nonblocking-writer.h: New file.
4085         * tests/test-nonblocking-reader.h: New file.
4086         * tests/test-nonblocking-misc.h: New file.
4087         * modules/nonblocking-pipe-tests: New file.
4088         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4089
4090 2011-04-16  Bruno Haible  <bruno@clisp.org>
4091
4092         gettext: Clarify the needed programmer actions.
4093         * modules/gettext (Notice): New field.
4094         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4095
4096 2011-04-16  Bruno Haible  <bruno@clisp.org>
4097
4098         strchrnul: Tweak last commit.
4099         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4100         bug.
4101         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4102         as in _GL_FUNCDECL_SYS.
4103         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4104         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4105
4106 2011-04-15  Eric Blake  <eblake@redhat.com>
4107
4108         strchrnul: work around cygwin bug
4109         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4110         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4112         * modules/string (Makefile.am): Substitute it.
4113         * lib/string.in.h (strchrnul): Use it.
4114
4115 2011-04-15  Bruno Haible  <bruno@clisp.org>
4116
4117         Don't require lib/stdio-write.c when only module 'stdio' is used.
4118         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4119         invocation.
4120         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4121
4122 2011-04-14  Bruno Haible  <bruno@clisp.org>
4123
4124         Support non-blocking pipe I/O in read() on native Windows.
4125         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4126         (read): New declaration.
4127         * lib/read.c: New file.
4128         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4129         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4130         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4131         vscanf): New declarations.
4132         * lib/stdio-read.c: New file.
4133         * m4/read.m4: New file.
4134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4135         REPLACE_READ.
4136         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4137         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4138         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4139         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4140         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4141         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4142         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4143         * modules/read: New file.
4144         * modules/nonblocking (Files): Add lib/stdio-read.c.
4145         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4146         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4147         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4148         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4149         * modules/pread (Depends-on): Add read.
4150         * modules/safe-read (Depends-on): Likewise.
4151         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4152         gets, scanf, vfscanf, vscanf): Verify signatures.
4153         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4154         problem with non-blocking pipes.
4155         * doc/posix-functions/fgetc.texi: Likewise.
4156         * doc/posix-functions/fgets.texi: Likewise.
4157         * doc/posix-functions/fread.texi: Likewise.
4158         * doc/posix-functions/fscanf.texi: Likewise.
4159         * doc/posix-functions/getc.texi: Likewise.
4160         * doc/posix-functions/getchar.texi: Likewise.
4161         * doc/posix-functions/gets.texi: Likewise.
4162         * doc/posix-functions/scanf.texi: Likewise.
4163         * doc/posix-functions/vfscanf.texi: Likewise.
4164         * doc/posix-functions/vscanf.texi: Likewise.
4165
4166 2011-04-14  Bruno Haible  <bruno@clisp.org>
4167
4168         Support non-blocking pipe I/O in write() on native Windows.
4169         * lib/write.c (rpl_write): Split a write request that failed merely
4170         because the byte count was larger than the pipe buffer's size.
4171         * doc/posix-functions/write.texi: Mention the problem with large byte
4172         counts.
4173
4174 2011-04-14  Bruno Haible  <bruno@clisp.org>
4175
4176         wchar: Ensure that wchar_t gets defined on uClibc.
4177         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4178         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4179
4180 2011-04-13  Bruno Haible  <bruno@clisp.org>
4181
4182         safe-write, full-read: Avoid unnecessary compilation units.
4183         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4184         (Depends-on): Remove safe-read. Add ssize_t.
4185         * modules/full-read (Files): Add lib/full-write.c.
4186         (Depends-on): Add full-write.
4187
4188 2011-04-13  Bruno Haible  <bruno@clisp.org>
4189
4190         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4191         * modules/pwrite (Depends-on): Add 'write'.
4192
4193 2011-04-13  Bruno Haible  <bruno@clisp.org>
4194
4195         Support non-blocking pipe I/O in write() on native Windows.
4196         * lib/unistd.in.h (write): Enable replacement also if
4197         GNULIB_UNISTD_H_NONBLOCKING is 1.
4198         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4199         (rpl_write): When failing to write on a non-blocking pipe, change
4200         errno from ENOSPC to EAGAIN.
4201         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4202         putchar, puts, vfprintf, vprintf): Enable replacement also if
4203         GNULIB_STDIO_H_NONBLOCKING is 1.
4204         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4205         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4206         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4207         CALL_WITH_SIGPIPE_EMULATION.
4208         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4209         * m4/nonblocking.m4: New file.
4210         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4211         for non-blocking I/O support.
4212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4213         GNULIB_UNISTD_H_NONBLOCKING.
4214         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4215         required for non-blocking I/O support.
4216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4217         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4218         lib/stdio-write.c, m4/asm-underscore.m4.
4219         (Depends-on): Add stdio, unistd.
4220         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4221         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4222         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4223         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4224         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4225         problem with non-blocking pipes.
4226         * doc/posix-functions/fputc.texi: Likewise.
4227         * doc/posix-functions/fputs.texi: Likewise.
4228         * doc/posix-functions/fwrite.texi: Likewise.
4229         * doc/posix-functions/printf.texi: Likewise.
4230         * doc/posix-functions/putc.texi: Likewise.
4231         * doc/posix-functions/putchar.texi: Likewise.
4232         * doc/posix-functions/puts.texi: Likewise.
4233         * doc/posix-functions/vfprintf.texi: Likewise.
4234         * doc/posix-functions/vprintf.texi: Likewise.
4235         * doc/posix-functions/write.texi: Likewise.
4236
4237 2011-04-10  Jim Meyering  <meyering@redhat.com>
4238
4239         maint.mk: prohibit doubled words
4240         Detect them also when they're separated by a newline.
4241         There are 3 ways to customize it:
4242           - disable the test on a per file basis, as usual with rules using
4243             $(VC_LIST_EXCEPT)
4244           - replace the default doubled-word-selecting regexp (affects all files)
4245           - ignore a particular file-vs-doubled-word match
4246         I nearly used that last one to ignore the "is is" match in
4247         coreutils' NEWS file, since the text was "ls -is is ..."
4248         To do that, I would have added this line to cfg.mk:
4249           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4250         but it would have ignored any "is is" match in NEWS.
4251         Low probability, but still...
4252         Instead, I changed the text, slightly:
4253           -  ls -is is now consistent with ls -lis in ignoring values returned
4254           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4255         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4256         (prohibit_doubled_word_): Define.
4257         (sc_prohibit_doubled_word): New rule.
4258         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4259
4260 2011-04-10  Jim Meyering  <meyering@redhat.com>
4261
4262         maint: fix doubled-word typo in comment
4263         * m4/gethostname.m4: s/is is/it is/
4264         * m4/getdomainname.m4: Likewise.
4265
4266 2011-04-10  Jim Meyering  <meyering@redhat.com>
4267
4268         maint: remove doubled word: s/it it/it/
4269         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4270
4271 2011-04-10  Jim Meyering  <meyering@redhat.com>
4272
4273         maint.mk: remove useless semicolon and backslash
4274         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4275         semicolon and backslash.
4276
4277 2011-04-10  Bruno Haible  <bruno@clisp.org>
4278
4279         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4280         * modules/stdint-tests (Depends-on): Add wchar.
4281
4282 2011-04-10  Jim Meyering  <meyering@redhat.com>
4283
4284         maint: remove doubled words in comments, e.g., s/a a/a/
4285         * lib/strptime.c (day_of_the_week): s/the the/the/
4286         * tests/test-chown.h (test_chown): s/a a/a/
4287
4288         test-chown.h: correct a cast
4289         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4290         when the destination is a stat.st_gid.
4291
4292 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4293
4294         getaddrinfo: Fix test for sa_len member.
4295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4296         include <sys/types.h> before <sys/socket.h>.
4297
4298 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4299
4300         maint: change "can not" to "cannot"
4301         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4302         boundaries.
4303
4304 2011-04-09  Jim Meyering  <meyering@redhat.com>
4305
4306         maint: change "a a" to "a"
4307         * tests/test-lchown.h (test_lchown): s/a a/a/
4308
4309         maint.mk: prohibit \<the the\>
4310         * top/maint.mk (sc_prohibit_the_the): New rule.
4311
4312         maint: fix "the the" in comment
4313         * lib/count-one-bits.h: s/the the/the/
4314
4315         maint: change "can not" to "cannot"
4316         But do not change the occurrences in maintain.texi or in
4317         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4318         * doc/gnulib-tool.texi: s/can not/cannot/
4319         * doc/posix-functions/accept.texi (accept): Likewise.
4320         * doc/posix-functions/socket.texi (socket): Likewise.
4321         * lib/mbrtowc.c: Likewise.
4322
4323         maint.mk: prohibit use of "can not"
4324         * top/maint.mk (sc_prohibit_can_not): New rule.
4325         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4326
4327 2011-04-09  Bruno Haible  <bruno@clisp.org>
4328
4329         careadlinkat: Guard against misuse of careadlinkatcwd.
4330         * lib/careadlinkat.c: Include <stdlib.h>.
4331         (careadlinkatcwd): Check that the fd argument is as expected.
4332
4333 2011-04-09  Bruno Haible  <bruno@clisp.org>
4334
4335         careadlinkat: Use common coding style.
4336         * lib/careadlinkat.c: Move gnulib includes after system includes.
4337
4338 2011-04-09  Bruno Haible  <bruno@clisp.org>
4339
4340         careadlinkat: Clarify specification.
4341         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4342         (careadlinkatcwd): Add comment.
4343         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4344
4345 2011-04-09  Bruno Haible  <bruno@clisp.org>
4346
4347         areadlinkat: Avoid link error on many platforms.
4348         * modules/areadlinkat (Depends-on): Add areadlink.
4349
4350 2011-04-09  Bruno Haible  <bruno@clisp.org>
4351
4352         allocator, careadlinkat: Fix double-inclusion guard.
4353         * lib/allocator.h: Fix double-inclusion guard.
4354         * lib/careadlinkat.h: Likewise.
4355
4356 2011-04-09  Bruno Haible  <bruno@clisp.org>
4357
4358         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4359         * lib/relocwrapper.c: Update dependencies hierarchy.
4360         * build-aux/install-reloc: Update list of files to be compiled.
4361         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4362         lib/allocator.[hc].
4363
4364 2011-04-08  Eric Blake  <eblake@redhat.com>
4365
4366         strftime: silence gnulib-tool warning
4367         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4368
4369 2011-04-08  Bruno Haible  <bruno@clisp.org>
4370
4371         verify: Fix syntax error with GCC 4.6 in C++ mode.
4372         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4373         (HAVE_STATIC_ASSERT): New macro.
4374         (verify_true, verify): Use 'static_assert' if it is supported and
4375         '_Static_assert' is not supported.
4376
4377 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4378
4379         allocator: New module.
4380         * modules/allocator, lib/allocator.c: New files.
4381         * lib/allocator.h (stdlib_allocator): New decl.
4382         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4383         Remove.  Do not include <stdlib.h>.
4384         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4385         * modules/careadlinkat (Files): Remove lib/allocator.h.
4386         (Depends-on): Add allocator.
4387
4388         stdlib: let modules use system malloc, realloc
4389         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4390         if !_GL_USE_STDLIB_ALLOC.
4391         (malloc, realloc): Limit this change to a smaller scope.
4392
4393         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4394         (malloc, realloc): Don't #undef; no longer needed.
4395         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4396         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4397         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4398         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4399         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4400         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4401         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4402         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4403
4404         careadlinkat: rename members to avoid problem
4405         * lib/allocator.h (struct allocator): Rename members from
4406         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4407         and realloc are #define'd.  Reported by Eric Blake in
4408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4409         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4410
4411 2011-04-08  Eric Blake  <eblake@redhat.com>
4412
4413         nonblocking: reduce dependency
4414         * tests/test-nonblocking.c: Only test sockets when in use.
4415         * modules/nonblocking-tests (Depends-on): Drop socket.
4416         (Makefile.am): Link even if sockets are not present.
4417         * modules/pipe2-tests (Makefile.am): Likewise.
4418         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4419
4420         pipe2: fix O_NONBLOCK support on mingw
4421         * modules/pipe2 (Depends-on): Add nonblocking.
4422         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4423         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4424         * tests/test-nonblocking.c (main): Likewise.
4425         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4426
4427         fcntl-h: fix O_ACCMODE on cygwin
4428         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4429         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4430
4431         pipe-filter: drop O_NONBLOCK workarounds
4432         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4433         * modules/pipe-filter-ii (Depends-on): Likewise.
4434         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4435
4436         nonblocking: provide O_NONBLOCK for mingw
4437         * modules/nonblocking (Depends-on): Add open.
4438         (configure.ac): Set new witness macro.
4439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4440         * modules/fcntl-h (Makefile.am): Substitute it.
4441         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4442         nonblocking module is in use.
4443         * lib/nonblocking.c: Adjust portability test.
4444         * lib/open.c (open): Don't let native open see gnulib flag.
4445         * tests/test-fcntl-h.c (main): Enhance test.
4446         * tests/test-open.h (test_open): Likewise.
4447         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4448
4449         careadlinkat: fix compilation error on mingw
4450         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4451         within struct allocator.
4452
4453 2011-04-06  Eric Blake  <eblake@redhat.com>
4454
4455         binary-io: relicense under LGPLv2+
4456         * modules/binary-io (License): Relax to LGPLv2+.
4457         Requested for libvirt, and required by pipe2.
4458
4459 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4460
4461         verify: use _Static_assert if available
4462         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4463         (verify_true, verify): Use it if available.  This generates better
4464         diagnostics with GCC 4.6.0 and later.
4465
4466 2011-04-05  Bruno Haible  <bruno@clisp.org>
4467
4468         Remove leftover generated .h files after config.status changed.
4469
4470         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4471         GL_GENERATE_ALLOCA_H.
4472         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4473         GL_GENERATE_ALLOCA_H evaluates to false.
4474
4475         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4476         GL_GENERATE_ARGZ_H.
4477         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4478         evaluates to false.
4479
4480         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4481         GL_GENERATE_BYTESWAP_H.
4482         * modules/byteswap (Makefile.am): Remove byteswap.h if
4483         GL_GENERATE_BYTESWAP_H evaluates to false.
4484
4485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4486         GL_GENERATE_ERRNO_H.
4487         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4488         evaluates to false.
4489
4490         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4491         GL_GENERATE_FLOAT_H.
4492         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4493         evaluates to false.
4494
4495         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4496         GL_GENERATE_FNMATCH_H.
4497         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4498         GL_GENERATE_FNMATCH_H evaluates to false.
4499
4500         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4501         GL_GENERATE_GLOB_H.
4502         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4503         evaluates to false.
4504
4505         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4506         automake conditional GL_GENERATE_ICONV_H.
4507         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4508         evaluates to false.
4509
4510         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4511         GL_GENERATE_NETINET_IN_H.
4512         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4513         GL_GENERATE_NETINET_IN_H evaluates to false.
4514
4515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4516         conditional GL_GENERATE_PTHREAD_H.
4517         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4518         * modules/pthread (Makefile.am): Remove pthread.h if
4519         GL_GENERATE_PTHREAD_H evaluates to false.
4520
4521         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4522         GL_GENERATE_SCHED_H.
4523         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4524         evaluates to false.
4525
4526         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4527         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4528         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4529         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4530
4531         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4532         GL_GENERATE_STDARG_H.
4533         * modules/stdarg (Makefile.am): Remove stdarg.h if
4534         GL_GENERATE_STDARG_H evaluates to false.
4535
4536         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4537         GL_GENERATE_STDBOOL_H.
4538         * modules/stdbool (Makefile.am): Remove stdbool.h if
4539         GL_GENERATE_STDBOOL_H evaluates to false.
4540
4541         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4542         conditional GL_GENERATE_STDDEF_H.
4543         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4544         * modules/stddef (Makefile.am): Remove stddef.h if
4545         GL_GENERATE_STDDEF_H evaluates to false.
4546
4547         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4548         GL_GENERATE_STDINT_H.
4549         * modules/stdint (Makefile.am): Remove stdint.h if
4550         GL_GENERATE_STDINT_H evaluates to false.
4551
4552         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4553         GL_GENERATE_SYSEXITS_H.
4554         * modules/sysexits (Makefile.am): Remove sysexits.h if
4555         GL_GENERATE_SYSEXITS_H evaluates to false.
4556
4557         Reported by Karl Berry and Ralf Wildenhues.
4558
4559 2011-04-05  Bruno Haible  <bruno@clisp.org>
4560
4561         Ensure to rebuild generated .h files when config.status has changed.
4562         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4563         config.status.
4564         * modules/ctype (Makefile.am): Likewise.
4565         * modules/dirent (Makefile.am): Likewise.
4566         * modules/errno (Makefile.am): Likewise.
4567         * modules/fcntl-h (Makefile.am): Likewise.
4568         * modules/float (Makefile.am): Likewise.
4569         * modules/getopt-posix (Makefile.am): Likewise.
4570         * modules/glob (Makefile.am): Likewise.
4571         * modules/iconv-h (Makefile.am): Likewise.
4572         * modules/inttypes (Makefile.am): Likewise.
4573         * modules/langinfo (Makefile.am): Likewise.
4574         * modules/locale (Makefile.am): Likewise.
4575         * modules/math (Makefile.am): Likewise.
4576         * modules/netdb (Makefile.am): Likewise.
4577         * modules/netinet_in (Makefile.am): Likewise.
4578         * modules/poll-h (Makefile.am): Likewise.
4579         * modules/pthread (Makefile.am): Likewise.
4580         * modules/pty (Makefile.am): Likewise.
4581         * modules/sched (Makefile.am): Likewise.
4582         * modules/search (Makefile.am): Likewise.
4583         * modules/selinux-h (Makefile.am): Likewise.
4584         * modules/signal (Makefile.am): Likewise.
4585         * modules/spawn (Makefile.am): Likewise.
4586         * modules/stdarg (Makefile.am): Likewise.
4587         * modules/stdbool (Makefile.am): Likewise.
4588         * modules/stddef (Makefile.am): Likewise.
4589         * modules/stdint (Makefile.am): Likewise.
4590         * modules/stdio (Makefile.am): Likewise.
4591         * modules/stdlib (Makefile.am): Likewise.
4592         * modules/string (Makefile.am): Likewise.
4593         * modules/strings (Makefile.am): Likewise.
4594         * modules/sys_file (Makefile.am): Likewise.
4595         * modules/sys_ioctl (Makefile.am): Likewise.
4596         * modules/sys_select (Makefile.am): Likewise.
4597         * modules/sys_socket (Makefile.am): Likewise.
4598         * modules/sys_stat (Makefile.am): Likewise.
4599         * modules/sys_time (Makefile.am): Likewise.
4600         * modules/sys_times (Makefile.am): Likewise.
4601         * modules/sys_utsname (Makefile.am): Likewise.
4602         * modules/sys_wait (Makefile.am): Likewise.
4603         * modules/sysexits (Makefile.am): Likewise.
4604         * modules/termios (Makefile.am): Likewise.
4605         * modules/time (Makefile.am): Likewise.
4606         * modules/unistd (Makefile.am): Likewise.
4607         * modules/wchar (Makefile.am): Likewise.
4608         * modules/wctype-h (Makefile.am): Likewise.
4609         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4610
4611 2011-04-05  Bruno Haible  <bruno@clisp.org>
4612
4613         pipe2: Relicense under LGPLv2+.
4614         * modules/pipe2 (License): Change to LGPLv2+.
4615         Requested by Eric Blake, for libvirt.
4616
4617 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4618
4619         bootstrap: compute gnulib_extra_files after updating build_aux
4620         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4621         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4622
4623 2011-04-05  Eric Blake  <eblake@redhat.com>
4624
4625         bootstrap: preserve git whitelist item sorting
4626         * build-aux/bootstrap (sort_patterns): New function.
4627         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4628
4629 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4630
4631         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4632         sc_space_tab check.
4633
4634 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4635
4636         areadlink, areadlinkat: rewrite in terms of careadlinkat
4637         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4638         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4639         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4640         (malloc, realloc): Remove #undefs.
4641         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4642         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4643         readlink, ssize_t, stdint, unistd.
4644         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4645         areadlink, stdint.
4646
4647         careadlinkat: new module
4648         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4649         * modules/careadlinkat: New files, written by me with
4650         a review and feedback from Ben Pfaff in
4651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4652
4653 2011-04-01  Bruno Haible  <bruno@clisp.org>
4654
4655         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4656         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4657         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4658         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4659         Reported by Bruce Korb <bruce.korb@gmail.com>.
4660
4661 2011-04-01  Bruno Haible  <bruno@clisp.org>
4662
4663         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4664         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4665         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4666         * modules/wcpcpy (Depends-on): Add extensions.
4667         * modules/wcpncpy (Depends-on): Likewise.
4668         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4669         systems.
4670         * doc/posix-functions/wcpncpy.texi: Likewise.
4671         * doc/posix-functions/wcwidth.texi: Likewise.
4672
4673 2011-03-31  Eric Blake  <eblake@redhat.com>
4674
4675         nonblocking: fix mingw test failures
4676         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4677         non-blocking flag on regular file.
4678         (get_nonblocking_flag): Set errno on invalid fd.
4679         * tests/test-nonblocking.c (main): Avoid test failure on
4680         directories if fchdir is not active.
4681         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4682
4683 2011-03-31  Bruno Haible  <bruno@clisp.org>
4684
4685         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4686         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4687         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4688         Reported by Simon Josefsson <simon@josefsson.org>.
4689
4690 2011-03-31  Bruno Haible  <bruno@clisp.org>
4691         and Eric Blake  <eblake@redhat.com>
4692
4693         nonblocking: new module
4694         * modules/nonblocking: New module.
4695         * modules/nonblocking-tests: Likewise.
4696         * lib/nonblocking.h: New file.
4697         * lib/nonblocking.c: Likewise.
4698         * tests/test-nonblocking.c: New test.
4699         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4700
4701 2011-03-30  Bruno Haible  <bruno@clisp.org>
4702
4703         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4704         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4705         instead of 'printf' format for GCC >= 4.4.
4706         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4707         (fprintf, printf, vfprintf, vprintf): Declare with
4708         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4709         the system's vfprintf() function.
4710         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4711
4712 2011-03-30  Eric Blake  <eblake@redhat.com>
4713
4714         passfd: fix scoping bug
4715         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4716         before sendmsg/recvmsg.
4717
4718         passfd: standardize coding conventions
4719         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4720         can be learned at compile time.
4721         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4722         ifdefs.
4723         (sendfd, recvfd): Follow gnulib code conventions.
4724
4725         passfd: fix incorrect sendmsg arguments
4726         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4727         incorrect msg_controllen value.
4728         * modules/passfd-tests (Depends-on): Check for alarm.
4729         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4730         Reported by Bastien ROUCARIES.
4731
4732 2011-03-30  Bruno Haible  <bruno@clisp.org>
4733
4734         c-strcasestr: Relicense under LGPLv2+.
4735         * modules/c-strcasestr (License): Change to LGPLv2+.
4736         Requested by Eric Blake, for libvirt.
4737
4738 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4739
4740         * users.txt: Add libidn2.  Fix libtasn1 link.
4741
4742 2011-03-30  Jim Meyering  <meyering@redhat.com>
4743
4744         tests: readlink* ("",... fails with EINVAL on newer kernels
4745         readlink and readlinkat have typically failed with ENOENT for
4746         the invalid, empty file name,  "".  However, with the advent
4747         of linux-2.6.39, they fail with EINVAL.
4748         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4749         when operating on the empty file name.
4750         * tests/test-readlink.h (test_readlink): Likewise.
4751
4752 2011-03-29  Bruno Haible  <bruno@clisp.org>
4753
4754         Relicense some modules under LGPLv2+, for libidn2.
4755         * modules/array-mergesort (License): Change to LGPLv2+.
4756         * modules/c-strcaseeq (License): Likewise.
4757         * modules/striconveh (License): Likewise.
4758         * modules/striconveha (License): Likewise.
4759         * modules/uniconv/base (License): Likewise.
4760         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4761         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4762         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4763         * modules/unictype/base (License): Likewise.
4764         * modules/unictype/bidiclass-of (License): Likewise.
4765         * modules/unictype/category-M (License): Likewise.
4766         * modules/unictype/category-none (License): Likewise.
4767         * modules/unictype/category-of (License): Likewise.
4768         * modules/unictype/category-test (License): Likewise.
4769         * modules/unictype/category-test-withtable (License): Likewise.
4770         * modules/unictype/combining-class (License): Likewise.
4771         * modules/unictype/joiningtype-of (License): Likewise.
4772         * modules/unictype/scripts (License): Likewise.
4773         * modules/uninorm/base (License): Likewise.
4774         * modules/uninorm/canonical-decomposition (License): Likewise.
4775         * modules/uninorm/composition (License): Likewise.
4776         * modules/uninorm/decompose-internal (License): Likewise.
4777         * modules/uninorm/decomposition-table (License): Likewise.
4778         * modules/uninorm/nfc (License): Likewise.
4779         * modules/uninorm/nfd (License): Likewise.
4780         * modules/uninorm/u32-normalize (License): Likewise.
4781         * modules/unistr/base (License): Likewise.
4782         * modules/unistr/u32-cpy (License): Likewise.
4783         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4784         * modules/unistr/u32-to-u8 (License): Likewise.
4785         * modules/unistr/u32-uctomb (License): Likewise.
4786         * modules/unistr/u8-check (License): Likewise.
4787         * modules/unistr/u8-mblen (License): Likewise.
4788         * modules/unistr/u8-mbtouc (License): Likewise.
4789         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4790         * modules/unistr/u8-mbtoucr (License): Likewise.
4791         * modules/unistr/u8-prev (License): Likewise.
4792         * modules/unistr/u8-strlen (License): Likewise.
4793         * modules/unistr/u8-to-u32 (License): Likewise.
4794         * modules/unistr/u8-uctomb (License): Likewise.
4795         * modules/unitypes (License): Likewise.
4796         Requested by Simon Josefsson.
4797
4798 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4799
4800         lib-symbol-visibility: Add a notice.
4801         * modules/lib-symbol-visibility (Notice): New field.
4802
4803 2011-03-29  Bruno Haible  <bruno@clisp.org>
4804
4805         getaddrinfo: Doc fix.
4806         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4807         section "fixed in Gnulib".
4808
4809 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4810
4811         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4812         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4813
4814 2011-03-26  Bruno Haible  <bruno@clisp.org>
4815
4816         unictype/property-byname: Reduce the number of load-time relocations.
4817         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4818         (UC_PROPERTY_INDEX_*): New enumeration values.
4819         (uc_property_byname): Convert an index from the lookup table to an
4820         uc_property_t.
4821         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4822         values.
4823
4824 2011-03-26  Bruno Haible  <bruno@clisp.org>
4825
4826         unictype/property-byname: Allow omitted word separators and aliases.
4827         * lib/unictype/pr_byname.gperf: Add property names without word
4828         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4829         for 'space'.
4830
4831 2011-03-26  Bruno Haible  <bruno@clisp.org>
4832
4833         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4834         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4835         also hyphens to space.
4836         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4837         without spaces.
4838         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4839
4840 2011-03-26  Bruno Haible  <bruno@clisp.org>
4841
4842         unictype/joiningtype-byname: Recognize long names as well.
4843         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4844         a long name.
4845         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4846         unictype/joiningtype_byname.h.
4847         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4848         * lib/unictype/joiningtype_byname.gperf: New file.
4849         * modules/unictype/joiningtype-byname (Files): Add
4850         lib/unictype/joiningtype_byname.gperf.
4851         (Depends-on): Add gperf.
4852         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4853         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4854         long names.
4855
4856         Tests for module 'unictype/joiningtype-longname'.
4857         * modules/unictype/joiningtype-longname-tests: New file.
4858         * tests/unictype/test-joiningtype_longname.c: New file.
4859
4860         New module 'unictype/joiningtype-longname'.
4861         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4862         * lib/unictype/joiningtype_longname.c: New file.
4863         * modules/unictype/joiningtype-longname: New file.
4864         * modules/unictype/joiningtype-all (Depends-on): Add
4865         unictype/joiningtype-longname.
4866
4867 2011-03-26  Bruno Haible  <bruno@clisp.org>
4868
4869         unictype/bidiclass-byname: Recognize long names as well.
4870         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4871         name.
4872         * lib/unictype/bidi_byname.c: Include <string.h>,
4873         unictype/bidi_byname.h.
4874         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4875         * lib/unictype/bidi_byname.gperf: New file.
4876         * modules/unictype/bidiclass-byname (Files): Add
4877         lib/unictype/bidi_byname.gperf.
4878         (Depends-on): Add gperf.
4879         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4880         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4881         long names.
4882
4883         Tests for module 'unictype/bidiclass-longname'.
4884         * modules/unictype/bidiclass-longname-tests: New file.
4885         * tests/unictype/test-bidi_longname.c: New file.
4886
4887         New module 'unictype/bidiclass-longname'.
4888         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4889         * lib/unictype/bidi_longname.c: New file.
4890         * modules/unictype/bidiclass-longname: New file.
4891         * modules/unictype/bidiclass-all (Depends-on): Add
4892         unictype/bidiclass-longname.
4893
4894 2011-03-26  Bruno Haible  <bruno@clisp.org>
4895
4896         unictype/bidi*: Rename modules.
4897         * modules/unictype/bidiclass-all: Renamed from
4898         modules/unictype/bidicategory-all.
4899         * modules/unictype/bidiclass-name: Renamed from
4900         modules/unictype/bidiclass-name.
4901         (Description): Update.
4902         * modules/unictype/bidiclass-name-tests: Renamed from
4903         modules/unictype/bidicategory-name-tests.
4904         * modules/unictype/bidiclass-byname: Renamed from
4905         modules/unictype/bidicategory-byname.
4906         (Description): Update.
4907         * modules/unictype/bidiclass-byname-tests: Renamed from
4908         modules/unictype/bidicategory-byname-tests.
4909         * modules/unictype/bidiclass-of: Renamed from
4910         modules/unictype/bidicategory-of.
4911         (Description): Update.
4912         * modules/unictype/bidiclass-of-tests: Renamed from
4913         modules/unictype/bidicategory-of-tests.
4914         * modules/unictype/bidiclass-test: Renamed from
4915         modules/unictype/bidicategory-test.
4916         (Description): Update.
4917         * modules/unictype/bidiclass-test-tests: Renamed from
4918         modules/unictype/bidicategory-test-tests.
4919         * modules/unictype/bidicategory-all: New file, a simple redirection.
4920         * modules/unictype/bidicategory-name: Likewise.
4921         * modules/unictype/bidicategory-byname: Likewise.
4922         * modules/unictype/bidicategory-of: Likewise.
4923         * modules/unictype/bidicategory-test: Likewise.
4924         * modules/unictype/property-bidi-* (Dependencies): Update.
4925         * lib/unictype/bidi_*.c: Update comment.
4926
4927 2011-03-26  Bruno Haible  <bruno@clisp.org>
4928
4929         unictype/bidi*: Rename functions, part 2.
4930         * modules/unictype/bidicategory-name (configure.ac): Update required
4931         libunistring version.
4932         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4933
4934 2011-03-25  Bruno Haible  <bruno@clisp.org>
4935
4936         New module 'unictype/combining-class-all'.
4937         * modules/unictype/combining-class-all: New file.
4938
4939         Tests for module 'unictype/combining-class-byname'.
4940         * modules/unictype/combining-class-byname-tests: New file.
4941         * tests/unictype/test-combiningclass_byname.c: New file.
4942
4943         New module 'unictype/combining-class-byname'.
4944         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4945         * lib/unictype/combiningclass_byname.c: New file.
4946         * lib/unictype/combiningclass_byname.gperf: New file.
4947         * modules/unictype/combining-class-byname: New file.
4948
4949         Tests for module 'unictype/combining-class-longname'.
4950         * modules/unictype/combining-class-longname-tests: New file.
4951         * tests/unictype/test-combiningclass_longname.c: New file.
4952
4953         New module 'unictype/combining-class-longname'.
4954         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4955         * lib/unictype/combiningclass_longname.c: New file.
4956         * modules/unictype/combining-class-longname: New file.
4957
4958         Tests for module 'unictype/combining-class-name'.
4959         * modules/unictype/combining-class-name-tests: New file.
4960         * tests/unictype/test-combiningclass_name.c: New file.
4961
4962         New module 'unictype/combining-class-name'.
4963         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4964         * lib/unictype/combiningclass_name.c: New file.
4965         * modules/unictype/combining-class-name: New file.
4966
4967 2011-03-25  Bruno Haible  <bruno@clisp.org>
4968
4969         unictype/combining-class: Rename source files.
4970         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4971         of unictype/combining.h.
4972         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4973         Update.
4974         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4975         * modules/unictype/combining-class (Description): Fix.
4976         (Files, Makefile.am): Update.
4977         * tests/unictype/test-combiningclass.c: Renamed from
4978         tests/unictype/test-combining.c.
4979         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4980
4981 2011-03-25  Bruno Haible  <bruno@clisp.org>
4982
4983         unictype: Update list of canonical combining classes.
4984         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4985
4986 2011-03-25  Bruno Haible  <bruno@clisp.org>
4987
4988         unictype/category-byname: Recognize long names as well.
4989         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4990         a long name.
4991         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4992         unictype/categ_byname.h.
4993         (UC_CATEGORY_INDEX_*): New enumeration values.
4994         (uc_general_category_byname): Use uc_general_category_lookup and
4995         convert from index to value.
4996         * lib/unictype/categ_byname.gperf: New file.
4997         * modules/unictype/category-byname (Files): Add
4998         lib/unictype/categ_byname.gperf.
4999         (Depends-on): Add gperf.
5000         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5001         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5002         long names.
5003
5004         Tests for module 'unictype/category-longname'.
5005         * modules/unictype/category-longname-tests: New file.
5006         * tests/unictype/test-categ_longname.c: New file.
5007
5008         New module 'unictype/category-longname'.
5009         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5010         * lib/unictype/categ_longname.c: New file.
5011         * modules/unictype/category-longname: New file.
5012         * modules/unictype/category-all (Depends-on): Add it.
5013
5014 2011-03-25  Bruno Haible  <bruno@clisp.org>
5015
5016         Tests for module 'unictype/category-LC'.
5017         * modules/unictype/category-LC-tests: New file.
5018         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5019
5020         New module 'unictype/category-LC'.
5021         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5022         (UC_CATEGORY_LC): New declaration.
5023         (UC_CASED_LETTER): New macro.
5024         * lib/gen-uni-tables.c (is_category_LC): New function.
5025         (output_categories): Also handle category LC.
5026         (UC_CATEGORY_MASK_LC): New enumeration value.
5027         (general_category_byname): Also handle category LC.
5028         * lib/unictype/categ_LC.c: New file.
5029         * lib/unictype/categ_LC.h: New file, automatically generated.
5030         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5031         category LC.
5032         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5033         * modules/unictype/category-LC: New file.
5034         * modules/unictype/category-byname (Depends-on): Add
5035         unictype/category-LC.
5036         * modules/unictype/category-all (Depends-on): Likewise.
5037
5038 2011-03-25  Eric Blake  <eblake@redhat.com>
5039
5040         xmalloc: revert yesterday's regression
5041         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5042         realloc's underlying behavior (allowing allocation of zero-size
5043         objects, especially if malloc-gnu is also in use).
5044
5045 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5046
5047         maint.mk: add missing version to VC-tag
5048         * top/maint.mk: git tag was missing actual tag name; add it.
5049
5050         valgrind: do leak checking, and exit with code 1 on error (not 0)
5051         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5052         to VALGRIND.
5053
5054 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5055
5056         posix-modules: say what it does.
5057         * posix-modules: Add a line to the --help output saying what it does.
5058
5059 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         xmalloc: Do not leak if underlying realloc is C99 compatible.
5062         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5063         This avoids a leak on C99-based systems.  See
5064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5065
5066 2011-03-24  Eric Blake  <eblake@redhat.com>
5067
5068         realloc: document portability problem
5069         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5070         passing 0 size to realloc.
5071
5072 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5073
5074         doc: update users.txt
5075         * users.txt: Add cvsps, tmpwatch
5076
5077 2011-03-23  Matt Rice  <ratmice@gmail.com>
5078
5079         doc: update users.txt
5080         * users.txt: Add gdb.
5081
5082 2011-03-23  Jim Meyering  <meyering@redhat.com>
5083
5084         doc: update users.txt
5085         Looking through matches up to the following URL (there are still
5086         several more pages), I found several projects that use gnulib:
5087         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5088         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5089         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5090
5091 2011-03-22  Bruno Haible  <bruno@clisp.org>
5092
5093         unictype/bidi*: Rename functions.
5094         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5095         uc_bidi_class, uc_is_bidi_class): New declarations.
5096         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5097         uc_bidi_category_byname.
5098         (uc_bidi_category_byname): New function.
5099         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5100         u_bidi_category_name.
5101         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5102         (uc_bidi_category_name): New function.
5103         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5104         uc_bidi_category.
5105         (uc_bidi_category): New function.
5106         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5107         uc_is_bidi_category. Invoke uc_bidi_class.
5108         (uc_is_bidi_category): New function.
5109         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5110         instead of uc_bidi_category_byname.
5111         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5112         instead of uc_bidi_category_name.
5113         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5114         uc_bidi_category.
5115         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5116         instead of uc_is_bidi_category.
5117
5118 2011-03-21  Bruno Haible  <bruno@clisp.org>
5119
5120         New module 'unictype/joininggroup-all'.
5121         * modules/unictype/joininggroup-all: New file.
5122
5123         Tests for module 'unictype/joininggroup-of'.
5124         * modules/unictype/joininggroup-of-tests: New file.
5125         * tests/unictype/test-joininggroup_of.c: New file.
5126         * tests/unictype/test-joininggroup_of.h: New file, automatically
5127         generated by gen-uni-tables.
5128
5129         New module 'unictype/joininggroup-of'.
5130         * modules/unictype/joininggroup-of: New file.
5131         * lib/unictype/joininggroup_of.c: New file.
5132         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5133         gen-uni-tables.
5134
5135         Tests for module 'unictype/joininggroup-byname'.
5136         * modules/unictype/joininggroup-byname-tests: New file.
5137         * tests/unictype/test-joininggroup_byname.c: New file.
5138
5139         New module 'unictype/joininggroup-byname'.
5140         * modules/unictype/joininggroup-byname: New file.
5141         * lib/unictype/joininggroup_byname.c: New file.
5142         * lib/unictype/joininggroup_byname.gperf: New file.
5143
5144         Tests for module 'unictype/joininggroup-name'.
5145         * modules/unictype/joininggroup-name-tests: New file.
5146         * tests/unictype/test-joininggroup_name.c: New file.
5147
5148         New module 'unictype/joininggroup-name'.
5149         * modules/unictype/joininggroup-name: New file.
5150         * lib/unictype/joininggroup_name.c: New file.
5151         * lib/unictype/joininggroup_name.h: New file.
5152
5153         New module 'unictype/joiningtype-all'.
5154         * modules/unictype/joiningtype-all: New file.
5155
5156         Tests for module 'unictype/joiningtype-of'.
5157         * modules/unictype/joiningtype-of-tests: New file.
5158         * tests/unictype/test-joiningtype_of.c: New file.
5159         * tests/unictype/test-joiningtype_of.h: New file, automatically
5160         generated by gen-uni-tables.
5161
5162         New module 'unictype/joiningtype-of'.
5163         * modules/unictype/joiningtype-of: New file.
5164         * lib/unictype/joiningtype_of.c: New file.
5165         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5166         gen-uni-tables.
5167
5168         Tests for module 'unictype/joiningtype-byname'.
5169         * modules/unictype/joiningtype-byname-tests: New file.
5170         * tests/unictype/test-joiningtype_byname.c: New file.
5171
5172         New module 'unictype/joiningtype-byname'.
5173         * modules/unictype/joiningtype-byname: New file.
5174         * lib/unictype/joiningtype_byname.c: New file.
5175
5176         Tests for module 'unictype/joiningtype-name'.
5177         * modules/unictype/joiningtype-name-tests: New file.
5178         * tests/unictype/test-joiningtype_name.c: New file.
5179
5180         New module 'unictype/joiningtype-name'.
5181         * modules/unictype/joiningtype-name: New file.
5182         * lib/unictype/joiningtype_name.c: New file.
5183
5184         unictype: Add support for Arabic shaping properties.
5185         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5186         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5187         declarations.
5188         (UC_JOINING_GROUP_*): New enumeration values.
5189         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5190         declarations.
5191         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5192         (unicode_joining_type): New variable.
5193         (UC_JOINING_GROUP_*): New enumeration values.
5194         (unicode_joining_group): New variable.
5195         (fill_arabicshaping, joining_type_as_c_identifier,
5196         output_joining_type_test, output_joining_type,
5197         joining_group_as_c_identifier, output_joining_group_test,
5198         output_joining_group): New functions.
5199         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5200         fill_arabicshaping and output_joining_type_test, output_joining_type,
5201         output_joining_group_test, output_joining_group.
5202         Reported by Simon Josefsson.
5203
5204 2011-03-21  Jim Meyering  <meyering@redhat.com>
5205
5206         strftime: fix a bug in yesterday's change
5207         * lib/strftime.c (add): Accommodate width's initial value of -1.
5208         Otherwise, nstrftime would copy uninitialized data into
5209         the result buffer.
5210
5211 2011-03-21  Jim Meyering  <meyering@redhat.com>
5212
5213         tests: add strftime-tests module
5214         * tests/test-strftime.c: New file.
5215         * modules/strftime-tests: New module.
5216
5217 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5218
5219         strftime: don't assume a byte count fits in 'int'
5220         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5221         found this problem by static analysis, using gcc -Wstrict-overflow
5222         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5223         on an integer overflow having undefined behavior, but it turns out
5224         that the argument is a size, which might not fit in 'int' anyway,
5225
5226 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5227
5228         stdio: don't require ignore_value around fwrite
5229
5230         This patch works around libc bug 11959
5231         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5232         Without this patch, applications must often write
5233         ignore_value (fwrite (...)) even though the ignore_value is
5234         not helpful here.  It's common to write many objects, using
5235         fwrite/printf/etc., and then use ferror to detect output error.
5236
5237         I considered making this patch optional, but decided against it,
5238         because libc is obviously being inconsistent here: there is no
5239         reason libc should insist that user code must inspect fwrite
5240         return's value without also insisting that it inspect printf's,
5241         putchar's, etc.  If user code wants to have a strict style where
5242         all these functions' values are checked (so that ferror need not
5243         be checked), we could add support for that style in a new gnulib
5244         module, but in the meantime it's better to be consistent and to
5245         support common usage.
5246
5247         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5248         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5249         that we are compiling in checking mode, and if not C++, and
5250         if not already wrapping fwrite for some other reason.
5251         (fwrite): #define to rpl_fwrite if the latter is defined.
5252
5253 2011-03-20  Bruno Haible  <bruno@clisp.org>
5254
5255         verror: Fix compilation error introduced on 2011-02-13.
5256         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5257         instead of __attribute__.
5258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5259
5260 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5261             Bruno Haible  <bruno@clisp.org>
5262
5263         socklen: do not depend on sys_socket
5264         While trying to modify Emacs to use gnulib's socklen module,
5265         I discovered a circular dependency: socklen depends on sys_socket
5266         and vice versa.  Emacs can use socklen, but it does not need
5267         sys_socket because it has its own substitute for sys/socket.h.
5268         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5269         gl_TYPE_SOCKLEN_T.
5270         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5271         gl_PREREQ_SYS_H_SOCKET.
5272         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5273         gl_PREREQ_SYS_H_SOCKET.
5274         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5275         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5276         * modules/socklen (Depends-on): Do not depend on sys_socket.
5277         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5278
5279 2011-03-20  Jim Meyering  <meyering@redhat.com>
5280
5281         maint.mk: sort file names *after* new transformation
5282         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5283         prefix would have led to an unwarranted failure in GNU parted.
5284         Sort after that transformation.
5285
5286 2011-03-19  Jim Meyering  <meyering@redhat.com>
5287
5288         maint.mk: fix po-file syntax-check rule
5289         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5290         Patch by Bruno Haible.
5291
5292 2011-03-19  Bruno Haible  <bruno@clisp.org>
5293
5294         socklen: Update comment.
5295         * m4/socklen.m4: Update comment about platforms.
5296
5297 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5298             Bruno Haible  <bruno@clisp.org>
5299
5300         inet_ntop, inet_pton: Simplify.
5301         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5302         documented to provide socklen_t and we already depend on sys_socket.
5303         * modules/inet_pton (Depends-on): Likewise.
5304         * lib/arpa_inet.in.h: Adjust comment.
5305
5306 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5307             Bruno Haible  <bruno@clisp.org>
5308
5309         netdb: Simplify.
5310         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5311         documented to provide socklen_t and we already depend on sys_socket.
5312         * lib/netdb.in.h: Adjust comment.
5313
5314 2011-03-19  Bruno Haible  <bruno@clisp.org>
5315
5316         sys_socket, netdb: Document problem with socklen_t.
5317         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5318         platforms.
5319         * doc/posix-headers/netdb.texi: Likewise.
5320
5321 2011-03-18  Eric Blake  <eblake@redhat.com>
5322
5323         maint.mk: let po check work in VPATH build
5324         * top/maint.mk (po_file): Allow cfg.mk override.
5325         (sc_po_check): Allow VPATH use.
5326         Reported by Jiri Denemark.
5327
5328 2011-03-16  Jim Meyering  <meyering@redhat.com>
5329
5330         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5331         Before, you would have had to create one .x-sc_ file per rule in order
5332         to exempt offending files.  Now, you may instead use a Make variable --
5333         usually defined in cfg.mk -- whose name identifies the affected rule.
5334         * top/maint.mk (_sc_excl): Define.
5335         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5336         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5337
5338 2011-03-13  Bruno Haible  <bruno@clisp.org>
5339
5340         ignore-value tests: Avoid warnings.
5341         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5342         empty for gcc < 3.4.
5343
5344 2011-03-13  Bruno Haible  <bruno@clisp.org>
5345
5346         passfd: Fix link error on Solaris.
5347         * modules/passfd (Description): Correct.
5348         (Depends-on): Add socketlib.
5349         (Link): New section.
5350         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5351
5352 2011-03-13  Bruno Haible  <bruno@clisp.org>
5353
5354         passfd: Fix link error on AIX 5.2.
5355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5356
5357 2011-03-13  Bruno Haible  <bruno@clisp.org>
5358
5359         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5360         * lib/sys_socket.in.h: Include <stddef.h>.
5361         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5362         CMSG_FIRSTHDR. Remove unused variable.
5363
5364 2011-03-13  Bruno Haible  <bruno@clisp.org>
5365
5366         passfd: Fix compilation error on OpenBSD.
5367         * lib/passfd.c: Include <sys/uio.h>.
5368
5369 2011-03-13  Bruno Haible  <bruno@clisp.org>
5370
5371         passfd test: Fix warnings.
5372         * tests/test-passfd.c: Include <sys/wait.h>.
5373         (main): Fix typo.
5374
5375 2011-03-13  Bruno Haible  <bruno@clisp.org>
5376
5377         passfd module, part 4, tweaks.
5378         * tests/test-passfd.c: Reorder includes.
5379         (main): Fix perror and printf calls.
5380
5381 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5382
5383         passfd module, part 4.
5384         * modules/passfd-tests: New file.
5385         * tests/test-passfd.c: New file.
5386
5387 2011-03-13  Jim Meyering  <meyering@redhat.com>
5388
5389         Makefile: rely on GNU make; derive syntax-check rule names
5390         Rather than requiring that each sc_ rule be listed as a dependent
5391         of "check", use features of GNU make to derive the list.
5392         * Makefile (syntax-check-rules): Define.
5393         (check): Depend on the new variable, not the hard-coded list.
5394
5395 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5396             Bruno Haible  <bruno@clisp.org>
5397
5398         passfd module, part 3.
5399         * lib/passfd.h (recvfd): Add a flags argument.
5400         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5401         (recvfd): Add a flags argument.
5402         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5403         exists.
5404         * modules/passfd (Depends-on): Add cloexec.
5405         Suggested by Eric Blake.
5406
5407 2011-03-13  Bruno Haible  <bruno@clisp.org>
5408
5409         passfd module, part 2, tweaks.
5410         * modules/passfd (Files): Reorder.
5411         (Depends-on): Remove errno.
5412         (Include): Remove <sys/socket.h>, <sys/un.h>.
5413         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5414         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5415         specification header. Include <sys/socket.h> always. Don't include
5416         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5417         (sendfd): Clarify that it sets errno when it fails.
5418         (recvfd): Fix specification.
5419
5420 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5421
5422         passfd module, part 2.
5423         * modules/passfd: New file.
5424         * lib/passfd.h: New file.
5425         * lib/passfd.c: New file.
5426
5427 2011-03-12  Bruno Haible  <bruno@clisp.org>
5428
5429         wcswidth, mbswidth: Avoid integer overflow.
5430         * lib/wcswidth.c: Include <limits.h>.
5431         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5432         * lib/mbswidth.c: Include <limits.h>.
5433         (mbsnwidth): Avoid 'int' overflow.
5434         Reported by Jim Meyering.
5435
5436 2011-03-12  Bruno Haible  <bruno@clisp.org>
5437
5438         futimens, utimensat: Avoid endless recursion on Solaris 10.
5439         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5440         Solaris.
5441         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5442         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5443
5444 2011-03-11  Jim Meyering  <meyering@redhat.com>
5445
5446         maint.mk: relax a regexp to accommodate other formatting styles
5447         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5448         between "ngettext" and the following "(".
5449
5450 2011-03-11  Pádraig Brady <P@draigBrady.com>
5451
5452         maint.mk: suppress a false positive warning
5453         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5454         diagnostics are marked with ngettext.
5455
5456 2011-03-10  Eric Blake  <eblake@redhat.com>
5457
5458         wchar: add explicit dependencies, for Tru64
5459         * modules/mbmemcasecoll (Depends-on): Add wchar.
5460         * modules/mbtowc (Depends-on): Likewise.
5461         * modules/vasnprintf (Depends-on): Likewise.
5462         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5463         * modules/wctomb (Depends-on): Likewise.
5464         Reported by Peter O'Gorman.
5465
5466 2011-03-08  Bruno Haible  <bruno@clisp.org>
5467
5468         passfd module, part 1, tweaks.
5469         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5470         Improve indentation. Improve AC_MSG_CHECKING messages.
5471         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5472         gl_SOCKET_FAMILIES.
5473
5474 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5475
5476         passfd module, part 1.
5477         * m4/afunix.m4: New file.
5478         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5479         sockets.
5480
5481 2011-03-08  Bruno Haible  <bruno@clisp.org>
5482
5483         regex-quote: New API.
5484         * lib/regex-quote.h: Include <stdbool.h>.
5485         (struct regex_quote_spec): New type.
5486         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5487         New declarations.
5488         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5489         'const struct regex_quote_spec *' argument.
5490         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5491         (pcre_special): New constant.
5492         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5493         New functions.
5494         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5495         'const struct regex_quote_spec *' argument.
5496         * modules/regex-quote (Depends-on): Add stdbool.
5497         * tests/test-regex-quote.c (check): Update for new API. Add test for
5498         anchored results.
5499         * NEWS: Mention the API change.
5500         Reported by Reuben Thomas and Eric Blake.
5501
5502 2011-03-06  Bruno Haible  <bruno@clisp.org>
5503
5504         regex-quote: Fix creation of POSIX extended regular expressions.
5505         * lib/regex-quote.c (ere_special): Add grouping and alternation
5506         operators.
5507
5508 2011-03-05  Bruno Haible  <bruno@clisp.org>
5509
5510         doc: Improve doc regarding autopoint vs. gnulib.
5511         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5512         disable autopoint while running autoreconf.
5513         Suggested by Ralf Wildenhues.
5514
5515 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5516
5517         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5518         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5519
5520 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5521
5522         parse-duration: remove xalloc.h dependency
5523         * lib/parse-duration.c (parse_period): handle NULL return from
5524         strdup instead of calling xstrdup().
5525         * modules/parse-duration: remove "xalloc" dependency
5526
5527 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5528
5529         bootstrap: honor m4_base when running aclocal
5530         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5531
5532 2011-03-02  Jim Meyering  <meyering@redhat.com>
5533
5534         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5535         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5536         on request from Matt Booth.
5537
5538 2011-03-01  Eric Blake  <eblake@redhat.com>
5539
5540         test-link: work on Hurd
5541         * tests/test-link.h (test_link): Hurd rejects linking directories
5542         with EISDIR instead of the POSIX-mandated EPERM.
5543
5544 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5545
5546         stdio: simplify by moving files to printf-posix, sigpipe
5547         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5548         since this symbol is needed only if printf is replaced.
5549         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5550         Require gl_ASM_SYMBOL_PREFIX.
5551         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5552         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5553         (Depends-on): Add 'raise'.
5554         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5555         * modules/stdio (Files): Remove lib/stdio-write.c,
5556         m4/asm-underscore.m4.
5557         (Depends-on): Remove 'raise'.
5558
5559         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5560         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5561         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5562         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5563
5564 2011-02-28  Bruno Haible  <bruno@clisp.org>
5565
5566         localcharset: Assume ANSI C behaviour of free().
5567         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5568         calling free().
5569         Suggested by Simon Josefsson <simon@josefsson.org>.
5570
5571 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5572             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5573             Bruno Haible  <bruno@clisp.org>  (tiny change)
5574
5575         On Cygwin, use /proc file system instead of win32 API.
5576         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5577         Win32 file names.
5578         (DllMain): Simplify by removing Cygwin specific code.
5579         (find_shared_library_fullname): Use Linux specific implementation also
5580         for Cygwin.
5581         (get_shared_library_fullname): Update accordingly.
5582         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5583         Win32 file names.
5584         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5585         Cygwin specific code.
5586
5587 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5588             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5589
5590         Fix OpenMP flag detection for various Fortran compilers.
5591         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5592         OpenMP-conditional compilation construct, to force compile
5593         failure with missing OpenMP flag.
5594         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5595
5596 2011-02-25  Eric Blake  <eblake@redhat.com>
5597
5598         strstr: expand test coverage
5599         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5600         compilation.
5601         * tests/test-memmem.c (main): Duplicate tests.
5602         * tests/test-strcasestr.c (main): Likewise.
5603         * tests/test-c-strcasestr.c (main): Likewise.
5604
5605 2011-02-25  Jim Meyering  <meyering@redhat.com>
5606
5607         maint.mk: detect missing-NL-at-EOF, too
5608         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5609         it also detects when a file lacks a newline at EOF.
5610         (require_exactly_one_NL_at_EOF_): Renamed from
5611         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5612         since people may well have .x-sc_... file names tied to the
5613         existing name.  Suggested by Eric Blake.
5614
5615 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5616
5617         dirname: move m4/dos.m4 functionality into lib/dosname.h
5618
5619         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5620         extracts symbols from it, puts them into config.h; but it's much
5621         easier to use the symbols directly.  filename.h already does this,
5622         but it disagrees with dos.m4 in some respects.  This patch
5623         introduces a different include file dosname.h that packages up
5624         dos.m4, and then later we can work on merging filename.h and
5625         dosname.h.  Applications that need only the easy-to-configure
5626         symbols should consider including dosname.h rather than dirname.h.
5627         * NEWS: Mention incompatible changes.
5628         * m4/dos.m4: Remove.
5629         * lib/dosname.h, modules/dosname: New files.
5630         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5631         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5632         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5633         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5634         Include dosname.h, not dirname.h.
5635         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5636         Include dosname.h, for definitions of symbols like ISSLASH
5637         that used to be in config.h.
5638         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5640         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5641         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5642         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5643         * modules/rmdir (Files): Likewise.
5644         * modules/stat (Files): Likewise.
5645         * modules/unlink (Files): Likewise.
5646         * modules/dirname-lgpl (Depends-on): Add dosname.
5647         * modules/lstat (Depends-on): Likewise.
5648         * modules/openat (Depends-on): Likewise.
5649         * modules/rmdir (Depends-on): Likewise.
5650         * modules/savewd (Depends-on): Likewise.
5651         * modules/stat (Depends-on): Likewise.
5652         * modules/unlink (Depends-on): Likewise.
5653         * modules/openat (Depends-on): Remove dirname-lgpl.
5654         * modules/savewd (Depends-on): Likewise.
5655         * tests/test-dirname.c: Do not use removed symbols like
5656         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5657         the remaining symbols, e.g., ISSLASH ('\\').
5658
5659 2011-02-25  Eric Blake  <eblake@redhat.com>
5660
5661         strstr: revert patches that introduced bug and pessimization
5662         * lib/str-two-way.h: Add another reference.
5663         (two_way_short_needle, two_way_long_needle): Revert changes from
5664         2011-02-24; they pessimize search speed.
5665         (critical_factorization): Partially revert changes from
5666         2010-06-22; they violate the requirement that the left half of the
5667         needle be smaller than the period of the needle.
5668
5669 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         filenamecat: remove unnecessary dependency on dirname-lgpl
5672         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5673         is no direct dependency, just an indirect one via filenamecat-lgpl.
5674
5675         remove: remove unnecessary use of m4/dos.m4
5676         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5677         * modules/remove (FILES): Remove m4/dos.m4.
5678
5679         * lib/openat-proc.c: Don't include dirname.h; not needed.
5680
5681         backupfile: remove unnecessary use of m4/dos.m4
5682         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5683         of its symbols are used by the backupfile code.  backupfile.c does
5684         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5685         for the rare case of programs that want all their backup file
5686         names to live within 8+3 limits, and dos.m4 doesn't address that.
5687         * modules/backupfile (Files): Remove m4/dos.m4.
5688
5689 2011-02-24  Jim Meyering  <meyering@redhat.com>
5690
5691         strstr: fix a bug whereby strstr would mistakenly return NULL
5692         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5693         in period calculation.
5694         (two_way_long_needle): Likewise.
5695         The original problem was reported by Mike Stump in
5696         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5697         Ralf Wildenhues provided the short needle and haystack.
5698         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5699         Add a more involved test to trigger the bug in two_way_long_needle.
5700
5701 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5702
5703         gnulib-tool: remove use of bold display in help screen
5704         * gnulib-tool (func_usage): Do not use bold display anymore in the
5705         help screen.  That was just meant to be a temporary emphasis for a
5706         backward-incompatible change.
5707
5708 2011-02-23  Bruno Haible  <bruno@clisp.org>
5709
5710         Fix misindentation of preprocessor directives.
5711         * lib/argp-namefrob.h: Reindent preprocessor directives.
5712         * lib/getopt_int.h (struct _getopt_data): Likewise.
5713         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5714         * lib/vasnprintf.c (decode_long_double): Likewise.
5715         * tests/test-argmatch.c: Insert blank lines, for clarity.
5716         * tests/test-exclude.c: Likewise.
5717
5718 2011-02-22  Bruno Haible  <bruno@clisp.org>
5719
5720         ioctl: Fix for MacOS X in 64-bit mode.
5721         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5722         value.
5723         Suggested by Eric Blake.
5724         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5725
5726 2011-02-22  Jim Meyering  <meyering@redhat.com>
5727
5728         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5729         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5730         in lib/.
5731
5732 2011-02-22  Eric Blake  <eblake@redhat.com>
5733
5734         maint: avoid any CDPATH issue
5735         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5736
5737         maint: adjust cpp indentation for my modules, as well
5738         * Makefile (sc_cpp_indent_check): Add my name.
5739         * lib/fbufmode.c: Filter through cppi.
5740         * lib/fpurge.c: Likewise.
5741         * lib/freadable.c: Likewise.
5742         * lib/freading.c: Likewise.
5743         * lib/fwritable.c: Likewise.
5744         * lib/fwriting.c: Likewise.
5745         * lib/sigaction.c: Likewise.
5746
5747 2011-02-22  Jim Meyering  <meyering@redhat.com>
5748
5749         maint: adjust cpp indentation to reflect nesting depth
5750         I.e., in a block of code that begins with an unnested "#if",
5751         put one space between the "#" in column 1 and following token.
5752         For example,
5753         -#include <sys/vfs.h>
5754         +# include <sys/vfs.h>
5755         Do this only in .c files that are part of a module I maintain.
5756         * lib/linkat.c: Filter through cppi.
5757         * lib/nanosleep.c: Likewise.
5758         * lib/openat.c: Likewise.
5759         * lib/openat-die.c: Likewise.
5760         * lib/dup3.c: Likewise.
5761         * lib/fchownat.c: Likewise.
5762         * lib/flock.c: Likewise.
5763         * lib/fsync.c: Likewise.
5764         * lib/fts.c: Likewise.
5765         * lib/getpass.c: Likewise.
5766         * lib/gettimeofday.c: Likewise.
5767         * lib/userspec.c: Likewise.
5768         * Makefile (sc_cpp_indent_check): New rule, to check this.
5769
5770 2011-02-22  Bruno Haible  <bruno@clisp.org>
5771
5772         New module 'wctomb'.
5773         * lib/stdlib.in.h (wctomb): New declaration.
5774         * lib/wctomb.c: New file.
5775         * lib/wctomb-impl.h: New file.
5776         * m4/wctomb.m4: New file.
5777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5778         REPLACE_WCTOMB.
5779         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5780         REPLACE_WCTOMB.
5781         * modules/wctomb: New file.
5782         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5783         * doc/posix-functions/wctomb.texi: Mention the new module.
5784         * modules/wctob (Depends-on): Add wctomb.
5785
5786 2011-02-22  Bruno Haible  <bruno@clisp.org>
5787
5788         New module 'mbtowc'.
5789         * lib/stdlib.in.h (mbtowc): New declaration.
5790         * lib/mbtowc.c: New file.
5791         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5792         * m4/mbtowc.m4: New file.
5793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5794         REPLACE_MBTOWC.
5795         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5796         REPLACE_MBTOWC.
5797         * modules/mbtowc: New file.
5798         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5799         * doc/posix-functions/mbtowc.texi: Mention the new module.
5800         * modules/btowc (Depends-on): Add mbtowc.
5801
5802 2011-02-22  Bruno Haible  <bruno@clisp.org>
5803
5804         wcrtomb: Add more tests for native Windows platforms.
5805         * tests/test-wcrtomb-w32-1.sh: New file.
5806         * tests/test-wcrtomb-w32-2.sh: New file.
5807         * tests/test-wcrtomb-w32-3.sh: New file.
5808         * tests/test-wcrtomb-w32-4.sh: New file.
5809         * tests/test-wcrtomb-w32-5.sh: New file.
5810         * tests/test-wcrtomb-w32.c: New file.
5811         * modules/wcrtomb-tests (Files): Add them.
5812         (Makefile.am): Arrange to run these tests.
5813         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5814         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5815
5816 2011-02-20  Bruno Haible  <bruno@clisp.org>
5817
5818         wcrtomb: Enhance test.
5819         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5820
5821 2011-02-20  Bruno Haible  <bruno@clisp.org>
5822
5823         mbrtowc: Tiny optimization.
5824         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5825
5826 2011-02-20  Jim Meyering  <meyering@redhat.com>
5827
5828         test-exclude.c: remove unmatched #endif
5829         * tests/test-exclude.c: Remove stray #endif, left over from
5830         the change of a week ago.
5831
5832 2011-02-19  Jim Meyering  <meyering@redhat.com>
5833
5834         git-version-gen: skip "-dirty" check when appropriate
5835         * build-aux/git-version-gen: Don't run any git commands when the
5836         version string comes from .tarball-version.  Prior to this, we
5837         would run git update-index --refresh even from a just-unpacked
5838         tarball directory, and that could affect a .git/ directory in a
5839         parent of the build directory.  Reported by Mike Frysinger.
5840
5841 2011-02-19  Bruno Haible  <bruno@clisp.org>
5842
5843         unictype/property-byname: Reduce the size of the 'data' segment.
5844         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5845
5846 2011-02-19  Bruno Haible  <bruno@clisp.org>
5847
5848         unictype/scripts: Reduce the size of the 'data' segment.
5849         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5850         '%pic'.
5851         * lib/unictype/scripts_byname.gperf: Regenerated.
5852
5853 2011-02-19  Bruno Haible  <bruno@clisp.org>
5854
5855         stdint: Update documentation.
5856         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5857
5858 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5859
5860         stdint: omit redundant check for wchar.h
5861         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5862         always tests whether wchar.h exists, so remove the now-redundant test.
5863
5864 2011-02-18  Bruno Haible  <bruno@clisp.org>
5865
5866         stdint: Cut dependency to module 'wchar'.
5867         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5868         include the necessary prerequisites.
5869         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5870         * modules/stdint (Depends-on): Remove wchar.
5871         (Makefile.am): Substitute HAVE_WCHAR_H.
5872         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5873
5874 2011-02-18  Eric Blake  <eblake@redhat.com>
5875
5876         longlong: skip, rather than fail, on cross-compilation
5877         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5878         when cross-compiling; regression from 2011-02-16.
5879
5880 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5881
5882         * NEWS: Mention 2011-02-08 change to stdlib.
5883
5884 2011-02-17  Bruno Haible  <bruno@clisp.org>
5885
5886         getloadavg: Add comments about platforms.
5887         * m4/getloadavg.m4: Add comment.
5888         * lib/getloadavg.c: Likewise.
5889
5890 2011-02-17  Bruno Haible  <bruno@clisp.org>
5891
5892         getloadavg: Fix link error on Solaris 2.6.
5893         * modules/getloadavg (Link): New section.
5894         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5895         linking test-getloadavg.
5896         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5897         getloadavg.
5898
5899 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5900
5901         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5902         It was 'int', but this doesn't match the IRIX 6.5 manual.
5903         Suggested by Bruno Haible in
5904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5905
5906 2011-02-17  Bruno Haible  <bruno@clisp.org>
5907
5908         havelib: Fix comments.
5909         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5910         change.
5911
5912 2011-02-17  Bruno Haible  <bruno@clisp.org>
5913
5914         havelib: Update config.rpath.
5915         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5916
5917 2011-02-17  Bruno Haible  <bruno@clisp.org>
5918
5919         getloadavg test: Add some plausibility checks.
5920         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5921         is improbable.
5922
5923 2011-02-16  Eric Blake  <eblake@redhat.com>
5924
5925         maintainer-makefile: make syntax-check a no-op from tarballs
5926         * top/maint.mk (no-vc-detected): New rule.
5927         (local-checks-available): Use it to avoid hanging if someone tries
5928         'make syntax-check' from a tarball.  Also append to any non-syntax
5929         checks already defined in cfg.mk.
5930
5931 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         longlong: tune, particularly for common case of c99
5934
5935         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5936         or running anything if c99, or if unsigned long long int does not
5937         work.  In either case, we know the answer without further tests.
5938         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5939         it at most once, and use its results for both long long int and
5940         unsigned long long int.  This is more likely to be efficient in
5941         the common case where the program wants to check for both long
5942         long int and unsigned long long int.
5943         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5944         since the answer is already known.
5945
5946 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         getloadavg: set errno
5949         * lib/getloadavg.c: Set errno when returning -1.  If no other
5950         error number looks appropriate, set it to ENOSYS if the getloadavg
5951         looks like it can't possibly ever work, ENOTSUP otherwise.
5952         Suggested by Bruno Haible in
5953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5954
5955         getloadavg: trim unused parts and speed up 'configure'
5956         * NEWS: Document this.
5957         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5958         always compiled if getloadavg is absent.
5959         Move test code to ...
5960         * tests/test-getloadavg.c: New file, containing previous
5961         contents of test from lib/getloadavg.c.  It also contains
5962         suggestions by Bruno Haible in
5963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5964         * modules/getloadavg-tests: New file.
5965         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5966         Do tests in the same order as they're needed for getloadavg.c.
5967         Omit setgid-related tests that generate symbols KMEM_GROUP,
5968         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5969         Do only the tests that are needed to see whether the system has
5970         getloadavg, moving the other tests into ...
5971         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5972         NLIST_NAME_UNION; nobody should be using it.  Do not define
5973         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5974         relevant, as the user of this module shouldn't care how getloadavg
5975         is implemented.
5976
5977         getloadavg: omit unused var
5978         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5979
5980 2011-02-15  Jim Meyering  <meyering@redhat.com>
5981
5982         doc: update users.txt
5983         * users.txt: Update iwhd's URL.
5984
5985 2011-02-13  Bruno Haible  <bruno@clisp.org>
5986
5987         Consistent macro naming for macros that use GCC __attribute__.
5988         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5989         _ATTRIBUTE_NONNULL_.
5990         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5991         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5992         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5993         ATTRIBUTE_DEPRECATED.
5994         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5995         ATTRIBUTE_NORETURN.
5996         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5997         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5998         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5999         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6000         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6001         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6002         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6003         ATTRIBUTE_SENTINEL.
6004         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6005         ATTRIBUTE_RETURN_CHECK.
6006         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6007         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6008         ATTRIBUTE_NORETURN.
6009         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6010         Reported by Paul Eggert.
6011
6012 2011-02-13  Bruno Haible  <bruno@clisp.org>
6013
6014         Don't interfere with a program's definition of __attribute__.
6015         * lib/argp.h (__attribute__): Remove definition.
6016         (_GL_ATTRIBUTE_FORMAT): New macro.
6017         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6018         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6019         (_GL_ATTRIBUTE_FORMAT): New macro.
6020         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6021         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6022         GCC 3 or newer.
6023         * lib/error.h (__attribute__): Remove definition.
6024         (_GL_ATTRIBUTE_FORMAT): New macro.
6025         (error, error_at_line): Use it.
6026         * lib/hash.h (__attribute__): Remove definition.
6027         (ATTRIBUTE_WUR): Update definition. Define always.
6028         * lib/openat.h (__attribute__): Remove definition.
6029         (ATTRIBUTE_NORETURN): Update definition. Define always.
6030         * lib/sigpipe-die.h (__attribute__): Remove definition.
6031         (ATTRIBUTE_NORETURN): Update definition. Define always.
6032         * lib/vasnprintf.h (__attribute__): Remove definition.
6033         (_GL_ATTRIBUTE_FORMAT): New macro.
6034         (asnprintf, vasnprintf): Use it.
6035         * lib/xalloc.h (__attribute__): Remove definition.
6036         (ATTRIBUTE_NORETURN): Update definition. Define always.
6037         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6038         * lib/xmemdup0.h (__attribute__): Remove definition.
6039         (ATTRIBUTE_NORETURN): Update definition. Define always.
6040         * lib/xprintf.h (__attribute__): Remove definition.
6041         (_GL_ATTRIBUTE_FORMAT): New macro.
6042         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6043         * lib/xstrtol.h (__attribute__): Remove definition.
6044         (ATTRIBUTE_NORETURN): Update definition. Define always.
6045         * lib/xvasprintf.h (__attribute__): Remove definition.
6046         (_GL_ATTRIBUTE_FORMAT): New macro.
6047         (xasprintf, xvasprintf): Use it.
6048         * tests/test-argmatch.c (__attribute__): Remove definition.
6049         (ATTRIBUTE_NORETURN): Update definition. Define always.
6050         * tests/test-exclude.c (__attribute__): Remove definition.
6051         (ATTRIBUTE_NORETURN): Update definition. Define always.
6052         Reported by Paul Eggert.
6053
6054 2011-02-13  Bruno Haible  <bruno@clisp.org>
6055
6056         mbrtowc: Add more tests for native Windows platforms.
6057         * tests/test-mbrtowc-w32-1.sh: New file.
6058         * tests/test-mbrtowc-w32-2.sh: New file.
6059         * tests/test-mbrtowc-w32-3.sh: New file.
6060         * tests/test-mbrtowc-w32-4.sh: New file.
6061         * tests/test-mbrtowc-w32-5.sh: New file.
6062         * tests/test-mbrtowc-w32.c: New file.
6063         * modules/mbrtowc-tests (Files): Add them.
6064         (Makefile.am): Arrange to run these tests.
6065         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6066         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6067
6068 2011-02-13  Bruno Haible  <bruno@clisp.org>
6069
6070         mbrtowc: Work around native Windows bug.
6071         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6072         guess when no suitable locale for testing was found.
6073         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6074
6075 2011-02-13  Bruno Haible  <bruno@clisp.org>
6076
6077         mbsinit: Work around mingw bug.
6078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6079         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6080         Windows.
6081         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6082
6083 2011-02-13  Bruno Haible  <bruno@clisp.org>
6084
6085         mbsinit: Don't crash for a NULL argument.
6086         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6087         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6088
6089 2011-02-13  Bruno Haible  <bruno@clisp.org>
6090
6091         Don't interfere with a program's definition of __attribute__.
6092         * lib/stdio.in.h (__attribute__): Remove definition.
6093         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6094         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6095         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6096         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6097         * lib/string.in.h (__attribute__): Remove definition.
6098         Reported by Paul Eggert.
6099
6100 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6101
6102         stdlib: don't get in the way of non-GCC __attribute__
6103         See thread starting at
6104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6105         Revert previous stdlib change, installing the following instead:
6106         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6107         to get in the way of a non-GCC compiler that supports __attribute__.
6108         (_GL_ATTRIBUTE_RETURN): New macro.
6109         (_Exit): Use it instead of __attribute__.
6110
6111 2011-02-12  Bruno Haible  <bruno@clisp.org>
6112
6113         quotearg test: Avoid test failure on mingw.
6114         * tests/test-quotearg.sh: Convert the locale identifier from native
6115         Windows syntax to Unix syntax.
6116
6117 2011-02-12  Bruno Haible  <bruno@clisp.org>
6118
6119         setlocale: Prefer gnulib's override over libintl's override.
6120         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6121         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6122         GNULIB_defined_setlocale is set.
6123
6124 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6125
6126         stdlib: support non-GCC __attribute__
6127
6128         Fix a serious and tricky problem encountered when attempting to
6129         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6130         5.5, but it crashed due to memory corruption on Solaris 10 with
6131         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6132         bits that are otherwise zero.  This tagging is optional inside
6133         Emacs but is preferred and is used when __attribute__ ((__aligned
6134         (8))) works, as it does with both recent-enough GCC and with Sun C
6135         5.11.  However, Sun C 5.11 is not GCC and does not #define
6136         __GNUC__ and __GNUC_MINOR__.
6137
6138         When I added the getloadavg module to Emacs, it brought in
6139         stdlib.in.h, which contained this fragment:
6140
6141            #ifndef __attribute__
6142            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6143            #  define __attribute__(Spec)   /* empty */
6144            # endif
6145            #endif
6146
6147         When files that include <stdlib.h> were compiled with Sun C 5.11,
6148         the above code disabled __attribute__ ((__aligned (8))), which
6149         caused variables to not be properly aligned, which eventually led
6150         to the pointer corruption mentioned above.  (This was a bit hard
6151         to diagnose, unfortunately.)
6152
6153         Several "#define __attribute__(X) /* empty */" code snippets need
6154         to be eradicated from Gnulib to work with non-GCC compilers that
6155         support __attribute__.  The Autoconf way to do this is to test for
6156         each kind of attribute that we want support for, and selectively
6157         enable that in source code.
6158
6159         Fix this problem just for stdlib.h, by adding a test for the
6160         __noreturn__ attribute, and change stdlib.in.h to use that test
6161         when needed.  This technique can be easily generalized to the
6162         other *.in.h files and attributes, and a similar technique can be
6163         used for *.h and *.c files.  This patch is enough to solve the
6164         problem for Emacs + getloadavg, and I thought I'd publish it for
6165         feedback before undertaking further, similar fixes in other
6166         modules.
6167
6168         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6169         because it's not needed for stdlib.h.  It merely substitutes the
6170         value directly into stdlib.h.  We may well need to #define it, or
6171         similar symbols, for other modules, but it's nice to also have an
6172         option to not #define it for applications like Emacs that do not
6173         need it.
6174
6175         * lib/stdlib.in.h (__attribute__): Do not #define.
6176         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6177         be defined only if the _Exit module is also used.
6178         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6180         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6181         platforms.
6182         * modules/_Exit (Files): Add m4/attribute.m4.
6183         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6184         * m4/attribute.m4: New file.
6185
6186 2011-02-12  Bruno Haible  <bruno@clisp.org>
6187
6188         wcsrtombs: Work around bug on native Windows.
6189         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6190         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6191         instead of len.
6192         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6193
6194 2011-02-12  Bruno Haible  <bruno@clisp.org>
6195
6196         mbsrtowcs: Work around bug on native Windows.
6197         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6198         against mingw bug.
6199         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6200
6201 2011-02-12  Bruno Haible  <bruno@clisp.org>
6202
6203         Avoid setlocale bugs in tests.
6204         * modules/btowc (Dependencies): Add setlocale.
6205         * modules/c-strcase (Dependencies): Likewise.
6206         * modules/mbmemcasecmp (Dependencies): Likewise.
6207         * modules/mbmemcasecoll (Dependencies): Likewise.
6208         * modules/mbrtowc (Dependencies): Likewise.
6209         * modules/mbscasecmp (Dependencies): Likewise.
6210         * modules/mbscasestr (Dependencies): Likewise.
6211         * modules/mbschr (Dependencies): Likewise.
6212         * modules/mbscspn (Dependencies): Likewise.
6213         * modules/mbsinit (Dependencies): Likewise.
6214         * modules/mbsncasecmp (Dependencies): Likewise.
6215         * modules/mbsnrtowcs (Dependencies): Likewise.
6216         * modules/mbspbrk (Dependencies): Likewise.
6217         * modules/mbspcasecmp (Dependencies): Likewise.
6218         * modules/mbsrchr (Dependencies): Likewise.
6219         * modules/mbsrtowcs (Dependencies): Likewise.
6220         * modules/mbsspn (Dependencies): Likewise.
6221         * modules/mbsstr (Dependencies): Likewise.
6222         * modules/nl_langinfo (Dependencies): Likewise.
6223         * modules/quotearg (Dependencies): Likewise.
6224         * modules/unicase/locale-language (Dependencies): Likewise.
6225         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6226         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6227         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6228         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6229         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6230         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6231         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6232         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6233         * modules/vasnprintf-posix (Dependencies): Likewise.
6234         * modules/wcrtomb (Dependencies): Likewise.
6235         * modules/wcsnrtombs (Dependencies): Likewise.
6236         * modules/wcsrtombs (Dependencies): Likewise.
6237
6238 2011-02-12  Bruno Haible  <bruno@clisp.org>
6239
6240         setlocale: Workaround native Windows bug.
6241         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6242         succeeds but sets LC_CTYPE to "C", report a failure.
6243         * tests/test-setlocale2.sh: New file.
6244         * tests/test-setlocale2.c: New file.
6245         * modules/setlocale-tests (Files): Add the new files.
6246         (Makefile.am): Enable test-setlocale2.sh test.
6247         * doc/posix-functions/setlocale.texi: Mention workaround.
6248
6249 2011-02-11  Bruno Haible  <bruno@clisp.org>
6250
6251         Tests for module 'setlocale'.
6252         * modules/setlocale-tests: New file.
6253         * tests/test-setlocale1.sh: New file.
6254         * tests/test-setlocale1.c: New file.
6255
6256         New module 'setlocale'.
6257         * lib/locale.in.h (setlocale): New declaration.
6258         * lib/setlocale.c: New file, based on
6259         gettext/gettext-runtime/intl/setlocale.c.
6260         * m4/setlocale.m4: New file.
6261         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6262         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6263         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6264         REPLACE_SETLOCALE.
6265         * modules/setlocale: New file.
6266         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6267         * doc/posix-functions/setlocale.texi: Mention the new module.
6268
6269 2011-02-11  Bruno Haible  <bruno@clisp.org>
6270
6271         Prepare for locale dependent tests on mingw.
6272         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6273         because it has the wrong locale encoding.
6274         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6275         French_France.1252 instead of "fr".
6276         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6277         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6278         because it has the wrong locale encoding.
6279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6280         native Windows, try Turkish_Turkey.65001.
6281         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6282         Chinese_China.54936.
6283
6284         Prepare for locale dependent tests on mingw.
6285         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6286         differently.
6287         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6288         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6289         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6291
6292 2011-02-11  Eric Blake  <eblake@redhat.com>
6293
6294         strptime: avoid compiler warnings
6295         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6296         compiler warnings about dead code.
6297         Reported by Daniel P. Berrange.
6298
6299 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6300
6301         doc: update users.txt
6302         * users.txt: Add rcs.
6303
6304 2011-02-10  John W. Eaton  <jwe@gnu.org>
6305
6306         doc: update users.txt
6307         * users.txt: Add octave.
6308
6309 2011-02-10  Jim Meyering  <meyering@redhat.com>
6310
6311         doc: update users.txt
6312         * users.txt: Add iwhd.
6313
6314 2011-02-09  Bruno Haible  <bruno@clisp.org>
6315
6316         gnulib-tool: Make copyright notice adjustment more robust.
6317         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6318         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6319         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6320         License".
6321         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6322
6323 2011-02-06  Bruno Haible  <bruno@clisp.org>
6324
6325         New module 'towctrans'.
6326         * modules/towctrans: New file.
6327         * lib/wctype.in.h (towctrans): New declaration.
6328         * lib/towctrans.c: New file.
6329         * lib/towctrans-impl.h: New file.
6330         * m4/towctrans.m4: New file.
6331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6332         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6333         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6334         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6335         * doc/posix-functions/towctrans.texi: Mention the new module.
6336
6337 2011-02-06  Bruno Haible  <bruno@clisp.org>
6338
6339         New module 'wctrans'.
6340         * modules/wctrans: New file.
6341         * lib/wctype.in.h (wctrans): New declaration.
6342         * lib/wctrans.c: New file.
6343         * lib/wctrans-impl.h: New file.
6344         * m4/wctrans.m4: New file.
6345         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6346         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6347         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6348         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6349         * doc/posix-functions/wctrans.texi: Mention the new module.
6350
6351 2011-02-06  Bruno Haible  <bruno@clisp.org>
6352
6353         New module 'iswctype'.
6354         * modules/iswctype: New file.
6355         * lib/wctype.in.h (iswctype): New declaration.
6356         * lib/iswctype.c: New file.
6357         * lib/iswctype-impl.h: New file.
6358         * m4/iswctype.m4: New file.
6359         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6360         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6361         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6362         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6363         * doc/posix-functions/iswctype.texi: Mention the new module and the
6364         HP-UX 11.00 problem.
6365
6366 2011-02-06  Bruno Haible  <bruno@clisp.org>
6367
6368         New module 'wctype'.
6369         * modules/wctype: Change to represent the wctype() substitute.
6370         * lib/wctype.in.h (wctype): New declaration.
6371         * lib/wctype.c: New file.
6372         * lib/wctype-impl.h: New file.
6373         * m4/wctype.m4: New file.
6374         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6375         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6376         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6377         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6378         * doc/posix-functions/wctype.texi: Mention the new module and the
6379         HP-UX 11.00 problem.
6380
6381 2011-02-06  Bruno Haible  <bruno@clisp.org>
6382
6383         wctype-h: Ensure wctype_t and wctrans_t are defined.
6384         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6385         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6386         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6387         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6388         HAVE_WCTRANS_T.
6389         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6390
6391 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6392
6393         flock: fix license typo
6394
6395         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6396         omitted.
6397
6398 2011-02-08  Bruno Haible  <bruno@clisp.org>
6399
6400         Split large sed scripts, for HP-UX sed.
6401         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6402         to avoid HP-UX limit of 99 commands, in the near future.
6403         * modules/stdlib (Makefile.am): Likewise.
6404         * modules/unistd (Makefile.am): Likewise.
6405         * modules/wchar (Makefile.am): Likewise.
6406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6407         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6408         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6409
6410 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6411             Bruno Haible  <bruno@clisp.org>
6412
6413         stdlib: improve random_r modularization
6414         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6415         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6416         you also need the random_r module to get this material right.
6417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6418         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6419         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6420
6421 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6422
6423         stdlib: don't depend on stdint
6424         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6425         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6426         be independent of whether stdint.h is needed.
6427         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6428         here, instead of ...
6429         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6430         struct random_data should be using the random_r module, not just
6431         the stdlib module (which wouldn't make sense: what package needs
6432         just struct random_data without also needing random_r?).
6433         * modules/stdlib (Depends-on): Remove stdint.
6434
6435         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6436         See the thread rooted at
6437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6438         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6439         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6440         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6441         __VMS)); previously it was always included (via fcntl--.h).
6442         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6443         hand; this is good enough for load averages.  Also, do not use
6444         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6445         flags directly if available and don't bother otherwise.  (Packages
6446         that need the extra reliability should use the modules that define
6447         these flags on older platforms that lack them.)
6448         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6449         fcntl-safer.
6450
6451 2011-02-08  Jim Meyering  <meyering@redhat.com>
6452
6453         di-set.h, ino-map.h: add multiple-inclusion guard
6454         Technically, the guard is required only for ino-map.h, due to its
6455         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6456         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6457         * lib/ino-map.h: Likewise.
6458
6459 2011-02-06  Bruno Haible  <bruno@clisp.org>
6460
6461         iswblank: Ensure declaration on glibc systems.
6462         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6463         * modules/iswblank (Dependencies): Add 'extensions'.
6464         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6465
6466 2011-02-06  Bruno Haible  <bruno@clisp.org>
6467
6468         New module 'iswblank'.
6469         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6470         * modules/iswblank: New file.
6471         * modules/wctype-h (Files): Remove lib/iswblank.c.
6472         (Makefile.am): Substitute GNULIB_ISWBLANK.
6473         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6474         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6475         (gl_WCTYPE_H_DEFAULTS): New macro.
6476         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6477         * modules/iswblank-tests: New file.
6478         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6479         * tests/test-wctype-h.c (main): Remove iswblank tests.
6480         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6481         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6482         of 'wctype-h'.
6483         * NEWS: Mention the change.
6484         * modules/mbchar (Depends-on): Add iswblank.
6485
6486 2011-02-08  Bruno Haible  <bruno@clisp.org>
6487
6488         di-set tests: Refactor.
6489         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6490         unnecessary includes.
6491         (ASSERT): Remove macro.
6492         (main): Make C90 compliant by avoiding variable declaration after
6493         statement.
6494         * modules/di-set-tests (Files): Add tests/macros.h.
6495
6496 2011-02-08  Bruno Haible  <bruno@clisp.org>
6497
6498         ino-map tests: Refactor.
6499         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6500         unnecessary includes.
6501         (ASSERT): Remove macro.
6502         (main): Make C90 compliant by avoiding variable declaration after
6503         statement.
6504         * modules/ino-map-tests (Files): Add tests/macros.h.
6505
6506 2011-02-08  Jim Meyering  <meyering@redhat.com>
6507
6508         di-set: add "const" to a cast
6509         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6510         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6511
6512 2011-02-06  Bruno Haible  <bruno@clisp.org>
6513
6514         Rename module 'wctype' to 'wctype-h'.
6515         * modules/wctype-h: Renamed from modules/wctype.
6516         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6517         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6518         (Files, Depends-on, Makefile.am): Update.
6519         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6520         (Files, Makefile.am): Update.
6521         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6522         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6523         * doc/posix-headers/wctype.texi: Update.
6524         * doc/posix-functions/iswalnum.texi: Update.
6525         * doc/posix-functions/iswalpha.texi: Update.
6526         * doc/posix-functions/iswblank.texi: Update.
6527         * doc/posix-functions/iswcntrl.texi: Update.
6528         * doc/posix-functions/iswdigit.texi: Update.
6529         * doc/posix-functions/iswgraph.texi: Update.
6530         * doc/posix-functions/iswlower.texi: Update.
6531         * doc/posix-functions/iswprint.texi: Update.
6532         * doc/posix-functions/iswpunct.texi: Update.
6533         * doc/posix-functions/iswspace.texi: Update.
6534         * doc/posix-functions/iswupper.texi: Update.
6535         * doc/posix-functions/iswxdigit.texi: Update.
6536         * doc/posix-functions/towlower.texi: Update.
6537         * doc/posix-functions/towupper.texi: Update.
6538         * NEWS: Mention the change.
6539         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6540         * modules/mbchar (Dependencies): Likewise.
6541         * modules/mbswidth (Dependencies): Likewise.
6542         * modules/quotearg (Dependencies): Likewise.
6543         * modules/regex (Dependencies): Likewise.
6544         * modules/wcscasecmp (Dependencies): Likewise.
6545         * modules/wcsncasecmp (Dependencies): Likewise.
6546         * modules/wcwidth (Dependencies): Likewise.
6547
6548 2011-02-06  Bruno Haible  <bruno@clisp.org>
6549
6550         New module 'wcswidth'.
6551         * modules/wcswidth: New file.
6552         * lib/wchar.in.h (wcswidth): New declaration.
6553         * lib/wcswidth.c: New file.
6554         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6555         * m4/wcswidth.m4: New file.
6556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6558         REPLACE_WCSWIDTH.
6559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6560         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6561         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6562         * doc/posix-functions/wcswidth.texi: Mention the new module.
6563
6564 2011-02-06  Bruno Haible  <bruno@clisp.org>
6565
6566         New module 'wcstok'.
6567         * modules/wcstok: New file.
6568         * lib/wchar.in.h (wcstok): New declaration.
6569         * lib/wcstok.c: New file.
6570         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6571         * m4/wcstok.m4: New file.
6572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6575         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6576         * doc/posix-functions/wcstok.texi: Mention the new module.
6577
6578 2011-02-06  Bruno Haible  <bruno@clisp.org>
6579
6580         New module 'wcsstr'.
6581         * modules/wcsstr: New file.
6582         * lib/wchar.in.h (wcsstr): New declaration.
6583         * lib/wcsstr.c: New file.
6584         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6585         * m4/wcsstr.m4: New file.
6586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6589         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6590         * doc/posix-functions/wcsstr.texi: Mention the new module.
6591
6592 2011-02-06  Bruno Haible  <bruno@clisp.org>
6593
6594         New module 'wcspbrk'.
6595         * modules/wcspbrk: New file.
6596         * lib/wchar.in.h (wcspbrk): New declaration.
6597         * lib/wcspbrk.c: New file.
6598         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6599         * m4/wcspbrk.m4: New file.
6600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6603         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6604         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6605
6606 2011-02-06  Bruno Haible  <bruno@clisp.org>
6607
6608         New module 'wcsspn'.
6609         * modules/wcsspn: New file.
6610         * lib/wchar.in.h (wcsspn): New declaration.
6611         * lib/wcsspn.c: New file.
6612         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6613         * m4/wcsspn.m4: New file.
6614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6617         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6618         * doc/posix-functions/wcsspn.texi: Mention the new module.
6619
6620 2011-02-06  Bruno Haible  <bruno@clisp.org>
6621
6622         New module 'wcscspn'.
6623         * modules/wcscspn: New file.
6624         * lib/wchar.in.h (wcscspn): New declaration.
6625         * lib/wcscspn.c: New file.
6626         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6627         * m4/wcscspn.m4: New file.
6628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6631         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6632         * doc/posix-functions/wcscspn.texi: Mention the new module.
6633
6634 2011-02-06  Bruno Haible  <bruno@clisp.org>
6635
6636         New module 'wcsrchr'.
6637         * modules/wcsrchr: New file.
6638         * lib/wchar.in.h (wcsrchr): New declaration.
6639         * lib/wcsrchr.c: New file.
6640         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6641         * m4/wcsrchr.m4: New file.
6642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6645         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6646         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6647
6648 2011-02-06  Bruno Haible  <bruno@clisp.org>
6649
6650         New module 'wcschr'.
6651         * modules/wcschr: New file.
6652         * lib/wchar.in.h (wcschr): New declaration.
6653         * lib/wcschr.c: New file.
6654         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6655         * m4/wcschr.m4: New file.
6656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6659         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6660         * doc/posix-functions/wcschr.texi: Mention the new module.
6661
6662 2011-02-06  Bruno Haible  <bruno@clisp.org>
6663
6664         New module 'wcsdup'.
6665         * modules/wcsdup: New file.
6666         * lib/wchar.in.h (wcsdup): New declaration.
6667         * lib/wcsdup.c: New file.
6668         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6669         * m4/wcsdup.m4: New file.
6670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6673         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6674         * doc/posix-functions/wcsdup.texi: Mention the new module.
6675
6676 2011-02-06  Bruno Haible  <bruno@clisp.org>
6677
6678         New module 'wcsxfrm'.
6679         * modules/wcsxfrm: New file.
6680         * lib/wchar.in.h (wcsxfrm): New declaration.
6681         * lib/wcsxfrm.c: New file.
6682         * lib/wcsxfrm-impl.h: New file.
6683         * m4/wcsxfrm.m4: New file.
6684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6687         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6688         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6689
6690 2011-02-06  Bruno Haible  <bruno@clisp.org>
6691
6692         New module 'wcscoll'.
6693         * modules/wcscoll: New file.
6694         * lib/wchar.in.h (wcscoll): New declaration.
6695         * lib/wcscoll.c: New file.
6696         * lib/wcscoll-impl.h: New file.
6697         * m4/wcscoll.m4: New file.
6698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6701         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6702         * doc/posix-functions/wcscoll.texi: Mention the new module.
6703
6704 2011-02-06  Bruno Haible  <bruno@clisp.org>
6705
6706         New module 'wcsncasecmp'.
6707         * modules/wcsncasecmp: New file.
6708         * lib/wchar.in.h (wcsncasecmp): New declaration.
6709         * lib/wcsncasecmp.c: New file.
6710         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6711         * m4/wcsncasecmp.m4: New file.
6712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6715         HAVE_WCSNCASECMP.
6716         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6717         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6718
6719 2011-02-06  Bruno Haible  <bruno@clisp.org>
6720
6721         New module 'wcscasecmp'.
6722         * modules/wcscasecmp: New file.
6723         * lib/wchar.in.h (wcscasecmp): New declaration.
6724         * lib/wcscasecmp.c: New file.
6725         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6726         * m4/wcscasecmp.m4: New file.
6727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6730         HAVE_WCSCASECMP.
6731         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6732         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6733
6734 2011-02-05  Bruno Haible  <bruno@clisp.org>
6735
6736         New module 'wcsncmp'.
6737         * modules/wcsncmp: New file.
6738         * lib/wchar.in.h (wcsncmp): New declaration.
6739         * lib/wcsncmp.c: New file.
6740         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6741         * m4/wcsncmp.m4: New file.
6742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6745         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6746         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6747
6748 2011-02-05  Bruno Haible  <bruno@clisp.org>
6749
6750         New module 'wcscmp'.
6751         * modules/wcscmp: New file.
6752         * lib/wchar.in.h (wcscmp): New declaration.
6753         * lib/wcscmp.c: New file.
6754         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6755         * m4/wcscmp.m4: New file.
6756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6759         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6760         * doc/posix-functions/wcscmp.texi: Mention the new module.
6761
6762 2011-02-05  Bruno Haible  <bruno@clisp.org>
6763
6764         New module 'wcsncat'.
6765         * modules/wcsncat: New file.
6766         * lib/wchar.in.h (wcsncat): New declaration.
6767         * lib/wcsncat.c: New file.
6768         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6769         * m4/wcsncat.m4: New file.
6770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6773         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6774         * doc/posix-functions/wcsncat.texi: Mention the new module.
6775
6776 2011-02-05  Bruno Haible  <bruno@clisp.org>
6777
6778         New module 'wcscat'.
6779         * modules/wcscat: New file.
6780         * lib/wchar.in.h (wcscat): New declaration.
6781         * lib/wcscat.c: New file.
6782         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6783         * m4/wcscat.m4: New file.
6784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6787         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6788         * doc/posix-functions/wcscat.texi: Mention the new module.
6789
6790 2011-02-05  Bruno Haible  <bruno@clisp.org>
6791
6792         New module 'wcpncpy'.
6793         * modules/wcpncpy: New file.
6794         * lib/wchar.in.h (wcpncpy): New declaration.
6795         * lib/wcpncpy.c: New file.
6796         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6797         * m4/wcpncpy.m4: New file.
6798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6800         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6801         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6802         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6803
6804 2011-02-05  Bruno Haible  <bruno@clisp.org>
6805
6806         New module 'wcsncpy'.
6807         * modules/wcsncpy: New file.
6808         * lib/wchar.in.h (wcsncpy): New declaration.
6809         * lib/wcsncpy.c: New file.
6810         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6811         * m4/wcsncpy.m4: New file.
6812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6815         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6816         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6817
6818 2011-02-05  Bruno Haible  <bruno@clisp.org>
6819
6820         New module 'wcpcpy'.
6821         * modules/wcpcpy: New file.
6822         * lib/wchar.in.h (wcpcpy): New declaration.
6823         * lib/wcpcpy.c: New file.
6824         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6825         * m4/wcpcpy.m4: New file.
6826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6828         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6829         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6830         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6831
6832 2011-02-05  Bruno Haible  <bruno@clisp.org>
6833
6834         New module 'wcscpy'.
6835         * modules/wcscpy: New file.
6836         * lib/wchar.in.h (wcscpy): New declaration.
6837         * lib/wcscpy.c: New file.
6838         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6839         * m4/wcscpy.m4: New file.
6840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6843         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6844         * doc/posix-functions/wcscpy.texi: Mention the new module.
6845
6846 2011-02-05  Bruno Haible  <bruno@clisp.org>
6847
6848         New module 'wcsnlen'.
6849         * modules/wcsnlen: New file.
6850         * lib/wchar.in.h (wcsnlen): New declaration.
6851         * lib/wcsnlen.c: New file.
6852         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6853         * m4/wcsnlen.m4: New file.
6854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6857         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6858         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6859
6860 2011-02-05  Bruno Haible  <bruno@clisp.org>
6861
6862         New module 'wcslen'.
6863         * modules/wcslen: New file.
6864         * lib/wchar.in.h (wcslen): New declaration.
6865         * lib/wcslen.c: New file.
6866         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6867         * m4/wcslen.m4: New file.
6868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6871         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6872         * doc/posix-functions/wcslen.texi: Mention the new module.
6873
6874 2011-02-05  Bruno Haible  <bruno@clisp.org>
6875
6876         New module 'wmemset'.
6877         * modules/wmemset: New file.
6878         * lib/wchar.in.h (wmemset): New declaration.
6879         * lib/wmemset.c: New file.
6880         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6881         * m4/wmemset.m4: New file.
6882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6884         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6885         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6886         * doc/posix-functions/wmemset.texi: Mention the new module.
6887
6888 2011-02-05  Bruno Haible  <bruno@clisp.org>
6889
6890         New module 'wmemmove'.
6891         * modules/wmemmove: New file.
6892         * lib/wchar.in.h (wmemmove): New declaration.
6893         * lib/wmemmove.c: New file.
6894         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6895         * m4/wmemmove.m4: New file.
6896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6898         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6899         HAVE_WMEMMOVE.
6900         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6901         * doc/posix-functions/wmemmove.texi: Mention the new module.
6902
6903 2011-02-05  Bruno Haible  <bruno@clisp.org>
6904
6905         New module 'wmemcpy'.
6906         * modules/wmemcpy: New file.
6907         * lib/wchar.in.h (wmemcpy): New declaration.
6908         * lib/wmemcpy.c: New file.
6909         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6910         * m4/wmemcpy.m4: New file.
6911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6914         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6915         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6916
6917 2011-02-05  Bruno Haible  <bruno@clisp.org>
6918
6919         New module 'wmemcmp'.
6920         * modules/wmemcmp: New file.
6921         * lib/wchar.in.h (wmemcmp): New declaration.
6922         * lib/wmemcmp.c: New file.
6923         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6924         * m4/wmemcmp.m4: New file.
6925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6928         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6929         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6930
6931 2011-02-07  Jim Meyering  <meyering@redhat.com>
6932
6933         di-set, ino-map: new modules, from coreutils
6934         * lib/di-set.c: New file.
6935         * lib/di-set.h: Likewise.
6936         * lib/ino-map.c: Likewise.
6937         * lib/ino-map.h: Likewise.
6938         * modules/di-set: Likewise.
6939         * modules/di-set-tests: Likewise.
6940         * modules/ino-map: Likewise.
6941         * modules/ino-map-tests: Likewise.
6942         * tests/test-di-set.c: Likewise.
6943         * tests/test-ino-map.c: Likewise.
6944
6945 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6946
6947         getloadavg: merge minor changes from Emacs
6948
6949         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6950         (getloadavg): Use memset, not bzero.
6951
6952         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6953         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6954         clash (bug#86).
6955
6956 2010-11-14  Bruno Haible  <bruno@clisp.org>
6957
6958         Allow multiple gnulib generated replacements to coexist.
6959         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6960         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6961         * lib/langinfo.in.h (nl_item): Likewise.
6962         * lib/math.in.h (_NaN, NAN): Likewise.
6963         * lib/netdb.in.h (struct addrinfo): Likewise.
6964         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6965         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6966         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6967         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6968         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6969         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6970         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6971         pthread_mutexattr_init, pthread_mutexattr_settype,
6972         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6973         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6974         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6975         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6976         * lib/sched.in.h (struct sched_param): Likewise.
6977         * lib/se-selinux.in.h (security_class_t, security_context_t,
6978         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6979         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6980         lsetfilecon, fsetfilecon, security_check_context,
6981         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6982         Likewise.
6983         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6984         Likewise.
6985         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6986         _gl_function_taking_int_returning_void_t, union sigval,
6987         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6988         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6989         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6990         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6991         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6992         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6993         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6994         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6995         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6996         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6997         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6998         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6999         socklen_t, rpl_fd_isset): Likewise.
7000         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7001         * lib/sys_time.in.h (struct timeval): Likewise.
7002         * lib/sys_times.in.h (struct tms): Likewise.
7003         * lib/sys_utsname.in.h (struct utsname):
7004         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7005         * lib/unistd.in.h (getpagesize): Likewise.
7006         * lib/wchar.in.h (mbstate_t): Likewise.
7007         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7008         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7009         towlower, towupper): Likewise.
7010         Reported by Sam Steingold <sds@gnu.org>.
7011
7012 2011-02-05  Eric Blake  <eblake@redhat.com>
7013
7014         unsetenv: work around Haiku issues
7015         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7016         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7017
7018 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7019
7020         libposix: avoid calling error() within libposix
7021         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7022         is defined.
7023
7024 2011-02-05  Eric Blake  <eblake@redhat.com>
7025
7026         strerror_r-posix: port to cygwin
7027         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7028         implementation.
7029         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7030         * tests/test-strerror_r.c (main): Fix test.
7031         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7032         issue.
7033
7034 2011-02-05  Bruno Haible  <bruno@clisp.org>
7035
7036         New module 'wmemchr'.
7037         * modules/wmemchr: New file.
7038         * lib/wchar.in.h (wmemchr): New declaration.
7039         * lib/wmemchr.c: New file.
7040         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7041         * m4/wmemchr.m4: New file.
7042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7044         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7045         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7046         * doc/posix-functions/wmemchr.texi: Mention the new module.
7047
7048 2011-02-04  Eric Blake  <eblake@redhat.com>
7049
7050         fdopendir: detect FreeBSD bug
7051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7052         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7053
7054 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7055
7056         stdbool: do not define HAVE_STDBOOL_H
7057         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7058         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7059         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7060         imported from the latest Autoconf git.  It was motivated by Emacs,
7061         which uses gnulib but does not need HAVE_STDBOOL_H.
7062
7063 2011-02-04  Bruno Haible  <bruno@clisp.org>
7064
7065         wcsnrtombs: Prepare for new module wwcsnrtombs.
7066         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7067         * lib/wcsnrtombs.c: Include it.
7068         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7069
7070         wcsrtombs: Prepare for new module wwcsrtombs.
7071         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7072         * lib/wcsrtombs.c: Include it.
7073         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7074
7075         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7076         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7077         * lib/mbsnrtowcs.c: Include it.
7078         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7079
7080         mbsrtowcs: Prepare for new module mbsrtowwcs.
7081         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7082         * lib/mbsrtowcs.c: Include it.
7083         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7084
7085 2011-02-04  Bruno Haible  <bruno@clisp.org>
7086
7087         vasnprintf: Reduce use of malloc for small format strings.
7088         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7089         (arguments): Add room for the first 7 arguments.
7090         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7091         (char_directives, u8_directives, u16_directives, u32_directives): Add
7092         room for the first 7 directives.
7093         * lib/printf-parse.c: Include <string.h>.
7094         (PRINTF_PARSE): Change memory handling code so that it uses the first
7095         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7096         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7097         Reported by Pádraig Brady <P@draigbrady.com>.
7098
7099 2011-01-31  Eric Blake  <eblake@redhat.com>
7100
7101         dup2: work around Haiku bug
7102         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7103         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7104         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7105         * tests/test-dup2.c (main): Enhance test.
7106
7107 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7108
7109         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7110         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7111         declared by eglibc 2.11.2.
7112         * lib/stdio.in.h: Likewise.
7113
7114 2011-01-31  Eric Blake  <eblake@redhat.com>
7115
7116         ignore-value: add missing test dependency
7117         * tests/test-ignore-value.c: Revert previous change; stdio.h
7118         provides off_t.
7119         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7120
7121 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7122
7123         mktime: clarify long_int width checking
7124         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7125         the top level, to make it clearer that the assumption about
7126         long_int width is being checked.  See
7127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7128
7129 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7130
7131         ignore-value: Fix self-test.
7132         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7133
7134 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7135
7136         TYPE_MAXIMUM: avoid theoretically undefined behavior
7137         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7138         negative number, which the C Standard says has undefined behavior.
7139         In practice this is not a problem, but might as well do it by the book.
7140         Reported by Rich Felker and Eric Blake; see
7141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7142         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7143         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7145         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7146         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7147         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7148
7149         mktime: #undef mktime before #defining it
7150         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7151
7152         mktime: systematically normalize tm_isdst comparisons
7153         * lib/mktime.c (isdst_differ): New function.
7154         (__mktime_internal): Use it systematically for all isdst comparisons.
7155         This completes the fix for libc BZ #6723, and removes the need for
7156         normalizing tm_isdst.  See
7157         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7158         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7159
7160         mktime: fix some integer overflow issues and sidestep the rest
7161
7162         This was prompted by a bug report by Benjamin Lindner for MinGW
7163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7164         His bug is due to signed integer overflow (0 - INT_MIN), and I
7165         I scanned through mktime.c looking for other integer overflow
7166         problems, fixing all the bugs I found.
7167
7168         Although the C Standard says the resulting code is still not safe
7169         in the presence of integer overflow, in practice it should be good
7170         enough for all real-world two's-complement implementations, except
7171         for debugging environments that deliberately trap on integer
7172         overflow (e.g., gcc -ftrapv).
7173
7174         * lib/mktime.c (WRAPV): New macro.
7175         (SHR): Also check that long_int and time_t shift right in the
7176         usual way, before using the fast-but-unportable method.
7177         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7178         used.  The code already assumed two's complement, so there's
7179         no need to test for alternatives.  All uses removed.
7180         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7181         the C standard.  Problem reported by Rich Felker in
7182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7183         (twos_complement_arithmetic): Also check long_int and time_t.
7184         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7185         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7186         (__mktime_internal): Avoid integer overflow with unary subtraction
7187         in two instances where -1 - X is an adequate replacement for -X,
7188         since the calculations are approximate.
7189
7190 2011-01-29  Eric Blake  <eblake@redhat.com>
7191
7192         mktime: avoid infinite loop
7193         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7194         type; behavior is still undefined but portable to all known targets.
7195         Reported by Rich Felker.
7196
7197 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7198
7199         rename, unlink, same-inode: Relicense.
7200         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7201         * modules/unlink (License): Likewise.
7202         * modules/same-inode (License): Likewise.
7203
7204 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7205
7206         mktime: avoid problems on NetBSD 5 / i386
7207         * lib/mktime.c (long_int): New type.  This works around a problem
7208         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7209         but time_t is 64 bits, and where I expect the existing code is
7210         wrong in some cases.
7211         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7212         (ydhms_diff): Bring back the compile-time check for wide-enough
7213         year and yday.
7214
7215         mktime: fix misspelling in comment
7216         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7217         This merges all recent glibc changes of importance.
7218
7219 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7220
7221         move-if-change: cope with concurrent mv of identical file.
7222         * build-aux/move-if-change (CMPPROG): Accept environment
7223         variable as an override for `cmp'.
7224         (usage): Document CMPPROG.
7225         Adjust comparison to drop stdout.  Cope with failure of mv if
7226         the target file exists and is identical to the source, for
7227         parallel builds.
7228         Report from H.J. Lu against binutils in PR binutils/12283.
7229
7230 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7231
7232         * users.txt: Mention sharutils.
7233
7234 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7235
7236         * users.txt: Mention OATH Toolkit.
7237
7238 2011-01-27  Bruno Haible  <bruno@clisp.org>
7239
7240         Prepare for supporting FreeBSD 10.
7241         * build-aux/config.libpath: Remove handling of freebsd1*.
7242
7243 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7244
7245         Prepare for supporting FreeBSD 10.
7246         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7247         match FreeBSD 10.0.
7248
7249 2011-01-27  Bruno Haible  <bruno@clisp.org>
7250
7251         vma-iter, get-rusage-as: Add OpenBSD support.
7252         * modules/vma-iter (configure.ac): Test for mquery.
7253         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7254         * lib/vma-iter.c: Include <sys/mman.h>.
7255         (vma_iterate): Add an implementation based on mquery().
7256         * lib/resource-ext.h (get_rusage_as): Update comments.
7257         * lib/get-rusage-as.c: Likewise.
7258         * lib/get-rusage-data.c: Likewise.
7259
7260 2011-01-26  Karl Berry  <karl@gnu.org>
7261
7262         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7263         variables to make it easier to override the makeinfo program used.
7264
7265 2011-01-26  Eric Blake  <eblake@redhat.com>
7266
7267         fcntl: work around Haiku F_DUPFD bugs
7268         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7269         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7270         cloexec bit on duplication.
7271         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7272
7273 2011-01-26  Bruno Haible  <bruno@clisp.org>
7274
7275         Enable memory leak tests on AIX.
7276         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7277         * tests/test-fprintf-posix3.c (main): Likewise.
7278
7279 2011-01-26  Bruno Haible  <bruno@clisp.org>
7280
7281         Tests for module 'get-rusage-data'.
7282         * modules/get-rusage-data-tests: New file.
7283         * tests/test-get-rusage-data.c: New file.
7284
7285         New module 'get-rusage-data'.
7286         * lib/resource-ext.h (get_rusage_data): New declaration.
7287         * lib/get-rusage-data.c: New file.
7288         * modules/get-rusage-data: New file.
7289
7290 2011-01-25  Bruno Haible  <bruno@clisp.org>
7291
7292         get-rusage-as: Allow for easier testing.
7293         * lib/resource-ext.h (get_rusage_as): Add comment.
7294         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7295         (main): New function for interactive testing.
7296
7297 2011-01-25  Bruno Haible  <bruno@clisp.org>
7298
7299         vma-iter: Treat Haiku like BeOS.
7300         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7301         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7302
7303 2011-01-25  Eric Blake  <eblake@redhat.com>
7304
7305         c-stack: fix regression on cygwin when libsigsegv is present
7306         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7307
7308 2011-01-24  Bruno Haible  <bruno@clisp.org>
7309
7310         vma-iter: Avoid empty intervals.
7311         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7312         on an empty interval.
7313
7314 2011-01-24  Jim Meyering  <meyering@redhat.com>
7315
7316         u64: remove unnecessary #include
7317         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7318
7319 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7322         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7323
7324 2011-01-23  Bruno Haible  <bruno@clisp.org>
7325
7326         New module 'vma-iter'.
7327         * lib/vma-iter.h: New file.
7328         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7329         * modules/vma-iter: New file.
7330         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7331         for get_rusage_as_via_iterator.
7332         (vma_iterate_callback): New function.
7333         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7334         * modules/get-rusage-as (Depends-on): Add vma-iter.
7335
7336 2011-01-23  Bruno Haible  <bruno@clisp.org>
7337
7338         uninorm: Tweak includes.
7339         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7340         Reported by Jim Meyering.
7341
7342 2011-01-23  Bruno Haible  <bruno@clisp.org>
7343
7344         get-rusage-as: Improve on NetBSD.
7345         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7346         /proc, like on FreeBSD.
7347
7348 2011-01-23  Jim Meyering  <meyering@redhat.com>
7349
7350         xreadlink.h: remove unnecessary #include
7351         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7352
7353         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7354         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7355
7356 2011-01-23  Bruno Haible  <bruno@clisp.org>
7357
7358         get-rusage-as: Fix bug.
7359         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7360         original limit when aborting the first loop.
7361
7362 2011-01-23  Bruno Haible  <bruno@clisp.org>
7363
7364         wctype: Ensure valid C syntax.
7365         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7366         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7367
7368 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7372         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7373         as they are needed only for configure's test case.
7374         This removes two unnecessary symbols from config.h.
7375
7376         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7377         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7379         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7380         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7381         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7382         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7383         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7384         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7385         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7386         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7389         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7390         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7391         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7392         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7393         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7394
7395 2011-01-21  Eric Blake  <eblake@redhat.com>
7396
7397         maintainer-makefile: work with older git for submodule check
7398         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7399         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7400         Reported by Matthias Bolte.
7401
7402         bootstrap: minor portability fixes
7403         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7404         (usage): Omit leading capital and trailing . on help phrases, per
7405         GNU Coding Standards.
7406         (check_versions, top level): Prefix messages with script name.
7407
7408 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7409
7410         bootstrap: support --no-git option
7411         * build-aux/bootstrap: Add --no-git option, to be used when
7412         --gnulib-srcdir points to the exact desired checkout.
7413
7414 2011-01-21  Eric Blake  <eblake@redhat.com>
7415
7416         strerror_r-posix: work with glibc 2.13
7417         * lib/strerror_r.c (strerror_r): Fix return type.
7418
7419 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7420             Bruno Haible  <bruno@clisp.org>
7421
7422         uN_strstr: New unit tests.
7423         * modules/unistr/u8-strstr-tests: New file.
7424         * modules/unistr/u16-strstr-tests: New file.
7425         * modules/unistr/u32-strstr-tests: New file.
7426         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7427         * tests/unistr/test-u8-strstr.c: New file.
7428         * tests/unistr/test-u16-strstr.c: New file.
7429         * tests/unistr/test-u32-strstr.c: New file.
7430
7431 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7432             Bruno Haible  <bruno@clisp.org>
7433
7434         Make uN_strstr functions O(n) worst-case.
7435         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7436         16-bit and 32-bit unit cases, use the unibyte algorithm from
7437         lib/mbsstr.c.
7438         * lib/unistr/u8-strstr.c: Include <string.h>.
7439         (UNIT_IS_UINT8_T): New macro.
7440         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7441         (U_STRLEN, U_STRNLEN): New macros.
7442         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7443         (U_STRLEN, U_STRNLEN): New macros.
7444         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7445         (configure.ac): Update required libunistring version.
7446         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7447         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7448         malloca.
7449         (configure.ac): Update required libunistring version.
7450         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7451         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7452         malloca.
7453         (configure.ac): Update required libunistring version.
7454
7455 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7456             Bruno Haible  <bruno@clisp.org>
7457
7458         Prepare for faster uN_strstr functions.
7459         * lib/str-kmp.h: Support definable UNITs.
7460         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7461         needle_len argument.
7462         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7463         * lib/mbscasestr.c (mbscasestr): Likewise.
7464
7465 2011-01-21  Pádraig Brady <P@draigBrady.com>
7466
7467         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7468         * tests/test-malloca.c (main): Unset the environment variable
7469         to greatly speed up the test.
7470         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7471         * modules/malloca-tests: Depend on unsetenv.
7472
7473 2011-01-21  Pádraig Brady <P@draigBrady.com>
7474
7475         ignore-value: remove stdint dependency
7476         * lib/ignore-value.h: Remove <stdint.h>
7477         * modules/ignore-value: Remove stdint dependency.
7478
7479 2011-01-21  Jim Meyering  <meyering@redhat.com>
7480
7481         maint.mk: adjust variable name to be consistent with other gl_ vars
7482         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7483         to be lower case.
7484
7485 2011-01-20  Jim Meyering  <meyering@redhat.com>
7486
7487         maint.mk: make "check" depend on public-submodule-commit by default
7488         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7489
7490 2011-01-20  Bruno Haible  <bruno@clisp.org>
7491
7492         mbfile, mbiter: Complete change from 2008-12-21.
7493         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7494         * m4/mbiter.m4 (gl_MBITER): Likewise.
7495
7496 2011-01-20  Jim Meyering  <meyering@redhat.com>
7497
7498         init.sh: insert space between each function name and "()"
7499         * tests/init.sh: Make it a little easier to see that a function's
7500         name is "warn_", and not "warn" when looking at the first part of
7501         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7502
7503 2011-01-20  Jim Meyering  <meyering@redhat.com>
7504
7505         mountlist: clean up code formatting
7506         * lib/mountlist.c (read_file_system_list): Split a long line,
7507         correct bracing style, use NULL in place of "(struct statfs *)0",
7508         don't parenthesize return value, add spaces around "=" and after
7509         ";-in-for-stmt".
7510
7511 2011-01-14  Markus Duft <mduft@gentoo.org>
7512
7513         mountlist: add support for Interix
7514         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7515         Apply statvfs to all entries of /dev/fs.
7516         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7517         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7518
7519 2011-01-20  Jim Meyering  <meyering@redhat.com>
7520
7521         maint.mk: improve the public-submodule-commit rule
7522         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7523         to suppress printing of its commands... unless V=1.
7524         Add git submodule's --quiet option to suppress printing of e.g.,
7525         "Entering gnulib" output.
7526         "cd" into $(srcdir) before running git submodule.
7527
7528 2011-01-20  Bruno Haible  <bruno@clisp.org>
7529
7530         include_next: Fix bug introduced on 2011-01-18.
7531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7532         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7533         ac_cv_header_... variable if the second argument is not 'check'.
7534         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7535         gl_NEXT_HEADERS_INTERNAL.
7536
7537 2011-01-20  Bruno Haible  <bruno@clisp.org>
7538
7539         Allow the user to avoid the GNULIB_TEST_* macros.
7540         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7541         Suggested by Paul Eggert.
7542
7543 2011-01-14  Jim Meyering  <meyering@redhat.com>
7544
7545         bootstrap: avoid failure when there is no .gitmodules file
7546         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7547         has been assigned to, even when its value is the empty string.
7548         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7549         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7550         Reported by John W. Eaton <jwe@gnu.org>.
7551
7552 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7553
7554         assume <ctype.h>, ..., <time.h> exist
7555         For years gnulib has been assuming the existence of the headers
7556         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7557         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7558         them, since they don't appear to be needed.
7559         * README (Portability guidelines): Document this.
7560         * lib/flock.c: Assume <fcntl.h> exists.
7561         * lib/regex_internal.h: Assume <locale.h> exists.
7562         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7563         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7564         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7565         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7566         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7567         * m4/regex.m4 (gl_REGEX): Likewise.
7568         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7569         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7570         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7571         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7572         * tests/test-argp.c: Likewise.
7573         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7574
7575         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7576         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7577         AA_APPLE_UNIVERSAL_BUILD.  See
7578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7579         * NEWS: Document this.
7580
7581 2011-01-19  Eric Blake  <eblake@redhat.com>
7582
7583         c-stack: assume stack overflow if SA_SIGINFO unsupported
7584         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7585         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7586         sigaction will work.
7587         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7588         behavior match Linux.
7589         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7590
7591         stdbool-tests: accomodate Haiku
7592         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7593
7594         binary-io: fix O_TEXT on Haiku
7595         * modules/binary-io (Depends-on): Add fcntl-h.
7596         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7597         than blindly undefining O_TEXT.
7598         Reported by Scott McCreary.
7599
7600 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         include_next: do not check for standard headers like stddef.h
7603
7604         I found this problem when modifying Emacs to use gnulib.
7605         I noticed that it added HAVE_STDDEF_H to config.h, even though
7606         gnulib always assumes <stddef.h> exists as per README and this
7607         symbol is unnecessary.
7608         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7609         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7610         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7611         faster for headers like stddef.h that are known to exist.
7612         (gl_CHECK_NEXT_HEADERS): Use it.
7613         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7614         rather than gl_CHECK_NEXT_HEADERS.
7615         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7616         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7617
7618 2011-01-18  Eric Blake  <eblake@redhat.com>
7619
7620         ansi-c++-opt: skip C++ dependency style if C++ is unused
7621         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7622         tests when we know C++ compilation is not desired.
7623         Reported by Scott McCreary.
7624
7625 2011-01-18  Bruno Haible  <bruno@clisp.org>
7626
7627         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7628         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7629         (main): Perform test also when getrlimit and setrlimit don't exist or
7630         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7631         limiting the address space size using setrlimit, compare the address
7632         space size before and after the the test.
7633         * tests/test-dprintf-posix2.c: Likewise.
7634         * tests/test-fprintf-posix3.sh: Update skip messages.
7635         * tests/test-dprintf-posix2.sh: Likewise.
7636         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7637         * modules/dprintf-posix-tests (Depends-on): Likewise.
7638         Reported by Bruce Korb <bkorb@gnu.org> and
7639         Gary V. Vaughan <gary@gnu.org>.
7640
7641 2011-01-18  Bruno Haible  <bruno@clisp.org>
7642
7643         get-rusage-as: Improvement for Cygwin.
7644         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7645         areas that are merely reserved.
7646
7647 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7648
7649         strftime: remove dependencies on multibyte modules
7650
7651         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7652         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7653         only if __osf__ is defined, and I suspect OSF doesn't need these
7654         other modules.  If my guess is wrong, we'll need to come up with a
7655         variant of strftime that doesn't need the multibyte modules.
7656
7657         I discovered this problem when attempting modify Emacs to use the
7658         strftime module.  With the previous gnulib, this caused Emacs to
7659         need 31 new files, ranging from lib/config.charset to
7660         m4/wint_t.m4.  This was overkill and I expect would be offputting
7661         to the Emacs maintainers.  After this change, only 6 new files are
7662         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7663         stdbool.m4, and tm_gmtoff.m4.
7664
7665         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7666         Suggested by Bruno Haible in
7667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7669         and do not check for wchar.h.
7670         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7671         (Depends-on): Remove mbrlen, mbsinit, wchar.
7672
7673 2011-01-18  Bruno Haible  <bruno@clisp.org>
7674
7675         Tests for module 'get-rusage-as'.
7676         * modules/get-rusage-as-tests: New file.
7677         * tests/test-get-rusage-as.c: New file.
7678
7679         New module 'get-rusage-as'.
7680         * modules/get-rusage-as: New file.
7681         * lib/resource-ext.h: New file.
7682         * lib/get-rusage-as.c: New file.
7683
7684 2011-01-17  Eric Blake  <eblake@redhat.com>
7685
7686         sigaction: relax license from LGPLv3+ to LGPLv2+
7687         * modules/sigaction (License): Relax to LGPLv2+.
7688
7689 2011-01-14  Bruno Haible  <bruno@clisp.org>
7690
7691         filemode: Make function declarations usable in C++ mode.
7692         * lib/filemode.h: Enclose function declarations in extern "C" block.
7693         Reported by John W. Eaton <jwe@gnu.org>.
7694
7695 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7696
7697         save-cwd: no longer include "xgetcwd.h"
7698         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7699         This avoids a compilation failure in projects that use save-cwd
7700         without also using the xgetcwd module.
7701
7702 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7703
7704         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7705         This is so that a program like Emacs, which needs only dtoastr,
7706         does not have to bother with distributing and compiling ftoastr
7707         and ldtoastr.
7708         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7709         * modules/dtoastr, modules/ldtoastr: New files.
7710         * modules/ftoastr: Now works just for 'float'.
7711         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7712         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7713         dtoastr.c, ldtoastr.c.
7714
7715 2011-01-11  Jim Meyering  <meyering@redhat.com>
7716
7717         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7718         There is no need to work around the lack of the fchdir function,
7719         since gnulib can now provide a replacement when required.
7720         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7721         * modules/save-cwd (Depends-on): Add fchdir.
7722
7723 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7724
7725         openat, save-cwd: avoid xmalloc
7726
7727         This removes a direct (but undocumented) dependency of openat on
7728         xalloc, along with an indirect dependency via save-cwd.  It also
7729         removes a dependency of save-cwd on xgetcwd, and thereby
7730         indirectly on xalloc.  This change causes the openat substitute
7731         to fall back on save_cwd when memory is tight, and for save_cwd to
7732         fail instead of dying when memory is tight, but that's good enough.
7733         Problem and initial idea for fix reported by Bastien Roucaries in
7734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7735
7736         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7737         xalloc.h (for xmalloc).
7738         (openat_proc_name): Use malloc, not xmalloc.
7739         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7740         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7741
7742         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7743         This avoids heap allocation for file names whose lengths are in
7744         the range 512..1023, with the upper bound increasing to at most
7745         4031 depending on the platform's PATH_MAX.  (We do not want
7746         pathmax.h here as it might supply a non-constant PATH_MAX.)
7747         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7748         Perhaps they should be moved to malloca.h?
7749         (OPENAT_BUFFER_SIZE): Use them.
7750
7751 2011-01-10  Bruno Haible  <bruno@clisp.org>
7752
7753         doc: Update users.txt.
7754         * users.txt: Add recutils.
7755
7756 2011-01-09  Karl Berry  <karl@gnu.org>
7757
7758         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7759
7760         * doc/configmake.texi: New file.
7761         * doc/gnulib.texi: Include it.
7762         * modules/configmake: Move documentation from here.
7763
7764 2011-01-09  Bruno Haible  <bruno@clisp.org>
7765
7766         Update to Unicode 6.0.0.
7767         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7768         (get_lbp): Update for Unicode 6.0.0.
7769         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7770         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7771         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7772         U+11001, U+11038..U+11046. Remove U+06DE.
7773         (uc_width): Fix bounds of planes.
7774         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7775         lib/uniwidth/width.c.
7776         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7777         trailing whitespace removed.
7778         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7779         without comments, but with the original copyright notice.
7780         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7781         * lib/unicase/ignorable.h: Likewise.
7782         * lib/unicase/tocasefold.h: Likewise.
7783         * lib/unicase/tolower.h: Likewise.
7784         * lib/unicase/totitle.h: Likewise.
7785         * lib/unicase/toupper.h: Likewise.
7786         * lib/unictype/bidi_of.h: Likewise.
7787         * lib/unictype/blocks.h: Likewise.
7788         * lib/unictype/categ_C.h: Likewise.
7789         * lib/unictype/categ_Cn.h: Likewise.
7790         * lib/unictype/categ_L.h: Likewise.
7791         * lib/unictype/categ_Ll.h: Likewise.
7792         * lib/unictype/categ_Lm.h: Likewise.
7793         * lib/unictype/categ_Lo.h: Likewise.
7794         * lib/unictype/categ_Lu.h: Likewise.
7795         * lib/unictype/categ_M.h: Likewise.
7796         * lib/unictype/categ_Mc.h: Likewise.
7797         * lib/unictype/categ_Me.h: Likewise.
7798         * lib/unictype/categ_Mn.h: Likewise.
7799         * lib/unictype/categ_N.h: Likewise.
7800         * lib/unictype/categ_Nd.h: Likewise.
7801         * lib/unictype/categ_No.h: Likewise.
7802         * lib/unictype/categ_P.h: Likewise.
7803         * lib/unictype/categ_Po.h: Likewise.
7804         * lib/unictype/categ_S.h: Likewise.
7805         * lib/unictype/categ_Sc.h: Likewise.
7806         * lib/unictype/categ_Sk.h: Likewise.
7807         * lib/unictype/categ_Sm.h: Likewise.
7808         * lib/unictype/categ_So.h: Likewise.
7809         * lib/unictype/categ_of.h: Likewise.
7810         * lib/unictype/combining.h: Likewise.
7811         * lib/unictype/ctype_alnum.h: Likewise.
7812         * lib/unictype/ctype_alpha.h: Likewise.
7813         * lib/unictype/ctype_graph.h: Likewise.
7814         * lib/unictype/ctype_lower.h: Likewise.
7815         * lib/unictype/ctype_print.h: Likewise.
7816         * lib/unictype/ctype_punct.h: Likewise.
7817         * lib/unictype/ctype_upper.h: Likewise.
7818         * lib/unictype/decdigit.h: Likewise.
7819         * lib/unictype/digit.h: Likewise.
7820         * lib/unictype/numeric.h: Likewise.
7821         * lib/unictype/pr_alphabetic.h: Likewise.
7822         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7823         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7824         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7825         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7826         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7827         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7828         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7829         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7830         * lib/unictype/pr_case_ignorable.h: Likewise.
7831         * lib/unictype/pr_cased.h: Likewise.
7832         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7833         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7834         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7835         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7836         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7837         * lib/unictype/pr_combining.h: Likewise.
7838         * lib/unictype/pr_composite.h: Likewise.
7839         * lib/unictype/pr_currency_symbol.h: Likewise.
7840         * lib/unictype/pr_decimal_digit.h: Likewise.
7841         * lib/unictype/pr_deprecated.h: Likewise.
7842         * lib/unictype/pr_format_control.h: Likewise.
7843         * lib/unictype/pr_grapheme_base.h: Likewise.
7844         * lib/unictype/pr_grapheme_extend.h: Likewise.
7845         * lib/unictype/pr_grapheme_link.h: Likewise.
7846         * lib/unictype/pr_id_continue.h: Likewise.
7847         * lib/unictype/pr_id_start.h: Likewise.
7848         * lib/unictype/pr_ideographic.h: Likewise.
7849         * lib/unictype/pr_lowercase.h: Likewise.
7850         * lib/unictype/pr_math.h: Likewise.
7851         * lib/unictype/pr_numeric.h: Likewise.
7852         * lib/unictype/pr_other_alphabetic.h: Likewise.
7853         * lib/unictype/pr_other_id_continue.h: Likewise.
7854         * lib/unictype/pr_other_math.h: Likewise.
7855         * lib/unictype/pr_punctuation.h: Likewise.
7856         * lib/unictype/pr_sentence_terminal.h: Likewise.
7857         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7858         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7859         * lib/unictype/pr_unified_ideograph.h: Likewise.
7860         * lib/unictype/pr_uppercase.h: Likewise.
7861         * lib/unictype/pr_xid_continue.h: Likewise.
7862         * lib/unictype/pr_xid_start.h: Likewise.
7863         * lib/unictype/scripts.h: Likewise.
7864         * lib/unictype/scripts_byname.gperf: Likewise.
7865         * lib/unictype/sy_java_ident.h: Likewise.
7866         * lib/unigbrk/gbrkprop.h: Likewise.
7867         * lib/unilbrk/lbrkprop1.h: Likewise.
7868         * lib/unilbrk/lbrkprop2.h: Likewise.
7869         * lib/uninorm/decomposition-table2.h: Likewise.
7870         * lib/uniwbrk/wbrkprop.h: Likewise.
7871         * tests/unicase/test-cased.c: Likewise.
7872         * tests/unicase/test-ignorable.c: Likewise.
7873         * tests/unicase/test-uc_tolower.c: Likewise.
7874         * tests/unicase/test-uc_totitle.c: Likewise.
7875         * tests/unicase/test-uc_toupper.c: Likewise.
7876         * tests/unictype/test-categ_C.c: Likewise.
7877         * tests/unictype/test-categ_Cn.c: Likewise.
7878         * tests/unictype/test-categ_L.c: Likewise.
7879         * tests/unictype/test-categ_Ll.c: Likewise.
7880         * tests/unictype/test-categ_Lm.c: Likewise.
7881         * tests/unictype/test-categ_Lo.c: Likewise.
7882         * tests/unictype/test-categ_Lu.c: Likewise.
7883         * tests/unictype/test-categ_M.c: Likewise.
7884         * tests/unictype/test-categ_Mc.c: Likewise.
7885         * tests/unictype/test-categ_Me.c: Likewise.
7886         * tests/unictype/test-categ_Mn.c: Likewise.
7887         * tests/unictype/test-categ_N.c: Likewise.
7888         * tests/unictype/test-categ_Nd.c: Likewise.
7889         * tests/unictype/test-categ_No.c: Likewise.
7890         * tests/unictype/test-categ_P.c: Likewise.
7891         * tests/unictype/test-categ_Po.c: Likewise.
7892         * tests/unictype/test-categ_S.c: Likewise.
7893         * tests/unictype/test-categ_Sc.c: Likewise.
7894         * tests/unictype/test-categ_Sk.c: Likewise.
7895         * tests/unictype/test-categ_Sm.c: Likewise.
7896         * tests/unictype/test-categ_So.c: Likewise.
7897         * tests/unictype/test-ctype_alnum.c: Likewise.
7898         * tests/unictype/test-ctype_alpha.c: Likewise.
7899         * tests/unictype/test-ctype_graph.c: Likewise.
7900         * tests/unictype/test-ctype_lower.c: Likewise.
7901         * tests/unictype/test-ctype_print.c: Likewise.
7902         * tests/unictype/test-ctype_punct.c: Likewise.
7903         * tests/unictype/test-ctype_upper.c: Likewise.
7904         * tests/unictype/test-decdigit.h: Likewise.
7905         * tests/unictype/test-digit.h: Likewise.
7906         * tests/unictype/test-numeric.h: Likewise.
7907         * tests/unictype/test-pr_alphabetic.c: Likewise.
7908         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7909         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7910         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7911         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7912         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7913         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7914         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7915         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7916         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7917         * tests/unictype/test-pr_cased.c: Likewise.
7918         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7919         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7920         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7921         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7922         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7923         * tests/unictype/test-pr_combining.c: Likewise.
7924         * tests/unictype/test-pr_composite.c: Likewise.
7925         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7926         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7927         * tests/unictype/test-pr_deprecated.c: Likewise.
7928         * tests/unictype/test-pr_format_control.c: Likewise.
7929         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7930         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7931         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7932         * tests/unictype/test-pr_id_continue.c: Likewise.
7933         * tests/unictype/test-pr_id_start.c: Likewise.
7934         * tests/unictype/test-pr_ideographic.c: Likewise.
7935         * tests/unictype/test-pr_lowercase.c: Likewise.
7936         * tests/unictype/test-pr_math.c: Likewise.
7937         * tests/unictype/test-pr_numeric.c: Likewise.
7938         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7939         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7940         * tests/unictype/test-pr_other_math.c: Likewise.
7941         * tests/unictype/test-pr_punctuation.c: Likewise.
7942         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7943         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7944         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7945         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7946         * tests/unictype/test-pr_uppercase.c: Likewise.
7947         * tests/unictype/test-pr_xid_continue.c: Likewise.
7948         * tests/unictype/test-pr_xid_start.c: Likewise.
7949         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7950         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7951         changes.
7952         * lib/unictype/categ_Cc.h: Likewise.
7953         * lib/unictype/categ_Cf.h: Likewise.
7954         * lib/unictype/categ_Co.h: Likewise.
7955         * lib/unictype/categ_Cs.h: Likewise.
7956         * lib/unictype/categ_Lt.h: Likewise.
7957         * lib/unictype/categ_Nl.h: Likewise.
7958         * lib/unictype/categ_Pc.h: Likewise.
7959         * lib/unictype/categ_Pd.h: Likewise.
7960         * lib/unictype/categ_Pe.h: Likewise.
7961         * lib/unictype/categ_Pf.h: Likewise.
7962         * lib/unictype/categ_Pi.h: Likewise.
7963         * lib/unictype/categ_Ps.h: Likewise.
7964         * lib/unictype/categ_Z.h: Likewise.
7965         * lib/unictype/categ_Zl.h: Likewise.
7966         * lib/unictype/categ_Zp.h: Likewise.
7967         * lib/unictype/categ_Zs.h: Likewise.
7968         * lib/unictype/ctype_blank.h: Likewise.
7969         * lib/unictype/ctype_cntrl.h: Likewise.
7970         * lib/unictype/ctype_digit.h: Likewise.
7971         * lib/unictype/ctype_space.h: Likewise.
7972         * lib/unictype/ctype_xdigit.h: Likewise.
7973         * lib/unictype/mirror.h: Likewise.
7974         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7975         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7976         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7977         * lib/unictype/pr_bidi_control.h: Likewise.
7978         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7979         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7980         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7981         * lib/unictype/pr_bidi_pdf.h: Likewise.
7982         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7983         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7984         * lib/unictype/pr_dash.h: Likewise.
7985         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7986         * lib/unictype/pr_diacritic.h: Likewise.
7987         * lib/unictype/pr_extender.h: Likewise.
7988         * lib/unictype/pr_hex_digit.h: Likewise.
7989         * lib/unictype/pr_hyphen.h: Likewise.
7990         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7991         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7992         * lib/unictype/pr_ignorable_control.h: Likewise.
7993         * lib/unictype/pr_iso_control.h: Likewise.
7994         * lib/unictype/pr_join_control.h: Likewise.
7995         * lib/unictype/pr_left_of_pair.h: Likewise.
7996         * lib/unictype/pr_line_separator.h: Likewise.
7997         * lib/unictype/pr_logical_order_exception.h: Likewise.
7998         * lib/unictype/pr_non_break.h: Likewise.
7999         * lib/unictype/pr_not_a_character.h: Likewise.
8000         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8001         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8002         * lib/unictype/pr_other_id_start.h: Likewise.
8003         * lib/unictype/pr_other_lowercase.h: Likewise.
8004         * lib/unictype/pr_other_uppercase.h: Likewise.
8005         * lib/unictype/pr_paired_punctuation.h: Likewise.
8006         * lib/unictype/pr_paragraph_separator.h: Likewise.
8007         * lib/unictype/pr_pattern_syntax.h: Likewise.
8008         * lib/unictype/pr_pattern_white_space.h: Likewise.
8009         * lib/unictype/pr_private_use.h: Likewise.
8010         * lib/unictype/pr_quotation_mark.h: Likewise.
8011         * lib/unictype/pr_radical.h: Likewise.
8012         * lib/unictype/pr_soft_dotted.h: Likewise.
8013         * lib/unictype/pr_space.h: Likewise.
8014         * lib/unictype/pr_titlecase.h: Likewise.
8015         * lib/unictype/pr_variation_selector.h: Likewise.
8016         * lib/unictype/pr_white_space.h: Likewise.
8017         * lib/unictype/pr_zero_width.h: Likewise.
8018         * lib/unictype/sy_c_ident.h: Likewise.
8019         * lib/unictype/sy_c_whitespace.h: Likewise.
8020         * lib/unictype/sy_java_whitespace.h: Likewise.
8021         * lib/uninorm/composition-table.gperf: Likewise.
8022         * lib/uninorm/decomposition-table1.h: Likewise.
8023         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8024         LB8.
8025         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8026         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8027         * modules/unictype/*: Bump version number of expected libunistring
8028         version.
8029
8030 2011-01-09  Bruno Haible  <bruno@clisp.org>
8031
8032         Update to Unicode 5.2.0.
8033         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8034         trailing whitespace removed.
8035
8036 2011-01-09  Bruno Haible  <bruno@clisp.org>
8037
8038         New Unicode character properties, from Unicode 5.2.0.
8039         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8040         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8041         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8042         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8043         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8044         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8045         uc_is_property_cased, uc_is_property_case_ignorable,
8046         uc_is_property_changes_when_lowercased,
8047         uc_is_property_changes_when_uppercased,
8048         uc_is_property_changes_when_titlecased,
8049         uc_is_property_changes_when_casefolded,
8050         uc_is_property_changes_when_casemapped): New declarations.
8051         * lib/unictype/pr_byname.gperf: Add the new properties.
8052         * modules/unictype/property-byname (Depends-on): Depend on the new
8053         properties modules.
8054         * modules/unictype/property-all (Depends-on): Likewise.
8055         * MODULES.html.sh (Unicode string functions): Add
8056         unictype/property-case-ignorable, unictype/property-cased,
8057         unictype/property-changes-when-casefolded,
8058         unictype/property-changes-when-casemapped,
8059         unictype/property-changes-when-lowercased,
8060         unictype/property-changes-when-titlecased,
8061         unictype/property-changes-when-uppercased.
8062
8063         New module 'unictype/property-changes-when-casemapped'.
8064         * modules/unictype/property-changes-when-casemapped: New file.
8065         * lib/unictype/pr_changes_when_casemapped.c: New file.
8066         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8067         generated by gen-uni-tables.
8068         * modules/unictype/property-changes-when-casemapped-tests: New file.
8069         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8070         automatically generated by gen-uni-tables.
8071
8072         New module 'unictype/property-changes-when-casefolded'.
8073         * modules/unictype/property-changes-when-casefolded: New file.
8074         * lib/unictype/pr_changes_when_casefolded.c: New file.
8075         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8076         generated by gen-uni-tables.
8077         * modules/unictype/property-changes-when-casefolded-tests: New file.
8078         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8079         automatically generated by gen-uni-tables.
8080
8081         New module 'unictype/property-changes-when-titlecased'.
8082         * modules/unictype/property-changes-when-titlecased: New file.
8083         * lib/unictype/pr_changes_when_titlecased.c: New file.
8084         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8085         generated by gen-uni-tables.
8086         * modules/unictype/property-changes-when-titlecased-tests: New file.
8087         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8088         automatically generated by gen-uni-tables.
8089
8090         New module 'unictype/property-changes-when-uppercased'.
8091         * modules/unictype/property-changes-when-uppercased: New file.
8092         * lib/unictype/pr_changes_when_uppercased.c: New file.
8093         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8094         generated by gen-uni-tables.
8095         * modules/unictype/property-changes-when-uppercased-tests: New file.
8096         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8097         automatically generated by gen-uni-tables.
8098
8099         New module 'unictype/property-changes-when-lowercased'.
8100         * modules/unictype/property-changes-when-lowercased: New file.
8101         * lib/unictype/pr_changes_when_lowercased.c: New file.
8102         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8103         generated by gen-uni-tables.
8104         * modules/unictype/property-changes-when-lowercased-tests: New file.
8105         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8106         automatically generated by gen-uni-tables.
8107
8108         New module 'unictype/property-case-ignorable'.
8109         * modules/unictype/property-case-ignorable: New file.
8110         * lib/unictype/pr_case_ignorable.c: New file.
8111         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8112         by gen-uni-tables.
8113         * modules/unictype/property-case-ignorable-tests: New file.
8114         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8115         generated by gen-uni-tables.
8116
8117         New module 'unictype/property-cased'.
8118         * modules/unictype/property-cased: New file.
8119         * lib/unictype/pr_cased.c: New file.
8120         * lib/unictype/pr_cased.h: New file, automatically generated by
8121         gen-uni-tables.
8122         * modules/unictype/property-cased-tests: New file.
8123         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8124         gen-uni-tables.
8125
8126 2011-01-09  Bruno Haible  <bruno@clisp.org>
8127
8128         Update to Unicode 5.2.0.
8129         * lib/gen-uni-tables.c (output_predicate, output_category,
8130         output_combclass, output_bidi_category, output_decimal_digit_test,
8131         output_decimal_digit, output_digit_test, output_digit,
8132         output_numeric_test, output_numeric, output_mirror, output_scripts,
8133         output_scripts_byname, output_blocks, output_ident_category): Fix
8134         comment header.
8135         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8136         get_wbp.
8137         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8138         items.
8139         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8140         Changes_When_Lowercased, Changes_When_Uppercased,
8141         Changes_When_Titlecased, Changes_When_Casefolded,
8142         Changes_When_Casemapped.
8143         (is_property_alphabetic, is_property_default_ignorable_code_point):
8144         Update for Unicode 5.2.0.
8145         (is_property_cased, is_property_case_ignorable,
8146         is_property_changes_when_lowercased,
8147         is_property_changes_when_uppercased,
8148         is_property_changes_when_titlecased,
8149         is_property_changes_when_casefolded,
8150         is_property_changes_when_casemapped): New functions.
8151         (output_properties): Output also the properties cased, case_ignorable,
8152         changes_when_lowercased, changes_when_uppercased,
8153         changes_when_titlecased, changes_when_casefolded,
8154         changes_when_casemapped.
8155         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8156         Unicode TR#11 revision 17 -> 19.
8157         (LBP_CP): New enumeration value.
8158         (LBP_*): Adjust values accordingly.
8159         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8160         TR#14 revision 22 -> 24.
8161         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8162         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8163         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8164         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8165         is_WBP_MIDLETTER.
8166         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8167         the code1 and code2 of each composition rule.
8168         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8169         * lib/unicase/ignorable.h: Likewise.
8170         * lib/unicase/tocasefold.h: Likewise.
8171         * lib/unicase/tolower.h: Likewise.
8172         * lib/unicase/totitle.h: Likewise.
8173         * lib/unicase/toupper.h: Likewise.
8174         * lib/unictype/bidi_of.h: Likewise.
8175         * lib/unictype/blocks.h: Likewise.
8176         * lib/unictype/categ_C.h: Likewise.
8177         * lib/unictype/categ_Cf.h: Likewise.
8178         * lib/unictype/categ_Cn.h: Likewise.
8179         * lib/unictype/categ_L.h: Likewise.
8180         * lib/unictype/categ_Ll.h: Likewise.
8181         * lib/unictype/categ_Lm.h: Likewise.
8182         * lib/unictype/categ_Lo.h: Likewise.
8183         * lib/unictype/categ_Lu.h: Likewise.
8184         * lib/unictype/categ_M.h: Likewise.
8185         * lib/unictype/categ_Mc.h: Likewise.
8186         * lib/unictype/categ_Mn.h: Likewise.
8187         * lib/unictype/categ_N.h: Likewise.
8188         * lib/unictype/categ_Nd.h: Likewise.
8189         * lib/unictype/categ_Nl.h: Likewise.
8190         * lib/unictype/categ_No.h: Likewise.
8191         * lib/unictype/categ_P.h: Likewise.
8192         * lib/unictype/categ_Pd.h: Likewise.
8193         * lib/unictype/categ_Po.h: Likewise.
8194         * lib/unictype/categ_S.h: Likewise.
8195         * lib/unictype/categ_Sc.h: Likewise.
8196         * lib/unictype/categ_So.h: Likewise.
8197         * lib/unictype/categ_of.h: Likewise.
8198         * lib/unictype/combining.h: Likewise.
8199         * lib/unictype/ctype_alnum.h: Likewise.
8200         * lib/unictype/ctype_alpha.h: Likewise.
8201         * lib/unictype/ctype_graph.h: Likewise.
8202         * lib/unictype/ctype_lower.h: Likewise.
8203         * lib/unictype/ctype_print.h: Likewise.
8204         * lib/unictype/ctype_punct.h: Likewise.
8205         * lib/unictype/ctype_upper.h: Likewise.
8206         * lib/unictype/decdigit.h: Likewise.
8207         * lib/unictype/digit.h: Likewise.
8208         * lib/unictype/numeric.h: Likewise.
8209         * lib/unictype/pr_alphabetic.h: Likewise.
8210         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8211         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8212         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8213         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8214         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8215         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8216         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8217         * lib/unictype/pr_combining.h: Likewise.
8218         * lib/unictype/pr_composite.h: Likewise.
8219         * lib/unictype/pr_currency_symbol.h: Likewise.
8220         * lib/unictype/pr_dash.h: Likewise.
8221         * lib/unictype/pr_decimal_digit.h: Likewise.
8222         * lib/unictype/pr_deprecated.h: Likewise.
8223         * lib/unictype/pr_diacritic.h: Likewise.
8224         * lib/unictype/pr_extender.h: Likewise.
8225         * lib/unictype/pr_grapheme_base.h: Likewise.
8226         * lib/unictype/pr_grapheme_extend.h: Likewise.
8227         * lib/unictype/pr_grapheme_link.h: Likewise.
8228         * lib/unictype/pr_id_continue.h: Likewise.
8229         * lib/unictype/pr_id_start.h: Likewise.
8230         * lib/unictype/pr_ideographic.h: Likewise.
8231         * lib/unictype/pr_ignorable_control.h: Likewise.
8232         * lib/unictype/pr_logical_order_exception.h: Likewise.
8233         * lib/unictype/pr_lowercase.h: Likewise.
8234         * lib/unictype/pr_numeric.h: Likewise.
8235         * lib/unictype/pr_other_alphabetic.h: Likewise.
8236         * lib/unictype/pr_punctuation.h: Likewise.
8237         * lib/unictype/pr_sentence_terminal.h: Likewise.
8238         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8239         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8240         * lib/unictype/pr_unified_ideograph.h: Likewise.
8241         * lib/unictype/pr_uppercase.h: Likewise.
8242         * lib/unictype/pr_xid_continue.h: Likewise.
8243         * lib/unictype/pr_xid_start.h: Likewise.
8244         * lib/unictype/pr_zero_width.h: Likewise.
8245         * lib/unictype/scripts.h: Likewise.
8246         * lib/unictype/scripts_byname.gperf: Likewise.
8247         * lib/unictype/sy_java_ident.h: Likewise.
8248         * lib/unigbrk/gbrkprop.h: Likewise.
8249         * lib/unilbrk/lbrkprop1.h: Likewise.
8250         * lib/unilbrk/lbrkprop2.h: Likewise.
8251         * lib/unilbrk/lbrktables.h: Likewise.
8252         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8253         LBP_CP. Implement rule LB30.
8254         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8255         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8256         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8257         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8258         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8259         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8260         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8261         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8262         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8263         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8264         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8265         bits instead of 16 bits in the code1 and code2 of each composition
8266         rule.
8267         (uc_composition): Update for Unicode 5.2.0.
8268         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8269         * lib/uninorm/decomposition-table2.h: Likewise.
8270         * lib/uniwbrk/wbrkprop.h: Likewise.
8271         * tests/unicase/test-cased.c: Likewise.
8272         * tests/unicase/test-ignorable.c: Likewise.
8273         * tests/unicase/test-uc_tolower.c: Likewise.
8274         * tests/unicase/test-uc_totitle.c: Likewise.
8275         * tests/unicase/test-uc_toupper.c: Likewise.
8276         * tests/unictype/test-categ_C.c: Likewise.
8277         * tests/unictype/test-categ_Cf.c: Likewise.
8278         * tests/unictype/test-categ_Cn.c: Likewise.
8279         * tests/unictype/test-categ_L.c: Likewise.
8280         * tests/unictype/test-categ_Ll.c: Likewise.
8281         * tests/unictype/test-categ_Lm.c: Likewise.
8282         * tests/unictype/test-categ_Lo.c: Likewise.
8283         * tests/unictype/test-categ_Lu.c: Likewise.
8284         * tests/unictype/test-categ_M.c: Likewise.
8285         * tests/unictype/test-categ_Mc.c: Likewise.
8286         * tests/unictype/test-categ_Mn.c: Likewise.
8287         * tests/unictype/test-categ_N.c: Likewise.
8288         * tests/unictype/test-categ_Nd.c: Likewise.
8289         * tests/unictype/test-categ_Nl.c: Likewise.
8290         * tests/unictype/test-categ_No.c: Likewise.
8291         * tests/unictype/test-categ_P.c: Likewise.
8292         * tests/unictype/test-categ_Pd.c: Likewise.
8293         * tests/unictype/test-categ_Po.c: Likewise.
8294         * tests/unictype/test-categ_S.c: Likewise.
8295         * tests/unictype/test-categ_Sc.c: Likewise.
8296         * tests/unictype/test-categ_So.c: Likewise.
8297         * tests/unictype/test-ctype_alnum.c: Likewise.
8298         * tests/unictype/test-ctype_alpha.c: Likewise.
8299         * tests/unictype/test-ctype_graph.c: Likewise.
8300         * tests/unictype/test-ctype_lower.c: Likewise.
8301         * tests/unictype/test-ctype_print.c: Likewise.
8302         * tests/unictype/test-ctype_punct.c: Likewise.
8303         * tests/unictype/test-ctype_upper.c: Likewise.
8304         * tests/unictype/test-decdigit.h: Likewise.
8305         * tests/unictype/test-digit.h: Likewise.
8306         * tests/unictype/test-numeric.h: Likewise.
8307         * tests/unictype/test-pr_alphabetic.c: Likewise.
8308         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8309         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8310         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8311         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8312         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8313         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8314         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8315         * tests/unictype/test-pr_combining.c: Likewise.
8316         * tests/unictype/test-pr_composite.c: Likewise.
8317         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8318         * tests/unictype/test-pr_dash.c: Likewise.
8319         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8320         * tests/unictype/test-pr_deprecated.c: Likewise.
8321         * tests/unictype/test-pr_diacritic.c: Likewise.
8322         * tests/unictype/test-pr_extender.c: Likewise.
8323         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8324         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8325         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8326         * tests/unictype/test-pr_id_continue.c: Likewise.
8327         * tests/unictype/test-pr_id_start.c: Likewise.
8328         * tests/unictype/test-pr_ideographic.c: Likewise.
8329         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8330         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8331         * tests/unictype/test-pr_lowercase.c: Likewise.
8332         * tests/unictype/test-pr_numeric.c: Likewise.
8333         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8334         * tests/unictype/test-pr_punctuation.c: Likewise.
8335         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8336         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8337         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8338         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8339         * tests/unictype/test-pr_uppercase.c: Likewise.
8340         * tests/unictype/test-pr_xid_continue.c: Likewise.
8341         * tests/unictype/test-pr_xid_start.c: Likewise.
8342         * tests/unictype/test-pr_zero_width.c: Likewise.
8343         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8344         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8345         changed behaviour: line breaking is now disallowed between a letter
8346         or '=' and '('.
8347         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8348         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8349         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8350         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8351         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8352         lib/uniwidth/width.c.
8353         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8354         without comments, but with the original copyright notice.
8355         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8356         changes.
8357         * lib/unictype/categ_Cc.h: Likewise.
8358         * lib/unictype/categ_Co.h: Likewise.
8359         * lib/unictype/categ_Cs.h: Likewise.
8360         * lib/unictype/categ_Lt.h: Likewise.
8361         * lib/unictype/categ_Me.h: Likewise.
8362         * lib/unictype/categ_Pc.h: Likewise.
8363         * lib/unictype/categ_Pe.h: Likewise.
8364         * lib/unictype/categ_Pf.h: Likewise.
8365         * lib/unictype/categ_Pi.h: Likewise.
8366         * lib/unictype/categ_Ps.h: Likewise.
8367         * lib/unictype/categ_Sk.h: Likewise.
8368         * lib/unictype/categ_Sm.h: Likewise.
8369         * lib/unictype/categ_Z.h: Likewise.
8370         * lib/unictype/categ_Zl.h: Likewise.
8371         * lib/unictype/categ_Zp.h: Likewise.
8372         * lib/unictype/categ_Zs.h: Likewise.
8373         * lib/unictype/ctype_blank.h: Likewise.
8374         * lib/unictype/ctype_cntrl.h: Likewise.
8375         * lib/unictype/ctype_digit.h: Likewise.
8376         * lib/unictype/ctype_space.h: Likewise.
8377         * lib/unictype/ctype_xdigit.h: Likewise.
8378         * lib/unictype/mirror.h: Likewise.
8379         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8380         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8381         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8382         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8383         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8384         * lib/unictype/pr_bidi_control.h: Likewise.
8385         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8386         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8387         * lib/unictype/pr_bidi_pdf.h: Likewise.
8388         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8389         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8390         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8391         * lib/unictype/pr_format_control.h: Likewise.
8392         * lib/unictype/pr_hex_digit.h: Likewise.
8393         * lib/unictype/pr_hyphen.h: Likewise.
8394         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8395         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8396         * lib/unictype/pr_iso_control.h: Likewise.
8397         * lib/unictype/pr_join_control.h: Likewise.
8398         * lib/unictype/pr_left_of_pair.h: Likewise.
8399         * lib/unictype/pr_line_separator.h: Likewise.
8400         * lib/unictype/pr_math.h: Likewise.
8401         * lib/unictype/pr_non_break.h: Likewise.
8402         * lib/unictype/pr_not_a_character.h: Likewise.
8403         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8404         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8405         * lib/unictype/pr_other_id_continue.h: Likewise.
8406         * lib/unictype/pr_other_id_start.h: Likewise.
8407         * lib/unictype/pr_other_lowercase.h: Likewise.
8408         * lib/unictype/pr_other_math.h: Likewise.
8409         * lib/unictype/pr_other_uppercase.h: Likewise.
8410         * lib/unictype/pr_paired_punctuation.h: Likewise.
8411         * lib/unictype/pr_paragraph_separator.h: Likewise.
8412         * lib/unictype/pr_pattern_syntax.h: Likewise.
8413         * lib/unictype/pr_pattern_white_space.h: Likewise.
8414         * lib/unictype/pr_private_use.h: Likewise.
8415         * lib/unictype/pr_quotation_mark.h: Likewise.
8416         * lib/unictype/pr_radical.h: Likewise.
8417         * lib/unictype/pr_soft_dotted.h: Likewise.
8418         * lib/unictype/pr_space.h: Likewise.
8419         * lib/unictype/pr_titlecase.h: Likewise.
8420         * lib/unictype/pr_variation_selector.h: Likewise.
8421         * lib/unictype/pr_white_space.h: Likewise.
8422         * lib/unictype/sy_c_ident.h: Likewise.
8423         * lib/unictype/sy_c_whitespace.h: Likewise.
8424         * lib/unictype/sy_java_whitespace.h: Likewise.
8425         * modules/uni*/*: Bump version number of expected libunistring version.
8426         Reported by Simon Josefsson.
8427
8428 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8429
8430         useless-if-before-free: fix typo in --help and make the internal,
8431         automatic version date update process work once again.
8432         --help output contained a NUL character instead of the
8433         backslash-zero that was intended.  Also, the "must lie within
8434         the first 8 lines" line is on line 9, and hence not getting
8435         automatically updated.
8436         * build-aux/useless-if-before-free: Fix the former by adding a
8437         backslash, and the latter by condensing the three lines of what-it-does
8438         to a single line, leaving one line of slack for the future.
8439
8440 2011-01-09  Bruno Haible  <bruno@clisp.org>
8441
8442         uniwidth/width: Fix width of U+1D173..U+1D17A.
8443         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8444         symbolic_width, output_width_property_test): New functions.
8445         (main): Invoke output_nonspacing_property, output_width_property_test.
8446         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8447         U+1D173..U+1D17A.
8448         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8449         1.
8450         * modules/uniwidth/*: Bump version number of expected libunistring
8451         version.
8452         * modules/unilbrk/*: Likewise.
8453
8454 2011-01-08  Bruno Haible  <bruno@clisp.org>
8455
8456         uninorm tests: Preserve copyright of Unicode data file.
8457         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8458         Mention modifications.
8459
8460 2011-01-08  Bruno Haible  <bruno@clisp.org>
8461
8462         gen-uni-tables: Prepare for Unicode 5.2.0.
8463         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8464         (debug_output_lbp, output_lbp): Update.
8465
8466 2011-01-08  Bruno Haible  <bruno@clisp.org>
8467
8468         unilbrk: Clarify gen-uni-tables.c code.
8469         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8470         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8471         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8472
8473 2011-01-07  Bruno Haible  <bruno@clisp.org>
8474
8475         strtod: Restore errno when successfully parsing Infinity or NaN.
8476         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8477         restore the original errno.
8478
8479 2011-01-07  Bruno Haible  <bruno@clisp.org>
8480
8481         remove test: Avoid failure on HP-UX 11.
8482         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8483
8484 2011-01-07  Bruno Haible  <bruno@clisp.org>
8485
8486         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8487         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8488         error code.
8489
8490 2011-01-07  Pádraig Brady <P@draigBrady.com>
8491
8492         ignore-value: fixup comments, and add Eric Blake
8493         as an author since he rewrote the macros.
8494         * lib/ignore-value.h (ignore_value):  State that
8495         we now support aggregates.  Also specify exactly
8496         when the GCC warn_unused_result feature was added.
8497
8498 2011-01-06  Eric Blake  <eblake@redhat.com>
8499
8500         ignore-value: support aggregate types
8501         * lib/ignore-value.h (ignore_value): Provide separate gcc
8502         definition.
8503         * modules/ignore-value-tests: New test module.
8504         * tests/test-ignore-value.c: New test.
8505
8506         maint.mk: improve sc_prohibit_strcmp regex
8507         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8508         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8509         definition of STRNEQ.
8510
8511         signal: work around Haiku issue with SIGBUS
8512         * lib/siglist.h: Add comment.
8513         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8514         strsignal's favoring of SIGSEGV.
8515         * tests/test-signal.c (main): Avoid test failure.
8516         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8517         Reported by Scott McCreary.
8518
8519         maint.mk: add pre-release check to ensure submodule commits are public
8520         * top/maint.mk (public-submodule-commit): New rule.
8521         (submodule-checks): New variable.
8522         (alpha beta stable): Depend on the variable.
8523
8524 2011-01-05  Pádraig Brady <P@draigBrady.com>
8525         and Jim Meyering  <meyering@redhat.com>
8526
8527         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8528         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8529         (ATTRIBUTE_DEPRECATED): Define.
8530         (_ignore_case): New function.
8531         (ignore_value): New macro, to replace the old function.
8532         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8533         * modules/ignore-value (Depends-on): Add stdint.
8534
8535 2011-01-04  Eric Blake  <eblake@redhat.com>
8536
8537         doc: regenerate INSTALL
8538         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8539         @firstparagraphindent support, now that autoconf dropped it.
8540         (INSTALL_PRELUDE): Reinstate old macro.
8541         * doc/install.texi: Resync from autoconf.
8542         * doc/INSTALL: Reflect recent autoconf update.
8543         * doc/INSTALL.ISO: Likewise.
8544         * doc/INSTALL.UTF-8: Likewise.
8545         Reported by Karl Berry.
8546
8547 2011-01-04  Bruce Korb  <address@hidden>
8548
8549         git-version-gen: avoid a sub-shell
8550         * build-aux/git-version-gen: Redirect stderr in `...` via
8551         "exec 2>...", rather than via an added sub-shell.
8552
8553 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8554
8555         git-version-gen: use (...) rather than sh -c '...'
8556         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8557         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8558
8559 2011-01-03  Jim Meyering  <meyering@redhat.com>
8560
8561         git-version-gen: convert leading TABs to spaces
8562         * build-aux/git-version-gen: Expand leading TABs.
8563
8564         git-version-gen: handle failed "git rev-list"
8565         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8566         from git and proceeding as if it had succeeded but printed no SHA1
8567         checksums, suppress the diagnostic and handle the failure.
8568         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8569
8570         git-version-gen: include command name in one more diagnostic
8571         * build-aux/git-version-gen: When the required .tarball-version file
8572         was missing or unreadable, you might see the diagnostic from "cat",
8573         but no trace of the name of the invoking script.  Now, you still see
8574         the diagnostic from cat, but also get one from "git-version-gen: ".
8575         Inspired by a patch from Bruce Korb.
8576
8577         update-copyright: adjust test to match changed code
8578         * tests/test-update-copyright.sh: Change test's expected output
8579         to match new actual output.
8580
8581 2011-01-02  Bruno Haible  <bruno@clisp.org>
8582
8583         getlogin_r: Avoid test failure on HP-UX 11.
8584         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8585         ERANGE when the second argument is zero.
8586         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8587         portability problem.
8588
8589 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8590
8591         * build-aux/update-copyright: doc Simon's changes
8592
8593 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8594
8595         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8596         environment variable.
8597
8598 2011-01-02  Bruno Haible  <bruno@clisp.org>
8599
8600         unigbrk: Avoid gcc warnings.
8601         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8602         unused variable.
8603         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8604         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8605         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8606         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8607         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8608         Change type of first argument to 'const char *'.
8609         (main): Remove unused variable.
8610         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8611         type of first argument to 'const char *'.
8612         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8613         Likewise.
8614         (main): Change type of variable 's'.
8615         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8616         to 'int'.
8617
8618 2011-01-02  Bruno Haible  <bruno@clisp.org>
8619
8620         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8621         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8622         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8623         bug.
8624         * lib/pwrite.c: Undo 2010-12-31 patch.
8625         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8626
8627 2011-01-02  Bruno Haible  <bruno@clisp.org>
8628
8629         pread: Fix test whether it works.
8630         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8631
8632 2011-01-02  Bruno Haible  <bruno@clisp.org>
8633
8634         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8635         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8636         ends in "6". Don't require a specific month name. Try also the locale
8637         names found on HP-UX 11 and Solaris 7.
8638
8639 2011-01-02  Bruno Haible  <bruno@clisp.org>
8640
8641         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8642         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8643         C linkage.
8644         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8645
8646 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8647
8648         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8649         for consistency, since the "cluster" term is not used elsewhere.
8650         * lib/unigbrk.in.h: Update name.
8651         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8652         * lib/unigbrk/u16-grapheme-next.c: Update name.
8653         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8654         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8655         * lib/unigbrk/u32-grapheme-next.c: Update name.
8656         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8657         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8658         * lib/unigbrk/u8-grapheme-next.c: Update name.
8659         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8660         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8661         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8662         Suggested by Bruno Haible.
8663
8664 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8665
8666         Remove module 'u8-grapheme-len' as too redundant with
8667         'u8-grapheme-next'.
8668         * modules/unigbrk/u8-grapheme-len: Delete file.
8669         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8670         * lib/unigbrk.in.h: Remove prototype for deleted function.
8671         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8672         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8673
8674         Remove module 'u16-grapheme-len' as too redundant with
8675         'u16-grapheme-next'.
8676         * modules/unigbrk/u16-grapheme-len: Delete file.
8677         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8678         * lib/unigbrk.in.h: Remove prototype for deleted function.
8679         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8680         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8681
8682         Remove module 'u32-grapheme-len' as too redundant with
8683         'u32-grapheme-next'.
8684         * modules/unigbrk/u32-grapheme-len: Delete file.
8685         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8686         * lib/unigbrk.in.h: Remove prototype for deleted function.
8687         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8688         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8689
8690         Suggested by Bruno Haible.
8691
8692 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8693
8694         * unigbrk.in.h: Fix typo: "ben" => "been".
8695         Reported by Bruno Haible.
8696
8697 2011-01-01  Jim Meyering  <meyering@redhat.com>
8698
8699         maint: update almost all copyright ranges to include 2011
8700         Run the new "make update-copyright" rule.
8701
8702 2011-01-01  Jim Meyering  <meyering@redhat.com>
8703
8704         maint: update-copyright: exempt doc/INSTALL*
8705         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8706         since they are generated.  Suggested by Bruno Haible.
8707
8708 2011-01-01  Jim Meyering  <meyering@redhat.com>
8709
8710         maint: refine the update-copyright rule
8711         * Makefile (update-copyright): Also exclude any file that includes
8712         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8713         code that merely generates the comment.
8714
8715 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8716
8717         New module 'u8-grapheme-len'.
8718         * modules/unigbrk/u8-grapheme-len: New file.
8719         * modules/unigbrk/u8-grapheme-len-tests: New file.
8720         * lib/unigbrk.in.h: Add prototype for new function.
8721         * lib/unigbrk/u8-grapheme-len.c: New file.
8722         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8723
8724         New module 'u16-grapheme-len'.
8725         * modules/unigbrk/u16-grapheme-len: New file.
8726         * modules/unigbrk/u16-grapheme-len-tests: New file.
8727         * lib/unigbrk.in.h: Add prototype for new function.
8728         * lib/unigbrk/u16-grapheme-len.c: New file.
8729         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8730
8731         New module 'u32-grapheme-len'.
8732         * modules/unigbrk/u32-grapheme-len: New file.
8733         * modules/unigbrk/u32-grapheme-len-tests: New file.
8734         * lib/unigbrk.in.h: Add prototype for new function.
8735         * lib/unigbrk/u32-grapheme-len.c: New file.
8736         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8737
8738         New module 'u8-grapheme-next'.
8739         * modules/unigbrk/u8-grapheme-next: New file.
8740         * modules/unigbrk/u8-grapheme-next-tests: New file.
8741         * lib/unigbrk.in.h: Add prototype for new function.
8742         * lib/unigbrk/u8-grapheme-next.c: New file.
8743         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8744
8745         New module 'u16-grapheme-next'.
8746         * modules/unigbrk/u16-grapheme-next: New file.
8747         * modules/unigbrk/u16-grapheme-next-tests: New file.
8748         * lib/unigbrk.in.h: Add prototype for new function.
8749         * lib/unigbrk/u16-grapheme-next.c: New file.
8750         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8751
8752         New module 'u32-grapheme-next'.
8753         * modules/unigbrk/u32-grapheme-next: New file.
8754         * modules/unigbrk/u32-grapheme-next-tests: New file.
8755         * lib/unigbrk.in.h: Add prototype for new function.
8756         * lib/unigbrk/u32-grapheme-next.c: New file.
8757         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8758
8759         New module 'u8-grapheme-prev'.
8760         * modules/unigbrk/u8-grapheme-prev: New file.
8761         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8762         * lib/unigbrk.in.h: Add prototype for new function.
8763         * lib/unigbrk/u8-grapheme-prev.c: New file.
8764         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8765
8766         New module 'u16-grapheme-prev'.
8767         * modules/unigbrk/u16-grapheme-prev: New file.
8768         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8769         * lib/unigbrk.in.h: Add prototype for new function.
8770         * lib/unigbrk/u16-grapheme-prev.c: New file.
8771         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8772
8773         New module 'u32-grapheme-prev'.
8774         * modules/unigbrk/u32-grapheme-prev: New file.
8775         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8776         * lib/unigbrk.in.h: Add prototype for new function.
8777         * lib/unigbrk/u32-grapheme-prev.c: New file.
8778         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8779
8780         New module 'u8-grapheme-breaks'.
8781         * modules/unigbrk/u8-grapheme-breaks: New file.
8782         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8783         * lib/unigbrk.in.h: Add prototype for new function.
8784         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8785         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8786
8787         New module 'u16-grapheme-breaks'.
8788         * modules/unigbrk/u16-grapheme-breaks: New file.
8789         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8790         * lib/unigbrk.in.h: Add prototype for new function.
8791         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8792         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8793
8794         New module 'u32-grapheme-breaks'.
8795         * modules/unigbrk/u32-grapheme-breaks: New file.
8796         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8797         * lib/unigbrk.in.h: Add prototype for new function.
8798         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8799         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8800
8801         New module 'ulc-grapheme-breaks'.
8802         * modules/unigbrk/ulc-grapheme-breaks: New file.
8803         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8804         * m4/locale-ar.m4: New file.
8805         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8806         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8807         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8808
8809 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8810
8811         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8812         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8813         modified how this file was generated before I initially submitted
8814         the module, but failed to regenerate it.  This meant that several
8815         of the level2 entries were wrong.
8816         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8817         Remove the division-by-2 that is folded into the table now that
8818         gbrkprop.h has been regenerated properly.  Now -1 entries are
8819         handled correctly.
8820
8821         New module 'unigbrk/uc-gbrk-prop-tests'.
8822         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8823         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8824         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8825         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8826
8827 2011-01-01  Bruno Haible  <bruno@clisp.org>
8828
8829         Avoid use of hexadecimal escapes.
8830         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8831         instead of hexadecimal escapes.
8832
8833 2011-01-01  Jim Meyering  <meyering@redhat.com>
8834
8835         maint: new rule to update copyright year ranges
8836         * Makefile (update-copyright): New rule.
8837
8838         maint: indent with TABs in Makefile
8839         * Makefile: Expand leading sequences of spaces to TABs
8840
8841         version-etc: update the copyright year it reports
8842         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8843
8844 2010-12-31  Bruno Haible  <bruno@clisp.org>
8845
8846         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8847         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8848         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8849         zero.
8850
8851 2010-12-31  Bruno Haible  <bruno@clisp.org>
8852
8853         pwrite: Work around HP-UX 11.11 bug.
8854         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8855         works and set REPLACE_PWRITE if not.
8856         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8857         function.
8858         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8859
8860 2010-12-31  Bruno Haible  <bruno@clisp.org>
8861
8862         pread: Work around HP-UX 11 bugs.
8863         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8864         and set REPLACE_PREAD if not.
8865         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8866
8867 2010-12-31  Eric Blake  <eblake@redhat.com>
8868
8869         nl_langinfo: fix YESEXPR on Irix 6.5
8870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8871         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8872         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8873         it.
8874
8875 2010-12-31  Bruno Haible  <bruno@clisp.org>
8876
8877         iconv: Document HP-UX 11 bug.
8878         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8879
8880 2010-12-31  Bruno Haible  <bruno@clisp.org>
8881
8882         ldexpl: Fix link error on HP-UX 11.
8883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8884         LDEXPL_LIBM, using $ISNANL_LIBM.
8885
8886 2010-12-31  Eric Blake  <eblake@redhat.com>
8887
8888         ftello: avoid compilation failure with SunStudio c89
8889         * lib/ftello.c (ftello): Use lseek, not llseek.
8890
8891         tests: avoid failing coreutils tests on cygwin
8892         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8893         (create_exe_shims_): Return 0 when skipping.
8894
8895 2010-12-31  Bruno Haible  <bruno@clisp.org>
8896
8897         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8898         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8899
8900 2010-12-31  Bruno Haible  <bruno@clisp.org>
8901
8902         waitpid: Fix link error in C++ mode.
8903         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8904
8905 2010-12-31  Bruno Haible  <bruno@clisp.org>
8906
8907         isnan: Use GCC built-ins when possible.
8908         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8909         __builtin_isnan.
8910         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8911         (isnan): Define using GCC built-ins for GCC >= 4.0.
8912
8913 2010-12-31  Bruno Haible  <bruno@clisp.org>
8914
8915         isnand: Fix mistake.
8916         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8917         __builtin_isnand.
8918
8919 2010-12-31  Bruno Haible  <bruno@clisp.org>
8920
8921         open: Avoid C++ error on HP-UX 11.
8922         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8923
8924 2010-12-31  Bruno Haible  <bruno@clisp.org>
8925
8926         time_r: Add missing declarations on HP-UX 11.
8927         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8928         instead of HAVE_LOCALTIME_R.
8929         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8930         HAVE_LOCALTIME_R always.
8931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8932         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8933         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8934         HAVE_LOCALTIME_R.
8935         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8936         * doc/posix-functions/localtime_r.texi: Likewise.
8937
8938 2010-12-29  Eric Blake  <eblake@redhat.com>
8939
8940         mountlist: tweak previous commit
8941         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8942         Reported by Paul Eggert.
8943
8944         mountlist: fix local drive detection on cygwin
8945         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8946         that works for cygwin.
8947
8948 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         ftoastr, snprintf: ftoastr + snprintf module
8951         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8952         since the snprintf module now should be good enough here.
8953         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8954         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8955         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8956         GNULIB_SNPRINTF only for the test directory, and the latter
8957         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8958         seems to suffice by itself.
8959
8960 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8961
8962         alloca: one step towards thread-safety
8963         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8964         need for a static variable.  All callers changed.  This does not
8965         make the alloca replacement thread-safe, but it's one step.
8966
8967         tests: minor indenting change
8968         * tests/init.sh: Sync from coreutils housekeeping patch
8969         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8970         to keep lines within 80 columns.
8971
8972 2010-12-28  Jim Meyering  <meyering@redhat.com>
8973
8974         regex: don't infloop on persistent failing calloc
8975         * lib/regexec.c (build_trtable): Return failure indication upon
8976         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8977         In glibc, this was fixed for version 2.13:
8978         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8979
8980 2010-12-28  Bruno Haible  <bruno@clisp.org>
8981             Paul Eggert <eggert@cs.ucla.edu>
8982
8983         linkat: Make implementation robust against system behaviour variations.
8984         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8985         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8986         way, and to -2 if it needs a generic runtime test.
8987         * lib/linkat.c (solaris_optimized_link_immediate,
8988         solaris_optimized_link_follow): New functions.
8989         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8990         (check_same_link): Use it.
8991
8992 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8993
8994         New module 'unigbrk/base'.
8995         * modules/unigbrk/base: New file.
8996         * lib/unigbrk.in.h: New file.
8997
8998         New module 'unigbrk/uc-gbrk-prop'.
8999         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9000         * modules/unigbrk/uc-gbrk-prop: New file.
9001         * lib/unigbrk/gbrkprop.h: New file.
9002         * lib/unigbrk/uc-gbrk-prop.c: New file.
9003
9004         New module 'unigbrk/uc-is-grapheme-break'.
9005         * modules/unigbrk/uc-is-grapheme-break: New file.
9006         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9007         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9008         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9009         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9010         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9011
9012         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9013
9014 2010-12-27  Bruno Haible  <bruno@clisp.org>
9015
9016         linkat test: Avoid failure on Solaris 11 2010-11.
9017         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9018
9019 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9020
9021         utimens: work around glibc rounding bug on more platforms
9022         * lib/utimens.c (fdutimens): Work around rounding bug even if
9023         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9025
9026 2010-12-27  Bruno Haible  <bruno@clisp.org>
9027
9028         select tests: Improve comments.
9029         * tests/test-select.c (do_select): Add comments.
9030
9031 2010-12-27  Bruno Haible  <bruno@clisp.org>
9032
9033         select tests: Safer way of handling timeout.
9034         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9035         at every invocation.
9036
9037 2010-12-27  Bruno Haible  <bruno@clisp.org>
9038
9039         select tests: Use 'bool' where appropriate.
9040         * tests/test-select.c (connect_to_socket): Change argument type to
9041         'bool'.
9042
9043 2010-12-27  Bruno Haible  <bruno@clisp.org>
9044
9045         select tests: Use existing modules.
9046         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9047         (configure.ac): Don't test for unistd.h.
9048         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9049         declared in <unistd.h>.
9050
9051 2010-12-27  Bruno Haible  <bruno@clisp.org>
9052
9053         mbrtowc: Work around a Solaris 7 bug.
9054         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9055         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9056         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9057         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9058         MBRTOWC_NULL_ARG1_BUG.
9059         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9060         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9061         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9062         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9063
9064 2010-12-27  Jim Meyering  <meyering@redhat.com>
9065
9066         read-file.c: tweak syntax
9067         * lib/read-file.c (fread_file): Remove space after "*" in function
9068         definitions.
9069
9070 2010-12-27  Bruno Haible  <bruno@clisp.org>
9071
9072         times test: Avoid gcc warnings on OSF/1.
9073         * tests/test-times.c (main): Cast printf arguments from clock_t to
9074         'long int'.
9075
9076 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9077
9078         utimens: work around glibc rounding bug on older Linux kernels
9079         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9080         on Linux with a glibc whose utimes might not work, then work
9081         around a longstanding glibc bug involving rounding rather than
9082         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9084
9085 2010-12-26  Bruno Haible  <bruno@clisp.org>
9086
9087         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9088         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9089         _GL_CXXALIAS_SYS.
9090         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9091
9092 2010-12-26  Bruno Haible  <bruno@clisp.org>
9093
9094         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9095         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9096         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9097         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9098         looking for the declaration.
9099         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9100         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9101         problem.
9102         * doc/posix-functions/inet_pton.texi: Likewise.
9103
9104 2010-12-26  Bruno Haible  <bruno@clisp.org>
9105
9106         arpa_inet: Use the common idioms with C++ support.
9107         * lib/arpa_inet.in.h: Include c++defs.h.
9108         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9109         support.
9110         * modules/arpa_inet (Depends-on): Add c++defs.
9111         (Makefile.am): Substitute the contents of c++defs.h.
9112         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9113         * modules/arpa_inet-c++-tests: New file.
9114         * tests/test-arpa_inet-c++.cc: New file.
9115
9116 2010-12-25  Bruno Haible  <bruno@clisp.org>
9117
9118         Fix more C++ link errors on Solaris 8.
9119         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9120         $(LIB_EACCESS).
9121         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9122         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9123         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9124         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9125         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9126
9127 2010-12-25  Bruno Haible  <bruno@clisp.org>
9128
9129         printf-posix: Fix link error when a non-GCC compiler is used.
9130         * lib/stdio.in.h (printf): When not using GCC, override printf
9131         correctly.
9132         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9133
9134 2010-12-25  Bruno Haible  <bruno@clisp.org>
9135
9136         strerror_r-posix: Update doc.
9137         * doc/posix-functions/strerror_r.texi: Update doc about the return
9138         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9139
9140 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9141
9142         utimens: simplify the logic of the previous change
9143         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9144         This should not affect whether the test succeeds or fails.
9145
9146         utimens: configure better on hosts with NFS clock skew
9147         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9148         uses the clock of the local host.  It might use the clock of the
9149         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9151
9152 2010-12-25  Bruno Haible  <bruno@clisp.org>
9153
9154         ptsname test: Avoid failure on Solaris.
9155         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9156         open a pseudo-terminal; don't use BSD-style ptys.
9157         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9158
9159 2010-12-25  Bruno Haible  <bruno@clisp.org>
9160
9161         ptsname: Avoid ERANGE failure on some systems.
9162         * lib/ptsname.c (buffer): Increase size.
9163
9164 2010-12-25  Bruno Haible  <bruno@clisp.org>
9165
9166         rename, renameat: Avoid test failures at NFS mounted locations.
9167         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9168         so that subsequent mkdir calls succeed.
9169
9170 2010-12-25  Bruno Haible  <bruno@clisp.org>
9171
9172         iswblank: Fix C++ link error on Solaris 8.
9173         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9174         _GL_FUNCDECL_SYS.
9175
9176 2010-12-25  Bruno Haible  <bruno@clisp.org>
9177
9178         unistd: Fix C++ link error on Solaris 8.
9179         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9180
9181 2010-12-25  Bruno Haible  <bruno@clisp.org>
9182
9183         readlink doc: Mention an old glibc bug.
9184         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9185
9186 2010-12-25  Bruno Haible  <bruno@clisp.org>
9187
9188         fcntl-h: Fix for use of C++ on glibc systems.
9189         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9190         also on glibc systems in C++ mode.
9191         Reported by Gary V. Vaughan <gary@gnu.org>.
9192
9193 2010-12-25  Bruno Haible  <bruno@clisp.org>
9194
9195         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9196         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9197
9198 2010-12-25  Bruno Haible  <bruno@clisp.org>
9199
9200         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9201         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9202         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9203         test whether truncl works according to ISO C 99 with IEC 60559.
9204         * m4/truncl-ieee.m4: New file.
9205         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9206         m4/signbit.m4.
9207         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9208
9209 2010-12-25  Bruno Haible  <bruno@clisp.org>
9210
9211         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9212         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9213         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9214         test whether ceill works according to ISO C 99 with IEC 60559.
9215         * m4/ceill-ieee.m4: New file.
9216         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9217         m4/signbit.m4.
9218         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9219
9220 2010-12-25  Bruno Haible  <bruno@clisp.org>
9221
9222         Ensure all prerequisites of <wchar.h> are included.
9223         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9224         before <wchar.h>.
9225         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9226         gl_MBRLEN_NUL_RETVAL): Likewise.
9227         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9228         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9229         AC_FUNC_MBRTOWC): Likewise.
9230         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9231         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9232         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9233         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9234         Likewise.
9235         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9236         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9237         (gl_WCHAR_H): Improve comments.
9238         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9239
9240 2010-12-25  Bruno Haible  <bruno@clisp.org>
9241
9242         strtok_r: Fix C syntax error in autoconf macro.
9243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9244         characters in test program.
9245
9246 2010-12-24  Bruno Haible  <bruno@clisp.org>
9247
9248         ceil, trunc, round: Fix gcc warnings.
9249         * lib/ceil.c (MIN): Undefine before redefining.
9250         * lib/trunc.c (MIN): Likewise.
9251         * lib/round.c (MIN): Likewise.
9252         Include <math.h> first.
9253
9254 2010-12-24  Bruno Haible  <bruno@clisp.org>
9255
9256         select tests: Avoid failures on OSF/1 5.1.
9257         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9258         failure of closing the last socket; it may fail with ECONNRESET.
9259
9260 2010-12-24  Eric Blake  <eblake@redhat.com>
9261
9262         stdint: avoid HP-UX 10.20 preprocessor bug
9263         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9264         than #if.
9265         * tests/test-floor2.c (main): Likewise.
9266         Reported by Peter O'Gorman.
9267
9268         pipe: make obsoletion transition easier
9269         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9270         * modules/pipe (Files): Include revived file.
9271         (Include): Drop reference, to mirror getdate's behavior.
9272
9273 2010-12-24  Bruno Haible  <bruno@clisp.org>
9274
9275         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9276         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9277         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9278         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9279
9280 2010-12-24  Bruno Haible  <bruno@clisp.org>
9281
9282         gethostname: Ensure declaration on NonStop Kernel.
9283         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9284         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9285
9286 2010-12-24  Bruno Haible  <bruno@clisp.org>
9287
9288         sys_select: Ensure all necessary types on NonStop Kernel.
9289         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9290         include <sys/time.h>.
9291         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9292         NonStop Kernel.
9293         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9294
9295 2010-12-24  Bruno Haible  <bruno@clisp.org>
9296
9297         sys_select: Remove unneeded include.
9298         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9299         have <sys/select.h>.
9300
9301 2010-12-24  Bruno Haible  <bruno@clisp.org>
9302
9303         gethostname: Provide a fallback for HOST_NAME_MAX.
9304         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9305         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9306         instead.
9307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9308
9309 2010-12-24  Bruno Haible  <bruno@clisp.org>
9310
9311         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9312         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9313         (SA_RESTART): Likewise.
9314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9315
9316 2010-12-24  Bruno Haible  <bruno@clisp.org>
9317
9318         signal: Define NSIG.
9319         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9320         * tests/test-signal.c (nsig): New variable.
9321         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9322
9323 2010-12-24  Bruno Haible  <bruno@clisp.org>
9324
9325         rename, renameat: Avoid test failures on OSF/1 5.1.
9326         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9327         alternative error codes.
9328         * tests/test-renameat.c (main): Likewise.
9329
9330 2010-12-24  Bruno Haible  <bruno@clisp.org>
9331
9332         *printf: Detect large precisions bug on Solaris 10/SPARC.
9333         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9334         by Paul Eggert.
9335         * tests/test-snprintf-posix.h (test_function): Add this test code here
9336         too.
9337         * tests/test-sprintf-posix.h (test_function): Likewise.
9338         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9339         * tests/test-vasprintf-posix.c (test_function): Likewise.
9340         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9341         around by gnulib.
9342         * doc/posix-functions/printf.texi: Likewise.
9343         * doc/posix-functions/snprintf.texi: Likewise.
9344         * doc/posix-functions/sprintf.texi: Likewise.
9345         * doc/posix-functions/vfprintf.texi: Likewise.
9346         * doc/posix-functions/vprintf.texi: Likewise.
9347         * doc/posix-functions/vsnprintf.texi: Likewise.
9348         * doc/posix-functions/vsprintf.texi: Likewise.
9349         * doc/posix-functions/dprintf.texi: Undo last commit.
9350         * doc/posix-functions/vdprintf.texi: Likewise.
9351
9352 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9353
9354         tests: port test-fdutimensat.c to Solaris 8
9355         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9356         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9357         On Solaris 8, it fails with errno == ENOSYS, because there is no
9358         futimens (so it can't use the fd), and there is no lutimens (so it
9359         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9360
9361         vsnprintf: make more consistent with snprintf; doc fixes
9362
9363         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9364         the byte count return problem was promoted from the snprintf-posix
9365         to the snprintf module.
9366         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9367         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9368         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9369         * tests/test-snprintf.c (main): Check the byte count returned.
9370         * tests/test-vsnprintf.c (main): Likewise.
9371
9372 2010-12-23  Eric Blake  <eblake@redhat.com>
9373
9374         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9375         * modules/sigpipe (License): Relax license.
9376
9377 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9378
9379         doc: document Solaris printf bug with large float precisions
9380         * doc/posix-functions/dprintf.texi (dprintf):
9381         * doc/posix-functions/fprintf.texi (fprintf):
9382         * doc/posix-functions/printf.texi (printf):
9383         * doc/posix-functions/snprintf.texi (snprintf):
9384         * doc/posix-functions/sprintf.texi (sprintf):
9385         * doc/posix-functions/vdprintf.texi (vdprintf):
9386         * doc/posix-functions/vfprintf.texi (vfprintf):
9387         * doc/posix-functions/vprintf.texi (vprintf):
9388         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9389         * doc/posix-functions/vsprintf.texi (vsprintf):
9390         Mention that these functions mishandle large floating point
9391         precisions on Solaris 10.  The same bug is also present in Solaris
9392         8, and I assume earlier.  This causes "cd gnulib-tests; make
9393         check" to fail on Solaris 8 (and I assume, later) when building
9394         the latest coreutils, in test-vasprintf-posix's call to
9395         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9396         the wide flavors (e.g., wprintf) so this patch just updates the
9397         documentation for the narrow ones.
9398
9399         test-posixtm.c: add two tests
9400         * tests/test-posixtm.c: Add two tests, to highlight the
9401         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9402         around this bug; this is merely to document it.
9403
9404 2010-12-22  Bruno Haible  <bruno@clisp.org>
9405
9406         getlogin_r: Work around portability problem on OSF/1.
9407         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9408         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9409         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9410         test for a truncated result.
9411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9412         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9413         * modules/getlogin_r (Depends-on): Add memchr.
9414         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9415
9416 2010-12-22  Bruno Haible  <bruno@clisp.org>
9417
9418         ptsname: Avoid test failure on OSF/1 5.1.
9419         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9420         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9421         (same_slave): New function.
9422         (main): Use it to compare ptsname's result with the expected file name.
9423
9424 2010-12-22  Bruno Haible  <bruno@clisp.org>
9425
9426         Port extended stdio modules to HP NonStop Kernel.
9427         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9428         macros.
9429         * lib/fbufmode.c: Update comments.
9430         * lib/fflush.c: Likewise.
9431         * lib/fpurge.c: Likewise.
9432         * lib/freadable.c: Likewise.
9433         * lib/freadahead.c: Likewise.
9434         * lib/freading.c: Likewise.
9435         * lib/freadptr.c: Likewise.
9436         * lib/freadseek.c: Likewise.
9437         * lib/fseeko.c: Likewise.
9438         * lib/fseterr.c: Likewise.
9439         * lib/fwritable.c: Likewise.
9440         * lib/fwriting.c: Likewise.
9441         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9442
9443 2010-12-22  Bruno Haible  <bruno@clisp.org>
9444
9445         ttyname_r: Work around bug on OSF/1 5.1.
9446         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9447         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9448         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9449         present.
9450         * lib/ttyname_r.c (ttyname_r): Update comments.
9451
9452 2010-12-22  Bruno Haible  <bruno@clisp.org>
9453
9454         round: Implement result sign according to IEEE 754.
9455         * lib/round.c (MIN, MINUS_ZERO): New macros.
9456         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9457         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9458         * tests/test-round-ieee.c (main): Likewise.
9459         * tests/test-roundl-ieee.c (main): Likewise.
9460
9461         trunc: Implement result sign according to IEEE 754.
9462         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9463         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9464         * tests/test-trunc2.c: Include minus-zero.h.
9465         (MINUS_ZERO): New macro.
9466         (trunc_reference): Keep in sync with lib/trunc.c.
9467         * tests/test-truncf2.c: Include minus-zero.h.
9468         (MINUS_ZERO): New macro.
9469         (truncf_reference): Keep in sync with lib/trunc.c.
9470         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9471         * tests/test-trunc-ieee.c (main): Likewise.
9472         * tests/test-truncl-ieee.c (main): Likewise.
9473
9474         ceil: Implement result sign according to IEEE 754.
9475         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9476         (FUNC): Return -0.0 for -1 < x < 0.
9477         * tests/test-ceil2.c: Include minus-zero.h.
9478         (MINUS_ZERO): New macro.
9479         (ceil_reference): Keep in sync with lib/ceil.c.
9480         * tests/test-ceilf2.c: Include minus-zero.h.
9481         (MINUS_ZERO): New macro.
9482         (ceilf_reference): Keep in sync with lib/ceil.c.
9483         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9484         * tests/test-ceil-ieee.c (main): Likewise.
9485         * tests/test-ceill-ieee.c (main): Likewise.
9486
9487         floor: Implement result sign according to IEEE 754.
9488         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9489         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9490         * tests/test-floorf2.c (floorf_reference): Likewise.
9491         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9492         * tests/test-floor-ieee.c (main): Likewise.
9493         * tests/test-floorl-ieee.c (main): Likewise.
9494
9495 2010-12-22  Bruno Haible  <bruno@clisp.org>
9496
9497         getaddrinfo: Update doc.
9498         * doc/posix-functions/gai_strerror.texi: Return type is also different
9499         on AIX and HP-UX.
9500
9501 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         getaddrinfo, inet_ntop: Update doc for Solaris.
9504         * doc/posix-functions/gai_strerror.texi: Return type is also an
9505         issue on Solaris 9 and earlier.
9506         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9507         on Solaris 10 and earlier.
9508
9509 2010-12-21  Bruno Haible  <bruno@clisp.org>
9510
9511         New module 'roundl-ieee'.
9512         * modules/roundl-ieee: New file.
9513         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9514         test whether roundl works according to ISO C 99 with IEC 60559.
9515         * m4/roundl-ieee.m4: New file.
9516         * modules/roundl-ieee-tests: New file.
9517         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9518         * tests/test-roundl.c (main): Remove signbit tests.
9519         * modules/roundl-tests (Depends-on): Remove signbit.
9520         * doc/posix-functions/roundl.texi: Mention the new module.
9521
9522 2010-12-21  Bruno Haible  <bruno@clisp.org>
9523
9524         New module 'truncl-ieee'.
9525         * modules/truncl-ieee: New file.
9526         * modules/truncl-ieee-tests: New file.
9527         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9528         * tests/test-truncl.c (main): Remove signbit tests.
9529         * modules/truncl-tests (Depends-on): Remove signbit.
9530         * doc/posix-functions/truncl.texi: Mention the new module.
9531
9532 2010-12-21  Bruno Haible  <bruno@clisp.org>
9533
9534         New module 'ceill-ieee'.
9535         * modules/ceill-ieee: New file.
9536         * modules/ceill-ieee-tests: New file.
9537         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9538         * tests/test-ceill.c (main): Remove signbit tests.
9539         * modules/ceill-tests (Depends-on): Remove signbit.
9540         * doc/posix-functions/ceill.texi: Mention the new module.
9541
9542 2010-12-21  Bruno Haible  <bruno@clisp.org>
9543
9544         New module 'floorl-ieee'.
9545         * modules/floorl-ieee: New file.
9546         * modules/floorl-ieee-tests: New file.
9547         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9548         * tests/test-floorl.c (main): Remove signbit tests.
9549         * modules/floorl-tests (Depends-on): Remove signbit.
9550         * doc/posix-functions/floorl.texi: Mention the new module.
9551
9552 2010-12-21  Bruno Haible  <bruno@clisp.org>
9553
9554         New module 'round-ieee'.
9555         * modules/round-ieee: New file.
9556         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9557         whether round works according to ISO C 99 with IEC 60559.
9558         * m4/round-ieee.m4: New file.
9559         * modules/round-ieee-tests: New file.
9560         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9561         * tests/test-round1.c (main): Remove signbit tests.
9562         * modules/round-tests (Depends-on): Remove 'signbit'.
9563         * doc/posix-functions/round.texi: Mention the new module.
9564
9565 2010-12-21  Bruno Haible  <bruno@clisp.org>
9566
9567         New module 'trunc-ieee'.
9568         * modules/trunc-ieee: New file.
9569         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9570         whether trunc works according to ISO C 99 with IEC 60559.
9571         * m4/trunc-ieee.m4: New file.
9572         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9574         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9575         * modules/trunc-ieee-tests: New file.
9576         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9577         * tests/test-trunc1.c (main): Remove signbit tests.
9578         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9579         * doc/posix-functions/trunc.texi: Mention the new module.
9580
9581 2010-12-21  Bruno Haible  <bruno@clisp.org>
9582
9583         New module 'ceil-ieee'.
9584         * modules/ceil-ieee: New file.
9585         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9586         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9587         ISO C 99 with IEC 60559.
9588         * m4/ceil-ieee.m4: New file.
9589         * modules/ceil (Files): Add lib/ceil.c.
9590         (Depends-on): Add 'float'.
9591         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9592         * lib/math.in.h (ceil): New declaration.
9593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9594         REPLACE_CEIL.
9595         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9596         * modules/ceil-ieee-tests: New file.
9597         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9598         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9599         * doc/posix-functions/ceil.texi: Mention the new module.
9600
9601 2010-12-21  Bruno Haible  <bruno@clisp.org>
9602
9603         New module 'floor-ieee'.
9604         * modules/floor-ieee: New file.
9605         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9606         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9607         ISO C 99 with IEC 60559.
9608         * m4/floor-ieee.m4: New file.
9609         * modules/floor (Files): Add lib/floor.c.
9610         (Depends-on): Add 'float'.
9611         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9612         * lib/math.in.h (floor): New declaration.
9613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9614         REPLACE_FLOOR.
9615         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9616         * modules/floor-ieee-tests: New file.
9617         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9618         * tests/test-math-c++.cc: Check the signature of 'floor'.
9619         * doc/posix-functions/floor.texi: Mention the new module.
9620
9621 2010-12-21  Bruno Haible  <bruno@clisp.org>
9622
9623         New module 'roundf-ieee'.
9624         * modules/roundf-ieee: New file.
9625         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9626         test whether roundf works according to ISO C 99 with IEC 60559.
9627         * m4/roundf-ieee.m4: New file.
9628         * modules/roundf-ieee-tests: New file.
9629         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9630         * tests/test-roundf1.c (main): Remove signbit tests.
9631         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9632         * doc/posix-functions/roundf.texi: Mention the new module.
9633
9634 2010-12-21  Bruno Haible  <bruno@clisp.org>
9635
9636         New module 'truncf-ieee'.
9637         * modules/truncf-ieee: New file.
9638         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9639         test whether truncf works according to ISO C 99 with IEC 60559.
9640         * m4/truncf-ieee.m4: New file.
9641         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9643         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9644         * modules/truncf-ieee-tests: New file.
9645         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9646         * tests/test-truncf1.c (main): Remove signbit tests.
9647         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9648         * doc/posix-functions/truncf.texi: Mention the new module.
9649
9650 2010-12-21  Bruno Haible  <bruno@clisp.org>
9651
9652         New module 'ceilf-ieee'.
9653         * modules/ceilf-ieee: New file.
9654         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9655         test whether ceilf works according to ISO C 99 with IEC 60559.
9656         * m4/ceilf-ieee.m4: New file.
9657         * modules/ceilf-ieee-tests: New file.
9658         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9659         * tests/test-ceilf1.c (main): Remove signbit tests.
9660         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9661         * doc/posix-functions/ceilf.texi: Mention the new module.
9662
9663 2010-12-21  Bruno Haible  <bruno@clisp.org>
9664
9665         New module 'floorf-ieee'.
9666         * modules/floorf-ieee: New file.
9667         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9668         test whether floorf works according to ISO C 99 with IEC 60559.
9669         * m4/floorf-ieee.m4: New file.
9670         * modules/floorf-ieee-tests: New file.
9671         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9672         * tests/test-floorf1.c (main): Remove signbit tests.
9673         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9674         * doc/posix-functions/floorf.texi: Mention the new module.
9675
9676 2010-12-21  Bruno Haible  <bruno@clisp.org>
9677
9678         Support for minus zero in autoconf macros.
9679         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9680         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9681         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9682         * tests/minus-zero.h: Update comments.
9683
9684 2010-12-21  Bruno Haible  <bruno@clisp.org>
9685
9686         Tests for module 'ceil'.
9687         * modules/ceil-tests: New file.
9688         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9689         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9690
9691 2010-12-21  Bruno Haible  <bruno@clisp.org>
9692
9693         Tests for module 'floor'.
9694         * modules/floor-tests: New file.
9695         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9696         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9697
9698 2010-12-21  Bruno Haible  <bruno@clisp.org>
9699
9700         math: Fix indentation.
9701         * lib/math.in.h (floorf): Fix indentation.
9702
9703 2010-12-21  Bruno Haible  <bruno@clisp.org>
9704
9705         Fix cross-compilation guesses on Solaris.
9706         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9707         not match "solaris2.10".
9708         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9709         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9710         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9711
9712 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9713
9714         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9715         This fixes a problem observed with the latest coreutils snapshot
9716         that caused a test to fail on Solaris 8.  src/csplit.c's call
9717         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9718         earlier, instead of returning the number of bytes that would have
9719         been generated; this causes csplit to incorrectly report memory
9720         exhaustion.
9721         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9722         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9723         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9724         comments to match.
9725         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9726         Fix typo in matching older versions of Solaris: "solaris2.10"
9727         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9728         only for guessing while cross-compiling.
9729         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9730
9731 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9732
9733         ftoastr: fix comment again
9734         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9736         Also, simplify example a bit by using flags = 0.
9737
9738 2010-12-20  Bruno Haible  <bruno@clisp.org>
9739
9740         round*, trunc*: Update documentation regarding glibc.
9741         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9742         * doc/posix-functions/round.texi: Likewise.
9743         * doc/posix-functions/roundl.texi: Likewise.
9744         * doc/posix-functions/truncf.texi: Likewise.
9745         * doc/posix-functions/trunc.texi: Likewise.
9746         * doc/posix-functions/truncl.texi: Likewise.
9747
9748 2010-12-20  Bruno Haible  <bruno@clisp.org>
9749
9750         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9751         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9752         * doc/posix-functions/round.texi: Likewise.
9753         * doc/posix-functions/roundl.texi: Likewise.
9754
9755 2010-12-20  Bruno Haible  <bruno@clisp.org>
9756
9757         ttyname_r: Add missing declaration on HP-UX 11.
9758         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9759         HAVE_TTYNAME_R.
9760         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9761         declared. Set HAVE_TTYNAME_R always.
9762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9763         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9764         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9765         HAVE_TTYNAME_R.
9766         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9767
9768 2010-12-20  Bruno Haible  <bruno@clisp.org>
9769
9770         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9771         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9772         * doc/posix-functions/getlogin_r.texi: Likewise.
9773         * tests/test-getlogin.c: Include <errno.h>.
9774         (main): Avoid test failure on HP-UX 11.11.
9775         * tests/test-getlogin_r.c (main): Likewise.
9776
9777 2010-12-20  Bruno Haible  <bruno@clisp.org>
9778
9779         getlogin_r: Add missing declaration on HP-UX 11.
9780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9781         declared also when it exists as a function.
9782         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9783
9784 2010-12-20  Bruno Haible  <bruno@clisp.org>
9785
9786         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9787         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9788         through wcrtomb.
9789
9790 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9791
9792         ftoastr: fix comment
9793         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9795
9796 2010-12-19  Bruno Haible  <bruno@clisp.org>
9797
9798         isnan: Ensure it is a macro.
9799         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9800         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9801         Solaris.
9802
9803 2010-12-19  Bruno Haible  <bruno@clisp.org>
9804
9805         ldexpl test: Fix link error on OSF/1 5.1.
9806         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9807
9808 2010-12-19  Bruno Haible  <bruno@clisp.org>
9809
9810         wctype: Make it work in C++ mode on OSF/1 5.1.
9811         * lib/wctype.in.h (iswblank): Declare but not define here.
9812         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9813         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9814         * modules/wctype (Files): Add lib/iswblank.c.
9815
9816 2010-12-19  Bruno Haible  <bruno@clisp.org>
9817
9818         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9819         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9820         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9821
9822 2010-12-19  Bruno Haible  <bruno@clisp.org>
9823
9824         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9826         _POSIX_PII_SOCKET.
9827         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9828         * doc/posix-functions/recvfrom.texi: Likewise.
9829         * doc/posix-functions/send.texi: Likewise.
9830         * doc/posix-functions/sendto.texi: Likewise.
9831
9832 2010-12-19  Bruno Haible  <bruno@clisp.org>
9833
9834         tcgetsid: Add missing declaration on OSF/1 5.1.
9835         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9836         HAVE_TCGETSID.
9837         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9838         Don't set HAVE_TCGETSID.
9839         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9840         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9841         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9842         HAVE_TCGETSID.
9843         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9844
9845 2010-12-19  Bruno Haible  <bruno@clisp.org>
9846
9847         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9848         * lib/stdio.in.h: During the include_next statement, let recursive
9849         includes of this file include only the system header file.
9850
9851 2010-12-19  Bruno Haible  <bruno@clisp.org>
9852
9853         iconv_open: Fix regression from 2010-12-04.
9854         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9855         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9856
9857 2010-12-19  Bruno Haible  <bruno@clisp.org>
9858
9859         stdbool test: Avoid a gcc warning.
9860         * tests/test-stdbool.c (main): Fail if e1 is false.
9861         Reported by Jim Meyering.
9862
9863 2010-12-19  Jim Meyering  <meyering@redhat.com>
9864
9865         setenv: restore to working order
9866         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9867         mistakenly removed.
9868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9869         HAVE_SETENV.
9870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9871         HAVE_SETENV.
9872
9873 2010-12-19  Bruno Haible  <bruno@clisp.org>
9874
9875         Document some different function declarations on OSF/1 5.1.
9876         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9877         * doc/posix-functions/inet_ntop.texi: Likewise.
9878         * doc/posix-functions/gethostname.texi: Likewise.
9879         * lib/unistd.in.h (gethostname): Update comment.
9880
9881 2010-12-19  Bruno Haible  <bruno@clisp.org>
9882
9883         doc: Mention vasprintf-posix module.
9884         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9885         the 'vasprintf-posix' module.
9886         * doc/glibc-functions/vasprintf.texi: Likewise.
9887
9888 2010-12-19  Bruno Haible  <bruno@clisp.org>
9889
9890         unsetenv: Add missing declaration on OSF/1 5.1.
9891         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9892         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9893         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9895         not HAVE_UNSETENV.
9896         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9897         HAVE_UNSETENV.
9898         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9899
9900 2010-12-19  Bruno Haible  <bruno@clisp.org>
9901
9902         setenv: Add missing declaration on OSF/1 5.1.
9903         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9905         declared. Don't set HAVE_SETENV.
9906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9907         not HAVE_SETENV.
9908         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9909         HAVE_SETENV.
9910         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9911
9912 2010-12-19  Bruno Haible  <bruno@clisp.org>
9913
9914         nl_langinfo tests: Avoid gcc warning.
9915         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9916
9917 2010-12-19  Bruno Haible  <bruno@clisp.org>
9918
9919         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9920         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9921         _GL_CXXALIAS_SYS.
9922
9923 2010-12-19  Bruno Haible  <bruno@clisp.org>
9924
9925         stdbool: Relax test.
9926         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9927         address to 'bool' work in static initializer, for compilers other than
9928         GCC.
9929
9930 2010-12-19  Bruno Haible  <bruno@clisp.org>
9931
9932         ftello: Add missing declaration on OSF/1 5.1.
9933         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9934         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9936         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9937         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9938
9939 2010-12-19  Bruno Haible  <bruno@clisp.org>
9940
9941         fseeko: Add missing declaration on OSF/1 5.1.
9942         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9945         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9946         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9947
9948 2010-12-19  Bruno Haible  <bruno@clisp.org>
9949
9950         fchdir: Add missing declaration on OSF/1 5.1.
9951         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9954         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9955         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9956
9957 2010-12-19  Bruno Haible  <bruno@clisp.org>
9958
9959         relocatable-prog-wrapper: Separate from relocatable-prog.
9960         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9961         uninstall-relocwrapper rule here.
9962         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9963         Reported by Ian Beckwith <ianb@erislabs.net>.
9964
9965 2010-12-19  Bruno Haible  <bruno@clisp.org>
9966
9967         unistr/u8-mbsnlen: Add missing dependency.
9968         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9969         Reported by Ian Beckwith <ianb@erislabs.net>.
9970
9971 2010-12-19  Bruno Haible  <bruno@clisp.org>
9972
9973         iconv: Make it possible again to use this module without 'iconv-h'.
9974         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9975         if it is not defined.
9976         Reported by Ian Beckwith <ianb@erislabs.net>.
9977
9978 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9979
9980         acl: port to Solaris 8 when copying from tmpfs to ufs
9981         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9982         error number.  Problem observed on Solaris 8 with latest
9983         coreutils, with "mv A B", where A is on a tmpfs file system and B
9984         is on a ufs file system.  This caused coreutils' mv/part-symlink
9985         test to fail.
9986
9987         tests: set fail=0 at start
9988         * tests/init.sh (setup_): Move fail=0 initialization here ...
9989         (mktempd_): ... from here, so that tests can rely on fail being
9990         set to 0 initially.  This fixes a problem in coreutils; see:
9991         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9992
9993 2010-12-18  Bruno Haible  <bruno@clisp.org>
9994
9995         memmem-simple: Stylistic changes.
9996         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9997         Fix preprocessor directive indentation.
9998
9999 2010-12-15  Pádraig Brady <P@draigBrady.com>
10000
10001         memmem, memmem-simple: reorganize and expand empty needle check
10002         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10003         functional checks to memmem-simple so that one has a fully functional
10004         memmem by using just this module.
10005         Restrict the performance only check to the memmem module.
10006         Also expand the empty needle check to ensure the correct
10007         pointer is returned, not just a non NULL pointer.
10008         * doc/glibc-functions/memmem.texi: Rearrange the portability
10009         documentation to correlate with the rearranged checks.
10010         Clarify exactly how the memmem and memmem-simple modules
10011         relate to each other.
10012
10013 2010-12-15  Pádraig Brady <P@draigBrady.com>
10014             Bruno Haible  <bruno@clisp.org>
10015
10016         Improve cross-compilation guesses for uClibc.
10017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10018         that uClibc does not have the glibc bug.
10019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10020         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10021
10022 2010-12-14  Eric Blake  <eblake@redhat.com>
10023
10024         configmake: provide fallbacks for oldest supported autotools
10025         * m4/configmake.m4: New file.
10026         * modules/configmake (Files): Ship it.
10027         (configure.ac): Use it to guarantee fallbacks.
10028
10029 2010-12-13  Pádraig Brady <P@draigBrady.com>
10030
10031         read-file: Improve handling of large files
10032         * lib/read-file.c (fread_file): Minimize realloc()s
10033         for regular files, and better manage sizes around SIZE_MAX.
10034
10035 2010-12-13  Eric Blake  <eblake@redhat.com>
10036
10037         cloexec, fcntl: relax license
10038         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10039         consent from all contributors.
10040         * modules/fcntl (License): Likewise.
10041
10042 2010-12-10  Bruno Haible  <bruno@clisp.org>
10043
10044         Tests for module 'pipe-posix'.
10045         * modules/pipe-posix-tests: New file.
10046         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10047
10048 2010-12-10  Bruno Haible  <bruno@clisp.org>
10049
10050         pipe-posix: Make it work in C++ mode.
10051         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10052         (pipe): Use common idiom, not a macro definition.
10053         * lib/pipe.c: New file.
10054         * m4/pipe.m4: New file.
10055         * modules/pipe-posix (Description): Enhance.
10056         (Files): Add lib/pipe.c, m4/pipe.m4.
10057         (configure.ac): Invoke gl_FUNC_PIPE.
10058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10059         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10060         * tests/test-unistd-c++.cc: Check the signature of pipe.
10061
10062 2010-12-10  Bruno Haible  <bruno@clisp.org>
10063
10064         Rename module 'pipe' to 'spawn-pipe'.
10065         * modules/spawn-pipe: New file, renamed from modules/pipe.
10066         (Files, configure.ac, Makefile.am): Update.
10067         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10068         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10069         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10070         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10071         "spawn-pipe.h" instead of "pipe.h".
10072         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10073         to gl_SPAWN_PIPE.
10074         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10075         (Files, Makefile.am): Update.
10076         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10077         Update.
10078         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10079         Include "spawn-pipe.h" instead of "pipe.h".
10080         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10081         * lib/javacomp.c: Likewise.
10082         * lib/javaversion.c: Likewise.
10083         * lib/pipe-filter-gi.c: Likewise.
10084         * lib/pipe-filter-ii.c: Likewise.
10085         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10086         * modules/javacomp (Depends-on): Likewise.
10087         * modules/javaversion (Depends-on): Likewise.
10088         * modules/pipe-filter-gi (Depends-on): Likewise.
10089         * modules/pipe-filter-ii (Depends-on): Likewise.
10090         * MODULES.html.sh (Executing programs): Update.
10091         * NEWS: Mention the change.
10092
10093 2010-12-10  Eric Blake  <eblake@redhat.com>
10094
10095         pipe-posix: new module
10096         * modules/pipe-posix: New file.
10097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10098         (gl_UNISTD_H): Check for declaration.
10099         * modules/unistd (Makefile.am): Substitute it.
10100         * lib/unistd.in.h (pipe): Provide it for mingw.
10101         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10102         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10103
10104 2010-12-07  Bruno Haible  <bruno@clisp.org>
10105
10106         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10107         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10108         u8_strcmp_gnu.
10109         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10110
10111 2010-12-06  Bruno Haible  <bruno@clisp.org>
10112
10113         Update internal documentation.
10114         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10115
10116 2010-12-04  Bruno Haible  <bruno@clisp.org>
10117
10118         Put more information about failed tests into the test return codes.
10119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10120         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10121         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10124         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10125         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10127         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10130         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10131         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10132         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10133         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10134         returns a bit mask.
10135         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10136         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10137         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10138         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10139         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10143         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10145         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10146         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10147         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10148         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10149         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10150         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10151         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10152         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10153         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10154         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10156         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10158         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10159         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10160         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10161         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10162         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10163         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10164         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10165         gl_PRINTF_PRECISION): Likewise.
10166         * m4/regex.m4 (gl_REGEX): Likewise.
10167         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10168         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10170         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10174         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10176         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10177         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10179         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10181         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10183         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10186         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10187         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10188         enumerated value.
10189         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10190
10191 2010-12-04  Bruno Haible  <bruno@clisp.org>
10192
10193         Update for Solaris 11 2010-11.
10194         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10195         Express, released in November 2010.
10196
10197 2010-12-04  Bruno Haible  <bruno@clisp.org>
10198
10199         nproc: Relax license.
10200         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10201         and Paul Eggert.
10202         Requested by Ludovic Courtès <ludo@gnu.org>.
10203
10204 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10205
10206         utimecmp: fine-grained src to nearby coarse-grained dest
10207
10208         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10209         and the source is on a file system with higher-resolution time
10210         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10211         not work, and the time stamps are close together, the algorithm to
10212         determine the exact resolution from the read-back mtime was buggy:
10213         it had a "!=" where it should have had an "==".  This bug has been
10214         in the code ever since it was introduced to gnulib.
10215         Problem reported by Dan Jacobson in
10216         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10217
10218 2010-11-30  Bruno Haible  <bruno@clisp.org>
10219
10220         strerror_r-posix: Fix autoconf test.
10221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10222
10223 2010-11-28  Bruno Haible  <bruno@clisp.org>
10224             Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         Tests for module 'getdomainname'.
10227         * modules/getdomainname-tests: New file.
10228         * tests/test-getdomainname.c: New file, based on
10229         tests/test-gethostname.c.
10230
10231 2010-11-28  Bruno Haible  <bruno@clisp.org>
10232             Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         getdomainname: Use the system function when possible.
10235         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10236         (getdomainname): Replace if needed. Provide the declaration if it is
10237         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10238         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10239         (getdomainname): When the system has getdomainname, call the system
10240         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10241         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10242         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10243         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10244         the function if its second argument is of type 'int' or if it is found
10245         in libnsl.
10246         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10247         <sys/systeminfo.h> and sysinfo().
10248         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10250         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10251         HAVE_GETDOMAINNAME.
10252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10253         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10254         * doc/glibc-functions/getdomainname.texi: Document the problems with
10255         the getdomainname declaration.
10256
10257 2010-11-28  Bruno Haible  <bruno@clisp.org>
10258
10259         sys_socket: Ensure ss_family field on AIX.
10260         * lib/sys_socket.in.h (ss_family): New macro definition.
10261         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10262         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10263         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10264         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10265         * modules/sys_socket (Makefile.am): Substitute
10266         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10267         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10268
10269 2010-11-27  Bruno Haible  <bruno@clisp.org>
10270
10271         readline: Improve configure output.
10272         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10273         "checking for readline..." result understandable.
10274
10275 2010-11-27  Bruno Haible  <bruno@clisp.org>
10276
10277         *printf-posix: Detect a bug on Solaris 10/x86.
10278         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10279         for floating-point output.
10280         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10281         directive.
10282         * tests/test-snprintf-posix.h (test_function): Likewise.
10283         * tests/test-sprintf-posix.h (test_function): Likewise.
10284         * tests/test-vasprintf-posix.c (test_function): Likewise.
10285         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10286         * doc/posix-functions/printf.texi: Likewise.
10287         * doc/posix-functions/snprintf.texi: Likewise.
10288         * doc/posix-functions/sprintf.texi: Likewise.
10289         * doc/posix-functions/vfprintf.texi: Likewise.
10290         * doc/posix-functions/vprintf.texi: Likewise.
10291         * doc/posix-functions/vsnprintf.texi: Likewise.
10292         * doc/posix-functions/vsprintf.texi: Likewise.
10293         * doc/glibc-functions/obstack_printf.texi: Likewise.
10294         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10295
10296 2010-11-27  Bruno Haible  <bruno@clisp.org>
10297
10298         Fix link error when module libunistring-optional is in use.
10299         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10300         * modules/striconveha-tests (Makefile.am): Likewise.
10301
10302 2010-11-27  Bruno Haible  <bruno@clisp.org>
10303
10304         regex: Mention link dependencies.
10305         * modules/regex (Link): New section.
10306         * modules/rpmatch (Link): Likewise.
10307         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10308
10309 2010-11-27  Bruno Haible  <bruno@clisp.org>
10310
10311         ftoastr: Fix compilation error on Solaris.
10312         * lib/ftoastr.c: Include <config.h>.
10313
10314 2010-11-27  Bruno Haible  <bruno@clisp.org>
10315
10316         getloadavg: Update documentation.
10317         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10318
10319 2010-11-27  Bruno Haible  <bruno@clisp.org>
10320
10321         sys_socket: Fix test whether the functions are declared.
10322         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10323         not <sys/select.h>.
10324
10325 2010-11-27  Bruno Haible  <bruno@clisp.org>
10326
10327         getpass: Make sure to get system declaration on some platforms.
10328         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10329         gl_USE_SYSTEM_EXTENSIONS.
10330         * modules/getpass (Depends-on): Add extensions.
10331
10332 2010-11-26  Bruno Haible  <bruno@clisp.org>
10333
10334         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10335         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10336         'iconv' module is present.
10337         (ICONV_CONST): New macro.
10338         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10339         ICONV_CONST.
10340         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10341         set ICONV_CONST.
10342         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10343         here.
10344         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10345         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10346         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10347         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10348         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10349         present.
10350
10351 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10352
10353         ftoastr: comment fix
10354         * lib/ftoastr.c: "little" -> "little or no" in comment
10355
10356 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10357
10358         stdint: port to GCC 4.3 + OSX + Octave
10359         On this platform, stdint.h is buggy and defines int64_t to long
10360         long int.  The replacement defined it to long int, causing
10361         problems with C++ style name mangling.  Instead, trust the system
10362         definition if INT64_MAX is defined, and likewise for the unsigned
10363         variant.   Problem reported by Jarno Rajahalme in
10364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10365         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10366         and don't mess with int64_t and INT64_MAX in this case.
10367         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10368
10369 2010-11-24  Bruno Haible  <bruno@clisp.org>
10370
10371         doc: Corrections regarding MacOS X 10.4 and 10.5.
10372         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10373         MacOS X.
10374         Reported by Simon Josefsson.
10375
10376 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10377
10378         Uninstall ".bin" files installed by relocwrapper.
10379         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10380         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10381         unless it is already there.
10382
10383 2010-11-21  Bruno Haible  <bruno@clisp.org>
10384
10385         Update for NetBSD 5.0.
10386         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10387         NetBSD; the test fails on NetBSD 5.0.
10388         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10389         about NetBSD.
10390
10391 2010-11-21  Bruno Haible  <bruno@clisp.org>
10392
10393         Update for HP-UX 11.23 and HP-UX 11.31.
10394         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10395         HP-UX.
10396
10397 2010-11-21  Bruno Haible  <bruno@clisp.org>
10398
10399         Update for MacOS X 10.5.
10400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10401         MacOS X; the test fails on MacOS X 10.5.8.
10402         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10403         about MacOS X.
10404
10405 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10406
10407         bootstrap: add bootstrap_sync option.
10408         See discussion at
10409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10411         * build-aux/bootstrap: Accept --bootstrap-sync to update
10412         bootstrap if it is not identical to the local gnulib's
10413         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10414         enable this by default.  Accept --no-bootstrap-sync to disable
10415         it.
10416
10417 2010-11-20  Bruno Haible  <bruno@clisp.org>
10418
10419         Ensure that <features.h> is included before __GLIBC__ is tested.
10420         * lib/printf-parse.h: Include <features.h>.
10421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10422         Reported by Mike Frysinger <vapier@gentoo.org>.
10423
10424         Ensure that <features.h> is included before __GLIBC__ is tested.
10425         * lib/wchar.in.h: Include <features.h>.
10426         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10427         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10428         Reported by Mike Frysinger <vapier@gentoo.org>.
10429
10430         Ensure that <features.h> is included before __GLIBC__ is tested.
10431         * lib/arpa_inet.in.h: Include <features.h>.
10432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10433         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10434         Reported by Mike Frysinger <vapier@gentoo.org>.
10435
10436         Ensure that <features.h> is included before __GLIBC__ is tested.
10437         * build-aux/link-warning.h: Include <features.h>.
10438         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10439         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10440         Reported by Mike Frysinger <vapier@gentoo.org>.
10441
10442         Ensure that <features.h> is included before __GLIBC__ is tested.
10443         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10444         Reported by Mike Frysinger <vapier@gentoo.org>.
10445
10446 2010-11-20  Bruno Haible  <bruno@clisp.org>
10447
10448         memmem: Fix autoconf test.
10449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10450
10451 2010-11-20  Bruno Haible  <bruno@clisp.org>
10452
10453         Port to uClibc.
10454         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10455         * lib/fcntl.in.h: Likewise.
10456         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10457         * lib/mbrtowc.c (mbrtowc): Likewise.
10458         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10459         * lib/strerror_r.c: Likewise.
10460         * lib/unistr/u8-strnlen.c: Likewise.
10461         * lib/vasnprintf.c (decimal_point_char): Likewise.
10462         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10463         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10465         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10466         * tests/test-sigaction.c (handler, main): Likewise.
10467         * lib/freading.h: Treat uClibc like a non-glibc platform.
10468         * lib/freading.c: Likewise.
10469         * lib/gettext.h: Likewise.
10470         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10471         Likewise.
10472         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10473         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10474         * lib/propername.c (proper_name_utf8): Likewise.
10475         * lib/spawn.in.h: Likewise.
10476         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10477         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10478         mem_cd_iconveh_internal): Likewise.
10479         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10480         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10481         strstr, strcasestr): Likewise.
10482         * lib/unicodeio.c (unicode_to_mb): Likewise.
10483         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10484         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10485         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10486         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10487         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10488         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10489         * lib/unistr/u8-stpncpy.c: Likewise.
10490         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10491         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10492         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10493         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10494         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10495         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10499         Likewise.
10500         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10501         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10503         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10505         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10506         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10507         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10508         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10509         * tests/test-striconveha.c (main): Likewise.
10510         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10511         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10512         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10513         * doc/posix-functions/getline.texi: Likewise.
10514         Reported by Mike Frysinger <vapier@gentoo.org>.
10515
10516 2010-11-20  Bruno Haible  <bruno@clisp.org>
10517
10518         nproc: Fix condition.
10519         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10520         HAVE_PTHREAD_AFFINITY_NP.
10521
10522 2010-11-20  Bruno Haible  <bruno@clisp.org>
10523
10524         Fix a comment.
10525         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10526
10527 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         ftoastr: don't assume snprintf
10530         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10531         Implement a subset of snprintf here, by using sprintf safely.
10532         * modules/ftoastr (Depends-on): Remove snprintf.
10533
10534 2010-11-19  Jim Meyering  <meyering@redhat.com>
10535
10536         test-rename.h: fix compilation failure
10537         * tests/test-rename.h (test_rename): Add omitted "}".
10538
10539 2010-11-17  Jim Meyering  <meyering@redhat.com>
10540
10541         maint.mk: add a URL discussing the no-@acronym policy
10542         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10543
10544 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10545
10546         ftoastr: depend on snprintf, improve comments
10547         * lib/ftoastr.c: Also mention Loitsch's draft.
10548         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10549         needed in the current implementation, but it might simplify
10550         speeding up the code later.
10551         * modules/ftoastr: Depend on snprintf; this improves portability.
10552         Suggested by Bruno Haible in the same email.
10553
10554         ftoastr: port to hosts lacking strtof and strtold
10555         Problem reported by Bruno Haible in
10556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10557         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10558         environment and strtold (and presumably strtof) are not available.
10559         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10560         (configure.ac): Require gl_C99_STRTOLD.
10561
10562 2010-11-18  Bruno Haible  <bruno@clisp.org>
10563
10564         c-strtold: Avoid link error on AIX 7.
10565         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10566         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10567         (gl_C_STRTOLD): Test whether strtold_l exists.
10568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10569
10570 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10571
10572         intprops: new macro INT_BITS_STRLEN_BOUND
10573         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10574         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10575         not exposed.  Also, it uses a slightly tighter bound than before;
10576         though this makes no practical difference, we might as well be as
10577         tight as we easily can.
10578
10579         ftoastr: new module, for lossless conversion of floats to short strings
10580         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10581         * modules/ftoastr: New files.
10582
10583 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10584
10585         bootstrap: port to Solaris sed
10586         * build-aux/bootstrap (get_version): Port to Solaris sed.
10587         See Ralf Wildenhues's note in
10588         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10589
10590 2010-11-14  Jim Meyering  <meyering@redhat.com>
10591
10592         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10593         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10594         and move definition closer to sole use.
10595
10596 2010-11-13  Jim Meyering  <meyering@redhat.com>
10597
10598         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10599         Now we require at least autoconf-2.59, which means the work-around
10600         is no longer needed.
10601         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10603         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10604         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10605         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10606
10607 2010-11-13  Bruno Haible  <bruno@clisp.org>
10608
10609         rename, renameat: Avoid test failures at NFS mounted locations.
10610         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10611         functions.
10612         (test_rename): Use assert_nonexistent.
10613         * tests/test-rename.c: Include <dirent.h>.
10614         * tests/test-renameat.c: Likewise.
10615         Reported by Gary V. Vaughan <gary@gnu.org>.
10616
10617         rename, renameat: Document Linux bug with NFS
10618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10619         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10620         * doc/posix-functions/renameat.texi: Likewise.
10621         Suggested by Eric Blake.
10622
10623 2010-11-13  Bruno Haible  <bruno@clisp.org>
10624
10625         rename test: Add comments.
10626         * tests/test-rename.h (test_rename): Add structure and comments.
10627
10628 2010-11-13  Eric Blake  <eblake@redhat.com>
10629
10630         maintainer-makefile: cover a few more files
10631         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10632         scripts generated within C files, for libvirt.
10633
10634 2010-11-13  Bruno Haible  <bruno@clisp.org>
10635
10636         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10637         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10638         character, return the number of bytes that belong together, not always
10639         1.
10640         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10641         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10642         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10643         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10644         number of bytes of an invalid character.
10645         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10646         (main): Invoke it.
10647         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10648         results.
10649         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10650         malformed byte sequences.
10651         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10652         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10653         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10654         Reported by Ben Pfaff and Paolo Bonzini.
10655
10656 2010-11-13  Bruno Haible  <bruno@clisp.org>
10657
10658         openat: Work around glibc bug with fchownat() and empty file names.
10659         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10660         (gl_FUNC_FCHOWNAT): Invoke it.
10661         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10662         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10663         Reported by Gary V. Vaughan <gary@gnu.org>.
10664
10665 2010-11-13  Bruno Haible  <bruno@clisp.org>
10666
10667         openat: Ensure autoconf macro ordering.
10668         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10669         gl_USE_SYSTEM_EXTENSIONS.
10670         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10671
10672 2010-11-13  Bruno Haible  <bruno@clisp.org>
10673
10674         Update comments.
10675         * lib/unistr/u8-check.c: Update file name in comments.
10676         * lib/unistr/u8-mblen.c: Likewise.
10677         * lib/unistr/u8-prev.c: Likewise.
10678         * lib/unistr/u8-strmblen.c: Likewise.
10679         * lib/unistr/u8-strmbtouc.c: Likewise.
10680
10681 2010-11-13  Jim Meyering  <meyering@redhat.com>
10682
10683         tests: avoid test failure on Solaris 10 due to lack of PATH export
10684         * tests/test-update-copyright.sh: Don't forget to export PATH.
10685
10686         init.sh: ensure that IFS is defined, just in case...
10687         * tests/init.sh (setup_): Ensure that IFS is defined,
10688         so that saving and restoring it works as expected.  This
10689         appears to be useful at least for an old version of dash
10690         from a long time ago (RH 6).  See here for details:
10691         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10692
10693         maint.mk: tighten "test a == b" check
10694         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10695         test to files that contain something like #!/bin/sh.
10696         Without this, coreutils would get two false positives in
10697         the comments of C source files.
10698
10699 2010-11-12  Eric Blake  <eblake@redhat.com>
10700
10701         bootstrap: fix typo in previous attempt
10702         * build-aux/bootstrap (buildreq): Correct the grouping.
10703         Reported by Paul Eggert.
10704
10705         maintainer-makefile: prohibit test x == x
10706         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10707         Based on a report by Matthias Bolte.
10708
10709         bootstrap: allow FreeBSD gzip
10710         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10711         which has no '.' and goes to stderr.
10712         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10713         Reported by Matthias Bolte.
10714
10715         maintainer-makefile: check for i18n setup
10716         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10717         will likely work.
10718
10719 2010-11-12  Bruno Haible  <bruno@clisp.org>
10720
10721         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10722         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10723         * lib/nanosleep.c (nanosleep): Likewise.
10724
10725 2010-11-11  Bruno Haible  <bruno@clisp.org>
10726
10727         fcntl-h: Fix for use of C++ on glibc systems.
10728         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10729         also on glibc systems in C++ mode.
10730         Reported by Gary V. Vaughan <gary@gnu.org>.
10731
10732 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10733
10734         mknod: avoid false failure with dash
10735         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10736
10737 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10738
10739         unlink: Fix "is it should" typo in diagnostic.
10740         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10742
10743 2010-11-11  Bruno Haible  <bruno@clisp.org>
10744
10745         Tests for module 'strerror_r-posix'.
10746         * modules/strerror_r-posix-tests: New file.
10747         * tests/test-strerror_r.c: New file.
10748         * tests/test-string-c++.cc: Check the signature of strerror_r.
10749
10750         New module 'strerror_r-posix'.
10751         * lib/string.in.h (strerror_r): New declaration.
10752         * lib/strerror_r.c: New file.
10753         * m4/strerror_r.m4: New file.
10754         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10755         of strerror_r.
10756         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10757         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10758         * modules/strerror_r-posix: New file.
10759         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10760         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10761         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10762         portability problems.
10763
10764 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10765
10766         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10767         line is also considered for output. Quoted function name in shell
10768         command, so temporary files for functions like MyClass::operator()
10769         are removed correctly without errors.
10770
10771 2010-11-09  Bruno Haible  <bruno@clisp.org>
10772
10773         * doc/posix-functions/strerror.texi: List more failing platforms.
10774
10775         * doc/posix-functions/strerror.texi: Add a comment.
10776
10777 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10778
10779         fdopendir: fix bug on MacOS X when low on file descriptors
10780
10781         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10782         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10783         All callers changed.
10784         (fdopendir): Invoke save_cwd at the top level, not after using
10785         multiple dup() calls to use up file descriptors.  Then retry
10786         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10787         less than the maximum number of open file descriptors, because
10788         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10789         on Mac OS X 10.6.4 for tar 1.24
10790         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10791         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10792         and for tar 1.25
10793         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10794
10795 2010-11-07  Bruno Haible  <bruno@clisp.org>
10796
10797         vasnprintf: Support I flag on glibc systems.
10798         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10799         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10800         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10801         snprintf function.
10802         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10803         glibc systems.
10804         * tests/test-vasnprintf-posix3.c: New file.
10805         * modules/vasnprintf-posix-tests (Files): Add it.
10806         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10807
10808 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10809
10810         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10811         * MODULES.html.sh: For compiler warnings, use name
10812         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10813
10814 2010-11-05  Eric Blake  <eblake@redhat.com>
10815
10816         ceil, floor: avoid spurious failure with icc
10817         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10818         [denormals-as-zero] when optimizing without -mieee-fp option.
10819         * tests/test-floorf2.c (floorf_reference): Likewise.
10820         * tests/test-ceilf1.c (dummy): New function.
10821         (main): Use it to outsmart icc's optimization.
10822         * tests/test-floorf1.c (dummy, main): Likewise.
10823
10824         tests: require working signbit
10825         * modules/ceilf-tests (Depends-on): Add signbit.
10826         * modules/ceill-tests (Depends-on): Likewise.
10827         * modules/floorf-tests (Depends-on): Likewise.
10828         * modules/floorl-tests (Depends-on): Likewise.
10829         * modules/round-tests (Depends-on): Likewise.
10830         * modules/roundf-tests (Depends-on): Likewise.
10831         * modules/roundl-tests (Depends-on): Likewise.
10832         * modules/trunc-tests (Depends-on): Likewise.
10833         * modules/truncf-tests (Depends-on): Likewise.
10834         * modules/truncl-tests (Depends-on): Likewise.
10835
10836         strtod: work around icc bug
10837         * lib/strtod.c (minus_zero): Define to working value.
10838         (strtod): Use it to avoid icc bug.
10839
10840         copysign: enhance tests
10841         * modules/copysign-tests (Files): Add minus-zero.h.
10842         * tests/test-copysign.c (main): Also test zeros.
10843
10844 2010-11-04  Eric Blake  <eblake@redhat.com>
10845
10846         ceil, floor, round, trunc: enhance tests of -0
10847         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10848         * tests/test-ceill.c (main): Likewise.
10849         * tests/test-floorf1.c (main): Likewise.
10850         * tests/test-floorl.c (main): Likewise.
10851         * tests/test-round1.c (main): Likewise.
10852         * tests/test-roundf1.c (main): Likewise.
10853         * tests/test-roundl.c (main): Likewise.
10854         * tests/test-trunc1.c (main): Likewise.
10855         * tests/test-truncf1.c (main): Likewise.
10856         * tests/test-truncl.c (main): Likewise.
10857
10858 2010-11-04  Eric Blake  <eblake@redhat.com>
10859
10860         frexp, tests: work around ICC bug with -zero
10861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10862         works with more compilers.
10863         * tests/minus-zero.h: New file.
10864         * modules/ceilf-tests (Files): Include it.
10865         * modules/ceill-tests (Files): Likewise.
10866         * modules/floorf-tests (Files): Likewise.
10867         * modules/floorl-tests (Files): Likewise.
10868         * modules/frexp-nolibm-tests (Files): Likewise.
10869         * modules/frexp-tests (Files): Likewise.
10870         * modules/frexpl-nolibm-tests (Files): Likewise.
10871         * modules/frexpl-tests (Files): Likewise.
10872         * modules/isnan-tests (Files): Likewise.
10873         * modules/isnand-nolibm-tests (Files): Likewise.
10874         * modules/isnand-tests (Files): Likewise.
10875         * modules/isnanf-nolibm-tests (Files): Likewise.
10876         * modules/isnanf-tests (Files): Likewise.
10877         * modules/isnanl-nolibm-tests (Files): Likewise.
10878         * modules/isnanl-tests (Files): Likewise.
10879         * modules/round-tests (Files): Likewise.
10880         * modules/roundf-tests (Files): Likewise.
10881         * modules/roundl-tests (Files): Likewise.
10882         * modules/ldexpl-tests (Files): Likewise.
10883         * modules/signbit-tests (Files): Likewise.
10884         * modules/snprintf-posix-tests (Files): Likewise.
10885         * modules/sprintf-posix-tests (Files): Likewise.
10886         * modules/strtod-tests (Files): Likewise.
10887         * modules/trunc-tests (Files): Likewise.
10888         * modules/truncf-tests (Files): Likewise.
10889         * modules/truncl-tests (Files): Likewise.
10890         * modules/vsnprintf-posix-tests (Files): Likewise.
10891         * modules/vsprintf-posix-tests (Files): Likewise.
10892         * modules/vasnprintf-posix-tests (Files): Likewise.
10893         * modules/vasprintf-posix-tests (Files): Likewise.
10894         * tests/test-ceilf1.c (main): Use it.
10895         * tests/test-ceill.c (main): Likewise.
10896         * tests/test-floorf1.c (main): Likewise.
10897         * tests/test-floorl.c (main): Likewise.
10898         * tests/test-frexp.c (main): Likewise.
10899         * tests/test-frexpl.c (main): Likewise.
10900         * tests/test-isnan.c (main): Likewise.
10901         * tests/test-isnand.h (main): Likewise.
10902         * tests/test-isnanf.h (main): Likewise.
10903         * tests/test-isnanl.h (main): Likewise.
10904         * tests/test-ldexpl.c (main): Likewise.
10905         * tests/test-round.c (main): Likewise.
10906         * tests/test-roundf.c (main): Likewise.
10907         * tests/test-roundl.c (main): Likewise.
10908         * tests/test-signbit.c (test_signbitf, test_signbitd)
10909         (test_signbitl): Likewise.
10910         * tests/test-snprintf-posix.h (test_function): Likewise.
10911         * tests/test-sprintf-posix.h (test_function): Likewise.
10912         * tests/test-strtod.c (main): Likewise.
10913         * tests/test-trunc1.c (main): Likewise.
10914         * tests/test-truncf1.c (main): Likewise.
10915         * tests/test-truncl.c (main): Likewise.
10916
10917         isnanl: work around icc bug
10918         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10919
10920 2010-11-03  Eric Blake  <eblake@redhat.com>
10921
10922         tests: fix compiler warnings
10923         * tests/test-getopt.h (test_getopt): Fix condition.
10924         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10925         * tests/test-pipe2.c (main): Likewise.
10926         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10927
10928         utimens: fix broken m4 test
10929         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10930
10931 2010-10-28  Bruno Haible  <bruno@clisp.org>
10932
10933         posix_spawn*, getdtablesize: Relax license.
10934         * modules/posix_spawn (License): Change to LGPLv2+.
10935         * modules/posix_spawnp (License): Likewise.
10936         * modules/posix_spawn-internal (License): Likewise.
10937         * modules/posix_spawnattr_init (License): Likewise.
10938         * modules/posix_spawnattr_getflags (License): Likewise.
10939         * modules/posix_spawnattr_setflags (License): Likewise.
10940         * modules/posix_spawnattr_getpgroup (License): Likewise.
10941         * modules/posix_spawnattr_setpgroup (License): Likewise.
10942         * modules/posix_spawnattr_getschedparam (License): Likewise.
10943         * modules/posix_spawnattr_setschedparam (License): Likewise.
10944         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10945         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10946         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10947         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10948         * modules/posix_spawnattr_getsigmask (License): Likewise.
10949         * modules/posix_spawnattr_setsigmask (License): Likewise.
10950         * modules/posix_spawnattr_destroy (License): Likewise.
10951         * modules/posix_spawn_file_actions_init (License): Likewise.
10952         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10953         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10954         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10955         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10956         * modules/getdtablesize (License): Likewise.
10957         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10958
10959 2010-10-26  Bruno Haible  <bruno@clisp.org>
10960
10961         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10962         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10963         Cygwin and mingw.
10964         Suggested by Eric Blake.
10965
10966 2010-10-26  Bruno Haible  <bruno@clisp.org>
10967
10968         stdio: Work around compilation error due to renameat() on Solaris 10.
10969         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10970         * lib/renameat.c: Don't include <unistd.h> here.
10971         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10972         Reported by Paul Eggert and Eric Blake.
10973
10974 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10975
10976         renameat: port to Solaris 10, which declares renameat in unistd.h
10977
10978         * lib/renameat.c: Include unistd.h before stdio.h, because
10979         Solaris 10 declares renameat in unistd.h.  Problem encountered
10980         when building GNU tar 1.24 on Solaris 10.
10981
10982 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10983
10984         fdopendir: fix C89 compilation
10985         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10986         compilers.
10987
10988 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10989
10990         inttostr: simplify by removing unnecessary redundancy
10991         * lib/anytostr.c: Don't include verify.h.
10992         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10993         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10994         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10995         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10996         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10997         Likewise.
10998         * modules/inttostr (Depends-on): Remove 'verify'.
10999
11000 2010-10-23  Bruno Haible  <bruno@clisp.org>
11001
11002         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11003         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11004         Reported by Eric Blake.
11005
11006 2010-10-23  Bruno Haible  <bruno@clisp.org>
11007
11008         Tests: Fix LOCALE_JA on MirBSD 10.
11009         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11010         to an UTF-8 locale.
11011         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11013         Reported by Eric Blake.
11014
11015 2010-10-21  Bruno Haible  <bruno@clisp.org>
11016
11017         nl_langinfo test: Avoid test failure on NetBSD 5.
11018         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11019         Reported by Eric Blake.
11020
11021 2010-10-21  Eric Blake  <eblake@redhat.com>
11022
11023         c-stack: work around libsigsegv 2.8 bug
11024         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11025         overflow on at least PowerPC64.
11026
11027 2010-10-17  Bruno Haible  <bruno@clisp.org>
11028
11029         userspec: Drop redundant file.
11030         * modules/userspec (Files): Remove lib/inttostr.h.
11031
11032 2010-10-17  Bruno Haible  <bruno@clisp.org>
11033
11034         nl_langinfo tests: Silence some warnings.
11035         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11036         Reported by Jim Meyering.
11037
11038 2010-10-17  Bruno Haible  <bruno@clisp.org>
11039
11040         Make use of GCC's attribute __alloc_size__.
11041         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11042         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11043         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11044         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11045         __alloc_size__.
11046         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11047         Suggested by Jim Meyering.
11048
11049 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11050
11051         bootstrap: anchor .gitignore entries.
11052         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11053         with...
11054         (insert_vc_ignore): ... this new function, which prepends `/' to
11055         all .gitignore entries before passing them to
11056         insert_sorted_if_absent.
11057
11058 2010-10-16  Bruno Haible  <bruno@clisp.org>
11059
11060         nextafter: Fix configure check.
11061         * modules/nextafter (configure.ac): Correct expected prototype.
11062
11063 2010-10-16  Bruno Haible  <bruno@clisp.org>
11064
11065         termios: Update documentation.
11066         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11067
11068 2010-10-16  Bruno Haible  <bruno@clisp.org>
11069
11070         tests: Make them compile with TinyCC.
11071         * tests/test-strstr.c (main): Remove parentheses around array
11072         initializer.
11073
11074 2010-10-15  Eric Blake  <eblake@redhat.com>
11075
11076         ignore-value: make header idempotent
11077         * lib/ignore-value.h: Add double-inclusion guards.
11078         Reported by Stefan Berger.
11079
11080 2010-10-15  Jim Meyering  <meyering@redhat.com>
11081
11082         GNUmakefile: handle "stable" target, not "major"
11083         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11084         lists in maint.mk and announce-gen.  Without this, "make stable"
11085         would fail to ensure that $(VERSION) is up to date.
11086
11087 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11088
11089         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11090         & co.
11091
11092 2010-10-14  Bruno Haible  <bruno@clisp.org>
11093
11094         vasnprintf: Don't set errno to 0.
11095         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11096         block that sets it to 0.
11097         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11098
11099 2010-10-14  Bruno Haible  <bruno@clisp.org>
11100
11101         socketlib: Fix.
11102         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11103         gl_PREREQ_SYS_H_WINSOCK2.
11104         Reported by Ian Beckwith <ianb@erislabs.net>.
11105
11106 2010-10-13  Jim Meyering  <meyering@redhat.com>
11107
11108         test-select-stdin.c: avoid warn_unused_result warnings
11109         * tests/test-select-stdin.c: Include "macros.h".
11110         ASSERT that read and fflush succeed.
11111
11112 2010-10-13  Jim Meyering  <meyering@redhat.com>
11113
11114         git-version-gen: do require git-VC'd files in cwd
11115         * build-aux/git-version-gen: Reject a git version string
11116         if there are no commits associated with the current directory.
11117         This avoids an unlikely false-positive (unrelated dir whose parent
11118         repository also contains a tag matching v*), as pointed out
11119         by Giuseppe Scrivano in
11120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11121
11122 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11123
11124         argv-iter: omit nonconforming declaration
11125         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11126         enum arg_iter_err declaration, which doesn't conform to C99.
11127         Solaris 10 cc warns about this.
11128
11129 2010-10-13  Eric Blake  <eblake@redhat.com>
11130
11131         termios: fix compilation on mingw
11132         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11133         (gl_TERMIOS_H): Adjust it on mingw.
11134         * modules/termios (Makefile.am): Substitute new key.
11135         * lib/termios.in.h (includes): Make include_next conditional.
11136         * doc/posix-headers/termios.texi (termios.h): Update
11137         documentation.
11138         Reported by Daniel P. Berrange.
11139
11140 2010-10-13  Jim Meyering  <meyering@redhat.com>
11141
11142         git-version-gen: don't require that .git/ be in the current dir
11143         * build-aux/git-version-gen: Adjust this script so that it works
11144         when run from any working directory beneath the top-level .git/-
11145         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11147
11148         test-select: avoid warn_unused_result warnings
11149         * tests/test-select.c: Include "macros.h".
11150         ASSERT that each call to read, write, and pipe succeeds.
11151         While not technically required, also check each "close".
11152         * modules/select-tests (Files): Add tests/macros.h.
11153
11154         test-symlinkat: remove declaration of unused local
11155         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11156
11157         test-inttostr: avoid shadowing warnings
11158         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11159         and use malloc rather than the stack for the same reason as
11160         mentioned in the comment justifying the other allocation.
11161
11162 2010-10-11  Bruno Haible  <bruno@clisp.org>
11163
11164         stdlib: Allow multiple gnulib generated replacements to coexist.
11165         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11166         Reported by Sam Steingold <sds@gnu.org>.
11167
11168 2010-10-11  Jim Meyering  <meyering@redhat.com>
11169
11170         fix a documentation typo
11171         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11172
11173 2010-10-11  Eric Blake  <eblake@redhat.com>
11174
11175         futimens: work around Solaris 11 bug
11176         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11177         * tests/test-futimens.h (test_futimens): Enhance, rather than
11178         weaken test.
11179         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11180
11181 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11182
11183         Indentation.
11184         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11185         higher-level operators more to the left.
11186
11187 2010-10-11  Jim Meyering  <meyering@redhat.com>
11188
11189         test-futimens: avoid unwarranted test failure on Solaris 5.11
11190         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11191         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11192         because it tries to dereference the NULL name argument.
11193
11194 2010-10-11  Bruno Haible  <bruno@clisp.org>
11195
11196         Indentation.
11197         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11198         indentation.
11199
11200 2010-10-11  Jim Meyering  <meyering@redhat.com>
11201
11202         spawn.in.h: make indentation consistent with parentheses
11203         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11204         Make indentation consistent with parentheses.
11205
11206 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11207
11208         Fix mismatched parens in previous commit
11209         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11210         parens.
11211
11212 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11215
11216         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11217         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11218         * lib/malloca.c: Include "verify.h".
11219         (verify1): Remove, replacing with a verify call.
11220         * lib/relocwrapper.c (verify1): Likewise.
11221         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11222         Likewise.
11223         * modules/malloca (Depends-on): Add 'verify'.
11224         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11225         * modules/vasnprintf (Depends-on): Add 'verify'.
11226         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11227         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11228         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11229         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11230         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11231         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11232         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11233
11234         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11235
11236         Formerly the style was sometimes 2*X - 1, because the C standard
11237         was wrongly thought to disallow ?: in integral constant expressions.
11238         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11239         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11240         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11241         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11242         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11243         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11244         verify that time_t cannot be floating.
11245
11246 2010-10-08  Eric Blake  <eblake@redhat.com>
11247
11248         time: enforce recent POSIX ruling that time_t is integral
11249         * lib/time.in.h (__time_t_must_be_integral): Detect any
11250         problematic systems, allowing the rest of gnulib to assume POSIX.
11251
11252 2010-10-08  Jim Meyering  <meyering@redhat.com>
11253
11254         fdopendir: fix a bug on systems lacking openat and /proc support
11255         OpenBSD 4.7 is one such system.  The most noticeable effect was
11256         failure of any application making nontrivial use of fts: rm, du,
11257         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11258           ./rm: traversal failed: `a': Bad file descriptor
11259         Debugging that, you see that even though FD 6 was closed just
11260         prior to the opendir call in fd_clone_opendir, its resulting
11261         dir->dd_fd was 8, rather than the expected value of 6:
11262
11263         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11264         93                close (fd);
11265         (gdb) n
11266         94                dir = fd_clone_opendir (dupfd);
11267         (gdb) n
11268         95                saved_errno = errno;
11269         (gdb) p dir->dd_fd
11270         $11 = 8
11271
11272         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11273         The problem is that on OpenBSD, fd_clone_opendir has to resort
11274         to using the old-style save/restore CWD mechanism, due to its
11275         lack of openat/proc support, and *that* would steal the FD (6)
11276         that opendir was supposed to use.
11277
11278         The fix is to squirrel away the desired FD so that save_cwd uses a
11279         different one, and then free the dest FD right before calling opendir.
11280         That guarantees opendir will use the required file descriptor.
11281
11282         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11283
11284 2010-10-08  Bruno Haible  <bruno@clisp.org>
11285
11286         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11287         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11288
11289 2010-10-08  Bruno Haible  <bruno@clisp.org>
11290
11291         nanosleep: Make replacement POSIX compliant.
11292         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11293         is out of range.
11294         Reported by Jim Meyering.
11295
11296 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11297
11298         bootstrap: add hook for altering gnulib.mk, for Bison
11299         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11300         the Bison bootstrapping process can rewrite file names and variables
11301         in this file before later parts of 'bootstrap' use the file.
11302         Bison wants to include lib/gnulib.mk from the top-level makefile,
11303         so it needs the file names in this file to be relative to the top
11304         level, not relative to lib; plus it needs variable names to be
11305         rewritten.
11306         (slurp): Use the new function.
11307
11308         bootstrap: reformat for readability
11309         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11310
11311 2010-10-08  Eric Blake  <eblake@redhat.com>
11312
11313         docs: update cygwin progress
11314         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11315         1.7.7.
11316         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11317         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11318         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11319         * doc/posix-functions/carg.texi (carg): Likewise.
11320         * doc/posix-functions/cargf.texi (cargf): Likewise.
11321         * doc/posix-functions/casin.texi (casin): Likewise.
11322         * doc/posix-functions/casinf.texi (casinf): Likewise.
11323         * doc/posix-functions/casinh.texi (casinh): Likewise.
11324         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11325         * doc/posix-functions/catan.texi (catan): Likewise.
11326         * doc/posix-functions/catanf.texi (catanf): Likewise.
11327         * doc/posix-functions/catanh.texi (catanh): Likewise.
11328         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11329         * doc/posix-functions/ccos.texi (ccos): Likewise.
11330         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11331         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11332         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11333         * doc/posix-functions/cexp.texi (cexp): Likewise.
11334         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11335         * doc/posix-functions/cimag.texi (cimag): Likewise.
11336         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11337         * doc/posix-functions/clog.texi (clog): Likewise.
11338         * doc/posix-functions/clogf.texi (clogf): Likewise.
11339         * doc/posix-functions/conj.texi (conj): Likewise.
11340         * doc/posix-functions/conjf.texi (conjf): Likewise.
11341         * doc/posix-functions/cpow.texi (cpow): Likewise.
11342         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11343         * doc/posix-functions/cproj.texi (cproj): Likewise.
11344         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11345         * doc/posix-functions/creal.texi (creal): Likewise.
11346         * doc/posix-functions/crealf.texi (crealf): Likewise.
11347         * doc/posix-functions/csin.texi (csin): Likewise.
11348         * doc/posix-functions/csinf.texi (csinf): Likewise.
11349         * doc/posix-functions/csinh.texi (csinh): Likewise.
11350         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11351         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11352         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11353         * doc/posix-functions/ctan.texi (ctan): Likewise.
11354         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11355         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11356         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11357         * doc/posix-headers/complex.texi (complex.h): Likewise.
11358
11359 2010-10-07  Jim Meyering  <meyering@redhat.com>
11360
11361         parse-datetime: avoid compilation failure on OpenBSD 4.7
11362         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11363         This works around a compilation failure on OpenBSD 4.7:
11364         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11365
11366 2010-10-07  Eric Blake  <eblake@redhat.com>
11367
11368         docs: update cygwin progress
11369         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11370         1.7.6.
11371         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11372         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11373         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11374         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11375         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11376         Likewise.
11377         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11378         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11379         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11380         Likewise.
11381         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11382         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11383         Likewise.
11384         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11385         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11386         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11387         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11388         Likewise.
11389         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11390         Likewise.
11391         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11392
11393         docs: update parse-datetime history
11394         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11395         documentation of this function's history and alternatives.
11396
11397         cygwin: use more robust version check
11398         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11399         exclude an eventual cygwin 1.9.1.
11400         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11402         (gl_FUNC_STRCASESTR): Likewise.
11403         Reported by Bruno Haible.
11404
11405 2010-10-06  Bruno Haible  <bruno@clisp.org>
11406
11407         string, sys_select: Avoid #including large headers unless necessary.
11408         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11409         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11410         OSF/1, BeOS, Haiku.
11411         Reported by Jim Meyering.
11412
11413 2010-10-05  Eric Blake  <eblake@redhat.com>
11414
11415         memmem, strstr, strcasestr: fix bug with long periodic needle
11416         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11417         periodic needle having false positive.
11418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11419         and cygwin 1.7.7.
11420         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11422         (gl_FUNC_STRCASESTR): Likewise.
11423         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11424         * tests/test-memmem.c (main): Expose the bug.
11425         * tests/test-strcasestr.c (main): Likewise.
11426         * tests/test-strstr.c (main): Likewise.
11427         * tests/test-c-strcasestr.c (main): Likewise.
11428         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11429         * doc/posix-functions/strstr.texi (strstr): Likewise.
11430         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11431         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11432
11433 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11434
11435         parse-datetime: do some more renaming
11436         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11437         parse_datetime, not get_date.  Mention the renaming.
11438         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11439         in comments.
11440         * m4/bison.m4: Likewise.
11441
11442 2010-10-05  Eric Blake  <eblake@redhat.com>
11443
11444         parse-datetime: better name than get_date
11445         * NEWS: Reword the deprecation notice.
11446         * modules/get_date: Rename to modules/parse-datetime.
11447         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11448         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11449         * lib/get_date.y: Rename to lib/parse-datetime.y.
11450         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11451         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11452         * doc/getdate.texi: Provide fallback wrapper.
11453         * lib/getdate.h: Move guts, and wrap...
11454         * lib/parse-datetime.h: ...new file.
11455         * lib/parse-datetime.y (get_date): Rename...
11456         (parse_datetime): ...to this.
11457         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11458         (gl_PARSE_DATETIME): ...to this.
11459         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11460         documentation.
11461         * modules/getdate (Files): Provide fallback docs and header.
11462         (Notice, Depends-on): Update references.
11463         * tests/test-parse-datetime.c: Likewise.
11464         * DEPENDENCIES: Likewise.
11465         * MODULES.html.sh (Date and time <time.h>): Likewise.
11466         * doc/parse-datetime.texi (Date input formats)
11467         (Authors of parse_datetime): Likewise.
11468         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11469         (Include): Likewise.
11470         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11471         * gnulib-tool: Likewise.
11472         * m4/bison.m4 (gl_BISON): Likewise.
11473         Suggested by Bruno Haible.
11474
11475 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11476
11477         more ports to Solaris tr, which needs [] around ranges
11478         * gnulib-tool: Solaris tr needs [] around ranges.
11479         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11480         * tests/test-pipe-filter-gi1.c (main): Likewise.
11481         * tests/test-pipe-filter-ii1.c (main): Likewise.
11482
11483 2010-10-05  Eric Blake  <eblake@redhat.com>
11484
11485         bootstrap: fix Solaris regression
11486         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11487         around ranges.
11488         Reported by Pádraig Brady.
11489
11490         bootstrap: work with pkg-config
11491         * build-aux/bootstrap (check_versions): Also transliterate - in
11492         prerequisite name.
11493         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11494         prerequisites that were already found, to avoid confusion.
11495         Reported by Justin Clift.
11496
11497         faccessat: remove unused wrappers
11498         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11499         presence of these wrappers dragged in -lgen on Solaris.
11500         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11501
11502 2010-10-05  Jim Meyering  <meyering@redhat.com>
11503
11504         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11505         * Makefile (sc_pragma_columns): New syntax-check rule.
11506
11507 2010-10-04  Bruno Haible  <bruno@clisp.org>
11508
11509         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11510         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11511         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11512         Reported by Bruce Korb and Eric Blake.
11513
11514 2010-10-04  Bruno Haible  <bruno@clisp.org>
11515
11516         threadlib: Make option --with-libpth-prefix work.
11517         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11518         use $LIBPTH, not just -lpth.
11519
11520 2010-10-04  Bruno Haible  <bruno@clisp.org>
11521
11522         Avoid line length limitation from HP NonStop system header files.
11523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11524         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11525         * lib/ctype.in.h: Likewise.
11526         * lib/dirent.in.h: Likewise.
11527         * lib/errno.in.h: Likewise.
11528         * lib/fcntl.in.h: Likewise.
11529         * lib/float.in.h: Likewise.
11530         * lib/getopt.in.h: Likewise.
11531         * lib/iconv.in.h: Likewise.
11532         * lib/inttypes.in.h: Likewise.
11533         * lib/langinfo.in.h: Likewise.
11534         * lib/locale.in.h: Likewise.
11535         * lib/math.in.h: Likewise.
11536         * lib/netdb.in.h: Likewise.
11537         * lib/netinet_in.in.h: Likewise.
11538         * lib/poll.in.h: Likewise.
11539         * lib/pthread.in.h: Likewise.
11540         * lib/pty.in.h: Likewise.
11541         * lib/sched.in.h: Likewise.
11542         * lib/se-selinux.in.h: Likewise.
11543         * lib/search.in.h: Likewise.
11544         * lib/signal.in.h: Likewise.
11545         * lib/spawn.in.h: Likewise.
11546         * lib/stdarg.in.h: Likewise.
11547         * lib/stddef.in.h: Likewise.
11548         * lib/stdint.in.h: Likewise.
11549         * lib/stdio.in.h: Likewise.
11550         * lib/stdlib.in.h: Likewise.
11551         * lib/string.in.h: Likewise.
11552         * lib/strings.in.h: Likewise.
11553         * lib/sys_file.in.h: Likewise.
11554         * lib/sys_ioctl.in.h: Likewise.
11555         * lib/sys_select.in.h: Likewise.
11556         * lib/sys_socket.in.h: Likewise.
11557         * lib/sys_stat.in.h: Likewise.
11558         * lib/sys_time.in.h: Likewise.
11559         * lib/sys_times.in.h: Likewise.
11560         * lib/sys_utsname.in.h: Likewise.
11561         * lib/sys_wait.in.h: Likewise.
11562         * lib/sysexits.in.h: Likewise.
11563         * lib/termios.in.h: Likewise.
11564         * lib/time.in.h: Likewise.
11565         * lib/unistd.in.h: Likewise.
11566         * lib/wchar.in.h: Likewise.
11567         * lib/wctype.in.h: Likewise.
11568         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11569         * modules/ctype (Makefile.am): Likewise.
11570         * modules/dirent (Makefile.am): Likewise.
11571         * modules/errno (Makefile.am): Likewise.
11572         * modules/fcntl-h (Makefile.am): Likewise.
11573         * modules/float (Makefile.am): Likewise.
11574         * modules/getopt-posix (Makefile.am): Likewise.
11575         * modules/iconv-h (Makefile.am): Likewise.
11576         * modules/inttypes (Makefile.am): Likewise.
11577         * modules/langinfo (Makefile.am): Likewise.
11578         * modules/locale (Makefile.am): Likewise.
11579         * modules/math (Makefile.am): Likewise.
11580         * modules/netdb (Makefile.am): Likewise.
11581         * modules/netinet_in (Makefile.am): Likewise.
11582         * modules/poll-h (Makefile.am): Likewise.
11583         * modules/pthread (Makefile.am): Likewise.
11584         * modules/pty (Makefile.am): Likewise.
11585         * modules/sched (Makefile.am): Likewise.
11586         * modules/search (Makefile.am): Likewise.
11587         * modules/selinux-h (Makefile.am): Likewise.
11588         * modules/signal (Makefile.am): Likewise.
11589         * modules/spawn (Makefile.am): Likewise.
11590         * modules/stdarg (Makefile.am): Likewise.
11591         * modules/stddef (Makefile.am): Likewise.
11592         * modules/stdint (Makefile.am): Likewise.
11593         * modules/stdio (Makefile.am): Likewise.
11594         * modules/stdlib (Makefile.am): Likewise.
11595         * modules/string (Makefile.am): Likewise.
11596         * modules/strings (Makefile.am): Likewise.
11597         * modules/sys_file (Makefile.am): Likewise.
11598         * modules/sys_ioctl (Makefile.am): Likewise.
11599         * modules/sys_select (Makefile.am): Likewise.
11600         * modules/sys_socket (Makefile.am): Likewise.
11601         * modules/sys_stat (Makefile.am): Likewise.
11602         * modules/sys_time (Makefile.am): Likewise.
11603         * modules/sys_times (Makefile.am): Likewise.
11604         * modules/sys_utsname (Makefile.am): Likewise.
11605         * modules/sys_wait (Makefile.am): Likewise.
11606         * modules/sysexits (Makefile.am): Likewise.
11607         * modules/termios (Makefile.am): Likewise.
11608         * modules/time (Makefile.am): Likewise.
11609         * modules/unistd (Makefile.am): Likewise.
11610         * modules/wchar (Makefile.am): Likewise.
11611         * modules/wctype (Makefile.am): Likewise.
11612
11613 2010-10-04  Bruno Haible  <bruno@clisp.org>
11614
11615         read-file tests: Avoid a test failure on NonStop Kernel.
11616         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11617         a regular file.
11618         Reported by Joachim Schmitz <schmitz@hp.com>.
11619
11620 2010-10-03  Bruno Haible  <bruno@clisp.org>
11621
11622         gnulib-tool: Fixes for --create-testdir with --libtool.
11623         * gnulib-tool (func_get_automake_snippet): Don't augment
11624         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11625         an executable.
11626         (func_create_testdir): Handle module 'alloca' like func_import.
11627         Reported by Bruce Korb <bruce.korb@gmail.com>.
11628
11629 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11630
11631         Avoid some lines longer than 80 characters.
11632         * lib/stdint.in.h: Break long comment lines.
11633         * lib/math.in.h: Likewise.
11634         (_GL_NUM_UINT_WORDS): New macro, for readability.
11635         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11636         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11637         * lib/stdlib.in.h: Likewise.
11638         * lib/spawn.in.h: Likewise.
11639         * lib/sys_socket.in.h: Update an URL.
11640         * lib/sys_stat.in.h: Break long line.
11641
11642 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11643
11644         Improve pmccabe2html.
11645         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11646         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11647         when the sources change. Remove the line in the HTML about "Used
11648         ranges" (which implied that there might be other unused ranges),
11649         rename "Resume" to "Summary" (easier to understand for more users).
11650         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11651         styles, and some unnecessary blank lines.
11652
11653 2010-10-03  Bruno Haible  <bruno@clisp.org>
11654             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11655
11656         acl: Add support for ACLs on NonStop Kernel.
11657         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11658         Check whether the function aclsort() exists.
11659         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11660         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11661         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11662         (acl_nontrivial [HAVE_ACLSORT]: New function.
11663         (file_has_acl): Implement for NonStop Kernel.
11664         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11665         (qset_acl): Implement for NonStop Kernel.
11666         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11667         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11668         (main): Implement for NonStop Kernel.
11669         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11670         Kernel. Handle this flavor.
11671         * tests/test-set-mode-acl.sh: Likewise.
11672         * tests/test-copy-acl.sh: Likewise.
11673         * tests/test-copy-file.sh: Likewise.
11674
11675 2010-10-03  Bruno Haible  <bruno@clisp.org>
11676
11677         Info about ACLs on NonStop Kernel.
11678         * doc/acl-resources.txt: Add info about NonStop Kernel.
11679         References by Joachim Schmitz <schmitz@hp.com>.
11680
11681 2010-10-02  Bruno Haible  <bruno@clisp.org>
11682
11683         Define missing EDQUOT on NonStop Kernel.
11684         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11685         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11687         missing.
11688         * doc/posix-headers/errno.texi: Mention the NSK bug.
11689         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11690         Reported by Joachim Schmitz <schmitz@hp.com>.
11691
11692 2010-10-02  Bruno Haible  <bruno@clisp.org>
11693
11694         Update doc for POSIX:2008.
11695         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11696         Update URL of POSIX specification.
11697
11698 2010-10-02  Bruno Haible  <bruno@clisp.org>
11699
11700         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11701         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11702         from gnulib, not from Automake.
11703
11704 2010-10-02  Bruno Haible  <bruno@clisp.org>
11705
11706         New module 'system-posix'.
11707         * modules/system-posix: New file.
11708         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11709         module is present.
11710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11711         GNULIB_SYSTEM_POSIX.
11712         * modules/stdlib (Depends-on): Remove sys_wait.
11713         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11714         * doc/posix-functions/system.texi: Mention the new module.
11715         * doc/posix-headers/stdlib.texi: Likewise.
11716         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11717         define test_sys_wait_macros to a no-op.
11718         Reported by Sam Steingold <sds@gnu.org>.
11719
11720 2010-09-30  Bruno Haible  <bruno@clisp.org>
11721
11722         More renaming from 'getdate' to 'get_date'.
11723         * doc/get_date.texi: Renamed from doc/getdate.texi.
11724         * modules/get_date (Files): Update.
11725         * MODULES.html.sh (Date and time <time.h>): Update.
11726         * DEPENDENCIES: Update.
11727         * gnulib-tool: Update comment.
11728         * m4/bison.m4 (gl_BISON): Likewise.
11729         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11730
11731 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11732
11733         bootstrap: support ACLOCAL_FLAGS during aclocal
11734         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11735         can add additional -I dir for third-party .m4 files.
11736
11737 2010-09-30  Eric Blake  <eblake@redhat.com>
11738
11739         bootstrap: use glibtoolize on MacOS
11740         * build-aux/bootstrap (check_versions): Convert libtool into
11741         libtoolize.
11742         (tool search): Move libtool check earlier, and look for
11743         glibtoolize for MacOS.
11744         (gnulib_tool_options): Auto-add --libtool when appropriate.
11745         Reported by Justin Clift.
11746
11747         poll: fix typo that broke test on MacOS
11748         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11749         Reported by Justin Clift.
11750
11751         getdate: rename to get_date
11752         Note: getdate.h is not renamed, to minimize client impact.
11753         * modules/getdate: Mark obsolete.  Move old contents...
11754         * modules/get_date: ...to new module name.
11755         * modules/getdate-tests: Move...
11756         * modules/get_date-tests: ...here.
11757         * m4/getdate.m4: Move...
11758         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11759         * lib/getdate.y: Move...
11760         * lib/get_date.y: ...here.
11761         * tests/test-getdate.c: Move...
11762         * tests/test-get_date.c: ...here.
11763         * doc/posix-functions/getdate.texi (getdate): Update name.
11764         * NEWS: Mention the change.
11765
11766 2010-09-29  Bruno Haible  <bruno@clisp.org>
11767
11768         Separate the module 'waitpid' from the module 'sys_wait'.
11769         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11770         present.
11771         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11772         gl_MODULE_INDICATOR_FOR_TESTS.
11773         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11774         * modules/sys_wait (Depends-on): Remove waitpid.
11775         (Makefile.am): Substitute GNULIB_WAITPID.
11776         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11777         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11778         signature only if the 'waitpid' module is present.
11779         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11780         * NEWS: Mention the change.
11781         * modules/grantpt (Depends-on): Add waitpid.
11782         * modules/wait-process (Depends-on): Likewise.
11783
11784 2010-09-29  Bruno Haible  <bruno@clisp.org>
11785
11786         More tests for module 'sys_wait'.
11787         * modules/sys_wait-c++-tests: New file.
11788         * tests/test-sys_wait-c++.cc: New file.
11789         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11790         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11791
11792 2010-09-29  Bruno Haible  <bruno@clisp.org>
11793
11794         New module 'waitpid'.
11795         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11796         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11797         Don't include <process.h>.
11798         (waitpid): Declare only, using modern idiom.
11799         * m4/waitpid.m4: New file.
11800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11801         * modules/waitpid: New file.
11802         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11803         (Makefile.am): Update.
11804         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11805
11806 2010-09-28  Bruno Haible  <bruno@clisp.org>
11807
11808         poll: Assume ANSI C.
11809         * lib/poll.c (poll): Use an ANSI C declaration.
11810
11811 2010-09-28  Bruno Haible  <bruno@clisp.org>
11812
11813         poll-h: Create poll.h on all platforms.
11814         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11815         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11816         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11817         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11818         (gl_REPLACE_POLL_H): Don't set POLL_H.
11819         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11820         * modules/poll-h (Depends-on): Add include_next.
11821         (Makefile.am): Create poll.h unconditionally. Substitute also
11822         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11823
11824 2010-09-28  Bruno Haible  <bruno@clisp.org>
11825
11826         Tests for module 'poll-h'.
11827         * modules/poll-h-c++-tests: New file.
11828         * tests/test-poll-h-c++.cc: New file.
11829
11830         Tests for module 'poll-h'.
11831         * modules/poll-h-tests: New file.
11832         * tests/test-poll-h.c: New file.
11833
11834 2010-09-28  Bruno Haible  <bruno@clisp.org>
11835
11836         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11837         * modules/poll-h (Depends-on): Add 'extensions'.
11838
11839 2010-09-28  Bruno Haible  <bruno@clisp.org>
11840
11841         New module 'poll-h'.
11842         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11843         (poll): Use modern idiom.
11844         * modules/poll-h: New file.
11845         * modules/poll (Files): Remove lib/poll.in.h.
11846         (Depends-on): Add poll-h.
11847         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11848         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11849         * m4/poll_h.m4: New file.
11850         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11851         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11852         and invoke gl_REPLACE_POLL_H.
11853         * lib/poll.c: Use common idiom.
11854         * tests/test-poll.c: Likewise.
11855         * doc/posix-headers/poll.texi: Mention the poll-h module.
11856         Suggested by Eric Blake.
11857
11858 2010-09-26  Bruno Haible  <bruno@clisp.org>
11859
11860         sys_wait: Implement WSTOPSIG.
11861         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11862         Reported by Simon Josefsson.
11863
11864 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11865
11866         stdlib, sys_wait: Avoid compilation error on mingw.
11867         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11868
11869 2010-09-26  Bruno Haible  <bruno@clisp.org>
11870
11871         stdlib tests: Avoid code duplication.
11872         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11873         * modules/sys_wait-tests (Files): Likewise.
11874         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11875         * tests/test-stdlib.c: Include test-sys_wait.h.
11876         (main): Invoke test_sys_wait_macros.
11877         * tests/test-sys_wait.c: Include test-sys_wait.h.
11878         (main): Invoke test_sys_wait_macros.
11879
11880 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11881
11882         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11883         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11884         sure Windows sockets are working before calling getaddrinfo.
11885         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11886         * doc/gnulib.texi (Windows sockets): Fix typo.
11887
11888 2010-09-25  Bruno Haible  <bruno@clisp.org>
11889
11890         Tests for module 'regex-quote'.
11891         * modules/regex-quote-tests: New file.
11892         * tests/test-regex-quote.c: New file.
11893
11894         New module 'regex-quote'.
11895         * lib/regex-quote.h: New file.
11896         * lib/regex-quote.c: New file.
11897         * modules/regex-quote: New file.
11898         Suggested by Reuben Thomas <rrt@sc3d.org>.
11899
11900 2010-09-24  Bruno Haible  <bruno@clisp.org>
11901
11902         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11903         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11904
11905 2010-09-23  Bruno Haible  <bruno@clisp.org>
11906
11907         setenv: Relax license.
11908         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11909         Blake.
11910         Requested by Eric Blake.
11911
11912 2010-09-22  Bruno Haible  <bruno@clisp.org>
11913
11914         termios: Relax license.
11915         * modules/termios (License): Change to LGPLv2+.
11916         Requested by Eric Blake.
11917
11918 2010-09-22  Bruno Haible  <bruno@clisp.org>
11919
11920         threadlib: Allow the package to change the default to 'no'.
11921         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11922         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11923         Reported by Paul Eggert.
11924
11925 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11926             Bruno Haible  <bruno@clisp.org>
11927
11928         Fix endless loop in mbmemcasecoll.
11929         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11930         byte.
11931         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11932
11933 2010-09-22  Bruno Haible  <bruno@clisp.org>
11934
11935         Tests for module 'memcoll'.
11936         * modules/memcoll-tests: New file.
11937         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11938
11939         memcoll, xmemcoll: Clarify size vs. length.
11940         * modules/memcoll.c (memcoll0): Clarify specification.
11941         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11942         passed to collate_error.
11943
11944 2010-09-22  Bruno Haible  <bruno@clisp.org>
11945
11946         Tests for module 'memcasecmp'.
11947         * modules/memcasecmp-tests: New file.
11948         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11949
11950 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11951
11952         * lib/pthread.in.h: Add split double-inclusion guard, and include
11953         system <pthread.h> if there is one.  Use @@-style as in other
11954         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11955         pthread.h doesn't.
11956         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11957         (pthread_mutexattr_settype, pthread_mutex_trylock):
11958         New static inline functions, if there's no system <pthread.h>.
11959         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11960         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11961         Approximate with mutexes if the system lacks spinlocks, as in
11962         MacOS.
11963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11964         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11965         @@-style.  Check for spinlocks separately.
11966         (gl_PTHREAD_DEFAULTS): New macro.
11967         * modules/pthread: Redo to use a more typical style for in.h files.
11968
11969 2010-09-21  Eric Blake  <eblake@redhat.com>
11970
11971         net_if: enhance tests
11972         * tests/test-net_if.c (main): Move signature checks earlier.
11973         Print failures to stderr.
11974         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11975         Document the bug that we do not yet fix.
11976
11977 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11978
11979         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11980         about gnulib, not GSS.
11981
11982 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11983
11984         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11985         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11986         for Emacs.
11987         * build-aux/pmccabe2html: Make Makefile.am example code more
11988         cut-and-paste friendly.
11989
11990 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11991
11992         * tests/test-net_if.c: New file.
11993         * modules/net_if-tests: New file.
11994
11995 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11996
11997         pthread: add pthread_spin_destroy
11998         * lib/pthread.in.h (pthread_spin_destroy): New function.
11999
12000 2010-09-19  Bruno Haible  <bruno@clisp.org>
12001
12002         gnulib-tool: Fix --help output.
12003         * gnulib-tool (func_usage): Fix help message.
12004         Reported by Reuben Thomas <rrt@sc3d.org>.
12005
12006 2010-09-18  Jim Meyering  <meyering@redhat.com>
12007
12008         maint.mk: avoid unexpanded \n in two diagnostics
12009         * top/maint.mk (sc_prohibit_always_true_header_tests):
12010         Don't use a literal \n in a halt=... assignment.  It would not be
12011         expanded, and the two \n bytes would appear in the diagnostic output
12012         rather than the desired newline.  Use halt=$$(printf ... instead.
12013         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12014
12015 2010-09-18  Bruno Haible  <bruno@clisp.org>
12016
12017         netinet_in: Doc tweak.
12018         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12020
12021 2010-09-18  Jim Meyering  <meyering@redhat.com>
12022
12023         init.sh: correct an outdated comment
12024         * tests/init.sh (create_exe_shims_):  s/function/alias/
12025
12026         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12027         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12028         a file named "*.exe" is removed between the glob expansion and the
12029         processing of that oddly named file.
12030
12031 2010-09-17  Eric Blake  <eblake@redhat.com>
12032
12033         mirbsd: add some more support
12034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12035         in BSD family.
12036         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12037         devices as OpenBSD.
12038         * m4/host-os.m4 (mirbsd): Add MirBSD.
12039
12040         tests: fix unportable assumption on sys/wait.h
12041         * tests/test-sys_wait.c (main): Relax test.
12042         * tests/test-stdlib.c (main): Likewise.
12043
12044         init.sh: accomodate directory with no .exes
12045         * tests/init.sh: Accomodate directory containing only scripts.
12046
12047         tests: avoid compiler warning
12048         * tests/test-stdlib.c (main): Use the variable.
12049
12050         fdutimens, fdutimensat: update signature, again
12051         * lib/utimens.h (gl_futimens): Delete, and move signature...
12052         (fdutimens): ...here.
12053         (fdutimensat): Rearrange signature.
12054         (lutimensat): Rename variable for clarity.
12055         * lib/fdutimensat.c (fdutimensat): Update signature.
12056         * lib/utimens.c (fdutimens): Likewise.
12057         (gl_futimens): Delete.
12058         (utimens, lutimens): Update callers.
12059         * lib/futimens.c (futimens): Likewise.
12060         * tests/test-fdutimensat.c: Likewise.
12061         * tests/test-utimens.c: Likewise.
12062         * tests/test-futimens.h: Update comment.
12063         * NEWS: Mention this.
12064         Suggested by Paul Eggert.
12065
12066 2010-09-17  Bruno Haible  <bruno@clisp.org>
12067
12068         Take over the maintenance of some older macros from Autoconf.
12069         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12070         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12071         GNU Autoconf.
12072         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12073         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12074
12075 2010-09-17  Eric Blake  <eblake@redhat.com>
12076
12077         fdutimensat: drop atflag validation
12078         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12079         with valid fd, to close a race scenario where futimens is
12080         unsupported and FILE was replaced by a symlink.
12081         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12082         accordingly.
12083         Suggested by Paul Eggert.
12084
12085 2010-09-16  Bruno Haible  <bruno@clisp.org>
12086
12087         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12088         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12089
12090 2010-09-16  Bruno Haible  <bruno@clisp.org>
12091
12092         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12093         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12094         login_tty exists.
12095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12096
12097 2010-09-16  Bruno Haible  <bruno@clisp.org>
12098
12099         login_tty: Make the replacement code work on BSD systems.
12100         * lib/login_tty.c: Include <sys/ioctl.h>.
12101         (login_tty): Use ioctl TIOCSCTTY when available.
12102         * modules/login_tty (Depends-on): Add sys_ioctl.
12103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12104
12105 2010-09-16  Bruno Haible  <bruno@clisp.org>
12106
12107         login_tty: Stricter unit test.
12108         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12109         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12110         and tcgetsid() after login_tty.
12111         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12112
12113 2010-09-16  Bruno Haible  <bruno@clisp.org>
12114
12115         New module 'tcgetsid'.
12116         * lib/tcgetsid.c: New file.
12117         * m4/tcgetsid.m4: New file.
12118         * modules/tcgetsid: New file.
12119         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12120         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12121         GNULIB_TCGETSID, HAVE_TCGETSID.
12122         * lib/termios.in.h: Include <sys/types.h>.
12123         (tcgetsid): New declaration.
12124         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12125         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12126         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12127         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12128
12129 2010-09-16  Bruno Haible  <bruno@clisp.org>
12130
12131         Tests for module 'termios'.
12132         * modules/termios-c++-tests: New file.
12133         * modules/termios-tests: New file.
12134         * tests/test-termios-c++.cc: New file.
12135         * tests/test-termios.c: New file.
12136
12137         New module 'termios'.
12138         * modules/termios: New file.
12139         * lib/termios.in.h: New file.
12140         * m4/termios_h.m4: New file.
12141         * doc/posix-headers/termios.texi: Mention the new module.
12142
12143 2010-09-16  Eric Blake  <eblake@redhat.com>
12144
12145         fdutimensat: add an atflag parameter
12146         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12147         * lib/utimens.h (fdutimensat): Update prototype.
12148         * tests/test-fdutimensat.c: Adjust test to match.
12149         * NEWS: Document the change.
12150         Suggested by Paul Eggert.
12151
12152 2010-09-16  Bruno Haible  <bruno@clisp.org>
12153
12154         Fix typos in comments.
12155         * lib/striconveh.h: Fix typo in comment.
12156         * lib/login_tty.c (login_tty): Likewise.
12157
12158 2010-09-15  Bruno Haible  <bruno@clisp.org>
12159
12160         stdlib: clarify MirBSD WEXITSTATUS bug
12161         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12162         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12163
12164 2010-09-15  Eric Blake  <eblake@redhat.com>
12165
12166         stdlib: work around MirBSD WEXITSTATUS bug
12167         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12168         * modules/stdlib (Depends-on): Add sys_wait.
12169         * tests/test-sys_wait.c (main): Enhance test.
12170         * tests/test-stdlib.c (main): Likewise.
12171         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12172
12173         docs: mention MacOS issue with WEXITSTATUS(constant)
12174         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12175         issue.
12176         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12177
12178         strnlen: add tests
12179         * modules/strnlen-tests: New file.
12180         * tests/test-strnlen.c: Likewise.
12181
12182 2010-09-14  Bruno Haible  <bruno@clisp.org>
12183
12184         unistr/base: Avoid link errors when module 'libunistring' is also used.
12185         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12186         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12187         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12188         Declare also when HAVE_LIBUNISTRING is set.
12189         Reported by Pádraig Brady <P@draigbrady.com>.
12190
12191 2010-09-14  Eric Blake  <eblake@redhat.com>
12192
12193         test-rawmemchr: make more robust
12194         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12195         (Depends-on, configure.ac): Add needed prerequisites to use it.
12196         * modules/memchr-tests (Files, Depends-on, configure.ac):
12197         Likewise, to avoid implicit reliance on memchr module prereqs.
12198         * tests/test-memchr.c (main): Ensure proper masking.
12199         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12200         reads.
12201
12202         memchr: detect glibc Alpha bug
12203         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12205         Alpha.
12206         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12207         * tests/test-memchr.c (main): Enhance test.
12208         Reported by Nelson H. F. Beebe.
12209
12210 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         fts, getcwd, glob: audit for dirfd returning -1
12213         * lib/fts.c (opendir): Remove #define; no longer used.
12214         (opendirat): New arg PDIR_FD.  All callers changed.
12215         (fts_build, _opendir2): Use new opendirat to avoid the need for
12216         dirfd, or for checking whether dirfd returns a negative value.
12217         Don't use opendir; always use openat followed by fdopendir.
12218         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12219         it.
12220         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12221         returns -1 here.
12222         * modules/fts (Depends-on): Remove dirfd.
12223         * modules/getcwd (Depends-on): Likewise.
12224
12225 2010-09-13  Eric Blake  <eblake@redhat.com>
12226
12227         float: fix broken MirBSD header
12228         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12229         * doc/posix-headers/float.texi (float.h): Document it.
12230
12231 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12232
12233         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12234         * lib/fts.c (opendirat): New arg extra_flags.
12235         (__opendir2): Use it to avoid following symlinks when opening
12236         a directory, if symlinks are not supposed to be followed.  See
12237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12238
12239         fdopendir: preserve argument fd before returning
12240         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12241         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12242         (fdopendir): Use them, arranging for FD to be open to the same
12243         directory that it was when it started.  (It might be temporarily
12244         closed while fdopendir is running, so this not thread- or
12245         signal-safe.)  Be careful to do the right thing even when file
12246         descriptors are scarce and dup fails with errno == EMFILE.  See
12247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12248
12249 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12250
12251         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12252         * NEWS: Document change.
12253         * m4/regex.m4: Disable test for regoff_t size.
12254
12255 2010-09-13  Jim Meyering  <meyering@redhat.com>
12256
12257         fts: don't operate on an invalid file descriptor after failed dup
12258         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12259         negative file descriptor.
12260
12261 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12262
12263         savedir: add streamsavedir, deprecate fdsavedir
12264         * NEWS: Mention deprecation of fdsavedir.
12265         * lib/savedir.c (streamsavedir): New extern function, whose name
12266         ends in "savedir" to be consistent with the others.  This differs
12267         from savedirstream in that it doesn't close its argument.  The
12268         next version of GNU tar will use this instead of fdsavedir, to
12269         avoid some race conditions and conserve file descriptors.
12270         (savedirstream): Reimplement as a wrapper around streamsavedir.
12271         (fdsavedir): Add a comment deprecating this function.  As far as
12272         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12273         * lib/savedir.h (streamsavedir): New decl.
12274         (fdsavedir): Add a comment deprecating this.
12275
12276 2010-09-10  Bruno Haible  <bruno@clisp.org>
12277
12278         langinfo: Fix last commit.
12279         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12280         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12282
12283 2010-09-10  Bruno Haible  <bruno@clisp.org>
12284
12285         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12286         * lib/progreloc.c (O_EXEC): Define fallback.
12287
12288 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12289
12290         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12291         * NEWS: Document recent changes to fcntl-h.
12292         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12293         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12294         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12295         Similarly for O_SEARCH; this last was already true, but not documented.
12296         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12297         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12298         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12299         Likewise.
12300         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12301         is zero, not whether it is defined.
12302         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12303         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12304         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12305
12306 2010-09-10  Bruno Haible  <bruno@clisp.org>
12307
12308         langinfo, nl_langinfo: Fix for IRIX 5.3.
12309         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12310         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12311         HAVE_LANGINFO_YESEXPR.
12312         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12313         HAVE_LANGINFO_YESEXPR.
12314         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12315         HAVE_LANGINFO_T_FMT_AMPM is 0.
12316         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12317         HAVE_LANGINFO_YESEXPR is 0.
12318         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12319         NOEXPR.
12320         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12321         * doc/posix-functions/nl_langinfo.texi: Likewise.
12322         Reported by Eric Blake.
12323
12324 2010-09-10  Bruno Haible  <bruno@clisp.org>
12325
12326         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12327         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12328         on FreeBSD 8.0 and OpenBSD 4.6.
12329         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12330         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12331         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12332         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12333         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12334         ac_includes_default.
12335         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12336
12337 2010-09-09  Eric Blake  <eblake@redhat.com>
12338
12339         strsignal: work around NetBSD bug
12340         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12341         * lib/string.in.h (includes): Likewise.
12342         * doc/posix-functions/strsignal.texi (strsignal): Document the
12343         bug.
12344         Reported by Nelson H. F. Beebe.
12345
12346         gnulib-tool: work with NetBSD /bin/sh
12347         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12348         (func_get_description, func_get_comment, func_get_status)
12349         (func_get_notice, func_get_applicability, func_get_filelist)
12350         (func_get_dependencies, func_get_autoconf_early_snippet)
12351         (func_get_autoconf_snippet, func_get_automake_snippet)
12352         (func_get_include_directive, func_get_link_directive)
12353         (func_get_license, func_get_maintainer, func_import): Avoid
12354         shell syntax errors from parsing syntax extensions.
12355
12356 2010-09-09  Bruno Haible  <bruno@clisp.org>
12357
12358         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12359         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12360         a reliable way to determine whether the 'alias' command works.
12361
12362 2010-09-08  Jim Meyering  <meyering@redhat.com>
12363
12364         init.sh: penalize a set-x-impaired shell; don't disqualify it
12365         * tests/init.sh: Too many shells corrupt application stderr when
12366         you set -x, so we can't afford to disqualify them, since at least
12367         on Irix-6.5, that would disqualify all bourne shells.
12368         Instead, use a two-pass approach.
12369         On the first pass, try to find a shell that meets the stricter
12370         condition that set -x does not corrupt stderr.
12371         If no shell meets the stricter condition, retest each candidate
12372         shell, but without that extra condition.  Finally, when
12373         VERBOSE=yes is requested and set -x might cause trouble, simply
12374         issue a warning and refrain from enabling debug output.
12375
12376 2010-09-08  Eric Blake  <eblake@redhat.com>
12377
12378         unsetenv: fix OpenBSD bug
12379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12380         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12381         documentation.
12382         Reported by Jim Meyering.
12383
12384         strtod: work around IRIX 6.5 bug
12385         * lib/strtod.c (strtod): Reparse number on shorter string if
12386         exponent parse was invalid.
12387         * tests/test-strtod.c (main): Add check for "0x1p 2".
12388         Reported by Tom G. Christensen.
12389
12390         getopt: optimize previous patch
12391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12392         empty variable.  Speed up awk script.
12393         Reported by Paolo Bonzini.
12394
12395 2010-09-08  Jim Meyering  <meyering@redhat.com>
12396
12397         test.sh: disqualify shells for which set -x corrupts stderr
12398         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12399         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12400         appear in stderr output.  For example, this command:
12401             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12402         prints "P=1" on those two systems:
12403
12404 2010-09-08  Bruno Haible  <bruno@clisp.org>
12405
12406         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12407         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12408         commands, because some shells ignore redirections when there is an
12409         error in the command lookup.
12410         Reported by Eric Blake.
12411
12412 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12413
12414         * lib/regex.h: Fix a mention of `regex_compile' (should be
12415         `re_compile_pattern').
12416         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12417         (re_set_registers): Correct name of parameter in comment.
12418
12419         * doc/regex.texi: Add documentation for missing syntax flags.
12420         Remove commented-out documentation of defunct syntax option
12421         RE_NO_EMPTY_ALTS.
12422         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12423         Add documentation of re_set_registers.
12424         Document trick to re-use a pattern buffer by setting fastmap manually.
12425         Update documentation of struct re_pattern_buffer per public members.
12426         Uncomment documentation of equivalence class operators and
12427         collating symbol operators, since they are now implemented,
12428         Explain leftmost-longest matching in relation to alternatives.
12429         Tidy documentation of substring matching.
12430         Remove POSIX documentation, which is done better in
12431         glibc, and refer the reader there. Keep BSD API documentation, as
12432         that is not readily available elsewhere.
12433
12434 2010-09-07  Eric Blake  <eblake@redhat.com>
12435
12436         getopt: handle POSIXLY_CORRECT set but not exported
12437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12438         export state of POSIXLY_CORRECT, due to bash set -o posix.
12439         Reported by Dustin J. Mitchell.
12440
12441 2010-09-05  Bruno Haible  <bruno@clisp.org>
12442
12443         gnulib-tool: Highlight the changed options.
12444         * gnulib-tool (func_usage): Display the --import, --add-import,
12445         --remove-import explanations in bold font.
12446
12447 2010-09-06  Karl Berry  <karl@gnu.org>
12448
12449         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12450
12451 2010-09-05  Bruno Haible  <bruno@clisp.org>
12452
12453         uniwidth/width: Update comment.
12454         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12455         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12456
12457 2010-09-05  Bruno Haible  <bruno@clisp.org>
12458
12459         isinf, isnan: Relax license.
12460         * modules/isinf (License): Change from GPL to LGPL, with consent from
12461         Ben Pfaff.
12462         * modules/isnan (License): Likewise.
12463         Requested by Ludovic Courtès.
12464
12465 2010-09-04  Bruno Haible  <bruno@clisp.org>
12466
12467         gnulib-tool: Help migration from --import to --add-import or --update.
12468         * gnulib-tool: Emit a verbose error message when --import is used
12469         without any module name.
12470
12471 2010-09-04  Bruno Haible  <bruno@clisp.org>
12472
12473         Update doc about gnulib-tool.
12474         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12475         'gnulib-tool --update' in more detail.
12476         Reported by Eric Blake.
12477
12478 2010-09-04  Bruno Haible  <bruno@clisp.org>
12479
12480         gnulib-tool: Change --import. New options --add/remove-import.
12481         * gnulib-tool: New options --add-import, --remove-import.
12482         (func_usage): Document them.
12483         (have_associative): Define always.
12484         (func_import): In import mode, don't merge the specified settings with
12485         the cached settings. Implement remove-import mode.
12486         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12487         Explain when to use them versus --import.
12488         (Simple update): Use --add-import instead of --import.
12489         * NEWS: Mention the change.
12490
12491 2010-09-04  Bruno Haible  <bruno@clisp.org>
12492
12493         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12494         separate gnulib.mk.
12495
12496 2010-09-04  Bruno Haible  <bruno@clisp.org>
12497
12498         gnulib-tool: Don't talk about CVS any more.
12499         * gnulib-tool (func_usage, func_import): Write "version control"
12500         instead of CVS.
12501
12502 2010-09-04  Jim Meyering  <meyering@redhat.com>
12503
12504         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12505         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12506         false positives (whose names may be ill-chosen) when searching
12507         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12508         would cause a false-positive.
12509
12510         avoid coreutils "make distcheck" failure
12511         Coreutils tests with an absolute build directory name that contains
12512         a space.  Not quoting this directory name caused a failure.
12513         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12514         * tests/test-vc-list-files-cvs.sh: Likewise.
12515
12516 2010-09-04  Bruno Haible  <bruno@clisp.org>
12517
12518         gnulib-tool: Avoid error when run in a package without Makefile.am.
12519         * gnulib-tool: When collecting the m4dirs in a package that does not
12520         have a Makefile.am, eliminate those directories that contain no
12521         gnulib-cache.m4. Fix expression that counts these directories.
12522
12523 2010-09-04  Bruno Haible  <bruno@clisp.org>
12524
12525         update-copyright test: Improve output when perl is missing or too old.
12526         * tests/test-update-copyright.sh: Move test of Perl version down after
12527         the test whether Perl exists. Provide an explanation relating Perl's
12528         error message to Automake's SKIP: message.
12529
12530 2010-09-04  Bruno Haible  <bruno@clisp.org>
12531
12532         Don't augment PATH in TESTS_ENVIRONMENT.
12533         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12534         set abs_aux_dir instead of augmenting PATH.
12535         * modules/vc-list-files-tests (Makefile.am): Likewise.
12536         * tests/test-update-copyright.sh: Augment PATH here.
12537         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12538         path_prepend_.
12539         * tests/test-vc-list-files-git.sh: Likewise.
12540
12541 2010-09-04  Jim Meyering  <meyering@redhat.com>
12542
12543         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12544         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12545
12546 2010-09-04  Bruno Haible  <bruno@clisp.org>
12547
12548         strdup: Fix compilation error in C++ mode.
12549         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12550         the macro.
12551
12552 2010-09-04  Bruno Haible  <bruno@clisp.org>
12553
12554         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12555         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12556         macro into a function.
12557         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12558
12559 2010-09-04  Bruno Haible  <bruno@clisp.org>
12560
12561         Set PATH_SEPARATOR the same way autoconf does.
12562         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12563         the value of PATH_SEPARATOR the same way autoconf-generated configure
12564         scripts do.
12565         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12566         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12567
12568 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12569
12570         Set PATH_SEPARATOR the same way autoconf does.
12571         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12572         the same way autoconf-generated configure scripts do.
12573         * posix-modules: Likewise.
12574
12575 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12576
12577         hash: fix safe_hasher const typo
12578         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12579         const; otherwise, there is a type error later.
12580
12581 2010-09-02  Jim Meyering  <meyering@redhat.com>
12582
12583         test-update-copyright.sh: require perl 5.8.0
12584         * tests/test-update-copyright.sh: Require 5.8.0,
12585         which Tom G. Christensen has confirmed is adequate,
12586         while 5.6.1 is not.
12587
12588 2010-09-02  Eric Blake  <eblake@redhat.com>
12589
12590         tests: init.sh improvements for re-exec'ing with zsh
12591         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12592         -vx through shell re-exec.
12593         Reported by Tom G. Christensen.
12594
12595         wctype: fix typo in previous commit
12596         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12597         Reported by Ludovic Courtès.
12598
12599 2010-09-02  Jim Meyering  <meyering@redhat.com>
12600
12601         test-update-copyright.sh: skip test if Perl is too old
12602         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12603         Reported by Tom G. Christensen.
12604
12605 2010-09-02  Bruno Haible  <bruno@clisp.org>
12606
12607         wctype: Avoid compilation error on IRIX 6.5.30.
12608         * lib/wctype.in.h (iswblank): Declare with a replacement if
12609         REPLACE_ISWBLANK is set.
12610         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12611         declared. Set REPLACE_ISWBLANK.
12612         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12613         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12614         * doc/posix-headers/wctype.texi: Likewise.
12615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12616
12617 2010-09-01  Bruno Haible  <bruno@clisp.org>
12618
12619         New module 'socketlib'.
12620         * modules/socketlib: New file.
12621         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12622         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12623         * modules/sockets (Depends-on): Add socketlib.
12624         Suggested by Sam Steingold <sds@gnu.org>.
12625
12626 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12629
12630         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12631         when one needs search access to a directory but not read access.
12632         On systems where it is available, it works in some cases where
12633         O_RDONLY does not, namely on directories that are searchable but
12634         not readable, and which need only to be searchable.  If O_SEARCH
12635         is not available, fall back to the traditional method of using
12636         O_RDONLY.
12637
12638         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12639         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12640         when opening a directory that needs only to be searchable.
12641         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12642         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12643         * lib/openat-proc.c (openat_proc_name): Likewise.
12644         * lib/openat.c (openat_needs_fchdir): Likewise.
12645         * lib/save-cwd.c (save_cwd): Likewise.
12646         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12647
12648 2010-08-28  Bruno Haible  <bruno@clisp.org>
12649
12650         New module 'host-cpu-c-abi'.
12651         * modules/host-cpu-c-abi: New file.
12652         * m4/host-cpu-c-abi.m4: New file, based on part of
12653         clisp/src/m4/general.m4.
12654         Requested by Sam Steingold <sds@gnu.org>.
12655
12656 2010-08-31  Eric Blake  <eblake@redhat.com>
12657         and Jim Meyering  <meyering@redhat.com>
12658
12659         hash: factor, and guard against misbehaving hasher function
12660         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12661         of table->hasher's return value.  Also protect against a hash value
12662         so large that adding it to table->bucket results in a NULL pointer.
12663         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12664         Use it in place of open-coded check-and-abort.
12665
12666 2010-08-30  Bruno Haible  <bruno@clisp.org>
12667
12668         hash: silence spurious clang warning
12669         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12670         Reported by Eric Blake.
12671
12672 2010-08-30  Eric Blake  <eblake@redhat.com>
12673
12674         strstr, memmem, strcasestr: avoid leaked shell message
12675         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12676         FreeBSD.
12677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12679
12680         tests: silence clang warning
12681         * tests/test-malloca.c (do_allocation): Avoid dead store.
12682
12683 2010-08-29  Bruno Haible  <bruno@clisp.org>
12684
12685         gettext: Fix recent mistake.
12686         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12687
12688 2010-08-29  Bruno Haible  <bruno@clisp.org>
12689
12690         selinux-h: Offer a --without-selinux option.
12691         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12692         --without-selinux was specified, skip all tests and define
12693         HAVE_SELINUX_SELINUX_H to 0.
12694         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12695         set LIB_SELINUX to empty.
12696         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12697         gl_LIBSELINUX. If --without-selinux was specified, replace
12698         selinux/context.h.
12699         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12700
12701 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12702             Bruno Haible  <bruno@clisp.org>
12703
12704         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12705         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12706         of HAVE_REALLOC.
12707         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12708         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12709         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12710         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12711
12712 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12713             Bruno Haible  <bruno@clisp.org>
12714
12715         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12716         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12717         HAVE_CALLOC.
12718         * lib/xmalloc.c: Update accordingly.
12719         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12720         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12721         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12722
12723 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12724             Bruno Haible  <bruno@clisp.org>
12725
12726         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12727         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12728         HAVE_MALLOC.
12729         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12730         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12731         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12732
12733 2010-08-29  Bruno Haible  <bruno@clisp.org>
12734
12735         Update modules list.
12736         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12737         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12738         (String handling <string.h>): Add astrxfrm.
12739         (File system functions): Add readlinkat.
12740
12741 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12742
12743         Tests for module 'realloc-gnu'.
12744         * modules/realloc-gnu-tests: New file.
12745         * tests/test-realloc-gnu.c: New file.
12746
12747         Tests for module 'calloc-gnu'.
12748         * modules/calloc-gnu-tests: New file.
12749         * tests/test-calloc-gnu.c: New file.
12750
12751         Tests for module 'malloc-gnu'.
12752         * modules/malloc-gnu-tests: New file.
12753         * tests/test-malloc-gnu.c: New file.
12754
12755 2010-08-28  Bruno Haible  <bruno@clisp.org>
12756
12757         Rename module 'realloc' -> 'realloc-gnu'.
12758         * modules/realloc-gnu: New file, copied from modules/realloc.
12759         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12760         obsolete.
12761         * modules/mgetgroups (Depends-on): Update.
12762         * doc/posix-functions/realloc.texi: Update.
12763         * NEWS: Mention the change.
12764
12765         Rename module 'calloc' -> 'calloc-gnu'.
12766         * modules/calloc-gnu: New file, copied from modules/calloc.
12767         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12768         obsolete.
12769         * doc/posix-functions/calloc.texi: Update.
12770         * NEWS: Mention the change.
12771
12772         Rename module 'malloc' -> 'malloc-gnu'.
12773         * modules/malloc-gnu: New file, copied from modules/malloc.
12774         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12775         obsolete.
12776         * modules/argp (Depends-on): Update.
12777         * modules/regex (Depends-on): Update.
12778         * doc/posix-functions/malloc.texi: Update.
12779         * NEWS: Mention the change.
12780
12781 2010-08-28  Eric Blake  <eblake@redhat.com>
12782
12783         pread, pwrite: add missing dependency
12784         * modules/pread (Depends-on): Add extensions.
12785         * modules/pwrite (Depends-on): Likewise.
12786
12787 2010-08-28  Bruno Haible  <bruno@clisp.org>
12788
12789         unistr/u*-strchr: Fix tests dependencies.
12790         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12791         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12792         Reported by Ian Beckwith <ianb@erislabs.net>.
12793
12794 2010-08-28  Bruno Haible  <bruno@clisp.org>
12795
12796         read-file: Don't occupy too much unused memory.
12797         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12798
12799 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12800             Eric Blake  <eblake@redhat.com>
12801             Bruno Haible  <bruno@clisp.org>
12802
12803         read-file: Avoid memory reallocations with regular files.
12804         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12805         (fread_file): With regular files, use the remaining length as the
12806         initial buffer size.  Check against overflow.
12807         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12808         sys_stat.
12809
12810 2010-08-28  Bruno Haible  <bruno@clisp.org>
12811
12812         ftello: Relax license.
12813         * modules/ftello (License): Relax to LGPLv2+.
12814         Reported by Eric Blake.
12815
12816 2010-08-28  Bruno Haible  <bruno@clisp.org>
12817
12818         Avoid relocwrapper link errors due to gnulib replacement functions.
12819         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12820         function.
12821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12822
12823 2010-08-28  Bruno Haible  <bruno@clisp.org>
12824
12825         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12826         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12827         defined.
12828         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12829         Suggested by Eric Blake.
12830
12831 2010-08-28  Bruno Haible  <bruno@clisp.org>
12832
12833         sys_socket, netdb: Ensure socklen_t gets defined.
12834         * modules/sys_socket (Depends-on): Add socklen.
12835         * modules/netdb (Depends-on): Likewise.
12836         * modules/getaddrinfo (Depends-on): Remove socklen.
12837         * modules/getsockopt (Depends-on): Likewise.
12838         * modules/setsockopt (Depends-on): Likewise.
12839         * tests/test-sys_socket.c: Check that socklen_t is defined.
12840         * tests/test-netdb.c: Likewise.
12841         * m4/socklen.m4: Update comments.
12842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12843
12844 2010-08-27  Eric Blake  <eblake@redhat.com>
12845
12846         login_tty: add missing dependency
12847         * modules/login_tty (Depends-on): Add pty.
12848
12849 2010-08-26  Eric Blake  <eblake@redhat.com>
12850
12851         lib-symbol-versions: fix m4 quoting
12852         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12853         format for AC_LINK_IFELSE.
12854
12855         glob: fix compile test
12856         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12857
12858         btowc: fix missing file
12859         * modules/btowc (Files): Also ship locale-fr.m4.
12860
12861         lseek: fix link test
12862         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12863         AC_LINK_IFELSE.
12864
12865         include_next: silence autoconf 2.68 warning
12866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12867         AC_COMPILE_IFELSE as special.
12868         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12869         autoconf < 2.68.
12870
12871         acl: fix compilation test
12872         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12873         AC_COMPILE_IFELSE.
12874
12875 2010-08-26  Bruno Haible  <bruno@clisp.org>
12876
12877         Modernize AC_TRY_RUN invocations.
12878         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12879         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12880         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12881         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12882         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12883         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12884         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12886         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12887         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12888         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12889         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12890         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12893         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12894         gl_MBRLEN_NUL_RETVAL): Likewise.
12895         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12896         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12897         Likewise.
12898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12899         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12900         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12901         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12902         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12903         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12904         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12905         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12906         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12907         Likewise.
12908         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12909         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12911         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12912         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12913         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12915         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12916         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12918
12919 2010-08-26  Bruno Haible  <bruno@clisp.org>
12920
12921         Modernize AC_TRY_LINK invocations.
12922         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12923         AC_TRY_LINK.
12924         * m4/argp.m4 (gl_ARGP): Likewise.
12925         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12926         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12927         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12929         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12930         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12931         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12932         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12933         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12934         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12935         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12936         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12937         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12938         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12939         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12940         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12941         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12942         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12943         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12944         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12945         Likewise.
12946         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12947         Likewise.
12948         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12949         Likewise.
12950         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12952         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12953         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12954         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12955         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12956         * m4/servent.m4 (gl_SERVENT): Likewise.
12957         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12958         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12959         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12960         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12961         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12962         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12963         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12965         * modules/tsearch-tests (configure.ac): Likewise.
12966
12967 2010-08-26  Bruno Haible  <bruno@clisp.org>
12968
12969         Modernize AC_TRY_COMPILE invocations.
12970         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12971         AC_TRY_COMPILE.
12972         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12973         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12974         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12975         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12976         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12977         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12978         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12979         * m4/lock.m4 (gl_LOCK): Likewise.
12980         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12981         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12982         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12983         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12984         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12985         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12986         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12988         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12989         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12990         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12991         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12992         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12993         extraneous semicolon.
12994
12995 2010-08-26  Jim Meyering  <meyering@redhat.com>
12996
12997         stat-time: relax license LGPL
12998         * modules/stat-time (License): Change from GPL to LGPL,
12999         with consent from all contributors, for use in libguile.
13000         Requested by Ludovic Courtès.
13001
13002 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13003
13004         poll: return immediately on POLLHUP.
13005         * lib/poll.c (poll): Always set timeout before wait_timeout is
13006         computed.
13007
13008 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13009
13010         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13011         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13012         rmdir ("dir/.//"), unlinkat.
13013
13014 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13015
13016         stdbool: avoid spurious failure with modern xlc
13017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13018
13019 2010-08-24  Bruno Haible  <bruno@clisp.org>
13020
13021         getloadavg: simplify code
13022         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13023         gl_have_func. Update comments.
13024
13025 2010-08-24  Eric Blake  <eblake@redhat.com>
13026
13027         getloadavg: don't define SVR4 on cygwin
13028         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13029         only define SVR4 when -lkvm is required.
13030         Reported by Yaakov Selkowitz.
13031
13032 2010-08-24  Bruno Haible  <bruno@clisp.org>
13033
13034         priv-set: fix comment
13035         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13036
13037 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13038
13039         priv-set: fix comments
13040         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13041         to match code, as suggested by David Bartley in:
13042         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13043
13044 2010-08-23  Eric Blake  <eblake@redhat.com>
13045
13046         stdbool: avoid rejecting clang
13047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13048         * tests/test-stdbool.c: Enable more tests if using the system
13049         <stdbool.h> instead of the gnulib replacement.
13050         (main): Move xlc bug test to a runtime test for all compilers.
13051         Reported by Anders Kaseorg.
13052
13053         argz: fix shell quoting issue
13054         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13055         Reported by Charles Wilson.
13056
13057 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13058             Erik Faye-Lund <kusmabite@gmail.com>
13059
13060         poll, select: handle ERROR_BROKEN_PIPE.
13061         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13062         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13063         * lib/select.c (win32_compute_revents): Do not mark a pipe
13064         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13065
13066 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13067
13068         fts: allow compilation with C++
13069         * lib/fts_.h: Specify extern "C" linkage with C++.
13070
13071 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13072
13073         Fix gnulib-tool sed script de-commentation for AIX sed.
13074         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13075         sed.
13076
13077 2010-08-17  Eric Blake  <eblake@redhat.com>
13078
13079         test-stddef: test for (some) offsetof bugs
13080         * tests/test-stddef.c: Enhance test to ensure correct type of
13081         offsetof.
13082         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13083         that we are not fixing at this time.
13084
13085 2010-08-15  Bruno Haible  <bruno@clisp.org>
13086
13087         stpncpy: Allow stpncpy to be defined as a macro.
13088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13089         if it's already correctly declared.
13090         * lib/string.in.h (stpncpy): Undefine before redefining.
13091         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13092
13093 2010-08-14  Bruno Haible  <bruno@clisp.org>
13094
13095         Rename module 'memxfrm' to 'amemxfrm'.
13096         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13097         (amemxfrm): Renamed from memxfrm.
13098         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13099         (amemxfrm): Renamed from memxfrm.
13100         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13101         * NEWS: Mention the change.
13102         * MODULES.html.sh (String handling <string.h>): Update.
13103         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13104         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13105         * lib/unicase/u16-casexfrm.c: Likewise.
13106         * lib/unicase/u32-casexfrm.c: Likewise.
13107         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13108         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13109         * lib/uninorm/u16-normxfrm.c: Likewise.
13110         * lib/uninorm/u32-normxfrm.c: Likewise.
13111         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13112         memxfrm.
13113         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13114         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13115         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13116         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13117         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13118         Suggested by Paul Eggert.
13119
13120 2010-08-14  Bruno Haible  <bruno@clisp.org>
13121
13122         Tests for module 'astrxfrm'.
13123         * modules/astrxfrm-tests: New file.
13124         * tests/test-astrxfrm.c: New file.
13125
13126         New module 'astrxfrm'.
13127         * lib/astrxfrm.h: New file.
13128         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13129         * modules/astrxfrm: New file.
13130
13131 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13132
13133         regex: Tweak doc.
13134         * doc/regex.texi (Overview): Don't mention regex.c.
13135         (GNU Regular Expression Compiling): Likewise.
13136         (Match-end-of-line Operator): Mention 'not_eol'.
13137
13138 2010-08-14  Brian Gough  <bjg@gnu.org>
13139             Bruno Haible  <bruno@clisp.org>
13140
13141         git-merge-changelog: add doc relating to use with bzr and hg.
13142         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13143
13144 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13145
13146         pthread: fix pthread.h creation for srcdir != builddir
13147         * modules/pthread (Makefile.am): Fix the rule to work also in a
13148         non-srcdir build.
13149
13150 2010-08-13  Karl Berry  <karl@gnu.org>
13151
13152         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13153         * doc/posix-*/*: force line break before @url of POSIX
13154         specifications.
13155         Suggested by Werner Lemberg.
13156
13157 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13158
13159         strtod: fix const diagnostic
13160         * lib/strtod.c (strtod): Don't assign const char * to char *,
13161         as this elicits a warning from GCC when warnings are enabled.
13162
13163 2010-08-10  Pádraig Brady <P@draigbrady.com>
13164         and Eric Blake  <eblake@redhat.com>
13165
13166         copy-acl: ignore ENOTSUP on HP-UX
13167         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13168         so that it is available for HP-UX.
13169         * lib/copy-acl.c (qcopy_acl): Use it.
13170         Reported by Patrick M. Callahan.
13171
13172 2010-08-10  Eric Blake  <eblake@redhat.com>
13173
13174         open, chown: relax license
13175         * modules/open (License): Change to LGPLv2+, with consent by all
13176         authors, for use in augeas.
13177         * modules/chown (License): Likewise.
13178         * modules/lchown (Likewise): Likewise.
13179         Requested by Adam Stokes.
13180
13181 2010-08-09  Karl Berry  <karl@gnu.org>
13182
13183         * build-aux/ar-lib: new file, import from Automake.
13184         * config/srclist.txt: autocheck for updates.
13185
13186 2010-08-09  Eric Blake  <eblake@redhat.com>
13187
13188         readlinkat: adjust client modules
13189         * modules/areadlinkat (Depends-on): Use readlinkat, not
13190         symlinkat.
13191         * modules/areadlinkat-with-size (Depends-on): Likewise.
13192
13193         mknod: be more vocal about danger of running tests as root
13194         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13195         root, since that is just asking for problems.
13196         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13197
13198         readlinkat: split into its own module
13199         * modules/symlinkat: Split readlinkat...
13200         * modules/readlinkat: ...into separate module.
13201         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13202         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13203         * lib/symlinkat.c (readlinkat): Move...
13204         * lib/readlinkat.c: ...into new file.
13205         * modules/symlinkat-tests: Split readlinkat test...
13206         * modules/readlinkat-tests: ...into separate module.
13207         * tests/test-symlinkat.c: Split...
13208         * tests/test-readlinkat.c: ...into new file.
13209         * NEWS: Document the split.
13210         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13211         * lib/unistd.in.h (readlinkat): Likewise.
13212         Suggested by Bruno Haible.
13213
13214 2010-08-08  Bruno Haible  <bruno@clisp.org>
13215
13216         memxfrm: Speed up.
13217         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13218         that usually only one call to strxfrm is necessary for each string
13219         part.
13220         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13221
13222 2010-08-07  Karl Berry  <karl@gnu.org>
13223
13224         * doc/posix-headers/limits.texi,
13225         * doc/posix-functions/malloc.texi,
13226         * doc/posix-functions/strsignal.texi: missing @item.
13227         * doc/ld-version-script.texi: spurious leading i.
13228         * doc/regex.texi (Interval Operators): no commas inside @var.
13229
13230 2010-08-01  Bruno Haible  <bruno@clisp.org>
13231
13232         Integrate the regex documentation.
13233         * doc/gnulib.texi: Define 'cn' index.
13234         (Regular expressions): New a chapter that includes regex.texi and
13235         regexprops-generic.texi.
13236         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13237         syntax.
13238
13239         Whitespace cleanup.
13240         * doc/regex.texi: Remove trailing spaces.
13241
13242         Add regex documentation.
13243         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13244         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13245         Written by Kathy A. Hargreaves and Karl Berry.
13246
13247 2010-08-01  Bruno Haible  <bruno@clisp.org>
13248
13249         link: Update documentation.
13250         * doc/posix-functions/link.texi: Update regarding Solaris.
13251
13252 2010-07-31  Bruno Haible  <bruno@clisp.org>
13253
13254         Update modules list.
13255         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13256         (String handling <string.h>): Add memcmp2, memxfrm.
13257         (Container data structures): Add xlist, xsublist, xoset.
13258         (Core language properties): Add alignof, unused-parameter.
13259         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13260         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13261         (Unibyte characters <ctype.h>): New section.
13262         (String handling <string.h>): New section.
13263         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13264         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13265         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13266         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13267         tan, tanh, tanl, y0, y1, yn.
13268         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13269         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13270         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13271         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13272         unlockpt, vdprintf, vdprintf-posix.
13273         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13274         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13275         xconcat-filename.
13276         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13277         getdtablesize, pipe2, pipe2-safer.
13278         (Security): New section.
13279         (Networking functions): Add accept4.
13280         (Signal handling): Add sigpipe.
13281         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13282         mbmemcasecoll.
13283         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13284         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13285         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13286         pipe-filter-ii.
13287         (Misc): Add argp-version-etc, login_tty, parse-duration.
13288
13289 2010-07-31  Bruno Haible  <bruno@clisp.org>
13290
13291         Improve doc in MODULES.html.
13292         * modules/linkat (Description): Add the word "function".
13293         * modules/mkfifo (Description): Likewise.
13294         * modules/mknod (Description): Likewise.
13295         * modules/remove (Description): Likewise.
13296         * modules/renameat (Description): Likewise.
13297         * modules/stat (Description): Likewise.
13298         * modules/symlink (Description): Likewise.
13299         * modules/unlink (Description): Likewise.
13300
13301 2010-07-31  Bruno Haible  <bruno@clisp.org>
13302
13303         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13304         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13305         option --enable/disable-c++ instead of --enable/disable-cxx.
13306         * NEWS: Mention the change.
13307
13308 2010-07-31  Bruno Haible  <bruno@clisp.org>
13309
13310         readlink, areadlink: Relax test a bit.
13311         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13312         alternative to ENOTDIR.
13313         * tests/test-areadlink.h (test_areadlink): Likewise.
13314         Reported by Rainer Tammer.
13315
13316 2010-07-31  Bruno Haible  <bruno@clisp.org>
13317
13318         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13319         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13320         character, perform the search using U_STRCHR.
13321         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13322         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13323         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13324         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13325         Suggested by Paolo Bonzini.
13326
13327 2010-07-31  Bruno Haible  <bruno@clisp.org>
13328
13329         unistr/u*-strstr: Fix dependencies.
13330         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13331         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13332         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13333
13334 2010-07-31  Bruno Haible  <bruno@clisp.org>
13335
13336         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13337         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13338         the beginning of the loop.
13339         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13340         cases in 'switch' statement.
13341
13342         unistr/u8-strchr: Fix several bugs.
13343         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13344         the string. When not found, return NULL, not a pointer near the end.
13345
13346         More tests for unistr/u8-strchr.
13347         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13348         that the function does not read past the first occurrence of the byte
13349         being searched.
13350         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13351         * tests/unistr/test-u16-strchr.c (main): New function.
13352         * tests/unistr/test-u32-strchr.c (main): New function.
13353
13354 2010-07-31  Bruno Haible  <bruno@clisp.org>
13355
13356         posix-modules: Ignore backup files of documentation files.
13357         * posix-modules: grep only through files named *.texi.
13358
13359 2010-07-31  Bruno Haible  <bruno@clisp.org>
13360
13361         symlinkat: Fix documentation.
13362         * doc/posix-functions/readlinkat.texi: Fix module name.
13363
13364 2010-07-31  Bruno Haible  <bruno@clisp.org>
13365
13366         fchownat: Replace also when chown has the trailing slash bug.
13367         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13368         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13369         introduced on 2010-04-10.
13370         Reported by Rainer Tammer.
13371
13372 2010-07-31  Bruno Haible  <bruno@clisp.org>
13373
13374         linkat: Work around AIX 7.1 bug.
13375         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13376         whether linkat handles trailing slash correctly. If not, replace linkat
13377         and define LINKAT_TRAILING_SLASH_BUG.
13378         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13379         check whether (fd1,file1) points to a directory if file1 or file2 ends
13380         in a slash. Code taken from lib/link.c.
13381         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13382         Reported by Rainer Tammer.
13383
13384 2010-07-31  Bruno Haible  <bruno@clisp.org>
13385
13386         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13387         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13388         This disables an xlc optimization that was causing wrong test results.
13389         Reported by Rainer Tammer.
13390
13391 2010-07-31  Bruno Haible  <bruno@clisp.org>
13392
13393         iconv: Work around AIX 6.1..7.1 bug.
13394         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13395         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13396         cross-compiling, guess no on all versions of AIX.
13397         Reported by Rainer Tammer.
13398
13399 2010-07-31  Bruno Haible  <bruno@clisp.org>
13400
13401         readlink: Relax test a bit.
13402         * tests/test-readlink.h (test_readlink): Allow different errno value
13403         when readlink is called with a file name that ends in / and refers to
13404         a file.
13405         Suggested by Eric Blake.
13406         Reported by Rainer Tammer.
13407
13408 2010-07-31  Bruno Haible  <bruno@clisp.org>
13409
13410         copysign: Does not require -lm on glibc systems.
13411         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13412         gl_COMMON_DOUBLE_MATHFUNC.
13413         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13414
13415 2010-07-31  Bruno Haible  <bruno@clisp.org>
13416
13417         duplocale: Work around AIX 7.1 bug.
13418         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13419         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13420         * lib/duplocale.c (rpl_duplocale): Update comment.
13421         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13422         Reported by Rainer Tammer.
13423
13424 2010-07-30  Bruno Haible  <bruno@clisp.org>
13425
13426         dirfd: Avoid link error on AIX 7.1.
13427         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13428         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13429         exist, set REPLACE_DIRFD.
13430         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13431         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13432         * doc/posix-functions/dirfd.texi: Update.
13433         Reported by Rainer Tammer.
13434
13435 2010-07-30  Eric Blake  <eblake@redhat.com>
13436
13437         strtod: next round of AIX fixes
13438         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13439         exponent.
13440         * tests/test-strtod.c (main): Enhance tests.
13441         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13442         Reported by Rainer Tammer.
13443
13444         futimens: fix configure check
13445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13446         Reported by Bruno Haible.
13447
13448 2010-07-30  Bruno Haible  <bruno@clisp.org>
13449
13450         getline: Update regarding AIX.
13451         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13452         Reported by Rainer Tammer.
13453
13454 2010-07-30  Bruno Haible  <bruno@clisp.org>
13455
13456         wcwidth: Drop replacement on AIX 7.
13457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13458         AIX 7.
13459         Reported by Rainer Tammer.
13460
13461 2010-07-30  Bruno Haible  <bruno@clisp.org>
13462
13463         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13465         a 'char *'.
13466         Reported by Rainer Tammer.
13467
13468 2010-07-30  Bruno Haible  <bruno@clisp.org>
13469
13470         unlink: Update regarding AIX.
13471         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13472         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13473         Reported by Rainer Tammer.
13474
13475 2010-07-30  Bruno Haible  <bruno@clisp.org>
13476
13477         symlink: Update regarding AIX.
13478         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13479         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13480         Reported by Rainer Tammer.
13481
13482 2010-07-30  Bruno Haible  <bruno@clisp.org>
13483
13484         strndup: Update regarding AIX.
13485         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13486         AIX 7.
13487         Reported by Rainer Tammer.
13488
13489 2010-07-30  Bruno Haible  <bruno@clisp.org>
13490
13491         stat: Update regarding AIX.
13492         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13493         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13494         Reported by Rainer Tammer.
13495
13496 2010-07-30  Bruno Haible  <bruno@clisp.org>
13497
13498         truncl: Fix autoconf test.
13499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13500         whether truncl works.
13501         Reported by Rainer Tammer.
13502
13503 2010-07-30  Bruno Haible  <bruno@clisp.org>
13504
13505         round: Update regarding AIX.
13506         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13507         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13508         Reported by Rainer Tammer.
13509
13510 2010-07-30  Bruno Haible  <bruno@clisp.org>
13511
13512         rename: Update regarding AIX.
13513         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13514         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13515         Reported by Rainer Tammer.
13516
13517 2010-07-30  Bruno Haible  <bruno@clisp.org>
13518
13519         printf.m4: Update regarding AIX.
13520         * m4/printf.m4: Update comments regarding AIX.
13521         Reported by Rainer Tammer.
13522
13523 2010-07-30  Bruno Haible  <bruno@clisp.org>
13524
13525         iconv: Update regarding AIX.
13526         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13527         AIX 7.
13528         Reported by Rainer Tammer.
13529
13530 2010-07-30  Bruno Haible  <bruno@clisp.org>
13531
13532         getopt: Update regarding AIX.
13533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13534         no on AIX.
13535         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13536         Reported by Rainer Tammer.
13537
13538 2010-07-30  Bruno Haible  <bruno@clisp.org>
13539
13540         ldexpl; Update regarding AIX.
13541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13542         on AIX 7.
13543         Reported by Rainer Tammer.
13544
13545 2010-07-30  Bruno Haible  <bruno@clisp.org>
13546
13547         frexpl: Update regarding AIX.
13548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13549         on AIX 7.
13550         Reported by Rainer Tammer.
13551
13552 2010-07-30  Bruno Haible  <bruno@clisp.org>
13553
13554         open, fopen: Update regarding AIX.
13555         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13556         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13557         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13558         * doc/posix-functions/fopen.texi: Likewise.
13559         Reported by Rainer Tammer.
13560
13561 2010-07-30  Bruno Haible  <bruno@clisp.org>
13562
13563         chown: Update doc regarding AIX.
13564         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13565         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13566         Reported by Rainer Tammer.
13567
13568 2010-07-30  Eric Blake  <eblake@redhat.com>
13569
13570         strtod: fix bug in replacement function on AIX
13571         * lib/strtod.c (strtod): Special case broken "0x" parse in
13572         underlying strtod.
13573         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13574         * doc/posix-functions/strtod.texi (strtod): Likewise.
13575         Reported by Rainer Tammer.
13576
13577 2010-07-30  Bruno Haible  <bruno@clisp.org>
13578
13579         mbrlen: Fix cross-compilation guess for AIX.
13580         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13581         guess. Leftover from 2008-12-22.
13582
13583 2010-07-30  Bruno Haible  <bruno@clisp.org>
13584
13585         mbrtowc: Fix cross-compilation guess for AIX.
13586         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13587         guess. Leftover from 2008-12-21.
13588
13589 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13590
13591         init.sh: work around trap limitation of some shells
13592         * tests/init.sh (setup_): Move exit trap outside of shell function.
13593
13594 2010-07-29  Eric Blake  <eblake@redhat.com>
13595
13596         strtod: aid debugging
13597         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13598         understanding why strtod is rejected.
13599
13600 2010-07-28  Bruno Haible  <bruno@clisp.org>
13601
13602         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13603         * lib/unistr/u8-chr.c: Include <string.h>.
13604         * tests/unistr/test-u8-chr.c: Likewise.
13605         * tests/unistr/test-u16-chr.c: Likewise.
13606         * tests/unistr/test-u32-chr.c: Likewise.
13607         * tests/unistr/test-u8-strchr.c: Likewise.
13608         * tests/unistr/test-u16-strchr.c: Likewise.
13609         * tests/unistr/test-u32-strchr.c: Likewise.
13610         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13611         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13612         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13613         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13614
13615 2010-07-28  Bruno Haible  <bruno@clisp.org>
13616
13617         Use spaces for indentation, not tabs.
13618         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13619
13620 2010-07-27  Bruno Haible  <bruno@clisp.org>
13621
13622         mbspcasecmp: Fix function specification.
13623         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13624         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13625         Reported by Eric Blake <eblake@redhat.com>.
13626
13627 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13628
13629         timespec: use cast and not conditional, as truncation isn't possible
13630         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13631         instead of a conditional.  Comment about the situation in more detail.
13632         This undoes most of the 2009-10-29 patch.
13633
13634 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13635
13636         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13637         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13638         * lib/unistr/u8-strchr.c: Likewise.
13639         * modules/unistr/u8-chr: Depend on memchr.
13640
13641         unistr/u*-strchr: add tests
13642         * modules/unistr/u8-strchr-tests: New file.
13643         * modules/unistr/u16-strchr-tests: New file.
13644         * modules/unistr/u32-strchr-tests: New file.
13645         * tests/unistr/test-strchr.h: New file.
13646         * tests/unistr/test-u8-strchr.c: New file.
13647         * tests/unistr/test-u16-strchr.c: New file.
13648         * tests/unistr/test-u32-strchr.c: New file.
13649
13650         unistr/u*-chr: test multibyte sequences more
13651         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13652         test vector.
13653         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13654         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13655         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13656
13657         unistr/u*-chr: test multibyte sequences
13658         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13659
13660         unistr/u*-chr: prepare for multibyte tests
13661         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13662         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13663         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13664         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13665         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13666         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13667
13668 2010-07-18  Bruno Haible  <bruno@clisp.org>
13669
13670         unistr/u8-strchr: Optimize non-ASCII argument case.
13671         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13672         because the first byte often matches anyway.
13673         Reported by Pádraig Brady <P@draigbrady.com>.
13674
13675 2010-07-15  Karl Berry  <karl@gnu.org>
13676
13677         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13678
13679 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13680
13681         getcwd: on Solaris, work better if ancestors are inaccessible
13682         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13683         buffer and size, try again with a large buffer.  This works better
13684         on Solaris, since its getcwd succeeds even if the path to the root
13685         is inaccessible, and this is helpful in common cases such as .zfs
13686         hidden directories.  Problem reported by J Chapman Flack in
13687         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13688         Use system getcwd if it's declared, not merely if it's partly
13689         working; use the partly-working test only to avoid needless effort
13690         if the system getcwd fails.
13691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13692         comment that was already obsolete and is now even more obsolete.
13693         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13694         now might call strdup.
13695
13696 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13697
13698         pthread: Add enough so that coreutils/src/sort.c compiles.
13699         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13700         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13701         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13702         Include <sys/types.h>, in case it defines pthread_t.
13703         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13704         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13705         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13706         (pthread_rwlockattr_t, pthread_spinlock_t):
13707         New typedefs, if HAVE_PTHREAD_T is not defined.
13708         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13709         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13710         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13711         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13712         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13713         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13714         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13715         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13716         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13717         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13718         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13719         New macros.
13720         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13721         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13722         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13723         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13724         (pthread_spin_unlock): New dummy functions.
13725         (pthread_create): Return EAGAIN; don't set errno.
13726         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13727         require AC_C_INLINE.
13728         * modules/pthread (Depends-on): Add sched, time.
13729         (pthread.h): Use AM_V_GEN.
13730
13731 2010-07-13  Bruno Haible  <bruno@clisp.org>
13732
13733         striconveh: Don't malloc memory if the result buffer is sufficient.
13734         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13735         buffer if its size is sufficient.
13736         Reported by Ludovic Courtès <ludo@gnu.org>.
13737
13738 2010-07-13  Bruno Haible  <bruno@clisp.org>
13739
13740         strtod: Add safety check.
13741         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13742
13743 2010-07-12  Bruno Haible  <bruno@clisp.org>
13744
13745         Unify tests that set gl_cv_func_ldexpl_no_libm.
13746         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13747         gl_FUNC_LDEXPL.
13748         (gl_FUNC_LDEXPL): Invoke it.
13749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13750
13751 2010-07-12  Bruno Haible  <bruno@clisp.org>
13752
13753         Unify tests that set gl_cv_func_ldexp_no_libm.
13754         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13755         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13756         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13757         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13758         * modules/strtod (Files): Add m4/ldexp.m4.
13759
13760 2010-07-12  Bruno Haible  <bruno@clisp.org>
13761
13762         Unify tests that set gl_cv_func_frexpl_no_libm.
13763         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13764         gl_FUNC_FREXPL_NO_LIBM.
13765         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13766         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13767
13768 2010-07-12  Bruno Haible  <bruno@clisp.org>
13769
13770         Unify tests that set gl_cv_func_frexp_no_libm.
13771         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13772         gl_FUNC_FREXP_NO_LIBM.
13773         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13774         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13775
13776 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13777
13778         memcoll: clarify sizes versus lengths, document better, and tweak perf
13779         * lib/memcoll.c (strcoll_loop, memcoll0):
13780         Improve quality of descriptive comments.  Name variables
13781         consistently as to whether they are lengths (which do not include
13782         terminating null) versus sizes (which do).
13783         * lib/xmemcoll.c (xmemcoll0): Likewise.
13784         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13785         returned when s1size == 0; this is easier to compile and saves
13786         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13787
13788 2010-07-12  Bruno Haible  <bruno@clisp.org>
13789
13790         Tests for module '_Exit'.
13791         * modules/_Exit-tests: New file.
13792         * tests/test-_Exit.sh: New file.
13793         * tests/test-_Exit.c: New file.
13794
13795         New module '_Exit'.
13796         * lib/stdlib.in.h (__attribute__): New macro.
13797         (_Exit): New declaration.
13798         * lib/_Exit.c: New file.
13799         * m4/_Exit.m4: New file.
13800         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13801         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13802         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13803         * modules/_Exit: New file.
13804         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13805         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13806
13807 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13808
13809         strtod: make it more-accurate typically, and don't require libm
13810         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13811         Include limits.h.  Don't include string.h.
13812         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13813         (locale_isspace): New function, so that no casts are needed to
13814         check whether *s is a space.
13815         (ldexp): Provide an unused dummy if not available.
13816         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13817         (strtod): Use them.  This implementation prefers to use the
13818         underlying strtod if available, falling back on our own code
13819         only to fix known bugs.  This is more likely to produce an
13820         accurate result.  Also, it avoids the use of libm functions.
13821         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13822         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13823         was absent, but it caused a test failure with coreutils.
13824         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13825         with libm.
13826         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13827         * modules/strtod-tests (Makefile.am): Likewise.
13828
13829 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13830             Bruno Haible  <bruno@clisp.org>
13831
13832         unistr/u8-strchr: Optimize ASCII argument case.
13833         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13834
13835 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13836
13837         (x)memcoll: minor tweaks
13838         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13839         is after the type that it qualifies.
13840         (memcoll0): Likewise.
13841         * lib/memcoll.h (memcoll0): Likewise.
13842         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13843         * lib/xmemcoll.h (xmemcoll0): Likewise.
13844         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13845         differs from memcoll in that the NUL byte is part of the argument.
13846         Omit the abort-checks, as performance is a real issue here.  Plus,
13847         the checks were wrong anyway (an off-by-one error).  Omit local
13848         variable 'diff', as it's a bit clearer that way.
13849         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13850         no longer needed.
13851
13852 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13853
13854         (x)memcoll: speedup when input is known to be NUL delimited
13855         * lib/memcoll.c: Include stdlib.
13856         (memcoll0): New function.
13857         (strcoll_loop): New function, refactored for use in both memcoll
13858         and memcoll0.
13859         * lib/memcoll.h (memcoll0): Add prototype.
13860         * lib/xmemcoll.c (xmemcoll0): New function.
13861         (collate_error): New function, refactored for use in both xmemcoll
13862         and xmemcoll0.
13863         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13864         * m4/memcoll.m4: add inline invocation.
13865
13866 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13867
13868         * build-aux/bootstrap: Remove any local translations
13869         from the translation project synchronization directory,
13870         so that local only translations are not distributed.
13871
13872 2010-07-04  Bruno Haible  <bruno@clisp.org>
13873
13874         fsusage: Clarify which code applies to which platforms.
13875         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13876         platform.
13877         * lib/fsusage.c (get_fs_usage): Likewise.
13878
13879 2010-07-04  Bruno Haible  <bruno@clisp.org>
13880
13881         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13882         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13883         Reported by Martin Lambers <marlam@marlam.de>.
13884
13885 2010-07-04  Jim Meyering  <meyering@redhat.com>
13886
13887         hash: once again explicitly disallow insertion of NULL
13888         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13889         inserting a NULL pointer cannot work with these functions.
13890         Add a comment with details.
13891         This reverts part of the 2010-07-01 commit, 5bef1a35
13892         "hash: extend module to deal with non-pointer keys".
13893
13894 2010-07-01  Bruno Haible  <bruno@clisp.org>
13895
13896         stdbool: Update doc.
13897         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13898         Info from Christian Weisgerber <naddy@mips.inka.de>.
13899
13900 2010-07-01  Jim Meyering  <meyering@redhat.com>
13901
13902         hash: extend module to deal with non-pointer keys
13903         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13904         but that allows insertion of non-pointer entries.
13905         Do not disallow an ENTRY value of NULL.
13906         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13907         * lib/hash.h (hash_insert0): Declare.
13908
13909 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13910
13911         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13912         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13913         not present (i.e. with autoconf 2.59 and when using gettextize, not
13914         gnulib), require AC_GNU_SOURCE instead.
13915
13916 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13917
13918         idpriv-drop: Fix tests.
13919         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13920         not to the test-idpriv-droptemp program.
13921
13922 2010-06-29  Bruno Haible  <bruno@clisp.org>
13923
13924         string: Fix syntax error with g++ 2.96.
13925         * lib/string.in.h (__pure__): Remove definition.
13926         (_GL_ATTRIBUTE_PURE): New macro.
13927         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13928         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13929         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13930
13931 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13932
13933         unitypes: Fix bug introduced on 2010-05-18.
13934         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13935
13936 2010-06-22  Eric Blake  <eblake@redhat.com>
13937
13938         memmem: slight optimization
13939         * lib/str-two-way.h (critical_factorization): Update comments.
13940         Reduce work during factorization phase.
13941         Reported by Carlos Bueno <carlos@bueno.org>.
13942
13943 2010-06-21  Bruno Haible  <bruno@clisp.org>
13944
13945         Fix HAVE_CALLOC_POSIX misnomer.
13946         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13947         !HAVE_CALLOC_POSIX.
13948         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13949         HAVE_CALLOC_POSIX.
13950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13951         instead of HAVE_CALLOC_POSIX.
13952         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13953         HAVE_CALLOC_POSIX.
13954
13955         Use modern idiom for calloc() replacement.
13956         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13957         AC_FUNC_CALLOC.
13958         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13959         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13960         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13961         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13962         (gl_REPLACE_CALLOC): New macro.
13963
13964 2010-06-21  Bruno Haible  <bruno@clisp.org>
13965
13966         Fix HAVE_REALLOC_POSIX misnomer.
13967         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13968         !HAVE_REALLOC_POSIX.
13969         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13970         HAVE_REALLOC_POSIX.
13971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13972         instead of HAVE_REALLOC_POSIX.
13973         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13974         HAVE_REALLOC_POSIX.
13975
13976         Use modern idiom for realloc() replacement.
13977         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13978         AC_FUNC_REALLOC.
13979         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13980         Autoconf's AC_FUNC_REALLOC.
13981         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13982         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13983         (gl_REPLACE_REALLOC): New macro.
13984         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13985
13986 2010-06-21  Bruno Haible  <bruno@clisp.org>
13987
13988         Fix HAVE_MALLOC_POSIX misnomer.
13989         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13990         !HAVE_MALLOC_POSIX.
13991         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13992         HAVE_MALLOC_POSIX.
13993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13994         instead of HAVE_MALLOC_POSIX.
13995         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13996         HAVE_MALLOC_POSIX.
13997
13998         Use modern idiom for malloc() replacement.
13999         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14000         AC_FUNC_MALLOC.
14001         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14002         Autoconf's AC_FUNC_MALLOC.
14003         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14004         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14005         (gl_REPLACE_MALLOC): New macro.
14006         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14007
14008 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14009
14010         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14011         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14012         This macro takes 3 arguments, not 4.
14013
14014 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14015
14016         ipv6: fix detection under mingw
14017         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14018         in6_addr.
14019
14020 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14021
14022         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14023         that strtod() works when cross-compiling to a glibc version known
14024         to work.
14025
14026 2010-06-15  Bruno Haible  <bruno@clisp.org>
14027
14028         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14029
14030 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14031
14032         select: Correct timeout.
14033         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14034
14035 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14036
14037         git-version-gen: init shell var to avoid env var influence
14038         * build-aux/git-version-gen (v): Init shell var to empty.
14039
14040 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         priv-set: Don't assume that priv.h exists merely because getppriv does.
14043         See Jan Andersen's bug report about AIX 5L in
14044         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14045         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14046         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14047         * lib/priv-set.h: Likewise.
14048         * tests/test-priv-set.c: Likewise.
14049
14050 2010-06-13  Bruno Haible  <bruno@clisp.org>
14051
14052         relocatable: Make it easier to test whether to install wrappers.
14053         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14054         RELOCATABLE_VIA_WRAPPER.
14055
14056 2010-06-13  Bruno Haible  <bruno@clisp.org>
14057
14058         gnulib-tool: Display specified modules and dependencies differently.
14059         * gnulib-tool (func_show_module_list): New function.
14060         (func_import, func_create_testdir): Invoke it.
14061         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14062
14063 2010-06-13  Bruno Haible  <bruno@clisp.org>
14064
14065         gnulib-tool: Align code of func_import and func_create_testdir.
14066         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14067         specified_modules.
14068
14069 2010-06-12  Jim Meyering  <meyering@redhat.com>
14070
14071         test-inttostr: avoid spurious failure on Solaris 9
14072         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14073         to accept "%ju".  Reported by Bruno Haible.
14074
14075 2010-06-11  Jim Meyering  <meyering@redhat.com>
14076
14077         test-sys_socket: mark variables as used more readably
14078         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14079         as "used" explicitly via (void) statement casts.  This is more
14080         readable than using them in an artificial return expression.
14081         Suggestion from Bruno Haible.
14082
14083 2010-06-11  Bruno Haible  <bruno@clisp.org>
14084
14085         Avoid some more warnings from "gcc -Wwrite-strings".
14086         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14087         to 'const char *'.
14088         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14089         * tests/test-c-strcasestr.c (main): Likewise.
14090         * tests/test-mbscasestr1.c (main): Likewise.
14091         * tests/test-mbscasestr2.c (main): Likewise.
14092         * tests/test-memmem.c (main): Likewise.
14093         * tests/test-strstr.c (main): Likewise.
14094         * tests/test-strcasestr.c (main): Likewise.
14095
14096 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14097
14098         init.sh: change framework_failure_ to fail with status 99, not 1
14099         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14100         automake's parallel-tests rule that this is an unexpected failure,
14101         even if the test is listed in XFAIL_TESTS.
14102
14103 2010-06-11  Jim Meyering  <meyering@redhat.com>
14104
14105         test-inttostr: avoid warnings about 4-6KB literal strings
14106         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14107         Include "macros.h", for its definition of ASSERT.
14108         (CK): s/assert/ASSERT/
14109         * modules/inttostr-tests (Files): Add macros.h.
14110
14111         init.sh: don't use $ME_ or skip_ before they are defined
14112         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14113         their first uses.  Also hoist their companions: warn_, fail_,
14114         framework_failure_, $stderr_fileno.  Prompted by a patch from
14115         Stefano Lattarini.
14116
14117         test-sys_socket: avoid set-but-not-used warnings from gcc
14118         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14119         avoid warning about set-but-not-used variables.
14120
14121         test-xvasprintf: avoid 'const' discard warnings
14122         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14123         "const" when assigning from literal strings.
14124         (test_xasprintf): Add "void" in function argument list to placate
14125         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14126
14127         tests: avoid compilation warnings in argmatch and exclude tests...
14128         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14129         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14130         Since it always exits, declare with the "noreturn" attribute.
14131         * tests/test-argmatch.c: Likewise.
14132
14133         tests: avoid 'const' discard warnings in mbsstr tests
14134         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14135         * tests/test-mbsstr2.c (main): Likewise.
14136
14137         test-verify: avoid warning from gcc's -Wmissing-declarations
14138         * tests/test-verify.c (function): Declare to be static.
14139
14140         test-inttostr.c: include <string.h> for use of strcmp
14141         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14142
14143         test-linkat: avoid failed assertion on "other" architectures
14144         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14145         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14146         sparc: https://bugs.launchpad.net/bugs/591968
14147
14148 2010-06-11  Jim Meyering  <meyering@redhat.com>
14149
14150         printf.m4: avoid autoconf's "Expanded Before Required" warning
14151         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14152         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14153         autoconf warning.
14154
14155 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14156
14157         Replacement header templates are now named with ".in", not "_".
14158         * doc/gnulib-intro.texi: Correct.
14159
14160 2010-06-10  Jim Meyering  <meyering@redhat.com>
14161
14162         inttostr-tests: depend on snprintf, not snprintf-posix
14163         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14164         snprintf-posix, to avoid this aclocal failure:
14165           missing file gnulib-tests/vasnprintf.c
14166           configure.ac:45: error: expected source file, required through \
14167           AC_LIBSOURCES, not found
14168
14169 2010-06-10  Jim Meyering  <meyering@redhat.com>
14170
14171         inttostr: add a new function, inttostr, and tests
14172         The namesake function was not available.  The existence of the
14173         template file, inttostr.c makes its addition nontrivial.
14174         * lib/anytostr.c: Rename from inttostr.c.
14175         (anytostr): Rename from inttostr.
14176         * lib/inttostr.c: New file.
14177         * modules/inttostr (Files): Add anytostr.c.
14178         (Makefile.am): Set lib_SOURCES instead of ...
14179         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14180         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14181         * lib/offtostr.c: Likewise.
14182         * lib/uinttostr.c: Likewise.
14183         * lib/umaxtostr.c: Likewise.
14184         * modules/inttostr-tests: New file.
14185         * tests/test-inttostr.c: New file.  Test these functions.
14186
14187 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14188             Bruno Haible  <bruno@clisp.org>
14189
14190         Add "Extending Gnulib" chapter to manual.
14191         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14192         chapter.
14193         (Extending Gnulib): New chapter.
14194         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14195         chapter.
14196
14197 2010-06-09  Bruno Haible  <bruno@clisp.org>
14198
14199         Avoid relocwrapper link errors due to gnulib replacement functions.
14200         * lib/areadlink.c: Use the system's malloc, realloc functions.
14201         (areadlink): Set errno to ENOMEM explicitly.
14202         * modules/areadlink (Depends-on): Remove malloc-posix.
14203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14204
14205 2010-06-09  Bruno Haible  <bruno@clisp.org>
14206
14207         Avoid relocwrapper link errors due to gnulib replacement functions.
14208         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14209         * lib/malloca.c: Likewise.
14210         * lib/relocatable.c: Likewise.
14211         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14212         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14213         * lib/setenv.c: Use the system's malloc, realloc functions.
14214         * lib/strerror.c: Use the system's sprintf function.
14215         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14216
14217 2010-06-04  Bruno Haible  <bruno@clisp.org>
14218
14219         Prefer documented low-level autoconf macro names.
14220         * m4/lib-link.m4: Use m4_translit instead of translit.
14221         * m4/environ.m4: Likewise.
14222         * m4/mathfunc.m4: Likewise.
14223         * m4/onceonly.m4: Likewise.
14224         * m4/stdint.m4: Likewise.
14225         Suggested by Eric Blake.
14226
14227 2010-06-04  Martin Lambers  <marlam@marlam.de>
14228             Bruno Haible  <bruno@clisp.org>
14229
14230         havelib: Allow library names with '+' characters.
14231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14232         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14233
14234 2010-06-09  Bruno Haible  <bruno@clisp.org>
14235
14236         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14237         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14238         realloc failed.
14239
14240 2010-06-08  Peter Simons  <simons@cryp.to>
14241
14242         maint.mk: make the news-check rule more configurable
14243         * top/maint.mk (news-check-lines-spec): New variable.
14244         (news-check): Use "sed -n 1,10p" in place of "head".
14245
14246 2010-06-07  Jim Meyering  <meyering@redhat.com>
14247
14248         do-release-commit-and-tag: fix typo in --help
14249         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14250
14251         regex: avoid new dead-code warning with gcc-4.6.0
14252         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14253         if-block containing a while-loop.  It's been unused for at least
14254         5 years.
14255
14256 2010-06-05  Bruno Haible  <bruno@clisp.org>
14257
14258         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14259         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14260
14261 2010-06-04  Bruno Haible  <bruno@clisp.org>
14262
14263         Update to GNU gettext 0.18.1.
14264         * modules/gettext (configure.ac): Require gettext infrastructure from
14265         version 0.18.1.
14266
14267 2010-06-03  Bruno Haible  <bruno@clisp.org>
14268
14269         Don't use AC_LIBOBJ with file names in subdirectories.
14270         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14271         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14272         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14273         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14274         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14275         gl_LIBUNISTRING_LIBSOURCE.
14276         (Makefile.am): Augment lib_SOURCES here, conditionally.
14277         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14278
14279 2010-06-03  Bruno Haible  <bruno@clisp.org>
14280
14281         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14282         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14283         expansion does not end with a newline.
14284         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14285         unnecessary newline.
14286
14287 2010-06-03  Bruno Haible  <bruno@clisp.org>
14288
14289         Reduce dependencies.
14290         * tests/test-quotearg.h: New file, extracted from
14291         tests/test-quotearg.c.
14292         * tests/test-quotearg-simple.c: New file, extracted from
14293         tests/test-quotearg.c.
14294         * tests/test-quotearg.c: Don't include <ctype.h>.
14295         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14296         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14297         use_quote_double_quotes, use_quotearg_colon): Moved to
14298         tests/test-quotearg.h.
14299         (results_g, flag_results, custom_quotes, custom_results): Moved
14300         to tests/test-quotearg-simple.c.
14301         (main): Moved the part that does not depend on gettext to
14302         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14303         performed.
14304         * modules/quotearg-simple: New file.
14305         * modules/quotearg-simple-tests: New file.
14306         * modules/quotearg (Depends-on): Add quotearg-simple.
14307         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14308         (Files): Add tests/test-quotearg.h.
14309         Reported by Paolo Bonzini.
14310
14311 2010-06-03  Bruno Haible  <bruno@clisp.org>
14312
14313         Reduce dependencies.
14314         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14315
14316 2010-06-03  Bruno Haible  <bruno@clisp.org>
14317
14318         time: Undefine more broken macros.
14319         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14320         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14321         Reported by Eric Blake.
14322
14323 2010-06-03  Bruno Haible  <bruno@clisp.org>
14324
14325         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14326         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14327         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14328         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14329         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14330         Reported by Ludovic Courtès <ludo@gnu.org>.
14331
14332 2010-06-02  Eric Blake  <eblake@redhat.com>
14333
14334         time: work with mingw + pthreads-win32 library
14335         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14336         if timespec is defined only in pthread.h.
14337         * modules/time (Makefile.am): Substitute it.
14338         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14339         <pthread.h>, when needed.
14340         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14341         from the library.
14342
14343 2010-05-31  Bruno Haible  <bruno@clisp.org>
14344
14345         Avoid expanding two macros in the wrong order.
14346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14347         gl_LIBUNISTRING if it is defined.
14348         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14349         autoconf >= 2.64.
14350         Reported by Ludovic Courtès <ludo@gnu.org>.
14351
14352 2010-05-27  Jim Meyering  <meyering@redhat.com>
14353
14354         maint.mk: also prohibit "#undef" of always-defined symbols
14355         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14356         Allow more than one space before the symbol name.
14357         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14358         the regexp uses alternation.
14359
14360 2010-05-26  Eric Blake  <eblake@redhat.com>
14361
14362         maint.mk: avoid echo -e
14363         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14364         Convert all uses of echo -* to printf.
14365         Reported by Matthias Bolte.
14366
14367 2010-05-25  Bruno Haible  <bruno@clisp.org>
14368
14369         Update to GNU gettext 0.18, part 2.
14370         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14371         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14372
14373 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14374
14375         Add missing include in test-pwrite.c.
14376         * tests/test-pwrite.c: Include string.h, for strcmp.
14377
14378 2010-05-24  Bruno Haible  <bruno@clisp.org>
14379
14380         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14381
14382 2010-05-24  Bruno Haible  <bruno@clisp.org>
14383
14384         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14385         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14386         iconveh_error argument.
14387         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14388         U_STRCONV_TO_LOCALE.
14389         * lib/unistr/u16-strcoll.c: Likewise.
14390         * lib/unistr/u32-strcoll.c: Likewise.
14391         * modules/unistr/u8-strcoll (Depends-on): Add
14392         uniconv/u8-strconv-to-enc, localcharset. Remove
14393         uniconv/u8-strconv-to-locale.
14394         (configure.ac): Bump version number.
14395         * modules/unistr/u16-strcoll (Depends-on): Add
14396         uniconv/u16-strconv-to-enc, localcharset. Remove
14397         uniconv/u16-strconv-to-locale.
14398         (configure.ac): Bump version number.
14399         * modules/unistr/u32-strcoll (Depends-on): Add
14400         uniconv/u32-strconv-to-enc, localcharset. Remove
14401         uniconv/u32-strconv-to-locale.
14402         (configure.ac): Bump version number.
14403
14404 2010-05-24  Bruno Haible  <bruno@clisp.org>
14405
14406         Avoid a test failure on NetBSD 5.0.
14407         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14408         an iconv() bug.
14409
14410 2010-05-24  Bruno Haible  <bruno@clisp.org>
14411
14412         Adjust #include directive style.
14413         * modules/regex (Includes): Recommend to write <regex.h>.
14414
14415 2010-05-24  Bruno Haible  <bruno@clisp.org>
14416
14417         regex: Don't require alloca.
14418         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14419         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14420         only inside if (0).
14421
14422 2010-05-23  Jim Meyering  <meyering@redhat.com>
14423
14424         test-renameat.c: include <sys/stat.h>
14425         * tests/test-renameat.c: Include <sys/stat.h>; required for
14426         definition of S_IS* macros.
14427
14428 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14429
14430         Update maintainer documentation for 'relocatable-prog' module.
14431         * doc/relocatable-maint.texi: Update.
14432         Comments by Bruno Haible.
14433
14434 2010-05-23  Bruno Haible  <bruno@clisp.org>
14435
14436         git-merge-changelog: Enable --split-merged-entry by default.
14437         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14438         (usage): Don't mention this option any more.
14439         Reported by Ralf Wildenhues.
14440
14441 2010-05-23  Jim Meyering  <meyering@redhat.com>
14442
14443         test-pwrite: do not leave behind a test file named "out"
14444         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14445         The trivial-looking use of init.sh is really necessary.
14446         It ensures that the temporary file, "out", is created in
14447         a temporary directory, and removed upon termination.
14448         * tests/test-pwrite.sh: Re-add file.
14449         * modules/pwrite-tests: Reference it.
14450
14451 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14452
14453         Fix output redirection buglet in init.sh.
14454         * tests/init.sh: Fix redirection of stderr.
14455
14456 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14457
14458         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14459
14460 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14461
14462         * modules/valgrind-tests: New file.
14463         * m4/valgrind-tests.m4: New file.
14464         * doc/valgrind-tests.texi: New file.
14465         * doc/gnulib.texi (Running self-tests under valgrind): New
14466         section.
14467
14468 2010-05-19  Bruno Haible  <bruno@clisp.org>
14469
14470         Clean up dead code in recent commit.
14471         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14472         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14473         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14474         Suggested by Paolo Bonzini.
14475
14476 2010-05-19  Bruno Haible  <bruno@clisp.org>
14477
14478         Avoid valgrind error reports from libunistring.
14479         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14480         * modules/libunistring (Files): Add it.
14481         * modules/libunistring-optional (Files): Likewise.
14482
14483 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14484             Bruno Haible  <bruno@clisp.org>
14485
14486         New module 'libunistring-optional'.
14487         * modules/libunistring-optional: New file.
14488         * m4/libunistring-base.m4: New file.
14489         * m4/libunistring-optional.m4: New file.
14490         * lib/unicase.in.h: Renamed from lib/unicase.h.
14491         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14492         * lib/unictype.in.h: Renamed from lib/unictype.h.
14493         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14494         * lib/uniname.in.h: Renamed from lib/uniname.h.
14495         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14496         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14497         * lib/unistr.in.h: Renamed from lib/unistr.h.
14498         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14499         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14500         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14501         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14502         gl_LIBUNISTRING. If the library was found, determine the installed
14503         version and set LIBUNISTRING_VERSION.
14504         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14505         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14506         handle a configuration option --with-included-libunistring.
14507         * modules/libunistring (Files): Add m4/absolute-header.m4.
14508         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14509         Add m4/libunistring-base.m4.
14510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14511         (Makefile.am): Build unicase.h from unicase.in.h.
14512         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14513         Add m4/libunistring-base.m4.
14514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14515         (Makefile.am): Build uniconv.h from uniconv.in.h.
14516         * modules/unictype/base (Files): Use unictype.in.h instead of
14517         unictype.h. Add m4/libunistring-base.m4.
14518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14519         (Makefile.am): Build unictype.h from unictype.in.h.
14520         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14521         Add m4/libunistring-base.m4.
14522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14523         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14524         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14525         Add m4/libunistring-base.m4.
14526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14527         (Makefile.am): Build uniname.h from uniname.in.h.
14528         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14529         Add m4/libunistring-base.m4.
14530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14531         (Makefile.am): Build uninorm.h from uninorm.in.h.
14532         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14533         unistdio.h. Add m4/libunistring-base.m4.
14534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14535         (Makefile.am): Build unistdio.h from unistdio.in.h.
14536         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14537         Add m4/libunistring-base.m4.
14538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14539         (Makefile.am): Build unistr.h from unistr.in.h.
14540         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14541         Add m4/libunistring-base.m4.
14542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14543         (Makefile.am): Build unitypes.h from unitypes.in.h.
14544         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14545         Add m4/libunistring-base.m4.
14546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14547         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14548         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14549         uniwidth.h. Add m4/libunistring-base.m4.
14550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14551         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14552         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14553         instead of augmenting lib_SOURCES.
14554         * modules/unicase/empty-suffix-context: Likewise.
14555         * modules/unicase/locale-language: Likewise.
14556         * modules/unicase/tolower: Likewise.
14557         * modules/unicase/totitle: Likewise.
14558         * modules/unicase/toupper: Likewise.
14559         * modules/unicase/u8-casecmp: Likewise.
14560         * modules/unicase/u8-casecoll: Likewise.
14561         * modules/unicase/u8-casefold: Likewise.
14562         * modules/unicase/u8-casexfrm: Likewise.
14563         * modules/unicase/u8-ct-casefold: Likewise.
14564         * modules/unicase/u8-ct-tolower: Likewise.
14565         * modules/unicase/u8-ct-totitle: Likewise.
14566         * modules/unicase/u8-ct-toupper: Likewise.
14567         * modules/unicase/u8-is-cased: Likewise.
14568         * modules/unicase/u8-is-casefolded: Likewise.
14569         * modules/unicase/u8-is-lowercase: Likewise.
14570         * modules/unicase/u8-is-titlecase: Likewise.
14571         * modules/unicase/u8-is-uppercase: Likewise.
14572         * modules/unicase/u8-prefix-context: Likewise.
14573         * modules/unicase/u8-suffix-context: Likewise.
14574         * modules/unicase/u8-tolower: Likewise.
14575         * modules/unicase/u8-totitle: Likewise.
14576         * modules/unicase/u8-toupper: Likewise.
14577         * modules/unicase/u16-casecmp: Likewise.
14578         * modules/unicase/u16-casecoll: Likewise.
14579         * modules/unicase/u16-casefold: Likewise.
14580         * modules/unicase/u16-casexfrm: Likewise.
14581         * modules/unicase/u16-ct-casefold: Likewise.
14582         * modules/unicase/u16-ct-tolower: Likewise.
14583         * modules/unicase/u16-ct-totitle: Likewise.
14584         * modules/unicase/u16-ct-toupper: Likewise.
14585         * modules/unicase/u16-is-cased: Likewise.
14586         * modules/unicase/u16-is-casefolded: Likewise.
14587         * modules/unicase/u16-is-lowercase: Likewise.
14588         * modules/unicase/u16-is-titlecase: Likewise.
14589         * modules/unicase/u16-is-uppercase: Likewise.
14590         * modules/unicase/u16-prefix-context: Likewise.
14591         * modules/unicase/u16-suffix-context: Likewise.
14592         * modules/unicase/u16-tolower: Likewise.
14593         * modules/unicase/u16-totitle: Likewise.
14594         * modules/unicase/u16-toupper: Likewise.
14595         * modules/unicase/u32-casecmp: Likewise.
14596         * modules/unicase/u32-casecoll: Likewise.
14597         * modules/unicase/u32-casefold: Likewise.
14598         * modules/unicase/u32-casexfrm: Likewise.
14599         * modules/unicase/u32-ct-casefold: Likewise.
14600         * modules/unicase/u32-ct-tolower: Likewise.
14601         * modules/unicase/u32-ct-totitle: Likewise.
14602         * modules/unicase/u32-ct-toupper: Likewise.
14603         * modules/unicase/u32-is-cased: Likewise.
14604         * modules/unicase/u32-is-casefolded: Likewise.
14605         * modules/unicase/u32-is-lowercase: Likewise.
14606         * modules/unicase/u32-is-titlecase: Likewise.
14607         * modules/unicase/u32-is-uppercase: Likewise.
14608         * modules/unicase/u32-prefix-context: Likewise.
14609         * modules/unicase/u32-suffix-context: Likewise.
14610         * modules/unicase/u32-tolower: Likewise.
14611         * modules/unicase/u32-totitle: Likewise.
14612         * modules/unicase/u32-toupper: Likewise.
14613         * modules/unicase/ulc-casecmp: Likewise.
14614         * modules/unicase/ulc-casecoll: Likewise.
14615         * modules/unicase/ulc-casexfrm: Likewise.
14616         * modules/uniconv/u8-conv-from-enc: Likewise.
14617         * modules/uniconv/u8-conv-to-enc: Likewise.
14618         * modules/uniconv/u8-strconv-from-enc: Likewise.
14619         * modules/uniconv/u8-strconv-from-locale: Likewise.
14620         * modules/uniconv/u8-strconv-to-enc: Likewise.
14621         * modules/uniconv/u8-strconv-to-locale: Likewise.
14622         * modules/uniconv/u16-conv-from-enc: Likewise.
14623         * modules/uniconv/u16-conv-to-enc: Likewise.
14624         * modules/uniconv/u16-strconv-from-enc: Likewise.
14625         * modules/uniconv/u16-strconv-from-locale: Likewise.
14626         * modules/uniconv/u16-strconv-to-enc: Likewise.
14627         * modules/uniconv/u16-strconv-to-locale: Likewise.
14628         * modules/uniconv/u32-conv-from-enc: Likewise.
14629         * modules/uniconv/u32-conv-to-enc: Likewise.
14630         * modules/uniconv/u32-strconv-from-enc: Likewise.
14631         * modules/uniconv/u32-strconv-from-locale: Likewise.
14632         * modules/uniconv/u32-strconv-to-enc: Likewise.
14633         * modules/uniconv/u32-strconv-to-locale: Likewise.
14634         * modules/unictype/bidicategory-byname: Likewise.
14635         * modules/unictype/bidicategory-name: Likewise.
14636         * modules/unictype/bidicategory-of: Likewise.
14637         * modules/unictype/bidicategory-test: Likewise.
14638         * modules/unictype/block-list: Likewise.
14639         * modules/unictype/block-test: Likewise.
14640         * modules/unictype/category-C: Likewise.
14641         * modules/unictype/category-Cc: Likewise.
14642         * modules/unictype/category-Cf: Likewise.
14643         * modules/unictype/category-Cn: Likewise.
14644         * modules/unictype/category-Co: Likewise.
14645         * modules/unictype/category-Cs: Likewise.
14646         * modules/unictype/category-L: Likewise.
14647         * modules/unictype/category-Ll: Likewise.
14648         * modules/unictype/category-Lm: Likewise.
14649         * modules/unictype/category-Lo: Likewise.
14650         * modules/unictype/category-Lt: Likewise.
14651         * modules/unictype/category-Lu: Likewise.
14652         * modules/unictype/category-M: Likewise.
14653         * modules/unictype/category-Mc: Likewise.
14654         * modules/unictype/category-Me: Likewise.
14655         * modules/unictype/category-Mn: Likewise.
14656         * modules/unictype/category-N: Likewise.
14657         * modules/unictype/category-Nd: Likewise.
14658         * modules/unictype/category-Nl: Likewise.
14659         * modules/unictype/category-No: Likewise.
14660         * modules/unictype/category-P: Likewise.
14661         * modules/unictype/category-Pc: Likewise.
14662         * modules/unictype/category-Pd: Likewise.
14663         * modules/unictype/category-Pe: Likewise.
14664         * modules/unictype/category-Pf: Likewise.
14665         * modules/unictype/category-Pi: Likewise.
14666         * modules/unictype/category-Po: Likewise.
14667         * modules/unictype/category-Ps: Likewise.
14668         * modules/unictype/category-S: Likewise.
14669         * modules/unictype/category-Sc: Likewise.
14670         * modules/unictype/category-Sk: Likewise.
14671         * modules/unictype/category-Sm: Likewise.
14672         * modules/unictype/category-So: Likewise.
14673         * modules/unictype/category-Z: Likewise.
14674         * modules/unictype/category-Zl: Likewise.
14675         * modules/unictype/category-Zp: Likewise.
14676         * modules/unictype/category-Zs: Likewise.
14677         * modules/unictype/category-and: Likewise.
14678         * modules/unictype/category-and-not: Likewise.
14679         * modules/unictype/category-byname: Likewise.
14680         * modules/unictype/category-name: Likewise.
14681         * modules/unictype/category-none: Likewise.
14682         * modules/unictype/category-of: Likewise.
14683         * modules/unictype/category-or: Likewise.
14684         * modules/unictype/category-test: Likewise.
14685         * modules/unictype/combining-class: Likewise.
14686         * modules/unictype/ctype-alnum: Likewise.
14687         * modules/unictype/ctype-alpha: Likewise.
14688         * modules/unictype/ctype-blank: Likewise.
14689         * modules/unictype/ctype-cntrl: Likewise.
14690         * modules/unictype/ctype-digit: Likewise.
14691         * modules/unictype/ctype-graph: Likewise.
14692         * modules/unictype/ctype-lower: Likewise.
14693         * modules/unictype/ctype-print: Likewise.
14694         * modules/unictype/ctype-punct: Likewise.
14695         * modules/unictype/ctype-space: Likewise.
14696         * modules/unictype/ctype-upper: Likewise.
14697         * modules/unictype/ctype-xdigit: Likewise.
14698         * modules/unictype/decimal-digit: Likewise.
14699         * modules/unictype/digit: Likewise.
14700         * modules/unictype/mirror: Likewise.
14701         * modules/unictype/numeric: Likewise.
14702         * modules/unictype/property-alphabetic: Likewise.
14703         * modules/unictype/property-ascii-hex-digit: Likewise.
14704         * modules/unictype/property-bidi-arabic-digit: Likewise.
14705         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14706         * modules/unictype/property-bidi-block-separator: Likewise.
14707         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14708         * modules/unictype/property-bidi-common-separator: Likewise.
14709         * modules/unictype/property-bidi-control: Likewise.
14710         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14711         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14712         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14713         * modules/unictype/property-bidi-european-digit: Likewise.
14714         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14715         * modules/unictype/property-bidi-left-to-right: Likewise.
14716         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14717         * modules/unictype/property-bidi-other-neutral: Likewise.
14718         * modules/unictype/property-bidi-pdf: Likewise.
14719         * modules/unictype/property-bidi-segment-separator: Likewise.
14720         * modules/unictype/property-bidi-whitespace: Likewise.
14721         * modules/unictype/property-byname: Likewise.
14722         * modules/unictype/property-combining: Likewise.
14723         * modules/unictype/property-composite: Likewise.
14724         * modules/unictype/property-currency-symbol: Likewise.
14725         * modules/unictype/property-dash: Likewise.
14726         * modules/unictype/property-decimal-digit: Likewise.
14727         * modules/unictype/property-default-ignorable-code-point: Likewise.
14728         * modules/unictype/property-deprecated: Likewise.
14729         * modules/unictype/property-diacritic: Likewise.
14730         * modules/unictype/property-extender: Likewise.
14731         * modules/unictype/property-format-control: Likewise.
14732         * modules/unictype/property-grapheme-base: Likewise.
14733         * modules/unictype/property-grapheme-extend: Likewise.
14734         * modules/unictype/property-grapheme-link: Likewise.
14735         * modules/unictype/property-hex-digit: Likewise.
14736         * modules/unictype/property-hyphen: Likewise.
14737         * modules/unictype/property-id-continue: Likewise.
14738         * modules/unictype/property-id-start: Likewise.
14739         * modules/unictype/property-ideographic: Likewise.
14740         * modules/unictype/property-ids-binary-operator: Likewise.
14741         * modules/unictype/property-ids-trinary-operator: Likewise.
14742         * modules/unictype/property-ignorable-control: Likewise.
14743         * modules/unictype/property-iso-control: Likewise.
14744         * modules/unictype/property-join-control: Likewise.
14745         * modules/unictype/property-left-of-pair: Likewise.
14746         * modules/unictype/property-line-separator: Likewise.
14747         * modules/unictype/property-logical-order-exception: Likewise.
14748         * modules/unictype/property-lowercase: Likewise.
14749         * modules/unictype/property-math: Likewise.
14750         * modules/unictype/property-non-break: Likewise.
14751         * modules/unictype/property-not-a-character: Likewise.
14752         * modules/unictype/property-numeric: Likewise.
14753         * modules/unictype/property-other-alphabetic: Likewise.
14754         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14755         * modules/unictype/property-other-grapheme-extend: Likewise.
14756         * modules/unictype/property-other-id-continue: Likewise.
14757         * modules/unictype/property-other-id-start: Likewise.
14758         * modules/unictype/property-other-lowercase: Likewise.
14759         * modules/unictype/property-other-math: Likewise.
14760         * modules/unictype/property-other-uppercase: Likewise.
14761         * modules/unictype/property-paired-punctuation: Likewise.
14762         * modules/unictype/property-paragraph-separator: Likewise.
14763         * modules/unictype/property-pattern-syntax: Likewise.
14764         * modules/unictype/property-pattern-white-space: Likewise.
14765         * modules/unictype/property-private-use: Likewise.
14766         * modules/unictype/property-punctuation: Likewise.
14767         * modules/unictype/property-quotation-mark: Likewise.
14768         * modules/unictype/property-radical: Likewise.
14769         * modules/unictype/property-sentence-terminal: Likewise.
14770         * modules/unictype/property-soft-dotted: Likewise.
14771         * modules/unictype/property-space: Likewise.
14772         * modules/unictype/property-terminal-punctuation: Likewise.
14773         * modules/unictype/property-test: Likewise.
14774         * modules/unictype/property-titlecase: Likewise.
14775         * modules/unictype/property-unassigned-code-value: Likewise.
14776         * modules/unictype/property-unified-ideograph: Likewise.
14777         * modules/unictype/property-uppercase: Likewise.
14778         * modules/unictype/property-variation-selector: Likewise.
14779         * modules/unictype/property-white-space: Likewise.
14780         * modules/unictype/property-xid-continue: Likewise.
14781         * modules/unictype/property-xid-start: Likewise.
14782         * modules/unictype/property-zero-width: Likewise.
14783         * modules/unictype/scripts: Likewise.
14784         * modules/unictype/syntax-c-ident: Likewise.
14785         * modules/unictype/syntax-c-whitespace: Likewise.
14786         * modules/unictype/syntax-java-ident: Likewise.
14787         * modules/unictype/syntax-java-whitespace: Likewise.
14788         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14789         * modules/unilbrk/u8-width-linebreaks: Likewise.
14790         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14791         * modules/unilbrk/u16-width-linebreaks: Likewise.
14792         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14793         * modules/unilbrk/u32-width-linebreaks: Likewise.
14794         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14795         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14796         * modules/uniname/uniname: Likewise.
14797         * modules/uninorm/canonical-decomposition: Likewise.
14798         * modules/uninorm/composition: Likewise.
14799         * modules/uninorm/decomposing-form: Likewise.
14800         * modules/uninorm/decomposition: Likewise.
14801         * modules/uninorm/filter: Likewise.
14802         * modules/uninorm/nfc: Likewise.
14803         * modules/uninorm/nfd: Likewise.
14804         * modules/uninorm/nfkc: Likewise.
14805         * modules/uninorm/nfkd: Likewise.
14806         * modules/uninorm/u8-normalize: Likewise.
14807         * modules/uninorm/u8-normcmp: Likewise.
14808         * modules/uninorm/u8-normcoll: Likewise.
14809         * modules/uninorm/u8-normxfrm: Likewise.
14810         * modules/uninorm/u16-normalize: Likewise.
14811         * modules/uninorm/u16-normcmp: Likewise.
14812         * modules/uninorm/u16-normcoll: Likewise.
14813         * modules/uninorm/u16-normxfrm: Likewise.
14814         * modules/uninorm/u32-normalize: Likewise.
14815         * modules/uninorm/u32-normcmp: Likewise.
14816         * modules/uninorm/u32-normcoll: Likewise.
14817         * modules/uninorm/u32-normxfrm: Likewise.
14818         * modules/unistdio/u8-asnprintf: Likewise.
14819         * modules/unistdio/u8-asprintf: Likewise.
14820         * modules/unistdio/u8-snprintf: Likewise.
14821         * modules/unistdio/u8-sprintf: Likewise.
14822         * modules/unistdio/u8-u8-asnprintf: Likewise.
14823         * modules/unistdio/u8-u8-asprintf: Likewise.
14824         * modules/unistdio/u8-u8-snprintf: Likewise.
14825         * modules/unistdio/u8-u8-sprintf: Likewise.
14826         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14827         * modules/unistdio/u8-u8-vasprintf: Likewise.
14828         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14829         * modules/unistdio/u8-u8-vsprintf: Likewise.
14830         * modules/unistdio/u8-vasnprintf: Likewise.
14831         * modules/unistdio/u8-vasprintf: Likewise.
14832         * modules/unistdio/u8-vsnprintf: Likewise.
14833         * modules/unistdio/u8-vsprintf: Likewise.
14834         * modules/unistdio/u16-asnprintf: Likewise.
14835         * modules/unistdio/u16-asprintf: Likewise.
14836         * modules/unistdio/u16-snprintf: Likewise.
14837         * modules/unistdio/u16-sprintf: Likewise.
14838         * modules/unistdio/u16-u16-asnprintf: Likewise.
14839         * modules/unistdio/u16-u16-asprintf: Likewise.
14840         * modules/unistdio/u16-u16-snprintf: Likewise.
14841         * modules/unistdio/u16-u16-sprintf: Likewise.
14842         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14843         * modules/unistdio/u16-u16-vasprintf: Likewise.
14844         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14845         * modules/unistdio/u16-u16-vsprintf: Likewise.
14846         * modules/unistdio/u16-vasnprintf: Likewise.
14847         * modules/unistdio/u16-vasprintf: Likewise.
14848         * modules/unistdio/u16-vsnprintf: Likewise.
14849         * modules/unistdio/u16-vsprintf: Likewise.
14850         * modules/unistdio/u32-asnprintf: Likewise.
14851         * modules/unistdio/u32-asprintf: Likewise.
14852         * modules/unistdio/u32-snprintf: Likewise.
14853         * modules/unistdio/u32-sprintf: Likewise.
14854         * modules/unistdio/u32-u32-asnprintf: Likewise.
14855         * modules/unistdio/u32-u32-asprintf: Likewise.
14856         * modules/unistdio/u32-u32-snprintf: Likewise.
14857         * modules/unistdio/u32-u32-sprintf: Likewise.
14858         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14859         * modules/unistdio/u32-u32-vasprintf: Likewise.
14860         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14861         * modules/unistdio/u32-u32-vsprintf: Likewise.
14862         * modules/unistdio/u32-vasnprintf: Likewise.
14863         * modules/unistdio/u32-vasprintf: Likewise.
14864         * modules/unistdio/u32-vsnprintf: Likewise.
14865         * modules/unistdio/u32-vsprintf: Likewise.
14866         * modules/unistdio/ulc-asnprintf: Likewise.
14867         * modules/unistdio/ulc-asprintf: Likewise.
14868         * modules/unistdio/ulc-fprintf: Likewise.
14869         * modules/unistdio/ulc-snprintf: Likewise.
14870         * modules/unistdio/ulc-sprintf: Likewise.
14871         * modules/unistdio/ulc-vasnprintf: Likewise.
14872         * modules/unistdio/ulc-vasprintf: Likewise.
14873         * modules/unistdio/ulc-vfprintf: Likewise.
14874         * modules/unistdio/ulc-vsnprintf: Likewise.
14875         * modules/unistdio/ulc-vsprintf: Likewise.
14876         * modules/unistr/u8-check: Likewise.
14877         * modules/unistr/u8-chr: Likewise.
14878         * modules/unistr/u8-cmp: Likewise.
14879         * modules/unistr/u8-cmp2: Likewise.
14880         * modules/unistr/u8-cpy: Likewise.
14881         * modules/unistr/u8-cpy-alloc: Likewise.
14882         * modules/unistr/u8-endswith: Likewise.
14883         * modules/unistr/u8-mblen: Likewise.
14884         * modules/unistr/u8-mbsnlen: Likewise.
14885         * modules/unistr/u8-mbtouc: Likewise.
14886         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14887         * modules/unistr/u8-mbtoucr: Likewise.
14888         * modules/unistr/u8-move: Likewise.
14889         * modules/unistr/u8-next: Likewise.
14890         * modules/unistr/u8-prev: Likewise.
14891         * modules/unistr/u8-set: Likewise.
14892         * modules/unistr/u8-startswith: Likewise.
14893         * modules/unistr/u8-stpcpy: Likewise.
14894         * modules/unistr/u8-stpncpy: Likewise.
14895         * modules/unistr/u8-strcat: Likewise.
14896         * modules/unistr/u8-strchr: Likewise.
14897         * modules/unistr/u8-strcmp: Likewise.
14898         * modules/unistr/u8-strcoll: Likewise.
14899         * modules/unistr/u8-strcpy: Likewise.
14900         * modules/unistr/u8-strcspn: Likewise.
14901         * modules/unistr/u8-strdup: Likewise.
14902         * modules/unistr/u8-strlen: Likewise.
14903         * modules/unistr/u8-strmblen: Likewise.
14904         * modules/unistr/u8-strmbtouc: Likewise.
14905         * modules/unistr/u8-strncat: Likewise.
14906         * modules/unistr/u8-strncmp: Likewise.
14907         * modules/unistr/u8-strncpy: Likewise.
14908         * modules/unistr/u8-strnlen: Likewise.
14909         * modules/unistr/u8-strpbrk: Likewise.
14910         * modules/unistr/u8-strrchr: Likewise.
14911         * modules/unistr/u8-strspn: Likewise.
14912         * modules/unistr/u8-strstr: Likewise.
14913         * modules/unistr/u8-strtok: Likewise.
14914         * modules/unistr/u8-to-u16: Likewise.
14915         * modules/unistr/u8-to-u32: Likewise.
14916         * modules/unistr/u8-uctomb: Likewise.
14917         * modules/unistr/u16-check: Likewise.
14918         * modules/unistr/u16-chr: Likewise.
14919         * modules/unistr/u16-cmp: Likewise.
14920         * modules/unistr/u16-cmp2: Likewise.
14921         * modules/unistr/u16-cpy: Likewise.
14922         * modules/unistr/u16-cpy-alloc: Likewise.
14923         * modules/unistr/u16-endswith: Likewise.
14924         * modules/unistr/u16-mblen: Likewise.
14925         * modules/unistr/u16-mbsnlen: Likewise.
14926         * modules/unistr/u16-mbtouc: Likewise.
14927         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14928         * modules/unistr/u16-mbtoucr: Likewise.
14929         * modules/unistr/u16-move: Likewise.
14930         * modules/unistr/u16-next: Likewise.
14931         * modules/unistr/u16-prev: Likewise.
14932         * modules/unistr/u16-set: Likewise.
14933         * modules/unistr/u16-startswith: Likewise.
14934         * modules/unistr/u16-stpcpy: Likewise.
14935         * modules/unistr/u16-stpncpy: Likewise.
14936         * modules/unistr/u16-strcat: Likewise.
14937         * modules/unistr/u16-strchr: Likewise.
14938         * modules/unistr/u16-strcmp: Likewise.
14939         * modules/unistr/u16-strcoll: Likewise.
14940         * modules/unistr/u16-strcpy: Likewise.
14941         * modules/unistr/u16-strcspn: Likewise.
14942         * modules/unistr/u16-strdup: Likewise.
14943         * modules/unistr/u16-strlen: Likewise.
14944         * modules/unistr/u16-strmblen: Likewise.
14945         * modules/unistr/u16-strmbtouc: Likewise.
14946         * modules/unistr/u16-strncat: Likewise.
14947         * modules/unistr/u16-strncmp: Likewise.
14948         * modules/unistr/u16-strncpy: Likewise.
14949         * modules/unistr/u16-strnlen: Likewise.
14950         * modules/unistr/u16-strpbrk: Likewise.
14951         * modules/unistr/u16-strrchr: Likewise.
14952         * modules/unistr/u16-strspn: Likewise.
14953         * modules/unistr/u16-strstr: Likewise.
14954         * modules/unistr/u16-strtok: Likewise.
14955         * modules/unistr/u16-to-u32: Likewise.
14956         * modules/unistr/u16-to-u8: Likewise.
14957         * modules/unistr/u16-uctomb: Likewise.
14958         * modules/unistr/u32-check: Likewise.
14959         * modules/unistr/u32-chr: Likewise.
14960         * modules/unistr/u32-cmp: Likewise.
14961         * modules/unistr/u32-cmp2: Likewise.
14962         * modules/unistr/u32-cpy: Likewise.
14963         * modules/unistr/u32-cpy-alloc: Likewise.
14964         * modules/unistr/u32-endswith: Likewise.
14965         * modules/unistr/u32-mblen: Likewise.
14966         * modules/unistr/u32-mbsnlen: Likewise.
14967         * modules/unistr/u32-mbtouc: Likewise.
14968         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14969         * modules/unistr/u32-mbtoucr: Likewise.
14970         * modules/unistr/u32-move: Likewise.
14971         * modules/unistr/u32-next: Likewise.
14972         * modules/unistr/u32-prev: Likewise.
14973         * modules/unistr/u32-set: Likewise.
14974         * modules/unistr/u32-startswith: Likewise.
14975         * modules/unistr/u32-stpcpy: Likewise.
14976         * modules/unistr/u32-stpncpy: Likewise.
14977         * modules/unistr/u32-strcat: Likewise.
14978         * modules/unistr/u32-strchr: Likewise.
14979         * modules/unistr/u32-strcmp: Likewise.
14980         * modules/unistr/u32-strcoll: Likewise.
14981         * modules/unistr/u32-strcpy: Likewise.
14982         * modules/unistr/u32-strcspn: Likewise.
14983         * modules/unistr/u32-strdup: Likewise.
14984         * modules/unistr/u32-strlen: Likewise.
14985         * modules/unistr/u32-strmblen: Likewise.
14986         * modules/unistr/u32-strmbtouc: Likewise.
14987         * modules/unistr/u32-strncat: Likewise.
14988         * modules/unistr/u32-strncmp: Likewise.
14989         * modules/unistr/u32-strncpy: Likewise.
14990         * modules/unistr/u32-strnlen: Likewise.
14991         * modules/unistr/u32-strpbrk: Likewise.
14992         * modules/unistr/u32-strrchr: Likewise.
14993         * modules/unistr/u32-strspn: Likewise.
14994         * modules/unistr/u32-strstr: Likewise.
14995         * modules/unistr/u32-strtok: Likewise.
14996         * modules/unistr/u32-to-u16: Likewise.
14997         * modules/unistr/u32-to-u8: Likewise.
14998         * modules/unistr/u32-uctomb: Likewise.
14999         * modules/uniwbrk/u8-wordbreaks: Likewise.
15000         * modules/uniwbrk/u16-wordbreaks: Likewise.
15001         * modules/uniwbrk/u32-wordbreaks: Likewise.
15002         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15003         * modules/uniwbrk/wordbreak-property: Likewise.
15004         * modules/uniwidth/u8-strwidth: Likewise.
15005         * modules/uniwidth/u8-width: Likewise.
15006         * modules/uniwidth/u16-strwidth: Likewise.
15007         * modules/uniwidth/u16-width: Likewise.
15008         * modules/uniwidth/u32-strwidth: Likewise.
15009         * modules/uniwidth/u32-width: Likewise.
15010         * modules/uniwidth/width: Likewise.
15011         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15012         with $(LIBUNISTRING).
15013         * modules/unicase/ignorable-tests: Likewise.
15014         * modules/unicase/locale-language-tests: Likewise.
15015         * modules/unicase/tolower-tests: Likewise.
15016         * modules/unicase/totitle-tests: Likewise.
15017         * modules/unicase/toupper-tests: Likewise.
15018         * modules/unicase/u8-casecmp-tests: Likewise.
15019         * modules/unicase/u8-casecoll-tests: Likewise.
15020         * modules/unicase/u8-casefold-tests: Likewise.
15021         * modules/unicase/u8-is-cased-tests: Likewise.
15022         * modules/unicase/u8-is-casefolded-tests: Likewise.
15023         * modules/unicase/u8-is-lowercase-tests: Likewise.
15024         * modules/unicase/u8-is-titlecase-tests: Likewise.
15025         * modules/unicase/u8-is-uppercase-tests: Likewise.
15026         * modules/unicase/u8-tolower-tests: Likewise.
15027         * modules/unicase/u8-totitle-tests: Likewise.
15028         * modules/unicase/u8-toupper-tests: Likewise.
15029         * modules/unicase/u16-casecmp-tests: Likewise.
15030         * modules/unicase/u16-casecoll-tests: Likewise.
15031         * modules/unicase/u16-casefold-tests: Likewise.
15032         * modules/unicase/u16-is-cased-tests: Likewise.
15033         * modules/unicase/u16-is-casefolded-tests: Likewise.
15034         * modules/unicase/u16-is-lowercase-tests: Likewise.
15035         * modules/unicase/u16-is-titlecase-tests: Likewise.
15036         * modules/unicase/u16-is-uppercase-tests: Likewise.
15037         * modules/unicase/u16-tolower-tests: Likewise.
15038         * modules/unicase/u16-totitle-tests: Likewise.
15039         * modules/unicase/u16-toupper-tests: Likewise.
15040         * modules/unicase/u32-casecmp-tests: Likewise.
15041         * modules/unicase/u32-casecoll-tests: Likewise.
15042         * modules/unicase/u32-casefold-tests: Likewise.
15043         * modules/unicase/u32-is-cased-tests: Likewise.
15044         * modules/unicase/u32-is-casefolded-tests: Likewise.
15045         * modules/unicase/u32-is-lowercase-tests: Likewise.
15046         * modules/unicase/u32-is-titlecase-tests: Likewise.
15047         * modules/unicase/u32-is-uppercase-tests: Likewise.
15048         * modules/unicase/u32-tolower-tests: Likewise.
15049         * modules/unicase/u32-totitle-tests: Likewise.
15050         * modules/unicase/u32-toupper-tests: Likewise.
15051         * modules/unicase/ulc-casecmp-tests: Likewise.
15052         * modules/unicase/ulc-casecoll-tests: Likewise.
15053         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15054         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15055         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15056         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15057         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15058         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15059         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15060         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15061         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15062         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15063         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15064         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15065         * modules/unictype/bidicategory-byname-tests: Likewise.
15066         * modules/unictype/bidicategory-name-tests: Likewise.
15067         * modules/unictype/bidicategory-of-tests: Likewise.
15068         * modules/unictype/bidicategory-test-tests: Likewise.
15069         * modules/unictype/block-list-tests: Likewise.
15070         * modules/unictype/block-of-tests: Likewise.
15071         * modules/unictype/block-test-tests: Likewise.
15072         * modules/unictype/category-C-tests: Likewise.
15073         * modules/unictype/category-Cc-tests: Likewise.
15074         * modules/unictype/category-Cf-tests: Likewise.
15075         * modules/unictype/category-Cn-tests: Likewise.
15076         * modules/unictype/category-Co-tests: Likewise.
15077         * modules/unictype/category-Cs-tests: Likewise.
15078         * modules/unictype/category-L-tests: Likewise.
15079         * modules/unictype/category-Ll-tests: Likewise.
15080         * modules/unictype/category-Lm-tests: Likewise.
15081         * modules/unictype/category-Lo-tests: Likewise.
15082         * modules/unictype/category-Lt-tests: Likewise.
15083         * modules/unictype/category-Lu-tests: Likewise.
15084         * modules/unictype/category-M-tests: Likewise.
15085         * modules/unictype/category-Mc-tests: Likewise.
15086         * modules/unictype/category-Me-tests: Likewise.
15087         * modules/unictype/category-Mn-tests: Likewise.
15088         * modules/unictype/category-N-tests: Likewise.
15089         * modules/unictype/category-Nd-tests: Likewise.
15090         * modules/unictype/category-Nl-tests: Likewise.
15091         * modules/unictype/category-No-tests: Likewise.
15092         * modules/unictype/category-P-tests: Likewise.
15093         * modules/unictype/category-Pc-tests: Likewise.
15094         * modules/unictype/category-Pd-tests: Likewise.
15095         * modules/unictype/category-Pe-tests: Likewise.
15096         * modules/unictype/category-Pf-tests: Likewise.
15097         * modules/unictype/category-Pi-tests: Likewise.
15098         * modules/unictype/category-Po-tests: Likewise.
15099         * modules/unictype/category-Ps-tests: Likewise.
15100         * modules/unictype/category-S-tests: Likewise.
15101         * modules/unictype/category-Sc-tests: Likewise.
15102         * modules/unictype/category-Sk-tests: Likewise.
15103         * modules/unictype/category-Sm-tests: Likewise.
15104         * modules/unictype/category-So-tests: Likewise.
15105         * modules/unictype/category-Z-tests: Likewise.
15106         * modules/unictype/category-Zl-tests: Likewise.
15107         * modules/unictype/category-Zp-tests: Likewise.
15108         * modules/unictype/category-Zs-tests: Likewise.
15109         * modules/unictype/category-and-not-tests: Likewise.
15110         * modules/unictype/category-and-tests: Likewise.
15111         * modules/unictype/category-byname-tests: Likewise.
15112         * modules/unictype/category-name-tests: Likewise.
15113         * modules/unictype/category-none-tests: Likewise.
15114         * modules/unictype/category-of-tests: Likewise.
15115         * modules/unictype/category-or-tests: Likewise.
15116         * modules/unictype/category-test-withtable-tests: Likewise.
15117         * modules/unictype/combining-class-tests: Likewise.
15118         * modules/unictype/ctype-alnum-tests: Likewise.
15119         * modules/unictype/ctype-alpha-tests: Likewise.
15120         * modules/unictype/ctype-blank-tests: Likewise.
15121         * modules/unictype/ctype-cntrl-tests: Likewise.
15122         * modules/unictype/ctype-digit-tests: Likewise.
15123         * modules/unictype/ctype-graph-tests: Likewise.
15124         * modules/unictype/ctype-lower-tests: Likewise.
15125         * modules/unictype/ctype-print-tests: Likewise.
15126         * modules/unictype/ctype-punct-tests: Likewise.
15127         * modules/unictype/ctype-space-tests: Likewise.
15128         * modules/unictype/ctype-upper-tests: Likewise.
15129         * modules/unictype/ctype-xdigit-tests: Likewise.
15130         * modules/unictype/decimal-digit-tests: Likewise.
15131         * modules/unictype/digit-tests: Likewise.
15132         * modules/unictype/mirror-tests: Likewise.
15133         * modules/unictype/numeric-tests: Likewise.
15134         * modules/unictype/property-alphabetic-tests: Likewise.
15135         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15136         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15137         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15138         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15139         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15140         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15141         * modules/unictype/property-bidi-control-tests: Likewise.
15142         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15143         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15144         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15145         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15146         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15147         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15148         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15149         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15150         * modules/unictype/property-bidi-pdf-tests: Likewise.
15151         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15152         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15153         * modules/unictype/property-byname-tests: Likewise.
15154         * modules/unictype/property-combining-tests: Likewise.
15155         * modules/unictype/property-composite-tests: Likewise.
15156         * modules/unictype/property-currency-symbol-tests: Likewise.
15157         * modules/unictype/property-dash-tests: Likewise.
15158         * modules/unictype/property-decimal-digit-tests: Likewise.
15159         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15160         * modules/unictype/property-deprecated-tests: Likewise.
15161         * modules/unictype/property-diacritic-tests: Likewise.
15162         * modules/unictype/property-extender-tests: Likewise.
15163         * modules/unictype/property-format-control-tests: Likewise.
15164         * modules/unictype/property-grapheme-base-tests: Likewise.
15165         * modules/unictype/property-grapheme-extend-tests: Likewise.
15166         * modules/unictype/property-grapheme-link-tests: Likewise.
15167         * modules/unictype/property-hex-digit-tests: Likewise.
15168         * modules/unictype/property-hyphen-tests: Likewise.
15169         * modules/unictype/property-id-continue-tests: Likewise.
15170         * modules/unictype/property-id-start-tests: Likewise.
15171         * modules/unictype/property-ideographic-tests: Likewise.
15172         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15173         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15174         * modules/unictype/property-ignorable-control-tests: Likewise.
15175         * modules/unictype/property-iso-control-tests: Likewise.
15176         * modules/unictype/property-join-control-tests: Likewise.
15177         * modules/unictype/property-left-of-pair-tests: Likewise.
15178         * modules/unictype/property-line-separator-tests: Likewise.
15179         * modules/unictype/property-logical-order-exception-tests: Likewise.
15180         * modules/unictype/property-lowercase-tests: Likewise.
15181         * modules/unictype/property-math-tests: Likewise.
15182         * modules/unictype/property-non-break-tests: Likewise.
15183         * modules/unictype/property-not-a-character-tests: Likewise.
15184         * modules/unictype/property-numeric-tests: Likewise.
15185         * modules/unictype/property-other-alphabetic-tests: Likewise.
15186         * modules/unictype/property-other-default-ignorable-code-point-tests:
15187         Likewise.
15188         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15189         * modules/unictype/property-other-id-continue-tests: Likewise.
15190         * modules/unictype/property-other-id-start-tests: Likewise.
15191         * modules/unictype/property-other-lowercase-tests: Likewise.
15192         * modules/unictype/property-other-math-tests: Likewise.
15193         * modules/unictype/property-other-uppercase-tests: Likewise.
15194         * modules/unictype/property-paired-punctuation-tests: Likewise.
15195         * modules/unictype/property-paragraph-separator-tests: Likewise.
15196         * modules/unictype/property-pattern-syntax-tests: Likewise.
15197         * modules/unictype/property-pattern-white-space-tests: Likewise.
15198         * modules/unictype/property-private-use-tests: Likewise.
15199         * modules/unictype/property-punctuation-tests: Likewise.
15200         * modules/unictype/property-quotation-mark-tests: Likewise.
15201         * modules/unictype/property-radical-tests: Likewise.
15202         * modules/unictype/property-sentence-terminal-tests: Likewise.
15203         * modules/unictype/property-soft-dotted-tests: Likewise.
15204         * modules/unictype/property-space-tests: Likewise.
15205         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15206         * modules/unictype/property-test-tests: Likewise.
15207         * modules/unictype/property-titlecase-tests: Likewise.
15208         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15209         * modules/unictype/property-unified-ideograph-tests: Likewise.
15210         * modules/unictype/property-uppercase-tests: Likewise.
15211         * modules/unictype/property-variation-selector-tests: Likewise.
15212         * modules/unictype/property-white-space-tests: Likewise.
15213         * modules/unictype/property-xid-continue-tests: Likewise.
15214         * modules/unictype/property-xid-start-tests: Likewise.
15215         * modules/unictype/property-zero-width-tests: Likewise.
15216         * modules/unictype/scripts-tests: Likewise.
15217         * modules/unictype/syntax-c-ident-tests: Likewise.
15218         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15219         * modules/unictype/syntax-java-ident-tests: Likewise.
15220         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15221         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15222         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15223         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15224         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15225         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15226         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15227         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15228         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15229         * modules/uniname/uniname-tests: Likewise.
15230         * modules/uninorm/canonical-decomposition-tests: Likewise.
15231         * modules/uninorm/compat-decomposition-tests: Likewise.
15232         * modules/uninorm/composition-tests: Likewise.
15233         * modules/uninorm/decomposing-form-tests: Likewise.
15234         * modules/uninorm/decomposition-tests: Likewise.
15235         * modules/uninorm/filter-tests: Likewise.
15236         * modules/uninorm/nfc-tests: Likewise.
15237         * modules/uninorm/nfd-tests: Likewise.
15238         * modules/uninorm/nfkc-tests: Likewise.
15239         * modules/uninorm/nfkd-tests: Likewise.
15240         * modules/uninorm/u8-normcmp-tests: Likewise.
15241         * modules/uninorm/u8-normcoll-tests: Likewise.
15242         * modules/uninorm/u16-normcmp-tests: Likewise.
15243         * modules/uninorm/u16-normcoll-tests: Likewise.
15244         * modules/uninorm/u32-normcmp-tests: Likewise.
15245         * modules/uninorm/u32-normcoll-tests: Likewise.
15246         * modules/unistdio/u8-asnprintf-tests: Likewise.
15247         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15248         * modules/unistdio/u8-vasprintf-tests: Likewise.
15249         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15250         * modules/unistdio/u8-vsprintf-tests: Likewise.
15251         * modules/unistdio/u16-asnprintf-tests: Likewise.
15252         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15253         * modules/unistdio/u16-vasprintf-tests: Likewise.
15254         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15255         * modules/unistdio/u16-vsprintf-tests: Likewise.
15256         * modules/unistdio/u32-asnprintf-tests: Likewise.
15257         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15258         * modules/unistdio/u32-vasprintf-tests: Likewise.
15259         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15260         * modules/unistdio/u32-vsprintf-tests: Likewise.
15261         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15262         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15263         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15264         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15265         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15266         * modules/unistr/u8-check-tests: Likewise.
15267         * modules/unistr/u8-chr-tests: Likewise.
15268         * modules/unistr/u8-cmp-tests: Likewise.
15269         * modules/unistr/u8-cmp2-tests: Likewise.
15270         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15271         * modules/unistr/u8-cpy-tests: Likewise.
15272         * modules/unistr/u8-mblen-tests: Likewise.
15273         * modules/unistr/u8-mbsnlen-tests: Likewise.
15274         * modules/unistr/u8-mbtouc-tests: Likewise.
15275         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15276         * modules/unistr/u8-mbtoucr-tests: Likewise.
15277         * modules/unistr/u8-move-tests: Likewise.
15278         * modules/unistr/u8-next-tests: Likewise.
15279         * modules/unistr/u8-prev-tests: Likewise.
15280         * modules/unistr/u8-set-tests: Likewise.
15281         * modules/unistr/u8-stpcpy-tests: Likewise.
15282         * modules/unistr/u8-stpncpy-tests: Likewise.
15283         * modules/unistr/u8-strcat-tests: Likewise.
15284         * modules/unistr/u8-strcmp-tests: Likewise.
15285         * modules/unistr/u8-strcoll-tests: Likewise.
15286         * modules/unistr/u8-strcpy-tests: Likewise.
15287         * modules/unistr/u8-strdup-tests: Likewise.
15288         * modules/unistr/u8-strlen-tests: Likewise.
15289         * modules/unistr/u8-strmblen-tests: Likewise.
15290         * modules/unistr/u8-strmbtouc-tests: Likewise.
15291         * modules/unistr/u8-strncat-tests: Likewise.
15292         * modules/unistr/u8-strncmp-tests: Likewise.
15293         * modules/unistr/u8-strncpy-tests: Likewise.
15294         * modules/unistr/u8-strnlen-tests: Likewise.
15295         * modules/unistr/u8-to-u16-tests: Likewise.
15296         * modules/unistr/u8-to-u32-tests: Likewise.
15297         * modules/unistr/u8-uctomb-tests: Likewise.
15298         * modules/unistr/u16-check-tests: Likewise.
15299         * modules/unistr/u16-chr-tests: Likewise.
15300         * modules/unistr/u16-cmp-tests: Likewise.
15301         * modules/unistr/u16-cmp2-tests: Likewise.
15302         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15303         * modules/unistr/u16-cpy-tests: Likewise.
15304         * modules/unistr/u16-mblen-tests: Likewise.
15305         * modules/unistr/u16-mbsnlen-tests: Likewise.
15306         * modules/unistr/u16-mbtouc-tests: Likewise.
15307         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15308         * modules/unistr/u16-mbtoucr-tests: Likewise.
15309         * modules/unistr/u16-move-tests: Likewise.
15310         * modules/unistr/u16-next-tests: Likewise.
15311         * modules/unistr/u16-prev-tests: Likewise.
15312         * modules/unistr/u16-set-tests: Likewise.
15313         * modules/unistr/u16-stpcpy-tests: Likewise.
15314         * modules/unistr/u16-stpncpy-tests: Likewise.
15315         * modules/unistr/u16-strcat-tests: Likewise.
15316         * modules/unistr/u16-strcmp-tests: Likewise.
15317         * modules/unistr/u16-strcoll-tests: Likewise.
15318         * modules/unistr/u16-strcpy-tests: Likewise.
15319         * modules/unistr/u16-strdup-tests: Likewise.
15320         * modules/unistr/u16-strlen-tests: Likewise.
15321         * modules/unistr/u16-strmblen-tests: Likewise.
15322         * modules/unistr/u16-strmbtouc-tests: Likewise.
15323         * modules/unistr/u16-strncat-tests: Likewise.
15324         * modules/unistr/u16-strncmp-tests: Likewise.
15325         * modules/unistr/u16-strncpy-tests: Likewise.
15326         * modules/unistr/u16-strnlen-tests: Likewise.
15327         * modules/unistr/u16-to-u32-tests: Likewise.
15328         * modules/unistr/u16-to-u8-tests: Likewise.
15329         * modules/unistr/u16-uctomb-tests: Likewise.
15330         * modules/unistr/u32-check-tests: Likewise.
15331         * modules/unistr/u32-chr-tests: Likewise.
15332         * modules/unistr/u32-cmp-tests: Likewise.
15333         * modules/unistr/u32-cmp2-tests: Likewise.
15334         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15335         * modules/unistr/u32-cpy-tests: Likewise.
15336         * modules/unistr/u32-mblen-tests: Likewise.
15337         * modules/unistr/u32-mbsnlen-tests: Likewise.
15338         * modules/unistr/u32-mbtouc-tests: Likewise.
15339         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15340         * modules/unistr/u32-mbtoucr-tests: Likewise.
15341         * modules/unistr/u32-move-tests: Likewise.
15342         * modules/unistr/u32-next-tests: Likewise.
15343         * modules/unistr/u32-prev-tests: Likewise.
15344         * modules/unistr/u32-set-tests: Likewise.
15345         * modules/unistr/u32-stpcpy-tests: Likewise.
15346         * modules/unistr/u32-stpncpy-tests: Likewise.
15347         * modules/unistr/u32-strcat-tests: Likewise.
15348         * modules/unistr/u32-strcmp-tests: Likewise.
15349         * modules/unistr/u32-strcoll-tests: Likewise.
15350         * modules/unistr/u32-strcpy-tests: Likewise.
15351         * modules/unistr/u32-strdup-tests: Likewise.
15352         * modules/unistr/u32-strlen-tests: Likewise.
15353         * modules/unistr/u32-strmblen-tests: Likewise.
15354         * modules/unistr/u32-strmbtouc-tests: Likewise.
15355         * modules/unistr/u32-strncat-tests: Likewise.
15356         * modules/unistr/u32-strncmp-tests: Likewise.
15357         * modules/unistr/u32-strncpy-tests: Likewise.
15358         * modules/unistr/u32-strnlen-tests: Likewise.
15359         * modules/unistr/u32-to-u16-tests: Likewise.
15360         * modules/unistr/u32-to-u8-tests: Likewise.
15361         * modules/unistr/u32-uctomb-tests: Likewise.
15362         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15363         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15364         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15365         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15366         * modules/uniwidth/u8-strwidth-tests: Likewise.
15367         * modules/uniwidth/u8-width-tests: Likewise.
15368         * modules/uniwidth/u16-strwidth-tests: Likewise.
15369         * modules/uniwidth/u16-width-tests: Likewise.
15370         * modules/uniwidth/u32-strwidth-tests: Likewise.
15371         * modules/uniwidth/u32-width-tests: Likewise.
15372         * modules/uniwidth/width-tests: Likewise.
15373
15374 2010-05-18  Richard Jones  <rjones@redhat.com>
15375
15376         doc: users.txt: list hivex
15377         * users.txt: Add hivex.
15378
15379 2010-05-18  Richard Jones  <rjones@redhat.com>
15380
15381         doc: users.txt: list febootstrap
15382         * users.txt: Add febootstrap.
15383
15384 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15385
15386         bootstrap: fix an error when gnulib is not used as a git submodule
15387         * build-aux/bootstrap (gnulib_path): If its length is zero then
15388         assign "gnulib" to it.
15389         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15390
15391 2010-05-16  Bruno Haible  <bruno@clisp.org>
15392
15393         Avoid autoconf warnings about AM_ICONV.
15394         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15395         2.64.
15396
15397 2010-05-16  Bruno Haible  <bruno@clisp.org>
15398
15399         absolute-header: Make the macro usable in more situations.
15400         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15401         from gl_ABSOLUTE_HEADER.
15402         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15403
15404 2010-05-16  James Youngman  <jay@gnu.org>
15405
15406         doc: update users.txt
15407         * users.txt: Add CSSC.
15408
15409 2010-05-16  Jim Meyering  <meyering@redhat.com>
15410
15411         init.sh: fix an error in the previous change; add more comments
15412         * tests/init.sh: Compare exit code in loop against 9, not 2.
15413         Patch by Bruno Haible.
15414         Make the two tests more similar by adding an empty "then" clause.
15415         Add comments.
15416
15417         init.sh: avoid unnecessary shell re-exec
15418         * tests/init.sh: Improve the re-exec-required check to first test the
15419         current shell.  If it passes the test, do not search for a shell that
15420         does pass, and do not re-exec.  This test is particularly contorted to
15421         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15422         of $(...) evokes a syntax error and causes immediate shell exit with
15423         status 2.  Bruno Haible reported that the re-exec made it impossible
15424         to single-step through any init.sh-using script.
15425
15426 2010-05-16  Bruno Haible  <bruno@clisp.org>
15427
15428         Fix collision between gnulib's and libintl's printf replacements.
15429         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15430         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15431         (printf): When using GNU C, map the __printf__ function to rpl_printf
15432         via __asm__. When not using GNU C, define rpl_printf instead of
15433         __printf__.
15434         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15435         commit.
15436         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15437         commit.
15438         * m4/asm-underscore.m4: New file.
15439         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15440         * modules/stdio (Files): Add m4/asm-underscore.m4.
15441         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15442         Reported by Ben Pfaff.
15443
15444 2010-05-16  Bruno Haible  <bruno@clisp.org>
15445
15446         verify: Avoid skipping the test on openSUSE 11.0.
15447         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15448
15449 2010-05-13  Bruno Haible  <bruno@clisp.org>
15450
15451         Avoid useless warnings from G++.
15452         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15453         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15454         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15455
15456 2010-05-11  Jim Meyering  <meyering@redhat.com>
15457
15458         maint.mk: tweak preceding change
15459         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15460         regexps tighter by anchoring at EOL, and make the new group "shy"
15461         for slightly decreased overhead.
15462
15463 2010-05-11  Eric Blake  <eblake@redhat.com>
15464
15465         maint.mk: gnulib doesn't guarantee NSIG
15466         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15467
15468 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15469
15470         test-pwrite.c: Remove unused variable declaration.
15471         * tests/test-pwrite.c (main): Remove read_buf declaration.
15472
15473         Remove useless test-pwrite.sh file.
15474         * tests/test-pwrite.sh: Delete file.
15475         * modules/pwrite-tests: Remove references.
15476         Reported by Bruno Haible.
15477
15478 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15479
15480         init.sh: fix a typo
15481         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15482
15483 2010-05-10  Jim Meyering  <meyering@redhat.com>
15484
15485         maint.mk: avoid using a temporary file in the always-defined-macros check
15486         * top/maint.mk (.re-defmac): Remove rule.
15487         (gl_trap_): Remove definition.
15488         (sc_prohibit_always-defined_macros): Rewrite not to create and
15489         depend on a temporary file.  Instead, depend on GNU grep's ability
15490         to read a list of regular expressions from stdin when given "-f -".
15491
15492 2010-05-09  Bruno Haible  <bruno@clisp.org>
15493
15494         Update to GNU gettext 0.18, part 1.
15495         * m4/gettext.m4: Update to GNU gettext 0.18.
15496         * m4/intl.m4: Likewise.
15497         * m4/po.m4: Likewise.
15498         * modules/gettext (Files): Add m4/fcntl-o.m4.
15499         (configure.ac): Require gettext infrastructure from version 0.18.
15500
15501 2010-05-09  Jim Meyering  <meyering@redhat.com>
15502
15503         init.sh: enable MALLOC_PERTURB_
15504         * tests/init.sh: Enable glibc's malloc-perturbing option.
15505
15506         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15507         With my recent change in init.sh from the two-line form:
15508             -#   : ${srcdir=.}
15509             -#   . "$srcdir/init.sh"; path_prepend_ .
15510             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15511         I noticed that using the one-line form would cause this test
15512         to fail with a false-positive, or to stop working altogether,
15513         depending on whether help-version changed or all the tests did.
15514         * top/maint.mk (_hv_regex): Remove this definition.
15515         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15516         (_hv_regex_strong): Use a stronger regex to check for conformance.
15517         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15518         Give a separate diagnostic for lack of conforming use.
15519
15520         maint.mk: prohibit definition of symbols defined by gnulib
15521         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15522         definition of symbols defined by gnulib.
15523
15524 2010-05-09  Bruno Haible  <bruno@clisp.org>
15525
15526         acl: Avoid test failure on Cygwin-hosted mingw.
15527         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15528
15529 2010-05-09  Bruno Haible  <bruno@clisp.org>
15530
15531         error: Use system's fcntl function.
15532         * lib/error.c (fcntl): Undefine.
15533
15534 2010-05-09  Jim Meyering  <meyering@redhat.com>
15535
15536         verify: adjust formatting to be more consistent
15537         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15538         argument-list '('s, and after one comma.
15539
15540 2010-05-09  Bruno Haible  <bruno@clisp.org>
15541
15542         error: More reliable output on mingw.
15543         * lib/error.c: Include <windows.h>.
15544         (is_open): New function.
15545         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15546         defined.
15547
15548 2010-05-09  Bruno Haible  <bruno@clisp.org>
15549
15550         vasnprintf: Fix syntax errors in libintl build on mingw.
15551         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15552         pad_ourselves and prec_ourselves after use.
15553
15554 2010-05-08  Bruno Haible  <bruno@clisp.org>
15555
15556         * lib/config.charset: Update comments for Cygwin 1.7.
15557         * lib/localcharset.c: Likewise.
15558
15559 2010-05-07  Jim Meyering  <meyering@redhat.com>
15560
15561         init.sh: improve comments
15562         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15563         . "${srcdir=.}/init.sh"; path_prepend_ .
15564         Add a note about path_prepend_ and the alternative of using
15565         TESTS_ENVIRONMENT.
15566
15567 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15568
15569         exclude: Unescape hashed patterns in wildcard mode.
15570         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15571         to the hash list.
15572         * tests/test-exclude8.sh: New test case.
15573         * modules/exclude-tests: Add new test.
15574
15575 2010-05-05  Eric Blake  <eblake@redhat.com>
15576
15577         verify: automate tests
15578         * modules/verify-tests: New module.
15579         * tests/test-verify.sh: New file.
15580         * tests/test-verify.c: Guard each negative test with a unique id.
15581         Also avoid warning about unused left hand of comma expressions.
15582
15583 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15584
15585         Further improvements to verify.h, suggested by Eric Blake.
15586         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15587         the GL_* versions, to avoid collision with OpenGL.
15588         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15589         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15590         than testing merely whether it's defined.
15591
15592         Modify verify.h to pacify gcc -Wredundant_decls.
15593         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15594         These use the prefix "GL_" since they're likely to be useful elsewhere.
15595         We may need to break them out into a different .h file.
15596         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15597         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15598         of verify_function__.
15599
15600 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15601
15602         Tests for module pwrite.
15603         * modules/pwrite-tests: New file.
15604         * tests/test-pwrite.sh: New file.
15605         * tests/test-pwrite.c: New file.
15606
15607         New module pwrite.
15608         * lib/unistd.in.h (pwrite): New declaration.
15609         * lib/pwrite.c: New file, from glibc with modifications.
15610         * m4/pwrite.m4: New file.
15611         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15612         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15613         REPLACE_PWRITE.
15614         * modules/pwrite: New file.
15615         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15616         REPLACE_PWRITE.
15617         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15618         * doc/posix-functions/pwrite.texi: Mention the new module.
15619
15620 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15621
15622         pread: Update documentation.
15623         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15624
15625 2010-05-04  Eric Blake  <eblake@redhat.com>
15626
15627         docs: update cygwin progress
15628         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15629         this bug.
15630         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15631         Added in cygwin 1.7.2.
15632         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15633         Likewise.
15634         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15635         Likewise.
15636         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15637         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15638         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15639         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15640         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15641         Mention nproc module.
15642         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15643         bug in cygwin 1.7.5 addition.
15644         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15645         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15646         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15647         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15648         1.7.5.
15649         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15650         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15651         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15652         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15653         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15654         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15655         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15656         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15657         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15658         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15659         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15660         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15661         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15662         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15663         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15664         Likewise.
15665         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15666         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15667         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15668         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15669         Likewise.
15670         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15671         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15672         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15673         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15674         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15675         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15676         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15677         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15678         Likewise.
15679         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15680         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15681         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15682         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15683         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15684         Likewise.
15685         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15686         Likewise.
15687         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15688         Likewise.
15689         * doc/glibc-functions/xdrrec_endofrecord.texi
15690         (xdrrec_endofrecord): Likewise.
15691         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15692         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15693         Likewise.
15694         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15695         Likewise.
15696
15697 2010-05-04  Jim Meyering  <meyering@redhat.com>
15698
15699         gendocs.sh: make its "-s FILE" option more useful
15700         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15701         $PACKAGE to reflect the probably-different basename of "FILE".
15702
15703 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15704
15705         bootstrap: don't ignore download_po_files failure
15706         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15707         failure.
15708
15709 2010-05-03  Jim Meyering  <meyering@redhat.com>
15710
15711         maint.mk: allow to pass options to gendocs.sh
15712         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15713         (gendocs_options_): New overridable variable.
15714
15715         gnu-web-doc-update: don't ignore configure or build failure
15716         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15717
15718         announce-gen: backslash-escape '@'s in --help output
15719         * build-aux/announce-gen: Fix syntax errors.
15720
15721         maint.mk, announce-gen: allow project-specific announcement mail headers
15722         * top/maint.mk (translation_project_): Define default.
15723         (announcement_Cc_, announcement_mail_headers_): Likewise.
15724         (announcement): Invoke announce-gen with new --mail-headers option.
15725         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15726
15727         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15728         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15729         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15730         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15731         line in the "err2" output file when running "make check" in verbose
15732         mode (i.e., with set -x enabled).
15733
15734 2010-05-03  Bruno Haible  <bruno@clisp.org>
15735
15736         wctob: Fix for weird platforms.
15737         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15738         argument value.
15739
15740 2010-05-03  Jim Meyering  <meyering@redhat.com>
15741
15742         maint.mk: prohibit unwarranted use of <strings.h>
15743         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15744         strings.h in a file that does not also use strcasecmp, strncasecmp,
15745         ffs or ffsll.
15746
15747         maint.mk: remove obsolete comments
15748         * top/maint.mk: Remove stale, commented-out rules.
15749
15750 2010-05-02  Bruno Haible  <bruno@clisp.org>
15751
15752         wcwidth: Declare also when it's aliased.
15753         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15754         macro.
15755
15756 2010-05-02  Bruno Haible  <bruno@clisp.org>
15757
15758         Fix regression from 2010-04-25.
15759         * gnulib-tool (func_modules_transitive_closure): Check the status of
15760         all modules, not only of the tests that are of the form foo-tests where
15761         foo is a module.
15762
15763 2010-05-02  Bruno Haible  <bruno@clisp.org>
15764
15765         wctob: Work around nasty Cygwin 1.7.2 bug.
15766         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15767         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15768
15769 2010-05-01  Bruno Haible  <bruno@clisp.org>
15770
15771         fpurge: Sharper test.
15772         * tests/test-fpurge.c (main): Add one more ftell check.
15773         * modules/fpurge-tests (Depends-on): Add ftell.
15774         Suggested by Eric Blake.
15775
15776 2010-05-01  Bruno Haible  <bruno@clisp.org>
15777
15778         ftello: Another test.
15779         * tests/test-ftello3.c: New file.
15780         * modules/ftello-tests (Files): Add it.
15781         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15782         MOSTLYCLEANFILES.
15783
15784         ftell: Another test.
15785         * tests/test-ftell3.c: New file.
15786         * modules/ftell-tests (Files): Add it.
15787         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15788         MOSTLYCLEANFILES.
15789
15790 2010-05-01  Bruno Haible  <bruno@clisp.org>
15791
15792         ftell, ftello: Work around Solaris bug.
15793         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15794         * lib/ftello.c: Include stdio-impl.h.
15795         (ftello): On Solaris, when _IOWRT is set, compute the result without
15796         looking at _IOREAD.
15797         * modules/ftello (Files): Add lib/stdio-impl.h.
15798         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15799         * doc/posix-functions/ftello.texi: Likewise.
15800         Reported by Eric Blake.
15801
15802 2010-05-01  Bruno Haible  <bruno@clisp.org>
15803
15804         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15805         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15806         the _IOWRT flag is also set.
15807
15808 2010-05-01  Bruno Haible  <bruno@clisp.org>
15809
15810         Fix doc about a HP-UX stdio bug.
15811         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15812         * doc/posix-functions/ftello.texi: Likewise.
15813
15814 2010-05-01  Bruno Haible  <bruno@clisp.org>
15815
15816         lseek test: Fix failure on Solaris.
15817         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15818         output.
15819
15820 2010-04-30  Jim Meyering  <meyering@redhat.com>
15821
15822         bootstrap: don't ignore failure to generate po*/Makevars
15823         * build-aux/bootstrap (with_gettext): Don't ignore failure
15824         to create po/Makevars or runtime-po/Makevars.
15825
15826 2010-04-29  Eric Blake  <eblake@redhat.com>
15827
15828         headers: relax license to LGPLv2+
15829         * modules/fcntl-h (License): Relax license.
15830         * modules/getopt-posix (License): Likewise.
15831         * modules/locale (License): Likewise.
15832         * modules/math (License): Likewise.
15833         * modules/pty (License): Likewise.
15834         * modules/sched (License): Likewise.
15835         * modules/search (License): Likewise.
15836         * modules/spawn (License): Likewise.
15837         * modules/stdarg (License): Likewise.
15838         * modules/sysexits (License): Likewise.
15839
15840 2010-04-29  Jim Meyering  <meyering@redhat.com>
15841
15842         inttypes: relax license to LGPLv2+
15843         * modules/inttypes (License): Relax license.
15844
15845 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15846
15847         * top/maint.mk (indent): Run twice to produce idempotent results.
15848
15849 2010-04-28  Bruno Haible  <bruno@clisp.org>
15850
15851         getdate: Generate getdate.c in the source directory.
15852         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15853         MOSTLYCLEANFILES.
15854         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15855
15856 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15857
15858         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15859         is not declared as a const *; avoid warnings in that case.
15860
15861 2010-04-28  Eric Blake  <eblake@redhat.com>
15862
15863         canonicalize-lgpl: avoid compiler warning
15864         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15865         declaration' / 'extraneous semicolon' warning with some compilers.
15866         Reported by Andreas Gruenbacher.
15867
15868 2010-04-28  Jim Meyering  <meyering@redhat.com>
15869
15870         init.sh: ensure a more reliable exit status when exiting via trap
15871         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15872         Inspired by patches from Dmitry V. Levin.
15873         Also trap on signal 3 (SIGQUIT).
15874
15875 2010-04-27  Bruno Haible  <bruno@clisp.org>
15876
15877         Update doc about utimes().
15878         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15879         'utimens' module.
15880         Reported by Andreas Gruenbacher <agruen@suse.de>.
15881
15882 2010-04-27  Eric Blake  <eblake@redhat.com>
15883
15884         full-read, full-write: relax license
15885         * modules/full-read (License): Drop to LGPLv2+.
15886         * modules/full-write (License): Likewise.
15887         * modules/safe-read (License): Likewise.
15888         * modules/safe-write (License): Likewise.
15889
15890         pthread: mention library for linking
15891         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15892
15893 2010-04-27  Jim Meyering  <meyering@redhat.com>
15894
15895         maint.mk: fix a bug introduced in last change
15896         * top/maint.mk (gl_assured_headers_): Now that all names are on
15897         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15898         is not anchored to end of word, it should be adequate.
15899
15900         maint.mk: avoid side-effect in latest syntax-check
15901         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15902         to run commands via $(shell...), and hence to incur cost only when
15903         the new rule is actually run.
15904
15905         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15906         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15907         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15908         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15909         (gl_assured_headers_, az_, AZ_): Define.
15910         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15911
15912 2010-04-26  Jim Meyering  <jim@meyering.net>
15913             Bruno Haible  <bruno@clisp.org>
15914
15915         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15917         Prompted by an exchange with Gilles Espinasse.
15918
15919 2010-04-26  Jim Meyering  <meyering@redhat.com>
15920
15921         git-version-gen: aesthetic tweak
15922         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15923         so that the command remains on a single line.
15924
15925 2010-04-26  Eric Blake  <eblake@redhat.com>
15926
15927         git-version-gen: allow use on EBCDIC hosts
15928         * build-aux/git-version-gen (dirty): Use literal rather than tying
15929         ourselves to ascii.
15930         Reported by Steve Goetze.
15931
15932 2010-04-25  Bruno Haible  <bruno@clisp.org>
15933
15934         netdb: Add support for GNULIB_POSIXCHECK.
15935         * lib/netdb.in.h: Include warn-on-use.h.
15936         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15937         functions are used when GNULIB_POSIXCHECK is defined and the
15938         getaddrinfo module is not in use.
15939         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15940         freeaddrinfo, gai_strerror, getnameinfo are declared.
15941         * modules/netdb (Depends-on): Add warn-on-use.
15942         (Makefile.am): Include warn-on-use.h in netdb.h.
15943
15944 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15945
15946         build: avoid "make check" failure without .git/ directory
15947         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15948         there is no .git/ directory.
15949
15950 2010-04-25  Bruno Haible  <bruno@clisp.org>
15951
15952         ptsname: Fix misuse of ttyname_r.
15953         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15954         of errno.
15955
15956 2010-04-25  Bruno Haible  <bruno@clisp.org>
15957
15958         ttyname_r: Make it work on Solaris 10.
15959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15960         if the system function has the POSIX declaration. Test whether the
15961         function fails if the buffer is less than 128 bytes large.
15962         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15963         system's ttyname_r function. Provide a reasonably large buffer.
15964         * modules/ttyname_r (Depends-on): Add extensions.
15965         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15966
15967 2010-04-25  Bruno Haible  <bruno@clisp.org>
15968
15969         Use the 'extensions' module for some more functions on Solaris.
15970         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15971         module.
15972         * doc/posix-functions/ctime_r.texi: Likewise.
15973         * doc/posix-functions/getgrgid_r.texi: Likewise.
15974         * doc/posix-functions/getgrnam_r.texi: Likewise.
15975         * doc/posix-functions/getpwnam_r.texi: Likewise.
15976         * doc/posix-functions/getpwuid_r.texi: Likewise.
15977         * doc/posix-functions/readdir_r.texi: Likewise.
15978         * doc/posix-functions/sigwait.texi: Likewise.
15979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15980         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15981
15982 2010-04-25  Bruno Haible  <bruno@clisp.org>
15983
15984         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15986         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15987         * lib/ttyname_r.c: Include <limits.h>.
15988         (ttyname_r): Define using the system's ttyname_r function, if it exists
15989         and not on Solaris.
15990         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15991         set.
15992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15993         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15994         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15995         Reported by Simon Josefsson.
15996
15997 2010-04-25  Bruno Haible  <bruno@clisp.org>
15998
15999         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16000         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16001         * doc/posix-functions/ctime_r.texi: Likewise.
16002         * doc/posix-functions/getgrgid_r.texi: Likewise.
16003         * doc/posix-functions/getgrnam_r.texi: Likewise.
16004         * doc/posix-functions/getlogin_r.texi: Likewise.
16005         * doc/posix-functions/getpwnam_r.texi: Likewise.
16006         * doc/posix-functions/getpwuid_r.texi: Likewise.
16007         * doc/posix-functions/readdir_r.texi: Likewise.
16008         * doc/posix-functions/sigwait.texi: Likewise.
16009         * doc/posix-functions/ttyname_r.texi: Likewise.
16010         Reported by Simon Josefsson.
16011
16012 2010-04-25  Bruno Haible  <bruno@clisp.org>
16013
16014         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16015         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16016         also to --create-testdir.
16017         (func_acceptable): Don't consider the status of *-tests modules here.
16018         (func_modules_transitive_closure): Consider it here, before including a
16019         test module.
16020         (func_import, func_create_testdir): Set inc_all_direct_tests,
16021         inc_all_indirect_tests.
16022         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16023         --create-testdir and --create-megatestdir.
16024
16025 2010-04-25  Bruno Haible  <bruno@clisp.org>
16026
16027         gnulib-tool: Add --without-*-tests options.
16028         * gnulib-tool (func_usage): Document the --without-*-tests options.
16029         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16030         excl_unportable_tests): New variables.
16031         Fail if they are specified with --import or --update.
16032         (func_acceptable): Respect the excl_*_tests variables.
16033         (func_import): Set the excl_*_tests variables to empty.
16034
16035 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16036             Bruno Haible  <bruno@clisp.org>
16037
16038         Work around a MacOS X 10.4 bug with openpty.
16039         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16040         * tests/test-openpty.c (main): Close the master side explicitly.
16041
16042 2010-04-25  Bruno Haible  <bruno@clisp.org>
16043
16044         strnlen: Fix a C++ test error on MacOS X and Solaris.
16045         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16046         the function is not declared.
16047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16048         Simon Josefsson.
16049
16050 2010-04-24  Bruno Haible  <bruno@clisp.org>
16051
16052         Avoid a gcc warning.
16053         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16054         of correct type for %08lx directive.
16055         Reported by Eric Blake.
16056
16057 2010-04-24  Bruno Haible  <bruno@clisp.org>
16058
16059         vasnprintf: Correct errno value in case of out-of-memory.
16060         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16061         or sprintf. Use the errno value from SNPRINTF or sprintf.
16062         Reported by Ian Beckwith <ianb@erislabs.net>.
16063
16064 2010-04-24  Bruno Haible  <bruno@clisp.org>
16065
16066         ansi-c++-opt: Find correct compiler when cross-compiling.
16067         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16068         AC_CHECK_PROGS.
16069         Reported by Simon Josefsson.
16070
16071 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16072
16073         vc-list-files: Add support for subversion
16074         * build-aux/vc-list-files: Use "svn list" to generate the list of
16075         files controlled by subversion.
16076
16077 2010-04-23  Jim Meyering  <meyering@redhat.com>
16078
16079         vc-list-files tests: convert to use init.sh
16080         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16081         path_prepend_.
16082         Use Exit, not exit.
16083         Use skip_ rather than open coding it.
16084         Remove trap set-up and compare definitions.
16085         * tests/test-vc-list-files-git.sh: Likewise.
16086         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16087
16088 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16089
16090         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16091         backup files.
16092
16093 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16094
16095         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16096
16097 2010-04-20  Eric Blake  <eblake@redhat.com>
16098
16099         tests: be robust to ignored SIGPIPE
16100         * tests/test-select-in.sh: Consume all output.
16101         * tests/test-lseek.sh: Check correct exit status, while avoiding
16102         EPIPE.
16103
16104 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16105             Bruno Haible  <bruno@clisp.org>
16106
16107         visibility: Don't use -fvisibility if it leads to a warning.
16108         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16109         yes, don't pretend that visibility works if it leads to a warning.
16110         Reported by Mike Gran <spk121@yahoo.com>.
16111
16112 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16113
16114         * build-aux/bootstrap: Use "git -h" for testing for supported options
16115         instead of "git --help".  The short-form option only shows a summary,
16116         and doesn't layout the full man page.  Grep for the full option name
16117         in the summary, too.
16118
16119 2010-04-19  Bruno Haible  <bruno@clisp.org>
16120
16121         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16123         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16124         mention of RELOCATABLE_STRIP.
16125         Reported by Sylvain Beucler <beuc@beuc.net>.
16126
16127 2010-04-19  Bruno Haible  <bruno@clisp.org>
16128
16129         * lib/diffseq.h: Fix typo in comment.
16130         Reported by Eric Blake.
16131
16132 2010-04-19  Bruno Haible  <bruno@clisp.org>
16133
16134         ioctl: Move autoconf macro to a .m4 file.
16135         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16136         * modules/ioctl (Files): Add it.
16137         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16138         Reported by Ian Beckwith <ianb@erislabs.net>.
16139
16140 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16141             Bruno Haible  <bruno@clisp.org>
16142
16143         diffseq: Accommodate use-case with abstract arrays.
16144         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16145         is not defined.
16146         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16147         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16148
16149 2010-04-18  Bruno Haible  <bruno@clisp.org>
16150
16151         * doc/posix-headers/stdbool.texi: More precise wording.
16152
16153 2010-04-17  Jim Meyering  <meyering@redhat.com>
16154
16155         maint.mk: use gnu-style indentation in an embedded perl script
16156         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16157         Rename variable: s/two/last_two_bytes/
16158
16159 2010-04-16  Eric Blake  <eblake@redhat.com>
16160
16161         test-stdbool: skip test that fails with Solaris CC
16162         * tests/test-stdbool.c (f): Skip test that causes compilation
16163         error under buggy C++ compiler.
16164         * lib/stdbool.in.h: Document the limitation.
16165         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16166
16167         setenv: allow compilation with C++
16168         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16169         register keyword.
16170
16171         stdint: allow test to pass with C++
16172         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16173
16174         getopt: allow compilation with C++
16175         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16176         struct.
16177         * lib/getopt.c (_getopt_internal_r): Use correct type.
16178         Reported by Dagobert Michelson, via Joel E. Denny.
16179
16180 2010-04-16  Bruno Haible  <bruno@clisp.org>
16181
16182         Override netdb.h always.
16183         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16184         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16185         Reported by Ludovic Courtès <ludo@gnu.org>.
16186
16187 2010-04-15  Bruno Haible  <bruno@clisp.org>
16188
16189         openpty: Fix mistake from 2010-03-21.
16190         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16191         Reported by Simon Josefsson.
16192
16193 2010-04-15  Eric Blake  <eblake@redhat.com>
16194
16195         test-forkpty: fix expected signature
16196         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16197         Reported by Simon Josefsson.
16198
16199 2010-04-15  Jim Meyering  <meyering@redhat.com>
16200
16201         maint.mk: texinfo_suffix_re_: correct the default regexp
16202         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16203
16204         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16205         make it configurable via texinfo_suffix_re_.
16206
16207 2010-04-14  Eric Blake  <eblake@redhat.com>
16208
16209         strtok_r: relax license to LGPLv2+
16210         * modules/strtok_r (License): Relax license.
16211         Reported by Matthias Bolte.
16212
16213 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16214
16215         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16216         version 1.4.4 by default instead of requiring the libgcrypt
16217         version used during build.  This makes it possible to use the
16218         application with older but still binary compatible libgcrypt
16219         versions.
16220
16221 2010-04-13  Eric Blake  <eblake@redhat.com>
16222
16223         getopt-gnu: match recent glibc fixes and posix ruling
16224         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16225         '+' handling, when requesting extensions.
16226         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16227         'W;' handling.
16228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16229         * doc/posix-functions/getopt.texi (getopt): Document this.
16230         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16231         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16232         Likewise.
16233
16234         getopt: merge bug fixes from glibc
16235         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16236         diagnostics.  Honor '+:' correctly.  Reject ';'.
16237
16238         getopt-posix: detect MacOS bug
16239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16240         optind when missing a required argument.
16241         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16242         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16243         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16244         Likewise.
16245
16246         getopt-posix: avoid spurious failure on Solaris
16247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16248         an indicator that setting optind=1 is sufficient for reset.
16249
16250         getopt-posix: avoid spurious failure on FreeBSD
16251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16252         in POSIX mode, since the m4 test uses it.
16253
16254         gnulib-tool: silence warning on BSD sh
16255         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16256
16257 2010-04-13  Jim Meyering  <meyering@redhat.com>
16258
16259         doc: users.txt: GNU patch now uses gnulib
16260         * users.txt: Add patch.
16261
16262 2010-04-12  Jim Meyering  <meyering@redhat.com>
16263
16264         maint.mk: generate more concise timing data for syntax-check rules
16265         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16266         " done" from each line that reports a syntax-check test duration.
16267
16268 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16269
16270         git-version-gen: use "git update-index..." rather than "git status"
16271         * build-aux/git-version-gen: Use git update-index --refresh, not
16272         "git status".  With some versions of git, "git status" would fail
16273         to update the index and result in an unwarranted "-dirty" suffix.
16274
16275 2010-04-11  Jim Meyering  <meyering@redhat.com>
16276
16277         openat: correct formatting (no semantic change)
16278         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16279         Suggested by Bruno Haible.
16280
16281 2010-04-11  Bruno Haible  <bruno@clisp.org>
16282
16283         Stricter declaration checking in testdirs.
16284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16285         If for_tests is true, augment AM_CPPFLAGS to define
16286         GNULIB_STRICT_CHECKING.
16287         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16288         GNULIB_STRICT_CHECKING is defined, verify that the function is
16289         declared.
16290
16291 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16292             Bruno Haible  <bruno@clisp.org>
16293
16294         libunistring: Improve configure output.
16295         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16296         Don't say "consider installing GNU libunistring" when checking again
16297         with libiconv.
16298
16299 2010-04-11  Bruno Haible  <bruno@clisp.org>
16300
16301         libunistring: Correct value of $LTLIBUNISTRING.
16302         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16303         correct the value of $LTLIBUNISTRING.
16304
16305 2010-04-11  Bruno Haible  <bruno@clisp.org>
16306
16307         havelib: Add static libraries to LIBS in the right order.
16308         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16309         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16310
16311 2010-04-11  Bruno Haible  <bruno@clisp.org>
16312
16313         libunistring: Detect libunistring also when it depends on libiconv.
16314         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16315         the second AC_LIB_HAVE_LINKFLAGS invocation.
16316
16317 2010-04-11  James Youngman  <jay@gnu.org>
16318
16319         close-stream: declare local scalars to be "const"
16320         * lib/close-stream.c (close_stream): Make boolean variables const
16321         to document the fact that we set but do not change them.
16322
16323 2010-04-11  Bruno Haible  <bruno@clisp.org>
16324
16325         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16326
16327 2010-04-11  Jim Meyering  <meyering@redhat.com>
16328
16329         maint.mk: don't include dist-check.mk
16330         * top/maint.mk: Remove bogus include directive.
16331
16332         maint.mk: improve empty-line-at-EOF check
16333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16334         solution, rather than tail+Perl-based one.  The latter would read
16335         a few kilobytes from the end of each file, and did not handle empty
16336         files properly.
16337
16338         maint.mk: print the elapsed time for each syntax-check rule
16339         * top/maint.mk (sc_m_rules_): Save start time in a file.
16340         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16341         (local-check): Interpose the .z rules
16342
16343 2010-04-11  Jim Meyering  <meyering@redhat.com>
16344
16345         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16346         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16347         empty file with one that ends in an empty line.
16348
16349 2010-04-10  Bruno Haible  <bruno@clisp.org>
16350
16351         mkdir: Make it work on mingw64.
16352         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16353         * lib/mkdir.c: Update comment.
16354         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16355
16356 2010-04-10  Bruno Haible  <bruno@clisp.org>
16357
16358         Don't override improved macro from newer autoconf.
16359         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16360         autoconf >= 2.62.
16361         Reported by Joel E. Denny <jdenny@clemson.edu>.
16362
16363 2010-04-10  Jim Meyering  <meyering@redhat.com>
16364
16365         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16366         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16367
16368         maint.mk: correct a diagnostic
16369         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16370         in diagnostic; now use $prohibit.
16371
16372 2010-04-10  Bruno Haible  <address@hidden>
16373
16374         fchownat: Fix a C++ test error on Solaris 8.
16375         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16376         the function does not exist.
16377
16378 2010-04-10  Bruno Haible  <bruno@clisp.org>
16379
16380         vasnprintf: Add more tests.
16381         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16382         (test_function): Test converting an invalid wide string.
16383
16384         vasnprintf: Correct handling of unconvertible wide string arguments.
16385         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16386         VASNPRINTF.
16387         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16388         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16389         smaller than the expected maximum need for the directive. Set errno to
16390         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16391         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16393         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16394         * modules/vasnprintf (Files): Add m4/printf.m4.
16395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16396
16397 2010-04-10  Bruno Haible  <bruno@clisp.org>
16398
16399         vasnprintf: Fix crash in %ls directive.
16400         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16401         string is passed as argument to %ls, with no precision and no width.
16402         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16403
16404 2010-04-10  Bruno Haible  <bruno@clisp.org>
16405
16406         vasnprintf: Fix multiple test failures on mingw.
16407         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16408         _snprintf, or snwprintf, not _snwprintf.
16409
16410 2010-04-10  Bruno Haible  <bruno@clisp.org>
16411
16412         write: Fix a C++ test error on mingw.
16413         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16414
16415 2010-04-10  Bruno Haible  <bruno@clisp.org>
16416
16417         vasnprintf test: Reduce code duplication.
16418         * tests/test-vasnprintf.c (test_function): New function, extracted from
16419         test_vasnprintf.
16420         (test_vasnprintf, test_asnprintf): Invoke it.
16421
16422 2010-04-10  Bruno Haible  <bruno@clisp.org>
16423
16424         strnlen: Fix warning in C++ mode on MacOS X.
16425         * lib/string.in.h (strnlen): Use the modern idiom.
16426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16427         defining strnlen as a macro already in <config.h>.
16428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16429         REPLACE_STRNLEN.
16430         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16432
16433 2010-04-08  James Youngman  <jay@gnu.org>
16434
16435         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16436         the example.
16437
16438 2010-04-09  Jim Meyering  <meyering@redhat.com>
16439
16440         maint.mk: print better diagnostic when there is no $(_hv_file)
16441         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16442         announce that when $(_hv_file) (aka help-version) does not exist.
16443
16444         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16445         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16446         not try to interpret its random input bytes.  Jarno Rajahalme reported
16447         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16448         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16449         (mktempd_): Likewise, just in case.
16450
16451         ftruncate: add two years to projected module removal date: 2012
16452         * m4/ftruncate.m4: Adjust comments.
16453
16454         ftruncate: mark module as obsolete; even MinGW provides it, now
16455         * modules/ftruncate (Status): Obsolete.
16456         (Notice): Say that.
16457         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16458         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16459
16460 2010-04-08  Bruno Haible  <bruno@clisp.org>
16461
16462         Fix side effects from tests-related modules.
16463         * modules/dprintf-posix (Comment): New section.
16464         * modules/fprintf-posix (Comment): Likewise.
16465         * modules/obstack-printf-posix (Comment): Likewise.
16466         * modules/printf-posix (Comment): Likewise.
16467         * modules/snprintf-posix (Comment): Likewise.
16468         * modules/sprintf-posix (Comment): Likewise.
16469         * modules/vasnprintf-posix (Comment): Likewise.
16470         * modules/vasprintf-posix (Comment): Likewise.
16471         * modules/vdprintf-posix (Comment): Likewise.
16472         * modules/vfprintf-posix (Comment): Likewise.
16473         * modules/vprintf-posix (Comment): Likewise.
16474         * modules/vsnprintf-posix (Comment): Likewise.
16475         * modules/vsprintf-posix (Comment): Likewise.
16476         * modules/xprintf-posix (Comment): Likewise.
16477         * modules/xvasprintf-posix (Comment): Likewise.
16478         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16479         * modules/floorf-tests (Depends-on): Likewise.
16480         * modules/round-tests (Depends-on): Likewise.
16481         * modules/roundf-tests (Depends-on): Likewise.
16482         * modules/trunc-tests (Depends-on): Likewise.
16483         * modules/truncf-tests (Depends-on): Likewise.
16484         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16485         'fprintf-posix' module is not present.
16486         * tests/test-floorf2.c (check): Likewise.
16487         * tests/test-trunc2.c (check): Likewise.
16488         * tests/test-truncf2.c (check): Likewise.
16489         * tests/test-round2.c (equal): Likewise.
16490         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16491
16492 2010-04-07  Karl Berry  <karl@gnu.org>
16493
16494         * config/srclist.txt,
16495         * config/srclistvars.sh,
16496         * config/srclist-update: doc fixes.
16497
16498 2010-04-07  Jim Meyering  <meyering@redhat.com>
16499
16500         maint.mk: add a PATH crosschecking syntax-check rule
16501         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16502         Useful if you use a test like the one in help-version (coreutils,
16503         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16504         printed by prog --version.
16505
16506 2010-04-06  Bruno Haible  <bruno@clisp.org>
16507
16508         Fix link error on mingw.
16509         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16510         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16511
16512 2010-04-06  Bruno Haible  <bruno@clisp.org>
16513
16514         Assume rmdir exists.
16515         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16516
16517 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16518
16519         doc: update users.txt
16520         * users.txt: Add gcal.
16521
16522 2010-04-06  Jim Meyering  <meyering@redhat.com>
16523
16524         init.sh: simply unset TMPDIR rather than risking env -i
16525         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16526         although it probably works fine on all Unix-based systems, some
16527         systems (Cygwin?) cannot tolerate a totally cleared environment.
16528         Suggestion from Eric Blake.
16529
16530 2010-04-06  Jim Meyering  <meyering@redhat.com>
16531
16532         init.sh: portability fix: use env's POSIX-specified -i option not -u
16533         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16534         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16535
16536 2010-04-05  Bruno Haible  <bruno@clisp.org>
16537
16538         btowc: Work around Cygwin 1.7.2 bug.
16539         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16540         does not map NUL to 0.
16541         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16542
16543 2010-04-05  Bruno Haible  <bruno@clisp.org>
16544
16545         Make the multithread modules work on Cygwin 1.7.2.
16546         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16547         imported symbols can be declared weak, so that it returns "no" on
16548         Cygwin 1.7.2.
16549
16550 2010-04-05  Bruno Haible  <bruno@clisp.org>
16551
16552         Use the module 'strncat'.
16553         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16554
16555         Tests for module 'strncat'.
16556         * modules/strncat-tests: New file.
16557         * tests/test-strncat.c: New file.
16558
16559         New module 'strncat'.
16560         * lib/string.in.h (strncat): New declaration.
16561         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16562         * m4/strncat.m4: New file, based on m4/memchr.m4.
16563         * modules/strncat: New file.
16564         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16565         is declared.
16566         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16567         REPLACE_STRNCAT.
16568         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16569         REPLACE_STRNCAT.
16570         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16571         module.
16572         * tests/test-string-c++.cc: Check signature of strncat.
16573
16574 2010-04-05  Jim Meyering  <meyering@redhat.com>
16575
16576         xstrtoumax-tests: convert to use init.sh
16577         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16578         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16579         Use Exit, not exit.
16580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16581
16582         xstrtoimax-tests: convert to use init.sh
16583         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16584         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16585         Use Exit, not exit.
16586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16587
16588 2010-04-05  Bruno Haible  <bruno@clisp.org>
16589
16590         sys_socket: Avoid #define replacements in C++ mode.
16591         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16592         warning to the function if possible, rather than #defining the symbol
16593         to a dysfunctional alias.
16594
16595 2010-04-05  Bruno Haible  <bruno@clisp.org>
16596
16597         fseeko: Fix C++ test error on mingw.
16598         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16599         gl_FUNC_FSEEKO.
16600         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16601         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16603         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16604
16605 2010-04-05  Bruno Haible  <bruno@clisp.org>
16606
16607         duplocale: Improve test output.
16608         * tests/test-duplocale.c (main): Print reason for skipped test.
16609
16610 2010-04-05  Bruno Haible  <bruno@clisp.org>
16611
16612         Assume rmdir exists.
16613         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16614         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16615
16616 2010-04-05  Bruno Haible  <bruno@clisp.org>
16617
16618         Fix link error on Solaris 8 with cc.
16619         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16620
16621 2010-04-05  Bruno Haible  <bruno@clisp.org>
16622
16623         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16624         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16625
16626 2010-04-05  Bruno Haible  <bruno@clisp.org>
16627
16628         vasprintf: Update documentation.
16629         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16630
16631 2010-04-05  Bruno Haible  <bruno@clisp.org>
16632
16633         ptsname: Improve test.
16634         * tests/test-ptsname.c (main): Also try the various master names of BSD
16635         systems.
16636
16637 2010-04-05  Bruno Haible  <bruno@clisp.org>
16638
16639         memchr: Avoid a possible C++ test error.
16640         * lib/string.in.h (memchr): Provide declaration if function is missing.
16641         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16642         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16644         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16645
16646 2010-04-05  Bruno Haible  <bruno@clisp.org>
16647
16648         strtok_r: Improve idiom.
16649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16650         AC_LIBOBJ is used.
16651
16652 2010-04-05  Bruno Haible  <bruno@clisp.org>
16653
16654         strdup: Improve idiom.
16655         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16656         AC_LIBOBJ is used.
16657         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16658         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16659         when AC_LIBOBJ is used.
16660
16661 2010-04-05  Bruno Haible  <bruno@clisp.org>
16662
16663         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16664         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16665         don't set REPLACE_MBSINIT to 1.
16666         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16667         don't set REPLACE_MBRTOWC to 1.
16668         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16669         exist, don't set REPLACE_MBSRTOWCS to 1.
16670         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16671         exist, don't set REPLACE_MBSNRTOWCS to 1.
16672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16673         don't set REPLACE_WCRTOMB to 1.
16674         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16675         exist, don't set REPLACE_WCSRTOMBS to 1.
16676         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16677         exist, don't set REPLACE_WCSNRTOMBS to 1.
16678
16679 2010-04-05  Bruno Haible  <bruno@clisp.org>
16680
16681         ldexpl: Improve idiom.
16682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16683         make sure to set HAVE_DECL_LDEXPL to 0.
16684
16685 2010-04-05  Jim Meyering  <meyering@redhat.com>
16686
16687         xstrtol-tests: convert to use init.sh
16688         * modules/xstrtol-tests (Files): Add tests/init.sh.
16689         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16690         Use Exit, not exit.
16691         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16692
16693         atexit-tests: convert to use init.sh
16694         * modules/atexit-tests (Files): Add tests/init.sh.
16695         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16696         Use Exit, not exit.
16697         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16698
16699         init.sh: fix typo
16700         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16701
16702         init.sh: make it easier for a test script to write to the tty, ...
16703         when using automake's parallel-tests mode.
16704         * tests/init.sh (stderr_fileno_): Define overridable variable.
16705         (warn_): New function, to use it.
16706         (fail_, skip_, framework_failure_): Use warn_.
16707
16708 2010-04-04  Bruno Haible  <bruno@clisp.org>
16709
16710         btowc: Avoid warning.
16711         * lib/btowc.c: Include <stdlib.h>.
16712         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16713
16714 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16715             Bruno Haible  <bruno@clisp.org>
16716
16717         wchar: Port to NetBSD 1.5.
16718         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16719         * lib/wctype.in.h (WEOF): Likewise.
16720
16721 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16722             Bruno Haible  <bruno@clisp.org>
16723
16724         Port extended stdio to NetBSD 1.5.
16725         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16726         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16727         older.
16728
16729 2010-04-04  Bruno Haible  <bruno@clisp.org>
16730
16731         string: Remove unused substitution.
16732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16733         HAVE_DECL_STRERROR.
16734         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16735
16736 2010-04-04  Bruno Haible  <bruno@clisp.org>
16737
16738         strtod: Avoid a possible C++ test error.
16739         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16740         set REPLACE_STRTOD.
16741
16742 2010-04-04  Bruno Haible  <bruno@clisp.org>
16743
16744         strerror: Update documentation.
16745         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16746
16747 2010-04-04  Bruno Haible  <bruno@clisp.org>
16748
16749         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16750         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16751         _GL_CXXALIAS_SYS_CAST.
16752
16753 2010-04-04  Bruno Haible  <bruno@clisp.org>
16754
16755         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16756         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16757         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16758         REPLACE_FREXPL to 1.
16759         * doc/posix-functions/frexpl.texi: Update documentation.
16760
16761 2010-04-04  Bruno Haible  <bruno@clisp.org>
16762
16763         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16764         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16765
16766 2010-04-04  Bruno Haible  <bruno@clisp.org>
16767
16768         Implement nanosleep for native Windows.
16769         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16770
16771 2010-04-04  Bruno Haible  <bruno@clisp.org>
16772
16773         math: Fix some C++ test errors on Solaris 8.
16774         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16775
16776 2010-04-04  Bruno Haible  <bruno@clisp.org>
16777
16778         math: Fix some C++ test errors on Cygwin.
16779         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16780         truncl): Provide declaration if the system does not have it.
16781         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16782         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16783         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16784         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16785         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16786         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16787         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16788         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16789         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16790         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16791         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16792         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16793         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16794         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16795         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16796         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16798         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16799         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16800         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16801         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16802         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16803
16804 2010-04-04  Bruno Haible  <bruno@clisp.org>
16805
16806         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16807         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16808         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16809         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16810         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16811         * m4/isinf.m4 (gl_ISINF): Likewise.
16812         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16813
16814 2010-04-04  Bruno Haible  <bruno@clisp.org>
16815
16816         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16817         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16818
16819 2010-04-04  Bruno Haible  <bruno@clisp.org>
16820
16821         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16822         * modules/tmpfile (configure.ac): Update.
16823
16824         tmpfile: Fix C++ test error on mingw.
16825         * lib/stdio.in.h (tmpfile): New declaration.
16826         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16827         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16828         * modules/tmpfile (Depends-on): Add stdio.
16829         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16830         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16831         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16832         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16833         REPLACE_TMPFILE.
16834         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16835
16836 2010-04-04  Bruno Haible  <bruno@clisp.org>
16837
16838         ioctl: Fix C++ test error on mingw.
16839         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16840         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16841         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16842
16843 2010-04-03  Bruno Haible  <bruno@clisp.org>
16844
16845         wcwidth: Fix C++ test error on mingw.
16846         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16848         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16849
16850 2010-04-03  Bruno Haible  <bruno@clisp.org>
16851
16852         nanosleep: Fix C++ test error on mingw.
16853         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16854         * lib/time.in.h (nanosleep): Use modern idiom.
16855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16856         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16857         REPLACE_NANOSLEEP to 1.
16858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16859         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16860
16861 2010-04-03  Bruno Haible  <bruno@clisp.org>
16862
16863         strptime: Fix C++ test error on mingw.
16864         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16865         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16866         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16867         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16869         not REPLACE_STRPTIME.
16870         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16871         REPLACE_STRPTIME.
16872
16873 2010-04-03  Bruno Haible  <bruno@clisp.org>
16874
16875         timegm: Fix C++ test error on mingw.
16876         * lib/time.in.h (timegm): Use modern idiom.
16877         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16878         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16880         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16881
16882 2010-04-03  Bruno Haible  <bruno@clisp.org>
16883
16884         timegm: Assume declaration if function exists.
16885         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16886         if it exists. Don't clobber ac_cv_func_timegm.
16887
16888 2010-04-03  Bruno Haible  <bruno@clisp.org>
16889
16890         time_r: Fix C++ test error on mingw.
16891         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16892         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16893         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16894         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16895         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16896
16897 2010-04-03  Bruno Haible  <bruno@clisp.org>
16898
16899         time_r: Minor updates.
16900         * modules/time_r (Description): Mention the provided functions.
16901         * lib/time_r.c: Don't include <string.h>.
16902         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16903         * doc/posix-functions/localtime_r.texi: Likewise.
16904
16905 2010-04-03  Bruno Haible  <bruno@clisp.org>
16906
16907         time: Fix regression introduced on 2010-03-08.
16908         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16909         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16910
16911 2010-04-03  Jim Meyering  <meyering@redhat.com>
16912
16913         maint.mk: don't silently disable project-specific syntax-check rules
16914         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16915         that they need to convert their project-specific syntax-check rules
16916         to use the new _sc_search_regexp.
16917
16918 2010-04-03  Bruno Haible  <bruno@clisp.org>
16919
16920         fchdir: Fix regression introduced on 2010-03-08.
16921         * lib/unistd.in.h (fchdir): Fix declaration.
16922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16924         REPLACE_FCHDIR.
16925         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16926         REPLACE_FCHDIR.
16927
16928 2010-04-03  Bruno Haible  <bruno@clisp.org>
16929
16930         getpagesize: Fix C++ test error on mingw.
16931         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16932         system does not declare the function.
16933         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16934         declared.
16935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16936         HAVE_DECL_GETPAGESIZE.
16937         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16938
16939 2010-04-03  Bruno Haible  <bruno@clisp.org>
16940
16941         stdio: Make C++ tests work on mingw.
16942         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16943         does not declare the function.
16944
16945 2010-04-03  Bruno Haible  <bruno@clisp.org>
16946
16947         ftello: Fix C++ test error on mingw.
16948         * lib/stdio.in.h (ftello): Use modern idiom.
16949         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16950         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16951         is missing and that it needs to be replaced.
16952         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16954         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16955
16956 2010-04-03  Bruno Haible  <bruno@clisp.org>
16957
16958         fseeko: Fix C++ test error on mingw.
16959         * lib/stdio.in.h (fseeko): Use modern idiom.
16960         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16962         is missing and that it needs to be replaced.
16963         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16965         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16966
16967 2010-04-03  Bruno Haible  <bruno@clisp.org>
16968
16969         mkstemp: Fix C++ test error on mingw.
16970         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16972         function is missing and that it needs to be replaced.
16973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16974         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16975
16976 2010-04-03  Bruno Haible  <bruno@clisp.org>
16977
16978         stpncpy: Fix C++ test error on mingw.
16979         * lib/string.in.h (stpncpy): Use modern idiom.
16980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16981         function is missing and that it needs to be replaced.
16982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16983         REPLACE_STPNCPY.
16984         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16985
16986 2010-04-03  Bruno Haible  <bruno@clisp.org>
16987
16988         sys_stat: Fix C++ test error on mingw.
16989         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16990         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16991
16992 2010-04-03  Bruno Haible  <bruno@clisp.org>
16993
16994         pty: Update doc.
16995         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16996
16997 2010-04-03  Bruno Haible  <bruno@clisp.org>
16998
16999         unistd: Fix C++ test error on mingw.
17000         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17001
17002 2010-04-03  Bruno Haible  <bruno@clisp.org>
17003
17004         Update doc regarding mingw.
17005         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17006         * doc/glibc-functions/login_tty.texi: Likewise.
17007         * doc/glibc-functions/forkpty.texi: Likewise.
17008
17009 2010-04-03  Bruno Haible  <bruno@clisp.org>
17010
17011         stdlib: Avoid compilation failure of c-strtold on mingw.
17012         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17013
17014 2010-04-03  Bruno Haible  <bruno@clisp.org>
17015
17016         locale: Make C++ tests work on Cygwin and mingw.
17017         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17018         cannot provide the function.
17019         Reported by Simon Josefsson.
17020
17021 2010-04-03  Bruno Haible  <bruno@clisp.org>
17022
17023         localename: Port to MacOS X 10.6.
17024         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17025         memory layout of the locales in MacOS X 10.6 as well.
17026         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17027
17028 2010-04-02  Bruno Haible  <bruno@clisp.org>
17029
17030         gnulib-tool: Ensure that long-running tests are executed last.
17031         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17032         running tests after the one for the other tests.
17033
17034 2010-04-02  Bruno Haible  <bruno@clisp.org>
17035
17036         gnulib-tool: Ensure the tests in the main directory are executed first.
17037         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17038         start with the current directory.
17039
17040 2010-04-02  Bruno Haible  <bruno@clisp.org>
17041
17042         Tests for module 'havelib', moved here from GNU gettext.
17043         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17044         modifications.
17045         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17046         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17047         with modifications.
17048         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17049         modifications.
17050         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17051         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17052         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17053         with modifications.
17054         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17055         with modifications.
17056         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17057         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17058         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17059         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17060         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17061         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17062         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17063         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17064         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17065         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17066         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17067         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17068         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17069         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17070         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17071         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17072         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17073         with modifications.
17074         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17075         with modifications.
17076         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17077         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17078         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17079         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17080         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17081         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17082         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17083         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17084         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17085         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17086         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17087         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17088         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17089         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17090         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17091         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17092         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17093         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17094         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17095         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17096         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17097         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17098         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17099         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17100         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17101         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17102         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17103         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17104         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17105         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17106         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17107         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17108         * tests/havelib/rpathx/rpathx.c: New file, from
17109         gettext/autoconf-lib-link.
17110         * tests/havelib/rpathx/Makefile.am: New file, from
17111         gettext/autoconf-lib-link.
17112         * tests/havelib/rpathx/configure.ac: New file, from
17113         gettext/autoconf-lib-link with modifications.
17114         * tests/havelib/rpathy/rpathy.c: New file, from
17115         gettext/autoconf-lib-link.
17116         * tests/havelib/rpathy/Makefile.am: New file, from
17117         gettext/autoconf-lib-link.
17118         * tests/havelib/rpathy/configure.ac: New file, from
17119         gettext/autoconf-lib-link with modifications.
17120         * tests/havelib/rpathz/rpathz.c: New file, from
17121         gettext/autoconf-lib-link.
17122         * tests/havelib/rpathz/Makefile.am: New file, from
17123         gettext/autoconf-lib-link.
17124         * tests/havelib/rpathz/configure.ac: New file, from
17125         gettext/autoconf-lib-link with modifications.
17126         * tests/havelib/rpathlx/usex.c: New file, from
17127         gettext/autoconf-lib-link.
17128         * tests/havelib/rpathlx/Makefile.am: New file, from
17129         gettext/autoconf-lib-link.
17130         * tests/havelib/rpathlx/configure.ac: New file, from
17131         gettext/autoconf-lib-link with modifications.
17132         * tests/havelib/rpathly/usey.c: New file, from
17133         gettext/autoconf-lib-link.
17134         * tests/havelib/rpathly/Makefile.am: New file, from
17135         gettext/autoconf-lib-link.
17136         * tests/havelib/rpathly/configure.ac: New file, from
17137         gettext/autoconf-lib-link with modifications.
17138         * tests/havelib/rpathlz/usez.c: New file, from
17139         gettext/autoconf-lib-link.
17140         * tests/havelib/rpathlz/Makefile.am: New file, from
17141         gettext/autoconf-lib-link.
17142         * tests/havelib/rpathlz/configure.ac: New file, from
17143         gettext/autoconf-lib-link with modifications.
17144         * tests/havelib/rpathlyx/usey.c: New file, from
17145         gettext/autoconf-lib-link.
17146         * tests/havelib/rpathlyx/Makefile.am: New file, from
17147         gettext/autoconf-lib-link.
17148         * tests/havelib/rpathlyx/configure.ac: New file, from
17149         gettext/autoconf-lib-link with modifications.
17150         * tests/havelib/rpathlzyx/usez.c: New file, from
17151         gettext/autoconf-lib-link.
17152         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17153         gettext/autoconf-lib-link.
17154         * tests/havelib/rpathlzyx/configure.ac: New file, from
17155         gettext/autoconf-lib-link with modifications.
17156         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17157         with modifications.
17158
17159 2010-04-02  Bruno Haible  <bruno@clisp.org>
17160
17161         gnulib-tool: Create distributed built sources also for the tests.
17162         * gnulib-tool (func_create_testdir): Also generate distributed built
17163         sources in the tests directory.
17164
17165 2010-04-02  Bruno Haible  <bruno@clisp.org>
17166
17167         gnulib-tool: Obey user's environment variables.
17168         * gnulib-tool (func_create_testdir): When creating built sources,
17169         respect the environment variables for autoconf, automake, etc. given by
17170         the user.
17171
17172 2010-04-02  Bruno Haible  <bruno@clisp.org>
17173
17174         gnulib-tool: Provide the value of --m4-base to modules.
17175         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17176         of gl_m4_base.
17177
17178 2010-04-02  Eric Blake  <eblake@redhat.com>
17179
17180         maint.mk: fix some fallout
17181         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17182         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17183
17184 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17185
17186         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17187         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17188         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17189         (sc_cast_of_x_alloc_return_value): Likewise.
17190         (sc_cast_of_alloca_return_value): Likewise.
17191         (sc_space_tab): Likewise.
17192         (sc_prohibit_atoi_atof): Likewise.
17193         (sc_prohibit_magic_number_exit): Likewise.
17194         (sc_error_exit_success): Likewise.
17195         (sc_file_system): Likewise.
17196         (sc_prohibit_have_config_h): Likewise.
17197         (sc_require_config_h): Likewise.
17198         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17199         (sc_obsolete_symbols): Likewise.
17200         (sc_changelog): Likewise.
17201         (sc_program_name): Likewise.
17202         (sc_the_the): Likewise.
17203         (sc_trailing_blank): Likewise.
17204         (sc_two_space_separator_in_usage): Likewise.
17205         (sc_useless_cpp_parens): Likewise.
17206         (sc_GPL_version): Likewise.
17207         (sc_GFDL_version): Likewise.
17208         (sc_texinfo_acronym): Likewise.
17209         (sc_prohibit_cvs_keyword): Likewise.
17210         (sc_prohibit_stat_st_blocks): Likewise.
17211         (sc_prohibit_S_IS_definition): Likewise.
17212         (sc_redundant_const): Likewise.
17213         (sc_makefile_TAB_only_indentation): Likewise.
17214         (sc_m4_quote_check): Likewise.
17215         (sc_makefile_path_separator_check): Likewise.
17216         (sc_copyright_check): Likewise.
17217         (sc_Wundef_boolean): Likewise.
17218         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17219
17220         maint.mk: match 0 or more whitespace-before-function-call '('
17221         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17222         that have zero or two-and-more spaces between the function name
17223         and the open parenthesis.
17224         (sc_error_message_warn_fatal): Likewise.
17225         (sc_error_message_uppercase): Likewise.
17226         (sc_error_message_period): Likewise.
17227
17228 2010-03-31  Eric Blake  <eblake@redhat.com>
17229
17230         maint.mk: check for [ as well as test
17231         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17232         Based on a libvirt report by Matthias Bolte.
17233
17234         gnumakefile: don't squelch _version output
17235         * top/GNUmakefile (_version): Create one-shot dependency rather
17236         than using $(shell) when version must be regenerated.
17237         (_autoreconf): Run verbosely, by default.
17238
17239         sys_time: avoid compiler warnings
17240         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17241         unconditional, fixing regression from 2010-03-29.
17242         Reported by Simon Josefsson.
17243
17244 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17245
17246         maint.mk: s/_header_without_use/_sc_header_without_use/
17247         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17248         (sc_prohibit_assert_without_use): Use the new name.
17249         (sc_prohibit_close_stream_without_use): Likewise.
17250         (sc_prohibit_getopt_without_use): Likewise.
17251         (sc_prohibit_quotearg_without_use): Likewise.
17252         (sc_prohibit_quote_without_use): Likewise.
17253         (sc_prohibit_long_options_without_use): Likewise.
17254         (sc_prohibit_inttostr_without_use): Likewise.
17255         (sc_prohibit_ignore_value_without_use): Likewise.
17256         (sc_prohibit_error_without_use): Likewise.
17257         (sc_prohibit_xalloc_without_use): Likewise.
17258         (sc_prohibit_hash_without_use): Likewise.
17259         (sc_prohibit_hash_pjw_without_use): Likewise.
17260         (sc_prohibit_safe_read_without_use): Likewise.
17261         (sc_prohibit_argmatch_without_use): Likewise.
17262         (sc_prohibit_canonicalize_without_use): Likewise.
17263         (sc_prohibit_root_dev_ino_without_use): Likewise.
17264         (sc_prohibit_openat_without_use): Likewise.
17265         (sc_prohibit_c_ctype_without_use): Likewise.
17266         (sc_prohibit_signal_without_use): Likewise.
17267         (sc_prohibit_intprops_without_use): Likewise.
17268
17269 2010-03-30  Eric Blake  <eblake@redhat.com>
17270
17271         maint: improve module indicators
17272         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17273         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17274         columns, and avoid extra macro expansion.
17275
17276         fdopendir: work around FreeBSD bug
17277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17278         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17279         * modules/dirent (Makefile.am): Substitute it.
17280         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17281         declaration.
17282         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17283         fix.
17284         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17285
17286 2010-03-29  Bruno Haible  <bruno@clisp.org>
17287
17288         Emit #pragma system_header after the inclusion guard, not before.
17289         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17290         guard that spans the entire file, not before. This enables an
17291         optimization in GCC's preprocessor.
17292         * lib/ctype.in.h: Likewise.
17293         * lib/dirent.in.h: Likewise.
17294         * lib/errno.in.h: Likewise.
17295         * lib/float.in.h: Likewise.
17296         * lib/getopt.in.h: Likewise.
17297         * lib/iconv.in.h: Likewise.
17298         * lib/langinfo.in.h: Likewise.
17299         * lib/locale.in.h: Likewise.
17300         * lib/math.in.h: Likewise.
17301         * lib/netdb.in.h: Likewise.
17302         * lib/netinet_in.in.h: Likewise.
17303         * lib/pty.in.h: Likewise.
17304         * lib/sched.in.h: Likewise.
17305         * lib/se-selinux.in.h: Likewise.
17306         * lib/search.in.h: Likewise.
17307         * lib/spawn.in.h: Likewise.
17308         * lib/stdarg.in.h: Likewise.
17309         * lib/stdint.in.h: Likewise.
17310         * lib/string.in.h: Likewise.
17311         * lib/strings.in.h: Likewise.
17312         * lib/sys_file.in.h: Likewise.
17313         * lib/sys_ioctl.in.h: Likewise.
17314         * lib/sys_time.in.h: Likewise.
17315         * lib/sys_times.in.h: Likewise.
17316         * lib/sys_utsname.in.h: Likewise.
17317         * lib/sys_wait.in.h: Likewise.
17318         * lib/sysexits.in.h: Likewise.
17319         * lib/wctype.in.h: Likewise.
17320
17321 2010-03-28  James Youngman  <jay@gnu.org>
17322
17323         save-cwd: don't leak a file descriptor when the caller execs.
17324         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17325         saved file descriptor.
17326         * modules/save-cwd (Depends-on): Depend on cloexec.
17327
17328 2010-03-29  Bruno Haible  <bruno@clisp.org>
17329
17330         Remove vestiges of fts-lgpl module.
17331         * lib/fts_.h: Assume GNULIB_FTS is 1.
17332         * lib/fts.c: Likewise.
17333         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17334
17335 2010-03-28  Bruno Haible  <bruno@clisp.org>
17336
17337         Fix definition of tests witness macro.
17338         * gnulib-tool (func_import): Fix definition of witness macro.
17339
17340 2010-03-28  Bruno Haible  <bruno@clisp.org>
17341
17342         Fix ioctl's protoype on glibc systems.
17343         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17344         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17345         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17346         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17347         signature. If not, arrange to replace the ioctl function.
17348         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17349         REPLACE_IOCTL.
17350         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17351         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17352         Reported by Ludovic Courtès <ludo@gnu.org>.
17353
17354 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17355
17356         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17357         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17358         made it so grep -r --include=GLOB* ... did not work.
17359
17360 2010-03-26  Jim Meyering  <meyering@redhat.com>
17361             Eric Blake  <eblake@redhat.com>
17362
17363         maint.mk: prohibit use of test's -o and -a operators
17364         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17365
17366 2010-03-28  Bruno Haible  <bruno@clisp.org>
17367
17368         Remove unused GNULIB_XYZ macro definitions.
17369         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17370         invocation.
17371
17372 2010-03-28  Bruno Haible  <bruno@clisp.org>
17373
17374         Mark privileged tests modules.
17375         * modules/idpriv-drop-tests (Status): New section.
17376         * modules/idpriv-droptemp-tests (Status): New section.
17377
17378 2010-03-28  Bruno Haible  <bruno@clisp.org>
17379
17380         Split C++ tests into separate tests modules.
17381         * modules/dirent-c++-tests: New file, extracted from
17382         modules/dirent-tests.
17383         * modules/dirent-tests: Depend on it.
17384         * modules/fcntl-h-c++-tests: New file, extracted from
17385         modules/fcntl-h-tests.
17386         * modules/fcntl-h-tests: Depend on it.
17387         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17388         * modules/glob-tests: Depend on it.
17389         * modules/iconv-h-c++-tests: New file, extracted from
17390         modules/iconv-h-tests.
17391         * modules/iconv-h-tests: Depend on it.
17392         * modules/langinfo-c++-tests: New file, extracted from
17393         modules/langinfo-tests.
17394         * modules/langinfo-tests: Depend on it.
17395         * modules/locale-c++-tests: New file, extracted from
17396         modules/locale-tests.
17397         * modules/locale-tests: Depend on it.
17398         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17399         * modules/math-tests: Depend on it.
17400         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17401         * modules/pty-tests: Depend on it.
17402         * modules/search-c++-tests: New file, extracted from
17403         modules/search-tests.
17404         * modules/search-tests: Depend on it.
17405         * modules/signal-c++-tests: New file, extracted from
17406         modules/signal-tests.
17407         * modules/signal-tests: Depend on it.
17408         * modules/spawn-c++-tests: New file, extracted from
17409         modules/spawn-tests.
17410         * modules/spawn-tests: Depend on it.
17411         * modules/stdio-c++-tests: New file, extracted from
17412         modules/stdio-tests.
17413         * modules/stdio-tests: Depend on it.
17414         * modules/stdlib-c++-tests: New file, extracted from
17415         modules/stdlib-tests.
17416         * modules/stdlib-tests: Depend on it.
17417         * modules/string-c++-tests: New file, extracted from
17418         modules/string-tests.
17419         * modules/string-tests: Depend on it.
17420         * modules/sys_ioctl-c++-tests: New file, extracted from
17421         modules/sys_ioctl-tests.
17422         * modules/sys_ioctl-tests: Depend on it.
17423         * modules/sys_select-c++-tests: New file, extracted from
17424         modules/sys_select-tests.
17425         * modules/sys_select-tests: Depend on it.
17426         * modules/sys_socket-c++-tests: New file, extracted from
17427         modules/sys_socket-tests.
17428         * modules/sys_socket-tests: Depend on it.
17429         * modules/sys_stat-c++-tests: New file, extracted from
17430         modules/sys_stat-tests.
17431         * modules/sys_stat-tests: Depend on it.
17432         * modules/sys_time-c++-tests: New file, extracted from
17433         modules/sys_time-tests.
17434         * modules/sys_time-tests: Depend on it.
17435         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17436         * modules/time-tests: Depend on it.
17437         * modules/unistd-c++-tests: New file, extracted from
17438         modules/unistd-tests.
17439         * modules/unistd-tests: Depend on it.
17440         * modules/wchar-c++-tests: New file, extracted from
17441         modules/wchar-tests.
17442         * modules/wchar-tests: Depend on it.
17443         * modules/wctype-c++-tests: New file, extracted from
17444         modules/wctype-tests.
17445         * modules/wctype-tests: Depend on it.
17446         Reported by Simon Josefsson.
17447
17448 2010-03-28  Bruno Haible  <bruno@clisp.org>
17449
17450         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17451         * gnulib-tool (func_exists_module): New function, extracted from
17452         func_verify_module.
17453         (func_verify_module): Use it.
17454         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17455         'foo' only if 'foo' exists.
17456         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17457         module.
17458
17459 2010-03-28  Bruno Haible  <bruno@clisp.org>
17460
17461         gnulib-tool: Add support for special categories of tests.
17462         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17463         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17464         (func_usage): Document them.
17465         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17466         inc_unportable_tests, inc_all_tests): New variables.
17467         (func_acceptable): Consider these variables.
17468         (func_modules_transitive_closure): Make it work when the 'Status' field
17469         consists of multiple words.
17470         (func_import): Store and restore the values of inc_cxx_tests,
17471         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17472         inc_all_tests in gnulib-comp.m4.
17473         (func_create_testdir): Set inc_all_tests to true.
17474         * doc/gnulib.texi (Extra tests modules): New section.
17475         Suggested by Jim Meyering.
17476
17477 2010-03-28  Bruno Haible  <bruno@clisp.org>
17478
17479         ansi-c++-opt: Allow turning off the C++ build by default.
17480         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17481         gl_CXX_CHOICE_DEFAULT_NO is defined.
17482         Requested by Eric Blake.
17483
17484 2010-03-28  Bruno Haible  <bruno@clisp.org>
17485
17486         unistd: Avoid #define replacements in C++ mode.
17487         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17488         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17489         setsockopt, shutdown, select): In C++, attach a warning to the function
17490         if possible, rather than #defining the symbol to a dysfunctional alias.
17491         Reported by John W. Eaton <jwe@gnu.org>.
17492
17493 2010-03-28  Bruno Haible  <bruno@clisp.org>
17494
17495         Fix link errors on mingw.
17496         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17497         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17498         $(LIBSOCKET).
17499         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17500         $(LIBSOCKET).
17501
17502 2010-03-28  Bruno Haible  <bruno@clisp.org>
17503             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17504
17505         lib-ignore: Determine different options for different compilers.
17506         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17507         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17508         Add comments.
17509         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17510         * NEWS: Mention the change.
17511
17512 2010-03-27  Bruno Haible  <bruno@clisp.org>
17513
17514         Remove unused GNULIB_XYZ macro definitions.
17515         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17516         * modules/fseek (configure.ac): Likewise.
17517         * modules/ioctl (configure.ac): Likewise.
17518         * modules/open (configure.ac): Likewise.
17519         * modules/stdlib-safer (configure.ac): Likewise.
17520
17521 2010-03-27  Bruno Haible  <bruno@clisp.org>
17522
17523         Add a remark about certain modules.
17524         * modules/malloc (Comment): New section.
17525         * modules/realloc (Comment): Likewise.
17526         * modules/sigpipe (Comment): Likewise.
17527
17528 2010-03-27  Bruno Haible  <bruno@clisp.org>
17529
17530         Resolve conflict between the two kinds of module indicators.
17531         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17532         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17533         * modules/canonicalize (configure.ac): Invoke
17534         gl_MODULE_INDICATOR_FOR_TESTS.
17535         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17536         GNULIB_XYZ.
17537         * tests/test-dirent-c++.cc: Likewise.
17538         * tests/test-dirent-safer.c: Likewise.
17539         * tests/test-dup2.c: Likewise.
17540         * tests/test-fchdir.c: Likewise.
17541         * tests/test-fcntl-h-c++.cc: Likewise.
17542         * tests/test-getopt.c: Likewise.
17543         * tests/test-getopt.h: Likewise.
17544         * tests/test-langinfo-c++.cc: Likewise.
17545         * tests/test-locale-c++.cc: Likewise.
17546         * tests/test-math-c++.cc: Likewise.
17547         * tests/test-pty-c++.cc: Likewise.
17548         * tests/test-search-c++.cc: Likewise.
17549         * tests/test-signal-c++.cc: Likewise.
17550         * tests/test-spawn-c++.cc: Likewise.
17551         * tests/test-stdio-c++.cc: Likewise.
17552         * tests/test-stdlib-c++.cc: Likewise.
17553         * tests/test-string-c++.cc: Likewise.
17554         * tests/test-sys_ioctl-c++.cc: Likewise.
17555         * tests/test-sys_select-c++.cc: Likewise.
17556         * tests/test-sys_socket-c++.cc: Likewise.
17557         * tests/test-sys_stat-c++.cc: Likewise.
17558         * tests/test-sys_time-c++.cc: Likewise.
17559         * tests/test-time-c++.cc: Likewise.
17560         * tests/test-unistd-c++.cc: Likewise.
17561         * tests/test-wchar-c++.cc: Likewise.
17562         * tests/uninorm/test-u8-nfc.c: Likewise.
17563         * tests/uninorm/test-u8-nfd.c: Likewise.
17564         * tests/uninorm/test-u8-nfkc.c: Likewise.
17565         * tests/uninorm/test-u8-nfkd.c: Likewise.
17566         * tests/uninorm/test-u16-nfc.c: Likewise.
17567         * tests/uninorm/test-u16-nfd.c: Likewise.
17568         * tests/uninorm/test-u16-nfkc.c: Likewise.
17569         * tests/uninorm/test-u16-nfkd.c: Likewise.
17570         * tests/uninorm/test-u32-nfc.c: Likewise.
17571         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17572         * tests/uninorm/test-u32-nfd.c: Likewise.
17573         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17574         * tests/uninorm/test-u32-nfkc.c: Likewise.
17575         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17576         * tests/uninorm/test-u32-nfkd.c: Likewise.
17577         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17578         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17579
17580 2010-03-27  Bruno Haible  <bruno@clisp.org>
17581
17582         Distinguish two kinds of module indicators.
17583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17584         gl_MODULE_INDICATOR.
17585         (gl_MODULE_INDICATOR): New macro.
17586         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17587         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17588         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17589         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17590         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17591         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17592         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17593         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17594         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17595         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17596         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17597         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17603         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17604         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17605         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17606         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17607         * modules/cloexec (configure.ac): Likewise.
17608         * modules/getopt-gnu (configure.ac): Likewise.
17609         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17610         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17611         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17612         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17613
17614 2010-03-27  Bruno Haible  <bruno@clisp.org>
17615
17616         New module description field 'Comment'.
17617         * gnulib-tool: New option --extract-comment.
17618         (func_usage): Document it.
17619         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17620         (func_get_comment): New function.
17621         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17622
17623 2010-03-27  Bruno Haible  <bruno@clisp.org>
17624
17625         Addendum to 2010-02-07 commit.
17626         * gnulib-tool (func_usage): Document --extract-applicability option.
17627
17628 2010-03-27  Bruno Haible  <bruno@clisp.org>
17629
17630         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17631         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17632         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17633         rather than link errors.
17634
17635 2010-03-27  Bruno Haible  <bruno@clisp.org>
17636
17637         Avoid side effects from tests-related modules on the compilation of lib.
17638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17639         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17640         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17641         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17642         macro.
17643         (func_import): Define a witness macro. Assign it a value that depends
17644         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17645         tests-related modules.
17646         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17647         Reported by Jim Meyering.
17648
17649 2010-03-27  Bruno Haible  <bruno@clisp.org>
17650
17651         Factorize common .m4 code.
17652         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17653         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17654         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17655         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17656         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17657         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17658         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17659         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17660         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17661         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17662         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17663         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17664         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17665         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17666         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17667         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17668         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17669         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17671         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17672         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17674         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17675         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17676         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17677         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17678         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17679         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17680         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17681         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17682         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17683         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17684
17685 2010-03-27  Bruno Haible  <bruno@clisp.org>
17686
17687         Fix a compilation error on Cygwin with g++ >= 4.3.
17688         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17689         if it is undefined or if we alias it to chmod.
17690         (lstat): Don't warn about the use of this function if it is undefined
17691         or if we alias it to stat.
17692         Reported by Simon Josefsson.
17693
17694 2010-03-27  Bruno Haible  <bruno@clisp.org>
17695
17696         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17697         * modules/getlogin (configure.ac): Update.
17698
17699         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17700         * modules/getlogin_r (configure.ac): Update.
17701
17702         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17704         * modules/inet_ntop (configure.ac): Update.
17705
17706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17707         * modules/inet_pton (configure.ac): Update.
17708
17709         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17710         * modules/mbslen (configure.ac): Update.
17711
17712         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17713         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17714         * modules/forkpty (configure.ac): Update.
17715         * modules/openpty (configure.ac): Update.
17716
17717 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17718
17719         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17720         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17721
17722 2010-03-25  Eric Blake  <eblake@redhat.com>
17723
17724         maint: use pragma consistently across replacement headers
17725         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17726         * lib/dirent.in.h (system_header): Likewise.
17727         * lib/errno.in.h (system_header): Likewise.
17728         * lib/float.in.h (system_header): Likewise.
17729         * lib/getopt.in.h (system_header): Likewise.
17730         * lib/iconv.in.h (system_header): Likewise.
17731         * lib/inttypes.in.h (system_header): Likewise.
17732         * lib/langinfo.in.h (system_header): Likewise.
17733         * lib/locale.in.h (system_header): Likewise.
17734         * lib/math.in.h (system_header): Likewise.
17735         * lib/netdb.in.h (system_header): Likewise.
17736         * lib/netinet_in.in.h (system_header): Likewise.
17737         * lib/pty.in.h (system_header): Likewise.
17738         * lib/sched.in.h (system_header): Likewise.
17739         * lib/se-selinux.in.h (system_header): Likewise.
17740         * lib/search.in.h (system_header): Likewise.
17741         * lib/spawn.in.h (system_header): Likewise.
17742         * lib/stdarg.in.h (system_header): Likewise.
17743         * lib/stdint.in.h (system_header): Likewise.
17744         * lib/string.in.h (system_header): Likewise.
17745         * lib/strings.in.h (system_header): Likewise.
17746         * lib/sys_file.in.h (system_header): Likewise.
17747         * lib/sys_ioctl.in.h (system_header): Likewise.
17748         * lib/sys_socket.in.h (system_header): Likewise.
17749         * lib/sys_times.in.h (system_header): Likewise.
17750         * lib/sys_utsname.in.h (system_header): Likewise.
17751         * lib/sys_wait.in.h (system_header): Likewise.
17752         * lib/sysexits.in.h (system_header): Likewise.
17753         * lib/unistd.in.h (system_header): Likewise.
17754         * lib/wctype.in.h (system_header): Likewise.
17755
17756         arpa/inet: fix mingw compilation warning
17757         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17758         Reported by Matthew Bolte.
17759
17760 2010-03-25  Bruno Haible  <bruno@clisp.org>
17761
17762         Avoid collision between gnulib wrapper and libintl wrapper.
17763         * lib/printf.c (printf): Don't define if a printf wrapper is already
17764         defined in intl/printf.c.
17765         Reported by Michel Boaventura <michel@michelboaventura.com>.
17766
17767 2010-03-25  Bruno Haible  <bruno@clisp.org>
17768
17769         Use ANSI C.
17770         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17771
17772 2010-03-25  Bruno Haible  <bruno@clisp.org>
17773
17774         Minor formatting changes.
17775         * lib/acosl.c: Insert space before function argument list.
17776         * lib/argz.c: Likewise.
17777         * lib/asinl.c: Likewise.
17778         * lib/expl.c: Likewise.
17779         * lib/gen-uni-tables.c: Likewise.
17780         * lib/gettext.h: Likewise.
17781         * lib/glthread/lock.h: Likewise.
17782         * lib/tanl.c: Likewise.
17783         * lib/uniname/uniname.c: Likewise.
17784         * tests/test-idpriv-drop.c: Likewise.
17785         * tests/test-idpriv-droptemp.c: Likewise.
17786         * tests/test-lock.c: Likewise.
17787         * tests/test-tls.c: Likewise.
17788         * lib/argp-help.c: Insert space before function-like macro argument
17789         list.
17790         * lib/memcmp.c: Likewise.
17791         * tests/test-base64.c: Likewise.
17792         * lib/localename.c: Insert space before sizeof's argument list.
17793         * lib/safe-alloc.h: Likewise.
17794         * lib/file-set.h: Insert space before macro argument list.
17795         * tests/test-argp.c: Likewise.
17796         * lib/argp-namefrob.h: Insert space before function parameter list.
17797         * lib/getaddrinfo.c: Likewise.
17798         * lib/netdb.in.h: Likewise.
17799         * lib/parse-duration.h: Likewise.
17800         * lib/parse-duration.c: Likewise.
17801         * lib/poll.c: Likewise.
17802         * lib/select.c: Likewise.
17803         * lib/trim.h: Likewise.
17804         * tests/test-usleep.c: Likewise.
17805         * lib/ldexpl.c: Insert space before function parameter list and before
17806         function argument list.
17807         * lib/logl.c: Likewise.
17808         * lib/sqrtl.c: Likewise.
17809         * lib/trim.c: Likewise.
17810         * lib/cosl.c: Use GNU style indentation. Insert space before function
17811         argument list.
17812         * lib/sinl.c: Likewise.
17813         * lib/tsearch.c: Insert space after 'for'.
17814         Reported by Jim Meyering.
17815
17816 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17817
17818         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17819         config header before grepping, as it's not present before
17820         autoreconf/configure are run.  Reported by Simon Josefsson.
17821
17822 2010-03-23  Bruno Haible  <bruno@clisp.org>
17823
17824         pt_chown: Make it work with automake < 1.11.
17825         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17826         Reported by Simon Josefsson.
17827
17828 2010-03-23  Bruno Haible  <bruno@clisp.org>
17829
17830         pt_chown: Don't depend on GPLed modules.
17831         * lib/pt_chown.c: Don't include idpriv.h.
17832         (main): Don't drop privileges.
17833         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17834         Reported by Simon Josefsson.
17835
17836 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17837
17838         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17839         suggestions from karl@freefriends.org (Karl Berry).
17840
17841 2010-03-22  Eric Blake  <eblake@redhat.com>
17842
17843         gethostname: further tweaks
17844         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17845         are overriding gethostname.
17846         Suggested by Bruno Haible.
17847
17848 2010-03-21  Bruno Haible  <bruno@clisp.org>
17849
17850         Fix comments.
17851         * lib/forkpty.c (rpl_forkpty): Fix comment.
17852         * lib/openpty.c (rpl_openpty): Likewise.
17853         Reported by Eric Blake.
17854
17855 2010-03-22  Eric Blake  <eblake@redhat.com>
17856
17857         gethostname: fix build on mingw
17858         * lib/unistd.in.h (includes): Work around fact that mingw
17859         <winsock2.h> re-includes <unistd.h>, by avoiding any
17860         redeclarations if we are being included by <winsock2.h>.
17861         Reported by Matthias Bolte.
17862
17863 2010-03-21  Bruno Haible  <bruno@clisp.org>
17864
17865         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17866         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17867         modifications.
17868         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17869         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17870         provide the replacement.
17871         * modules/forkpty (Depends-on): Add openpty, login_tty.
17872         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17873         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17874         * doc/glibc-functions/forkpty.texi: More supported platforms.
17875         * config/srclist.txt: Add forkpty.c (commented).
17876
17877 2010-03-21  Bruno Haible  <bruno@clisp.org>
17878
17879         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17880         (Makefile.am): Verify that PTY_LIB is defined.
17881
17882         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17883
17884 2010-03-21  Bruno Haible  <bruno@clisp.org>
17885
17886         Tests for module 'login_tty'.
17887         * modules/login_tty-tests: New file.
17888         * tests/test-login_tty.c: New file.
17889
17890         New module 'login_tty'.
17891         * lib/login_tty.c: New file.
17892         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17893         * modules/login_tty: New file.
17894         * doc/glibc-functions/login_tty.texi: Mention the new module.
17895
17896 2010-03-21  Bruno Haible  <bruno@clisp.org>
17897
17898         login_tty: Documentation.
17899         * doc/glibc-functions/login_tty.texi: New file.
17900         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17901
17902 2010-03-21  Bruno Haible  <bruno@clisp.org>
17903
17904         pty: Consistent macro naming.
17905         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17906         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17907         * modules/pty (configure.ac): Update.
17908
17909 2010-03-21  Bruno Haible  <bruno@clisp.org>
17910
17911         Tests for openpty: Make stricter.
17912         * tests/test-openpty.c (main): Add test of canonical processing and
17913         erase.
17914         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17915
17916         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17917         * lib/openpty.c (openpty): New replacement function.
17918         * lib/pty.in.h: Include <termios.h>.
17919         (openpty): Update declaration. Add comments.
17920         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17921         is not declared, arrange to provide the replacement. Check for _getpty
17922         and posix_openpt.
17923         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17924         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17925         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17926         * modules/pty-tests (test_pty_c___LDADD): New variable.
17927         * doc/glibc-functions/openpty.texi: More supported platforms.
17928
17929 2010-03-21  Bruno Haible  <bruno@clisp.org>
17930
17931         setenv: Tweaks.
17932         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17933         the test program.
17934         * doc/posix-functions/setenv.texi: Update platforms list.
17935
17936 2010-03-21  Bruno Haible  <bruno@clisp.org>
17937
17938         New module 'unlockpt'.
17939         * lib/unlockpt.c: New file, from glibc with modifications.
17940         * m4/unlockpt.m4: New file.
17941         * modules/unlockpt: New file.
17942         * lib/stdlib.in.h (unlockpt): New declaration.
17943         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17944         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17945         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17946         HAVE_UNLOCKPT.
17947         * doc/posix-functions/unlockpt.texi: Mention the new module.
17948         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17949         * config/srclist.txt: Add unlockpt.c (commented).
17950
17951 2010-03-21  Jim Meyering  <meyering@redhat.com>
17952
17953         maint.mk: prohibit inclusion of "intprops.h" without use
17954         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17955
17956 2010-03-21  Bruno Haible  <bruno@clisp.org>
17957
17958         New module 'grantpt'.
17959         * lib/grantpt.c: New file, from glibc with modifications.
17960         * m4/grantpt.m4: New file.
17961         * modules/grantpt: New file.
17962         * lib/stdlib.in.h (grantpt): New declaration.
17963         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17964         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17965         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17966         HAVE_GRANTPT.
17967         * doc/posix-functions/grantpt.texi: Mention the new module.
17968         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17969         * config/srclist.txt: Add grantpt.c (commented).
17970
17971 2010-03-21  Bruno Haible  <bruno@clisp.org>
17972
17973         New module 'pt_chown'.
17974         * lib/pt_chown.c: New file, from glibc with modifications.
17975         * lib/pty-private.h: New file, from glibc with modifications.
17976         * modules/pt_chown: New file.
17977         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17978
17979 2010-03-21  Bruno Haible  <bruno@clisp.org>
17980
17981         Tests for module 'ptsname'.
17982         * modules/ptsname-tests: New file.
17983         * tests/test-ptsname.c: New file.
17984
17985         New module 'ptsname'.
17986         * lib/ptsname.c: New file, from glibc with modifications.
17987         * m4/ptsname.m4: New file.
17988         * modules/ptsname: New file.
17989         * lib/stdlib.in.h (ptsname): New declaration.
17990         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17991         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17992         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17993         HAVE_PTSNAME.
17994         * doc/posix-functions/ptsname.texi: Mention the new module.
17995         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17996         * config/srclist.txt: Add ptsname.c (commented).
17997
17998 2010-03-21  Bruno Haible  <bruno@clisp.org>
17999
18000         Tests for module 'ttyname_r'.
18001         * modules/ttyname_r-tests: New file.
18002         * tests/test-ttyname_r.c: New file.
18003
18004         New module 'ttyname_r'.
18005         * lib/ttyname_r.c: New file.
18006         * m4/ttyname_r.m4: New file.
18007         * modules/ttyname_r: New file.
18008         * lib/unistd.in.h (ttyname_r): New declaration.
18009         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18010         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18011         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18012         HAVE_TTYNAME_R.
18013         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18014         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18015
18016 2010-03-20  Bruno Haible  <bruno@clisp.org>
18017
18018         signal: Undefine macro definitions in C++ mode.
18019         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18020         sigfillset): Undefine macro definitions from the system header in C++
18021         mode.
18022         Reported by John W. Eaton <jwe@gnu.org>.
18023
18024 2010-03-20  Bruno Haible  <bruno@clisp.org>
18025
18026         Ensure no #include statements inside extern "C" { ... }.
18027         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18028         contain #include statements.
18029         * lib/time.in.h: Likewise.
18030
18031 2010-03-20  Bruno Haible  <bruno@clisp.org>
18032
18033         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18034         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18035         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18036         Reported by John W. Eaton <jwe@gnu.org>.
18037
18038 2010-03-20  Bruno Haible  <bruno@clisp.org>
18039
18040         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18041         Reported by Jim Meyering.
18042
18043 2010-03-20  Bruno Haible  <bruno@clisp.org>
18044
18045         pipe: Set errno upon failure.
18046         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18047         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18048         errno value in error message.
18049
18050 2010-03-20  Bruno Haible  <bruno@clisp.org>
18051             Jim Meyering  <meyering@redhat.com>
18052
18053         lchown: Avoid "unused variable" warning.
18054         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18055
18056 2010-03-20  Bruno Haible  <bruno@clisp.org>
18057
18058         Work around unlink() bug on MacOS X 10.5.6.
18059         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18060         attempting to unlink a parent directory.
18061         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18062         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18063         activate for the replacement function.
18064         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18065
18066 2010-03-20  Bruno Haible  <bruno@clisp.org>
18067
18068         Fix link errors on Solaris 8.
18069         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18070         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18071
18072 2010-03-19  Jim Meyering  <meyering@redhat.com>
18073
18074         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18075         The _LIBC implementation of build_range_exp correctly honors the
18076         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18077         However, the non-_LIBC implementation would ignore that syntax-bit
18078         flag and return REG_ERANGE unconditionally.
18079         This change makes it honor that flag.
18080         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18081         Make two pointer parameters "const".
18082         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18083         (parse_bracket_exp): Update caller.
18084
18085         regex.m4: correct the reversed range endpoint ([b-a]) test
18086         * m4/regex.m4: When requiring that [b-a] evoke failure,
18087         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18088         test pass once again for x86-based systems.
18089
18090 2010-03-19  Bruno Haible  <bruno@clisp.org>
18091
18092         scandir: Fix link error on Solaris 8.
18093         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18094         macros.
18095
18096 2010-03-19  Bruno Haible  <bruno@clisp.org>
18097
18098         getusershell: Fix documentation.
18099         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18100         module.
18101         * doc/glibc-functions/setusershell.texi: Likewise.
18102
18103         getusershell: Provide declaration, missing on Solaris 9.
18104         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18105         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18106         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18107         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18109         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18110         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18111         HAVE_GETUSERSHELL.
18112         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18113
18114 2010-03-19  Bruno Haible  <bruno@clisp.org>
18115
18116         wctype: Provide iswblank function.
18117         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18118         exists and is fine.
18119         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18120         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18121         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18122         * doc/posix-functions/iswblank.texi: Update.
18123
18124 2010-03-19  Bruno Haible  <bruno@clisp.org>
18125
18126         Tests of module 'pty' in C++ mode.
18127         * modules/pty-tests: New file.
18128         * tests/test-pty-c++.cc: New file.
18129         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18130
18131 2010-03-19  Eric Blake  <eblake@redhat.com>
18132
18133         logb: fix documentation
18134         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18135         1.5 declaration bug.
18136
18137         forkpty, openpty: prefer glibc's const-safe prototype
18138         * lib/forkpty.c (rpl_forkpty): New file.
18139         * lib/openpty.c (rpl_openpty): Likewise.
18140         * modules/forkpty (Files): Distribute it.
18141         * modules/openpty (Files): Likewise.
18142         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18143         check...
18144         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18145         replacement for for non-const BSD signature.
18146         * modules/pty (Makefile.am): Substitute witnesses.
18147         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18148         * tests/test-forkpty.c: Update signature check.
18149         * tests/test-openpty.c: Likewise.
18150         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18151         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18152
18153         forkpty, openpty: split functions into new modules
18154         * modules/pty (Makefile.am): Substitute new witnesses.
18155         (Libraries): Move library detection...
18156         * modules/forkpty: ...into new module.
18157         * modules/openpty: Another new module.
18158         * modules/pty-tests: Rename and split...
18159         * modules/forkpty-tests: ...to this...
18160         * modules/openpty-tests: ...and this.
18161         * tests/test-pty.c: Rename and split...
18162         * tests/test-forkpty.c: ...to this...
18163         * tests/test-openpty.c: ...and this.
18164         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18165         (gl_PTY): Split library searching...
18166         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18167         (gl_FORKPTY, gl_OPENPTY): New macros.
18168         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18169         * NEWS: Mention the split.
18170         * MODULES.html.sh (Misc): Document the modules.
18171         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18172         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18173
18174         pty: improve replacement header
18175         * lib/pty.in.h: New file.
18176         * modules/pty (Files): Ship it.
18177         (Makefile.am): Always build replacement.
18178         * m4/pty.m4: Rename...
18179         * m4/pty_h.m4: ...to this.
18180         (gl_PTY): Modernize setting of witness macros; update check of
18181         forkpty to take proper advantage of cache.
18182         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18183
18184         getopt: avoid compiler warning
18185         * lib/getopt.c (attribute_hidden): Remove unused macro.
18186
18187 2010-03-18  Bruno Haible  <bruno@clisp.org>
18188
18189         Fix link errors on Solaris 8.
18190         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18191         * modules/search-tests (test_search_c___LDADD): Likewise.
18192         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18193         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18194         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18195         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18196         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18197         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18198         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18199
18200 2010-03-18  Bruno Haible  <bruno@clisp.org>
18201
18202         Fix bug introduced on 2010-03-14.
18203         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18204         (gl_SPAWN_H): Require it.
18205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18206         Reported by Simon Josefsson.
18207
18208 2010-03-18  Bruno Haible  <bruno@clisp.org>
18209
18210         Fix typo introduced on 2009-12-31.
18211         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18212         posix_spawn_file_actions_adddup2.
18213
18214 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18215         and Eric Blake  <eblake@redhat.com>
18216
18217         test-vc-list-files-git: make more robust
18218         * tests/test-vc-list-files-git.sh: Unset problematic environment
18219         variables.  Chain commands together.
18220
18221 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18222
18223         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18224         `AC_CHECK_DECL' invocation.
18225
18226 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18227
18228         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18229         appears before executable statements. Suggested by Petr Sumbera
18230         <Petr.Sumbera@Sun.COM>.
18231
18232 2010-03-14  Bruno Haible  <bruno@clisp.org>
18233
18234         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18235         portability problems. Instead use a simpler test.
18236         (main): Check that invalid arguments are rejected only on Linux.
18237
18238 2010-03-14  Bruno Haible  <bruno@clisp.org>
18239
18240         Fix bug introduced on 2009-12-31.
18241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18242         gl_PREREQ_SYS_H_WINSOCK2 always.
18243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18244         SYS_SOCKET_H variable.
18245         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18246         Update comments.
18247         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18249         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18250         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18251         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18252
18253 2010-03-14  Bruno Haible  <bruno@clisp.org>
18254
18255         Fix values returned by sinl, cosl.
18256         * lib/trigl.h: Add specification comments.
18257         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18258         that combines the values from the precomputed table with the values of
18259         the Chebyshev polynomials.
18260
18261 2010-03-14  Bruno Haible  <bruno@clisp.org>
18262
18263         Fix compilation error when modules 'posix_spawn[p]' are not used.
18264         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18266
18267 2010-03-14  Bruno Haible  <bruno@clisp.org>
18268
18269         Fix compilation error on mingw when module 'time_r' is not used.
18270         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18271         is 1.
18272         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18273         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18274         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18276
18277 2010-03-14  Bruno Haible  <bruno@clisp.org>
18278
18279         Fix compilation error with Sun C.
18280         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18281         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18282         instead of GCC specific ULONG_LONG_MAX.
18283         * lib/xstrtoll.c: Likewise.
18284         * lib/xstrtoull.c: Likewise.
18285
18286 2010-03-13  Bruno Haible  <bruno@clisp.org>
18287
18288         Allow the user to disable C++ code and tests.
18289         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18290         (gl_PROG_ANSI_CXX): Require it.
18291
18292 2010-03-13  Bruno Haible  <bruno@clisp.org>
18293
18294         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18295         cases.
18296
18297 2010-03-13  Bruno Haible  <bruno@clisp.org>
18298
18299         Test that gnulib does not break the standard C++ headers.
18300         * tests/test-locale-c++2.cc: New file.
18301         * modules/locale-tests (Files): Add it.
18302         (Makefile.am): Compile it for test-locale-c++.
18303         * tests/test-math-c++2.cc: New file.
18304         * modules/math-tests (Files): Add it.
18305         (Makefile.am): Compile it for test-math-c++.
18306         * tests/test-signal-c++2.cc: New file.
18307         * modules/signal-tests (Files): Add it.
18308         (Makefile.am): Compile it for test-signal-c++.
18309         * tests/test-stdio-c++2.cc: New file.
18310         * modules/stdio-tests (Files): Add it.
18311         (Makefile.am): Compile it for test-stdio-c++.
18312         * tests/test-stdlib-c++2.cc: New file.
18313         * modules/stdlib-tests (Files): Add it.
18314         (Makefile.am): Compile it for test-stdlib-c++.
18315         * tests/test-string-c++2.cc: New file.
18316         * modules/string-tests (Files): Add it.
18317         (Makefile.am): Compile it for test-string-c++.
18318         * tests/test-time-c++2.cc: New file.
18319         * modules/time-tests (Files): Add it.
18320         (Makefile.am): Compile it for test-time-c++.
18321         Reported by John W. Eaton <jwe@gnu.org>.
18322
18323 2010-03-13  Bruno Haible  <bruno@clisp.org>
18324
18325         * gnulib-tool (func_usage): Clarify which options are available for
18326         --create-testdir and --create-megatestdir.
18327
18328 2010-03-13  Bruno Haible  <bruno@clisp.org>
18329
18330         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18331         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18332         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18333         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18334         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18335         when appropriate.
18336         Reported by Jim Meyering.
18337
18338 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18339
18340         * gnulib-tool (func_import): Explain origin of code.
18341
18342 2010-03-12  Bruno Haible  <bruno@clisp.org>
18343
18344         Fix problem with automake's definition of CXXLINK.
18345         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18346         Reported by Simon Josefsson and Ludovic Courtès.
18347
18348 2010-03-12  Bruno Haible  <bruno@clisp.org>
18349
18350         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18351         stable releases.
18352
18353 2010-03-11  Bruno Haible  <bruno@clisp.org>
18354
18355         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18356         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18357         whether the system provides one variant or multiple variants of the
18358         function.
18359         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18360         C++ compilers.
18361         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18362         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18363         Reported by Jim Meyering.
18364
18365 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18366
18367         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18368
18369 2010-03-08  Bruno Haible  <bruno@clisp.org>
18370
18371         gnulib-tool: Add support for --libtool in --create-testdir.
18372         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18373         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18374
18375 2010-03-08  Eric Blake  <eblake@redhat.com>
18376
18377         gnulib-tool.texi: mention possibility of git submodule
18378         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18379         submodules.
18380         * doc/.gitignore: Ignore another generated file.
18381
18382 2010-03-08  Karl Berry  <karl@gnu.org>
18383
18384         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18385         of committing gnulib files while skipping others.
18386
18387 2010-03-07  Bruno Haible  <bruno@clisp.org>
18388
18389         Tests of module 'wctype' in C++ mode.
18390         * tests/test-wctype-c++.cc: New file.
18391         * modules/wctype-tests (Files): Add it and tests/signature.h.
18392         (Depends-on): Add ansi-c++-opt.
18393         (Makefile.am): Arrange to compile and run test-wctype-c++.
18394
18395         Tests of module 'wchar' in C++ mode.
18396         * tests/test-wchar-c++.cc: New file.
18397         * modules/wchar-tests (Files): Add it and tests/signature.h.
18398         (Depends-on): Add ansi-c++-opt.
18399         (Makefile.am): Arrange to compile and run test-wchar-c++.
18400         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18401         gl_MODULE_INDICATOR.
18402
18403         Tests of module 'unistd' in C++ mode.
18404         * tests/test-unistd-c++.cc: New file.
18405         * modules/unistd-tests (Files): Add it and tests/signature.h.
18406         (Depends-on): Add ansi-c++-opt.
18407         (Makefile.am): Arrange to compile and run test-unistd-c++.
18408         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18409         gl_MODULE_INDICATOR.
18410
18411         Tests of module 'time' in C++ mode.
18412         * tests/test-time-c++.cc: New file.
18413         * modules/time-tests (Files): Add it and tests/signature.h.
18414         (Depends-on): Add ansi-c++-opt.
18415         (Makefile.am): Arrange to compile and run test-time-c++.
18416         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18417
18418         Tests of module 'sys_time' in C++ mode.
18419         * tests/test-sys_time-c++.cc: New file.
18420         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18421         (Depends-on): Add ansi-c++-opt.
18422         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18423         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18424         gl_MODULE_INDICATOR.
18425
18426         Tests of module 'sys_stat' in C++ mode.
18427         * tests/test-sys_stat-c++.cc: New file.
18428         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18429         (Depends-on): Add ansi-c++-opt.
18430         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18431         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18432         gl_MODULE_INDICATOR.
18433
18434         Tests of module 'sys_socket' in C++ mode.
18435         * tests/test-sys_socket-c++.cc: New file.
18436         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18437         (Depends-on): Add ansi-c++-opt.
18438         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18440         gl_MODULE_INDICATOR.
18441
18442         Tests of module 'sys_select' in C++ mode.
18443         * tests/test-sys_select-c++.cc: New file.
18444         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18445         (Depends-on): Add ansi-c++-opt.
18446         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18447         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18448         gl_MODULE_INDICATOR.
18449
18450         Tests of module 'sys_ioctl' in C++ mode.
18451         * tests/test-sys_ioctl-c++.cc: New file.
18452         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18453         (Depends-on): Add ansi-c++-opt.
18454         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18456         gl_MODULE_INDICATOR.
18457
18458         Tests of module 'string' in C++ mode.
18459         * tests/test-string-c++.cc: New file.
18460         * modules/string-tests (Files): Add it and tests/signature.h.
18461         (Depends-on): Add ansi-c++-opt.
18462         (Makefile.am): Arrange to compile and run test-string-c++.
18463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18464         gl_MODULE_INDICATOR.
18465
18466         Tests of module 'stdlib' in C++ mode.
18467         * tests/test-stdlib-c++.cc: New file.
18468         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18469         (Depends-on): Add ansi-c++-opt.
18470         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18471         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18472         gl_MODULE_INDICATOR.
18473
18474         Tests of module 'stdio' in C++ mode.
18475         * tests/test-stdio-c++.cc: New file.
18476         * modules/stdio-tests (Files): Add it and tests/signature.h.
18477         (Depends-on): Add ansi-c++-opt.
18478         (Makefile.am): Arrange to compile and run test-stdio-c++.
18479         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18480         gl_MODULE_INDICATOR.
18481
18482         Tests of module 'spawn' in C++ mode.
18483         * tests/test-spawn-c++.cc: New file.
18484         * modules/spawn-tests (Files): Add it and tests/signature.h.
18485         (Depends-on): Add ansi-c++-opt.
18486         (Makefile.am): Arrange to compile and run test-spawn-c++.
18487         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18488         gl_MODULE_INDICATOR.
18489
18490         Tests of module 'signal' in C++ mode.
18491         * tests/test-signal-c++.cc: New file.
18492         * modules/signal-tests (Files): Add it and tests/signature.h.
18493         (Depends-on): Add ansi-c++-opt.
18494         (Makefile.am): Arrange to compile and run test-signal-c++.
18495         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18496         gl_MODULE_INDICATOR.
18497
18498         Tests of module 'search' in C++ mode.
18499         * tests/test-search-c++.cc: New file.
18500         * modules/search-tests (Files): Add it and tests/signature.h.
18501         (Depends-on): Add ansi-c++-opt.
18502         (Makefile.am): Arrange to compile and run test-search-c++.
18503         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18504         gl_MODULE_INDICATOR.
18505
18506         Tests of module 'math' in C++ mode.
18507         * tests/test-math-c++.cc: New file.
18508         * modules/math-tests (Files): Add it and tests/signature.h.
18509         (Depends-on): Add ansi-c++-opt.
18510         (Makefile.am): Arrange to compile and run test-math-c++.
18511         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18512
18513         Tests of module 'locale' in C++ mode.
18514         * tests/test-locale-c++.cc: New file.
18515         * modules/locale-tests (Files): Add it and tests/signature.h.
18516         (Depends-on): Add ansi-c++-opt.
18517         (Makefile.am): Arrange to compile and run test-locale-c++.
18518         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18519         gl_MODULE_INDICATOR.
18520
18521         Tests of module 'langinfo' in C++ mode.
18522         * tests/test-langinfo-c++.cc: New file.
18523         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18524         (Depends-on): Add ansi-c++-opt.
18525         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18526         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18527         gl_MODULE_INDICATOR.
18528
18529         Tests of module 'iconv-h' in C++ mode.
18530         * tests/test-iconv-h-c++.cc: New file.
18531         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18532         (Depends-on): Add ansi-c++-opt.
18533         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18534
18535         Tests of module 'glob' in C++ mode.
18536         * tests/test-glob-c++.cc: New file.
18537         * modules/glob-tests (Files): Add it.
18538         (Depends-on): Add ansi-c++-opt.
18539         (Makefile.am): Arrange to compile and run test-glob-c++.
18540
18541         Tests of module 'fcntl-h' in C++ mode.
18542         * tests/test-fcntl-h-c++.cc: New file.
18543         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18544         (Depends-on): Add ansi-c++-opt.
18545         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18546         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18547         gl_MODULE_INDICATOR.
18548
18549         Tests of module 'dirent' in C++ mode.
18550         * tests/test-dirent-c++.cc: New file.
18551         * modules/dirent-tests (Files): Add it and tests/signature.h.
18552         (Depends-on): Add ansi-c++-opt.
18553         (Makefile.am): Arrange to compile and run test-dirent-c++.
18554         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18555         gl_MODULE_INDICATOR.
18556
18557         New module 'ansi-c++-opt'.
18558         * modules/ansi-c++-opt: New file.
18559         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18560
18561         Document C++ namespace mode.
18562         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18563
18564         wctype: Avoid #define replacements in C++ mode.
18565         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18566         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18567         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18568         In C++, define a namespaced alias symbol.
18569         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18570         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18571         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18572         rule.
18573
18574         wchar: Avoid #define replacements in C++ mode.
18575         * lib/wchar.in.h: Include c++defs.h.
18576         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18577         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18578         symbol.
18579         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18580         * modules/wchar (Depends-on): Add c++defs.
18581         (Makefile.am): Update wchar.h rule.
18582
18583         unistd: Avoid #define replacements in C++ mode.
18584         * lib/unistd.in.h: Include c++defs.h.
18585         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18586         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18587         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18588         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18589         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18590         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18591         symbol.
18592         (environ): Update.
18593         * modules/unistd (Depends-on): Add c++defs.
18594         (Makefile.am): Update unistd.h rule.
18595
18596         time: Avoid #define replacements in C++ mode.
18597         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18598         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18599         define a namespaced alias symbol.
18600         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18601         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18602         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18603         * modules/time (Depends-on): Add c++defs, warn-on-use.
18604         (Makefile.am): Update time.h rule.
18605         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18606         * modules/nanosleep (configure.ac): Likewise.
18607         * modules/strptime (configure.ac): Likewise.
18608         * modules/timegm (configure.ac): Likewise.
18609
18610         sys_time: Avoid #define replacements in C++ mode.
18611         * lib/sys_time.in.h: Include c++defs.h.
18612         (gettimeofday): In C++, define a namespaced alias symbol.
18613         * modules/sys_time (Depends-on): Add c++defs.
18614         (Makefile.am): Update sys/time.h rule.
18615
18616         sys_stat: Avoid #define replacements in C++ mode.
18617         * lib/sys_stat.in.h: Include c++defs.h.
18618         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18619         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18620         namespaced alias symbol.
18621         In C++, define a namespaced alias symbol.
18622         * modules/sys_stat (Depends-on): Add c++defs.
18623         (Makefile.am): Update sys/stat.h rule.
18624
18625         sys_socket: Avoid #define replacements in C++ mode.
18626         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18627         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18628         definitions also when the system has a <sys/socket.h>.
18629         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18630         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18631         In C++, define a namespaced alias symbol.
18632         * modules/sys_socket (Depends-on): Add c++defs.
18633         (Makefile.am): Update sys/socket.h rule.
18634
18635         sys_select: Avoid #define replacements in C++ mode.
18636         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18637         definitions also when the system has a <sys/select.h>.
18638         (select): In C++, define a namespaced alias symbol.
18639         * modules/sys_select (Depends-on): Add c++defs.
18640         (Makefile.am): Update sys/select.h rule.
18641
18642         sys_ioctl: Avoid #define replacements in C++ mode.
18643         * lib/sys_ioctl.in.h: Include c++defs.h.
18644         (ioctl): In C++, define a namespaced alias symbol.
18645         * modules/sys_ioctl (Depends-on): Add c++defs.
18646         (Makefile.am): Update sys/ioctl.h rule.
18647
18648         string: Avoid #define replacements in C++ mode.
18649         * lib/string.in.h: Include c++defs.h.
18650         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18651         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18652         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18653         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18654         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18655         * modules/string (Depends-on): Add c++defs.
18656         (Makefile.am): Update string.h rule.
18657
18658         stdlib: Avoid #define replacements in C++ mode.
18659         * lib/stdlib.in.h: Include c++defs.h.
18660         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18661         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18662         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18663         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18664         symbol.
18665         * modules/stdlib (Depends-on): Add c++defs.
18666         (Makefile.am): Update stdlib.h rule.
18667
18668         stdio: Avoid #define replacements in C++ mode.
18669         * lib/stdio.in.h: Include c++defs.h.
18670         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18671         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18672         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18673         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18674         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18675         namespaced alias symbol.
18676         * modules/stdio (Depends-on): Add c++defs.
18677         (Makefile.am): Update stdio.h rule.
18678
18679         spawn: Avoid #define replacements in C++ mode.
18680         * lib/spawn.in.h: Include c++defs.h.
18681         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18682         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18683         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18684         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18685         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18686         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18687         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18688         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18689         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18690         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18691         In C++, define a namespaced alias symbol.
18692         * modules/spawn (Depends-on): Add c++defs.
18693         (Makefile.am): Update spawn.h rule.
18694
18695         signal: Avoid #define replacements in C++ mode.
18696         * lib/signal.in.h: Include c++defs.h.
18697         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18698         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18699         namespaced alias symbol.
18700         * modules/signal (Depends-on): Add c++defs.
18701         (Makefile.am): Update signal.h rule.
18702
18703         search: Avoid #define replacements in C++ mode.
18704         * lib/search.in.h: Include c++defs.h.
18705         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18706         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18707         symbol.
18708         * modules/search (Depends-on): Add c++defs.
18709         (Makefile.am): Update search.h rule.
18710
18711         math: Avoid #define replacements in C++ mode.
18712         * lib/math.in.h: Include c++defs.h.
18713         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18714         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18715         trunc, truncl): In C++, define a namespaced alias symbol.
18716         * modules/math (Depends-on): Add c++defs.
18717         (Makefile.am): Update math.h rule.
18718
18719         locale: Avoid #define replacements in C++ mode.
18720         * lib/locale.in.h: Include c++defs.h.
18721         (duplocale): In C++, define a namespaced alias symbol.
18722         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18723         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18724         * modules/locale (Depends-on): Add c++defs.
18725         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18726
18727         langinfo: Avoid #define replacements in C++ mode.
18728         * lib/langinfo.in.h: Include c++defs.h.
18729         (nl_langinfo): In C++, define a namespaced alias symbol.
18730         * modules/langinfo (Depends-on): Add c++defs.
18731         (Makefile.am): Update langinfo.h rule.
18732
18733         iconv-h: Avoid #define replacements in C++ mode.
18734         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18735         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18736         symbol.
18737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18738         whenever iconv is present.
18739         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18740         (Makefile.am): Update iconv.h rule.
18741
18742         glob: Avoid #define replacements in C++ mode.
18743         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18744         (_gl_glob_errfunc_fn): New type.
18745         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18746         symbol.
18747         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18748         (Makefile.am): Update glob.h rule.
18749
18750         fcntl-h: Avoid #define replacements in C++ mode.
18751         * lib/fcntl.in.h: Include c++defs.h.
18752         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18753         * modules/fcntl-h (Depends-on): Add c++defs.
18754         (Makefile.am): Update fcntl.h rule.
18755
18756         dirent: Avoid #define replacements in C++ mode.
18757         * lib/dirent.in.h: Include c++defs.h.
18758         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18759         namespaced alias symbol.
18760         (dirfd): Update declaration.
18761         * modules/dirent (Depends-on): Add c++defs.
18762         (Makefile.am): Update dirent.h rule.
18763
18764         ctype: Make it usable in C++ code.
18765         * lib/ctype.in.h: Include c++defs.h.
18766         (isblank): Declare as extern "C".
18767         * modules/ctype (Depends-on): Add c++defs.
18768         (Makefile.am): Update ctype.h rule.
18769
18770         New module 'c++defs'.
18771         * modules/c++defs: New file.
18772         * build-aux/c++defs.h: New file.
18773         Reported by John W. Eaton <jwe@gnu.org>.
18774
18775 2010-03-07  Bruno Haible  <bruno@clisp.org>
18776
18777         logb: Provide missing declaration for Cygwin.
18778         * lib/math.in.h (logb): New declaration.
18779         * m4/logb.m4: New file.
18780         * modules/logb (Files): Add m4/logb.m4.
18781         (Depends-on): Add math.
18782         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18783         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18785         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18786         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18787
18788 2010-03-07  Bruno Haible  <bruno@clisp.org>
18789
18790         Fix test-cond link error.
18791         * tests/test-cond.c: Include <stdio.h>.
18792
18793 2010-03-07  Bruno Haible  <bruno@clisp.org>
18794
18795         Fix test-dirent-safer link error.
18796         * modules/dirent-safer-tests (Makefile.am): Define
18797         test_dirent_safer_LDADD.
18798
18799 2010-03-07  Bruno Haible  <bruno@clisp.org>
18800
18801         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18802         among default module list.
18803
18804 2010-03-07  Bruno Haible  <bruno@clisp.org>
18805
18806         Fix link error on platforms with GNU libiconv.
18807         * modules/unistr/u8-strcoll-tests (Makefile): Define
18808         test_u8_strcoll_LDADD.
18809         * modules/unistr/u16-strcoll-tests (Makefile): Define
18810         test_u16_strcoll_LDADD.
18811         * modules/unistr/u32-strcoll-tests (Makefile): Define
18812         test_u32_strcoll_LDADD.
18813
18814 2010-03-07  Bruno Haible  <bruno@clisp.org>
18815
18816         Use POSIX declarations for socket functions.
18817         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18818         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18819         rpl_sendto): Change declaration to match POSIX.
18820         * lib/connect.c (rpl_connect): Likewise.
18821         * lib/accept.c (rpl_accept): Likewise.
18822         * lib/bind.c (rpl_bind): Likewise.
18823         * lib/getpeername.c (rpl_getpeername): Likewise.
18824         * lib/getsockname.c (rpl_getsockname): Likewise.
18825         * lib/recv.c (rpl_recv): Likewise.
18826         * lib/send.c (rpl_send): Likewise.
18827         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18828         * lib/sendto.c (rpl_sendto): Likewise.
18829
18830 2010-03-06  Bruno Haible  <bruno@clisp.org>
18831
18832         Clarify access, euidaccess, faccessat.
18833         * doc/posix-functions/faccessat.texi: Mention security problem under
18834         "Other problems", not "Portability problems".
18835         * doc/posix-functions/access.texi: Likewise. Mention a related security
18836         problem.
18837         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18838         * lib/euidaccess.c: Add comments about platforms.
18839         * lib/unistd.in.h (access, euidaccess): Add warnings.
18840
18841 2010-03-07  Bruno Haible  <bruno@clisp.org>
18842
18843         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18844         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18845         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18846         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18847         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18848         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18849         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18850         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18851         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18853         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18854         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18855         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18856         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18857         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18858         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18859         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18860         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18861         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18862         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18863         Likewise.
18864         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18865         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18866         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18867         Likewise.
18868         * tests/test-spawn.c (main): Make it work when
18869         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18870
18871 2010-03-07  Bruno Haible  <bruno@clisp.org>
18872
18873         Fix incorrect Makefile.am generation in German locale.
18874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18875         Execute sed command with character range in C locale.
18876
18877 2010-03-06  Bruno Haible  <bruno@clisp.org>
18878
18879         Tests for module 'iconv-h'.
18880         * modules/iconv-h-tests: New file.
18881         * tests/test-iconv-h.c: New file.
18882
18883         New module 'iconv-h'.
18884         * modules/iconv-h: New file.
18885         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18886         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18887         (configure.ac): Remove gl_ICONV_H.
18888         (Makefile.am): Remove rule for iconv.h.
18889
18890 2010-03-06  Bruno Haible  <bruno@clisp.org>
18891
18892         More consistent naming of *.m4 files.
18893         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18894         * modules/wctype (Files): Update.
18895
18896         More consistent naming of *.m4 files.
18897         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18898         * modules/wchar (Files): Update.
18899
18900 2010-03-06  Jim Meyering  <meyering@redhat.com>
18901
18902         euidaccess: relax license to LGPLv2+
18903         * modules/euidaccess (License): Relax to LGPLv2+.
18904
18905 2010-03-06  Bruno Haible  <bruno@clisp.org>
18906
18907         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18908         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18909         (Makefile.am): Augment lib_SOURCES instead.
18910
18911 2010-03-04  Jim Meyering  <meyering@redhat.com>
18912
18913         utime: remove obsolete module
18914         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18915         unnecessary for years, and has been marked as obsolete for 10 months.
18916         * modules/utime: Remove file.
18917         * lib/utime.c: Remove file.
18918         * m4/utime.m4: Remove file.
18919         * m4/utimes-null.m4: Remove file.
18920         * doc/posix-functions/utime.texi (utime): Remove reference to
18921         the module.  Move the sole "fixed by gnulib" item into the
18922         "problems not fixed by Gnulib" list.
18923         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18924
18925 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18926
18927         * modules/exit (License): Relax license to LGPLv2+.
18928         (Status): Mark as obsolete.
18929         * NEWS: Mention deprecated 'exit' module.
18930         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18931         of now obsolete 'exit'.
18932
18933 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18934
18935         fts-lgpl: remove unused module
18936         * modules/fts-lgpl: Remove.
18937         * MODULES.html.sh (func_all_modules): Adjust.
18938         * check-module (find_included_lib_files): Adjust.
18939         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18940
18941 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18942
18943         copy-acl: enhance Solaris ACL error handling
18944         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18945         * lib/set-mode-acl.c (qset_acl): Likewise.
18946
18947 2010-03-02  Bruno Haible  <bruno@clisp.org>
18948
18949         spawn: Don't override the system defined values on FreeBSD 8.
18950         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18951         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18952         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18953         if HAVE_POSIX_SPAWN is 1.
18954         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18955
18956 2010-03-01  Bruno Haible  <bruno@clisp.org>
18957
18958         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18959         regarding Automake.
18960
18961 2010-02-25  Bruno Haible  <bruno@clisp.org>
18962
18963         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18964         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18965         setting, not afterwards.
18966         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18967
18968 2010-02-24  Eric Blake  <eblake@redhat.com>
18969
18970         bootstrap, git-version-gen: use timestamp
18971         * build-aux/git-version-gen (scriptversion): Force UTC.
18972         * build-aux/bootstrap (scriptversion): New variable.
18973
18974         bootstrap: allow older git
18975         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18976         older than 1.6.4.  Requested by the libvirt project.
18977
18978 2010-02-23  Eric Blake  <eblake@redhat.com>
18979
18980         warn-on-use: work with old autoconf
18981         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18982         AS_VAR semantics of autoconf 2.60.
18983         Reported by Bruno Haible.
18984
18985         bootstrap: improve some comments
18986         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18987         clarification comments.
18988
18989         gettimeofday: provide correct function
18990         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18991         when replacement is declared, otherwise provide gettimeofday.
18992         Reported by Michael Goffioul.
18993
18994 2010-02-23  Jim Meyering  <meyering@redhat.com>
18995
18996         lib-ignore: relax license to "unlimited", not LGPLv2+
18997         * modules/lib-ignore (License): Relax to "unlimited".
18998
18999 2010-02-23  Jim Meyering  <meyering@redhat.com>
19000
19001         lib-ignore: relax license to LGPLv2+
19002         * modules/lib-ignore (License): Relax to LGPLv2+.
19003
19004 2010-02-22  Eric Blake  <eblake@redhat.com>
19005
19006         lseek: avoid bash 3.2 broken pipe bug
19007         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19008         warning from bash 3.2.
19009         Reported by Ben Pfaff, with analysis from Bruno Haible.
19010
19011         bootstrap: support non-FSF copyright holder
19012         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19013         bootstrap.conf override of COPYRIGHT_HOLDER.
19014         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19015
19016         bootstrap: interoperate with gettext 0.14.1
19017         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19018
19019         bootstrap: allow for alternate submodule location
19020         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19021         hardcoding submodule location.
19022         (gnulib_mk): Allow direct use of Makefile.am.
19023
19024         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19025         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19026         rather than reconfiguring where the submodule points.
19027
19028         gettimeofday: restore support for platforms that lack function
19029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19030         replacement if function is missing.
19031         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19032         * modules/sys_time (Makefile.am): Substitute it.
19033         * lib/sys_time.in.h (gettimeofday): Check it.
19034         Reported by Michael Goffioul.
19035
19036 2010-02-21  Bruno Haible  <bruno@clisp.org>
19037
19038         * lib/stdio.in.h (obstack_printf): Fix typo.
19039
19040 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19041
19042         vc-list-files: use bzr ls's -R option
19043         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19044         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19045
19046 2010-02-21  Jim Meyering  <meyering@redhat.com>
19047
19048         init.sh: fix EXEEXT shims to work also for names like test-prog
19049         * tests/init.sh: Re-exec a better shell, when needed.
19050         If the current shell lacks support for posix $(...), an init.sh-using
19051         test will now try to find a shell that supports that.  If EXEEXT is
19052         nonempty, we also require support for hyphen-in-alias-name and shell
19053         substitutions like ${var#glob}.  Failure to find such a shell results
19054         in a skipped test.
19055
19056 2010-02-21  Bruno Haible  <bruno@clisp.org>
19057
19058         Really work around around "broken pipe" error message from bash 3.2.
19059         * gnulib-tool (func_reset_sigpipe): Remove function.
19060         (echo): In bash 3.2, define to a function that uses printf.
19061         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19062
19063 2010-02-20  Bruno Haible  <bruno@clisp.org>
19064
19065         Restore support for automake 1.9.6 with autoconf 2.61.
19066         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19067         Reported by James Youngman <jay@gnu.org>.
19068
19069 2010-02-20  Bruno Haible  <bruno@clisp.org>
19070
19071         Improve *printf warning condition.
19072         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19073         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19074         and the function is overridden due to SIGPIPE emulation.
19075
19076 2010-02-20  Bruno Haible  <bruno@clisp.org>
19077
19078         * lib/stdio.in.h: Tweak comments.
19079
19080 2010-02-19  Bruno Haible  <bruno@clisp.org>
19081
19082         Make it easier to find modules. New gnulib-tool option '--find'.
19083         * gnulib-tool: New option --find.
19084         (func_usage): Document it.
19085         (func_sanitize_modulelist): New function, extracted from
19086         func_all_modules.
19087         (func_all_modules): Invoke it.
19088         * doc/gnulib-tool.texi (Which modules?): New node.
19089
19090 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19091
19092         * lib/sys_select.in.h: Provide select replacement even if
19093         sys/select.h exists on a system, for Interix.
19094
19095 2010-02-18  Jim Meyering  <meyering@redhat.com>
19096
19097         init.sh: don't use $(...) just yet
19098         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19099         to accommodate e.g., Solaris' /bin/sh.
19100
19101 2010-02-17  Bruno Haible  <bruno@clisp.org>
19102
19103         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19104         Reported by Ludovic Courtès <ludo@gnu.org>.
19105
19106 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19107
19108         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19109         linking with -lintl.
19110
19111 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19112
19113         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19114         if not provided by the system's netdb.h.  Reported by
19115         ludo@gnu.org (Ludovic Courtès).
19116
19117 2010-02-15  Jim Meyering  <meyering@redhat.com>
19118
19119         init.sh: improve portability and efficiency
19120         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19121         "dummy" in a for loop.
19122         Use '!', not '^' to select the complement of a character set used
19123         in a "case" statement.
19124         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19125         Suggestions from Eric Blake.
19126
19127         init.sh: automatically accommodate programs with the .exe suffix
19128         Automatically arrange for an invocation of "prog" to execute the
19129         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19130         may use the simpler "prog", yet still work when built on a system
19131         that requires specifying the added suffix.
19132         Do this by constructing a function named "prog" that invokes
19133         "prog.exe" for each .exe file in selected directories.
19134         * tests/init.sh (find_exe_basenames_): New function.
19135         (create_exe_shim_functions_): New function.
19136         (path_prepend_): Use it.
19137
19138         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19139         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19140         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19141
19142 2010-02-14  Jim Meyering  <meyering@redhat.com>
19143
19144         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19145         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19146         (sc_prohibit_hash_pjw_without_use): New rule.
19147
19148         maint.mk: allow the default upload destination dir to be overridden
19149         * top/maint.mk (upload_dest_dir_): Define with a default that
19150         preserves the status quo.
19151         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19152         Reported by Peter Simons.
19153
19154         maint.mk: prohibit inclusion of "hash.h" without_use
19155         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19156
19157 2010-02-10  Jim Meyering  <meyering@redhat.com>
19158
19159         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19160         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19161
19162 2010-02-09  Eric Blake  <ebb9@byu.net>
19163         and Bruno Haible  <bruno@clisp.org>
19164
19165         obstack-printf-posix: ensure declaration
19166         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19167         extracted from gl_FUNC_OBSTACK_PRINTF.
19168         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19169         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19170         Likewise.
19171         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19172         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19173         0.
19174
19175 2010-02-08  Bruno Haible  <bruno@clisp.org>
19176
19177         gnulib-tool: Fix typo in 2010-02-07 commit.
19178         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19179         Reported by Eric Blake.
19180
19181 2010-02-07  Bruno Haible  <bruno@clisp.org>
19182
19183         gnulib-tool: Fix up caching patches.
19184         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19185         option --no-cache. Use associative arrays when supported by the shell.
19186         (sed_comments): New variable.
19187         (modcache): Renamed from do_cache.
19188         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19189         abbreviate unnecessarily.
19190         (have_associative): New variable.
19191         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19192         way also for ksh and zsh.
19193         (func_init_sed_convert_to_cache_statements): New function, extracted
19194         from func_cache_lookup_module. Add support for associative arrays.
19195         Don't set the c_MODULE_cached variable here. Ignore all lines before
19196         the first field header. Remove only the final newline, not all trailing
19197         newlines. Support empty fields correctly. Limit the use of 'eval' to
19198         assignments.
19199         (func_get_description, func_get_status, func_get_notice,
19200         func_get_applicability, func_get_filelist, func_get_dependencies,
19201         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19202         func_get_automake_snippet, func_get_include_directive,
19203         func_get_link_directive, func_get_license, func_get_maintainer):
19204         Update documentation. List the unoptimized code first. Add support for
19205         associative arrays. Limit the use of 'eval' to assignments.
19206         (func_get_applicability): Undo stylistic pessimisations.
19207         (func_get_automake_snippet, func_get_include_directive): Reduce code
19208         duplication.
19209         (func_modules_transitive_closure, func_modules_add_dummy,
19210         func_modules_notice, func_modules_to_filelist, func_add_file,
19211         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19212         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19213         func_create_testdir, func_create_megatestdir): Update documentation.
19214
19215 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19216
19217         * gnulib-tool (func_cache_lookup_module): Store the module name
19218         belonging to the cache variable; error out if two different
19219         module names map to the same cache variable name.
19220
19221 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19222
19223         gnulib-tool: Make caching optional.
19224         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19225         Update matching short versions of --no-changelog.
19226         (func_usage): Update.
19227         (sed_extract_cache_prog): Renamed from ...
19228         (sed_extract_prog): ... this; revert to old extraction script.
19229         (func_get_description, func_get_status)
19230         (func_get_notice, func_get_applicability, func_get_filelist)
19231         (func_get_dependencies, func_get_autoconf_early_snippet)
19232         (func_get_autoconf_snippet, func_get_automake_snippet)
19233         (func_get_include_directive, func_get_link_directive)
19234         (func_get_license, func_get_maintainer): If $do_cache is false,
19235         use old, non-caching extraction scripts.
19236         Suggestion by Bruno Haible.
19237
19238 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19239
19240         gnulib-tool: cache module metainformation.
19241         * gnulib-tool (sed_extract_prog): Match newline before each
19242         header, and rewrite header to a shell variable suffix.
19243         (func_cache_var, func_cache_lookup_module): New functions,
19244         to turn a module name into a cache variable prefix, and to
19245         look up and cache module metainformation.
19246         (func_get_description, func_get_status)
19247         (func_get_notice, func_get_applicability, func_get_filelist)
19248         (func_get_dependencies, func_get_autoconf_early_snippet)
19249         (func_get_autoconf_snippet, func_get_automake_snippet)
19250         (func_get_include_directive, func_get_link_directive)
19251         (func_get_license, func_get_maintainer): Use
19252         func_cache_lookup_module.
19253
19254 2010-02-07  Bruno Haible  <bruno@clisp.org>
19255
19256         fnctl: Fix missing dependency.
19257         * modules/fcntl (Depends-on): Add getdtablesize.
19258         Reported by John W. Eaton <jwe@gnu.org>.
19259
19260 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19261
19262         Argp: fix recognition of short alias options.
19263
19264         * lib/argp-parse.c (convert_options): Fix improper use of
19265         `|' between character values.
19266         * tests/test-argp.c (group1_option): New alias option
19267         --read (-r).
19268         (group1_parser): Special handling for 'r'.
19269         (test15): New test case.
19270         (test_fun): Add test15.
19271         * tests/test-argp-2.sh: Update expected --help and --usage
19272         outputs.
19273
19274 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19275
19276         * tests/test-argp.c: Fix indentation.
19277
19278 2010-02-04  Eric Blake  <ebb9@byu.net>
19279
19280         gettimeofday: expose type of second argument
19281         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19282         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19283         * tests/test-gettimeofday.c: Use it to silence warning.
19284         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19285         the issue.
19286
19287 2010-02-03  Jim Meyering  <meyering@redhat.com>
19288
19289         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19290         * lib/regcomp.c (TYPE_SIGNED): Define.
19291         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19292
19293         regcomp.c: avoid a new -Wshadow warning
19294         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19295
19296 2010-02-01  Jim Meyering  <meyering@redhat.com>
19297
19298         removing useless parentheses in cpp #define directives
19299         For motivation, see commit c0221df4, "define STREQ(a,b)
19300         consistently, removing useless parentheses"
19301         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19302         * lib/mountlist.c (MNT_IGNORE): Likewise.
19303         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19304
19305 2010-02-01  Eric Blake  <ebb9@byu.net>
19306
19307         sys_time: use link-warning
19308         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19309         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19310         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19311         * modules/sys_time (Depends-on): Add warn-on-use.
19312         (Makefile.am): Always build replacement.
19313         (configure.ac): Update substitutions.
19314         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19315         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19316         bother with SYS_TIME_H.
19317         * modules/gettimeofday (configure.ac): Declare indicator.
19318         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19319         in use.
19320
19321         closein-tests: silence compiler warning
19322         * tests/test-closein.c (main): Ignore fread result.
19323         * modules/closein-tests (Depends-on): Add ignore-value.
19324
19325         tests: silence warning about system return
19326         * tests/test-areadlink-with-size.c (main): Ignore system result.
19327         * tests/test-areadlink.c (main): Likewise.
19328         * tests/test-areadlinkat-with-size.c (main): Likewise.
19329         * tests/test-areadlinkat.c (main): Likewise.
19330         * tests/test-canonicalize-lgpl.c (main): Likewise.
19331         * tests/test-canonicalize.c (main): Likewise.
19332         * tests/test-chown.c (main): Likewise.
19333         * tests/test-fchownat.c (main): Likewise.
19334         * tests/test-fdutimensat.c (main): Likewise.
19335         * tests/test-fstatat.c (main): Likewise.
19336         * tests/test-futimens.c (main): Likewise.
19337         * tests/test-lchown.c (main): Likewise.
19338         * tests/test-link.c (main): Likewise.
19339         * tests/test-linkat.c (main): Likewise.
19340         * tests/test-lstat.c (main): Likewise.
19341         * tests/test-mkdir.c (main): Likewise.
19342         * tests/test-mkdirat.c (main): Likewise.
19343         * tests/test-mkfifo.c (main): Likewise.
19344         * tests/test-mkfifoat.c (main): Likewise.
19345         * tests/test-mknod.c (main): Likewise.
19346         * tests/test-readlink.c (main): Likewise.
19347         * tests/test-remove.c (main): Likewise.
19348         * tests/test-rename.c (main): Likewise.
19349         * tests/test-renameat.c (main): Likewise.
19350         * tests/test-rmdir.c (main): Likewise.
19351         * tests/test-symlink.c (main): Likewise.
19352         * tests/test-symlinkat.c (main): Likewise.
19353         * tests/test-unlink.c (main): Likewise.
19354         * tests/test-unlinkat.c (main): Likewise.
19355         * tests/test-utimens.c (main): Likewise.
19356         * tests/test-utimensat.c (main): Likewise.
19357         * modules/areadlink-tests (Depends-on): Add ignore-value.
19358         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19359         * modules/areadlinkat-tests (Depends-on): Likewise.
19360         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19361         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19362         * modules/canonicalize-tests (Depends-on): Likewise.
19363         * modules/chown-tests (Depends-on): Likewise.
19364         * modules/fdutimensat-tests (Depends-on): Likewise.
19365         * modules/futimens-tests (Depends-on): Likewise.
19366         * modules/lchown-tests (Depends-on): Likewise.
19367         * modules/link-tests (Depends-on): Likewise.
19368         * modules/linkat-tests (Depends-on): Likewise.
19369         * modules/lstat-tests (Depends-on): Likewise.
19370         * modules/mkdir-tests (Depends-on): Likewise.
19371         * modules/mkfifo-tests (Depends-on): Likewise.
19372         * modules/mkfifoat-tests (Depends-on): Likewise.
19373         * modules/mknod-tests (Depends-on): Likewise.
19374         * modules/openat-tests (Depends-on): Likewise.
19375         * modules/readlink-tests (Depends-on): Likewise.
19376         * modules/remove-tests (Depends-on): Likewise.
19377         * modules/rename-tests (Depends-on): Likewise.
19378         * modules/renameat-tests (Depends-on): Likewise.
19379         * modules/rmdir-tests (Depends-on): Likewise.
19380         * modules/symlink-tests (Depends-on): Likewise.
19381         * modules/symlinkat-tests (Depends-on): Likewise.
19382         * modules/unlink-tests (Depends-on): Likewise.
19383         * modules/utimens-tests (Depends-on): Likewise.
19384         * modules/utimensat-tests (Depends-on): Likewise.
19385
19386 2010-01-31  Bruno Haible  <bruno@clisp.org>
19387
19388         Perform the same test for many <math.h> functions.
19389         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19390         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19391         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19392         of gl_MATHFUNC.
19393         * modules/acos (configure.ac): Likewise.
19394         * modules/asin (configure.ac): Likewise.
19395         * modules/atan (configure.ac): Likewise.
19396         * modules/atan2 (configure.ac): Likewise.
19397         * modules/cbrt (configure.ac): Likewise.
19398         * modules/copysign (configure.ac): Likewise.
19399         * modules/cos (configure.ac): Likewise.
19400         * modules/cosh (configure.ac): Likewise.
19401         * modules/erf (configure.ac): Likewise.
19402         * modules/erfc (configure.ac): Likewise.
19403         * modules/exp (configure.ac): Likewise.
19404         * modules/fmod (configure.ac): Likewise.
19405         * modules/hypot (configure.ac): Likewise.
19406         * modules/j0 (configure.ac): Likewise.
19407         * modules/j1 (configure.ac): Likewise.
19408         * modules/jn (configure.ac): Likewise.
19409         * modules/lgamma (configure.ac): Likewise.
19410         * modules/log (configure.ac): Likewise.
19411         * modules/log10 (configure.ac): Likewise.
19412         * modules/log1p (configure.ac): Likewise.
19413         * modules/pow (configure.ac): Likewise.
19414         * modules/remainder (configure.ac): Likewise.
19415         * modules/sin (configure.ac): Likewise.
19416         * modules/sinh (configure.ac): Likewise.
19417         * modules/tan (configure.ac): Likewise.
19418         * modules/tanh (configure.ac): Likewise.
19419         * modules/y0 (configure.ac): Likewise.
19420         * modules/y1 (configure.ac): Likewise.
19421         * modules/yn (configure.ac): Likewise.
19422         Suggested by Paolo Bonzini.
19423
19424 2010-01-31  Bruno Haible  <bruno@clisp.org>
19425
19426         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19427
19428 2010-01-31  Bruno Haible  <bruno@clisp.org>
19429
19430         Work around getdelim() bug on FreeBSD 8.0.
19431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19432         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19433         not work.
19434         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19435         is 1.
19436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19437         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19438         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19439         a non-zero size.
19440         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19441
19442 2010-01-31  Bruno Haible  <bruno@clisp.org>
19443
19444         Work around getline() bug on FreeBSD 8.0.
19445         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19446         and a non-zero size.
19447         * tests/test-getline.c (main): Likewise.
19448         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19449         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19450
19451 2010-01-28  Eric Blake  <ebb9@byu.net>
19452
19453         regex: fix build failure
19454         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19455         platforms.
19456
19457 2010-01-28  Jim Meyering  <meyering@redhat.com>
19458
19459         regex: do not ignore memory allocation failure
19460         * lib/regex_internal.c (create_cd_newstate): Detect
19461         re_node_set_init_copy failure.   Extracted from glibc commit
19462         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19463
19464         regex: sync more white-space changes from libc
19465         * lib/regex_internal.c: White-space only changes.
19466         * lib/regexec.c: Likewise.
19467
19468         regex: add many uses of __attribute_warn_unused_result__
19469         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19470         * lib/regexec.c: Likewise.
19471         Extracted from a messy glibc commit.
19472
19473         regcomp.c: spelling and merge-artifact from glibc
19474         * lib/regcomp.c: Merge remainder of glibc's
19475         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19476
19477         regcomp.c: sync white-space changes from glibc
19478         * lib/regcomp.c: Merge to accommodate white space
19479         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19480
19481         regcomp.c: do not ignore internal return values
19482         * lib/regcomp.c: Do not ignore internal return values.
19483         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19484         but without its white-space changes and spelling fixes.
19485
19486         regex_internal.h: define __attribute_warn_unused_result__
19487         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19488
19489         maint: add a syntax-check rule to check for vulnerable Makefile.in
19490         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19491
19492 2010-01-27  Jim Meyering  <meyering@redhat.com>
19493
19494         ncftpput-ftp: clean up spaces
19495         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19496         Remove trailing blanks.
19497
19498 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19499
19500         * build-aux/git-version-gen: Fix copyright statement.
19501         * build-aux/gnupload: Likewise.
19502         * tests/test-arcfour.c: Likewise.
19503         * tests/test-arctwo.c: Likewise.
19504         * tests/test-count-one-bits.c: Likewise.
19505         * tests/test-crc.c: Likewise.
19506         * tests/test-des.c: Likewise.
19507         * tests/test-gc-arcfour.c: Likewise.
19508         * tests/test-gc-arctwo.c: Likewise.
19509         * tests/test-gc-des.c: Likewise.
19510         * tests/test-gc-hmac-md5.c: Likewise.
19511         * tests/test-gc-hmac-sha1.c: Likewise.
19512         * tests/test-gc-md2.c: Likewise.
19513         * tests/test-gc-md4.c: Likewise.
19514         * tests/test-gc-md5.c: Likewise.
19515         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19516         * tests/test-gc-rijndael.c: Likewise.
19517         * tests/test-gc-sha1.c: Likewise.
19518         * tests/test-gc.c: Likewise.
19519         * tests/test-gethostname.c: Likewise.
19520         * tests/test-gettimeofday.c: Likewise.
19521         * tests/test-hash.c: Likewise.
19522         * tests/test-hmac-md5.c: Likewise.
19523         * tests/test-hmac-sha1.c: Likewise.
19524         * tests/test-md2.c: Likewise.
19525         * tests/test-md4.c: Likewise.
19526         * tests/test-md5.c: Likewise.
19527         * tests/test-memchr.c: Likewise.
19528         * tests/test-memchr2.c: Likewise.
19529         * tests/test-memcmp.c: Likewise.
19530         * tests/test-memmem.c: Likewise.
19531         * tests/test-memrchr.c: Likewise.
19532         * tests/test-rawmemchr.c: Likewise.
19533         * tests/test-read-file.c: Likewise.
19534         * tests/test-rijndael.c: Likewise.
19535         * tests/test-sockets.c: Likewise.
19536         * tests/test-strchrnul.c: Likewise.
19537         * tests/test-strstr.c: Likewise.
19538         * tests/test-strtod.c: Likewise.
19539         * build-aux/ncftpput-ftp: Likewise.
19540
19541 2010-01-26  Eric Blake  <ebb9@byu.net>
19542
19543         ignore-value: update recommended header name
19544         * modules/ignore-value (Include): Only use <> for headers that
19545         exist in glibc.
19546
19547 2010-01-26  Jim Meyering  <meyering@redhat.com>
19548
19549         test-userspec.c: avoid compiler warnings
19550         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19551         and "initialization discards qualifiers..." warnings.
19552         Put the first "uid" in its own scope, and make char* members "const".
19553
19554 2010-01-25  Bruno Haible  <bruno@clisp.org>
19555
19556         gnulib-tool: Make warning diagnostics consistent.
19557         * gnulib-tool (func_warning): New function.
19558         Use it everywhere where gnulib-tool produces output to stderr and it is
19559         not a fatal error.
19560
19561 2010-01-25  Bruno Haible  <bruno@clisp.org>
19562
19563         Fix test dependencies.
19564         * modules/xstrtol-tests (Depends-on): Add inttypes.
19565         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19566
19567 2010-01-25 Pádraig Brady <P@draigBrady.com>
19568
19569         syntax-check: detect incorrect boolean macro values in config.h
19570         * modules/maintainer-makefile (configure.ac): Parameterize the location
19571         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19572         The logic is from Eric Blake and the location indicated by Jim Meyering.
19573         Note the more natural CONFIG_HEADER name is prohibited by automake
19574         for backwards compatibility reasons.
19575         * top/maint.mk (sc_Wundef_boolean): New rule.
19576
19577 2010-01-25  Jim Meyering  <meyering@redhat.com>
19578
19579         bootstrap: detect MacOS 10.6's shasum, too
19580         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19581         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19582
19583 2010-01-23  Jim Meyering  <meyering@redhat.com>
19584
19585         xstrtoll: new module
19586         * modules/xstrtoll: New file.
19587         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19588         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19589         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19590         ./configure fails if you use this module and lack "long long".
19591         * modules/xstrtoll-tests: New module.
19592         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19593         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19594         new init.sh-based test framework.
19595
19596 2010-01-24  Bruno Haible  <bruno@clisp.org>
19597
19598         Tests for module 'yn'.
19599         * modules/yn-tests: New file.
19600         * tests/test-yn.c: New file.
19601
19602         Tests for module 'y1'.
19603         * modules/y1-tests: New file.
19604         * tests/test-y1.c: New file.
19605
19606         Tests for module 'y0'.
19607         * modules/y0-tests: New file.
19608         * tests/test-y0.c: New file.
19609
19610         Tests for module 'tanh'.
19611         * modules/tanh-tests: New file.
19612         * tests/test-tanh.c: New file.
19613
19614         Tests for module 'tan'.
19615         * modules/tan-tests: New file.
19616         * tests/test-tan.c: New file.
19617
19618         Tests for module 'sqrt'.
19619         * modules/sqrt-tests: New file.
19620         * tests/test-sqrt.c: New file.
19621
19622         Tests for module 'sinh'.
19623         * modules/sinh-tests: New file.
19624         * tests/test-sinh.c: New file.
19625
19626         Tests for module 'sin'.
19627         * modules/sin-tests: New file.
19628         * tests/test-sin.c: New file.
19629
19630         Tests for module 'rint'.
19631         * modules/rint-tests: New file.
19632         * tests/test-rint.c: New file.
19633
19634         Tests for module 'remainder'.
19635         * modules/remainder-tests: New file.
19636         * tests/test-remainder.c: New file.
19637
19638         Tests for module 'pow'.
19639         * modules/pow-tests: New file.
19640         * tests/test-pow.c: New file.
19641
19642         Tests for module 'nextafter'.
19643         * modules/nextafter-tests: New file.
19644         * tests/test-nextafter.c: New file.
19645
19646         Tests for module 'modf'.
19647         * modules/modf-tests: New file.
19648         * tests/test-modf.c: New file.
19649
19650         Tests for module 'logb'.
19651         * modules/logb-tests: New file.
19652         * tests/test-logb.c: New file.
19653
19654         Tests for module 'log1p'.
19655         * modules/log1p-tests: New file.
19656         * tests/test-log1p.c: New file.
19657
19658         Tests for module 'log10'.
19659         * modules/log10-tests: New file.
19660         * tests/test-log10.c: New file.
19661
19662         Tests for module 'log'.
19663         * modules/log-tests: New file.
19664         * tests/test-log.c: New file.
19665
19666         Tests for module 'lgamma'.
19667         * modules/lgamma-tests: New file.
19668         * tests/test-lgamma.c: New file.
19669
19670         Tests for module 'ldexp'.
19671         * modules/ldexp-tests: New file.
19672         * tests/test-ldexp.c: New file.
19673
19674         Tests for module 'jn'.
19675         * modules/jn-tests: New file.
19676         * tests/test-jn.c: New file.
19677
19678         Tests for module 'j1'.
19679         * modules/j1-tests: New file.
19680         * tests/test-j1.c: New file.
19681
19682         Tests for module 'j0'.
19683         * modules/j0-tests: New file.
19684         * tests/test-j0.c: New file.
19685
19686         Tests for module 'hypot'.
19687         * modules/hypot-tests: New file.
19688         * tests/test-hypot.c: New file.
19689
19690         Tests for module 'fmod'.
19691         * modules/fmod-tests: New file.
19692         * tests/test-fmod.c: New file.
19693
19694         Tests for module 'fabs'.
19695         * modules/fabs-tests: New file.
19696         * tests/test-fabs.c: New file.
19697
19698         Tests for module 'exp'.
19699         * modules/exp-tests: New file.
19700         * tests/test-exp.c: New file.
19701
19702         Tests for module 'erfc'.
19703         * modules/erfc-tests: New file.
19704         * tests/test-erfc.c: New file.
19705
19706         Tests for module 'erf'.
19707         * modules/erf-tests: New file.
19708         * tests/test-erf.c: New file.
19709
19710         Tests for module 'cosh'.
19711         * modules/cosh-tests: New file.
19712         * tests/test-cosh.c: New file.
19713
19714         Tests for module 'cos'.
19715         * modules/cos-tests: New file.
19716         * tests/test-cos.c: New file.
19717
19718         Tests for module 'copysign'.
19719         * modules/copysign-tests: New file.
19720         * tests/test-copysign.c: New file.
19721
19722         Tests for module 'cbrt'.
19723         * modules/cbrt-tests: New file.
19724         * tests/test-cbrt.c: New file.
19725
19726         Tests for module 'atan2'.
19727         * modules/atan2-tests: New file.
19728         * tests/test-atan2.c: New file.
19729
19730         Tests for module 'atan'.
19731         * modules/atan-tests: New file.
19732         * tests/test-atan.c: New file.
19733
19734         Tests for module 'asin'.
19735         * modules/asin-tests: New file.
19736         * tests/test-asin.c: New file.
19737
19738         Tests for module 'acos'.
19739         * modules/acos-tests: New file.
19740         * tests/test-acos.c: New file.
19741
19742 2010-01-24  Bruno Haible  <bruno@clisp.org>
19743
19744         Fix tests for common <math.h> functions.
19745         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19746         code snippet that references the function pointer, rather than merely
19747         calling the function. Substitute the FUNC_LIBM variable.
19748         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19749         * modules/acos (configure.ac): Likewise.
19750         * modules/asin (configure.ac): Likewise.
19751         * modules/atan (configure.ac): Likewise.
19752         * modules/atan2 (configure.ac): Likewise.
19753         * modules/cbrt (configure.ac): Likewise.
19754         * modules/copysign (configure.ac): Likewise.
19755         * modules/cos (configure.ac): Likewise.
19756         * modules/cosh (configure.ac): Likewise.
19757         * modules/erf (configure.ac): Likewise.
19758         * modules/erfc (configure.ac): Likewise.
19759         * modules/exp (configure.ac): Likewise.
19760         * modules/fabs (configure.ac): Likewise.
19761         * modules/fmod (configure.ac): Likewise.
19762         * modules/hypot (configure.ac): Likewise.
19763         * modules/j0 (configure.ac): Likewise.
19764         * modules/j1 (configure.ac): Likewise.
19765         * modules/jn (configure.ac): Likewise.
19766         * modules/ldexp (configure.ac): Likewise.
19767         * modules/lgamma (configure.ac): Likewise.
19768         * modules/log (configure.ac): Likewise.
19769         * modules/log10 (configure.ac): Likewise.
19770         * modules/log1p (configure.ac): Likewise.
19771         * modules/logb (configure.ac): Likewise.
19772         * modules/modf (configure.ac): Likewise.
19773         * modules/nextafter (configure.ac): Likewise.
19774         * modules/pow (configure.ac): Likewise.
19775         * modules/remainder (configure.ac): Likewise.
19776         * modules/rint (configure.ac): Likewise.
19777         * modules/sin (configure.ac): Likewise.
19778         * modules/sinh (configure.ac): Likewise.
19779         * modules/tan (configure.ac): Likewise.
19780         * modules/tanh (configure.ac): Likewise.
19781         * modules/y0 (configure.ac): Likewise.
19782         * modules/y1 (configure.ac): Likewise.
19783         * modules/yn (configure.ac): Likewise.
19784
19785 2010-01-24  Bruno Haible  <bruno@clisp.org>
19786
19787         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19788         * tests/test-acosl.c (x): New variable.
19789         (main): Store argument in x and fetch it from x.
19790         * tests/test-asinl.c (x): New variable.
19791         (main): Store argument in x and fetch it from x.
19792         * tests/test-atanl.c (x): New variable.
19793         (main): Store argument in x and fetch it from x.
19794         * tests/test-cosl.c (x): New variable.
19795         (main): Store argument in x and fetch it from x.
19796         * tests/test-expl.c (x): New variable.
19797         (main): Store argument in x and fetch it from x.
19798         * tests/test-logl.c (x): New variable.
19799         (main): Store argument in x and fetch it from x.
19800         * tests/test-sinl.c (x): New variable.
19801         (main): Store argument in x and fetch it from x.
19802         * tests/test-sqrtl.c (x): New variable.
19803         (main): Store argument in x and fetch it from x.
19804         * tests/test-tanl.c (x): New variable.
19805         (main): Store argument in x and fetch it from x.
19806
19807 2010-01-24  Bruno Haible  <bruno@clisp.org>
19808
19809         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19810         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19811         assignments to the initial TESTS_ENVIRONMENT.
19812         * doc/gnulib.texi (Unit test modules): Document it.
19813         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19814         TESTS_ENVIRONMENT.
19815         * modules/btowc-tests (Makefile.am): Likewise.
19816         * modules/c-stack-tests (Makefile.am): Likewise.
19817         * modules/c-strcase-tests (Makefile.am): Likewise.
19818         * modules/copy-file-tests (Makefile.am): Likewise.
19819         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19820         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19821         * modules/mbrtowc-tests (Makefile.am): Likewise.
19822         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19823         * modules/mbscasestr-tests (Makefile.am): Likewise.
19824         * modules/mbschr-tests (Makefile.am): Likewise.
19825         * modules/mbscspn-tests (Makefile.am): Likewise.
19826         * modules/mbsinit-tests (Makefile.am): Likewise.
19827         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19828         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19829         * modules/mbspbrk-tests (Makefile.am): Likewise.
19830         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19831         * modules/mbsrchr-tests (Makefile.am): Likewise.
19832         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19833         * modules/mbsspn-tests (Makefile.am): Likewise.
19834         * modules/mbsstr-tests (Makefile.am): Likewise.
19835         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19836         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19837         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19838         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19839         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19840         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19841         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19842         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19843         * modules/wcrtomb-tests (Makefile.am): Likewise.
19844         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19845         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19846         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19847         assignments from TESTS_ENVIRONMENT.
19848         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19849         augmentation.
19850         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19851         * modules/atexit-tests (Makefile.am): Likewise.
19852         * modules/binary-io-tests (Makefile.am): Likewise.
19853         * modules/closein-tests (Makefile.am): Likewise.
19854         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19855         * modules/exclude-tests (Makefile.am): Likewise.
19856         * modules/fflush-tests (Makefile.am): Likewise.
19857         * modules/fpending-tests (Makefile.am): Likewise.
19858         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19859         * modules/freadahead-tests (Makefile.am): Likewise.
19860         * modules/freadptr-tests (Makefile.am): Likewise.
19861         * modules/freadseek-tests (Makefile.am): Likewise.
19862         * modules/fseek-tests (Makefile.am): Likewise.
19863         * modules/fseeko-tests (Makefile.am): Likewise.
19864         * modules/ftell-tests (Makefile.am): Likewise.
19865         * modules/ftello-tests (Makefile.am): Likewise.
19866         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19867         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19868         * modules/lseek-tests (Makefile.am): Likewise.
19869         * modules/parse-duration-tests (Makefile.am): Likewise.
19870         * modules/perror-tests (Makefile.am): Likewise.
19871         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19872         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19873         * modules/pipe-tests (Makefile.am): Likewise.
19874         * modules/pread-tests (Makefile.am): Likewise.
19875         * modules/printf-posix-tests (Makefile.am): Likewise.
19876         * modules/select-tests (Makefile.am): Likewise.
19877         * modules/sigpipe-tests (Makefile.am): Likewise.
19878         * modules/tsearch-tests (Makefile.am): Likewise.
19879         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19880         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19881         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19882         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19883         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19884         * modules/version-etc-tests (Makefile.am): Likewise.
19885         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19886         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19887         * modules/xalloc-die-tests (Makefile.am): Likewise.
19888         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19889         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19890         * modules/xstrtol-tests (Makefile.am): Likewise.
19891         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19892         * modules/yesno-tests (Makefile.am): Likewise.
19893         Suggested by Jim Meyering.
19894
19895 2010-01-24  Bruno Haible  <bruno@clisp.org>
19896
19897         More documentation.
19898         * doc/gnulib.texi (Writing modules): New chapter.
19899         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19900         the new chapter.
19901
19902 2010-01-24  Jim Meyering  <meyering@redhat.com>
19903
19904         maint.mk: do not prepend "./" after filtering
19905         * top/maint.mk (_prepend_srcdir_prefix): New variable
19906         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19907         "./" when $(srcdir) is ".".
19908
19909         define STREQ(a,b) consistently, removing useless parentheses
19910         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19911         since the only risk is that "a" or "b" contains an unparenthesized
19912         comma, but if either did that, STREQ would have 3 or more arguments.
19913         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19914         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19915         * lib/hash-triple.c (STREQ): Likewise.
19916         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19917         * lib/getugroups.c (STREQ): Likewise.
19918
19919 2010-01-23  Jim Meyering  <meyering@redhat.com>
19920
19921         maint.mk: fix syntax-check in a non-srcdir build directory
19922         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19923         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19924
19925 2010-01-22  Jim Meyering  <meyering@redhat.com>
19926
19927         userspec: add unit tests
19928         * tests/test-userspec.c: New file.
19929         * modules/userspec-tests: Likewise.
19930
19931 2010-01-21  Jim Meyering  <meyering@redhat.com>
19932
19933         maint.mk: handle source file names containing "." robustly
19934         * top/maint.mk (_dot_escaped_srcdir): Define.
19935         (VC_LIST): Use it in LHS of sed substitution.
19936
19937 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19938
19939         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19940         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19941         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19942         from a non-srcdir build.
19943
19944 2010-01-20  Eric Blake  <ebb9@byu.net>
19945
19946         warn-on-use: use instead of link-warning
19947         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19948         * modules/unistd (Depends-on, Makefile.am): Likewise.
19949         * modules/arpa_inet (Depends-on): Replace link-warning with
19950         warn-on-use.
19951         (Makefile.am): Update rules accordingly.
19952         * modules/ctype (Depends-on, Makefile.am): Likewise.
19953         * modules/dirent (Depends-on, Makefile.am): Likewise.
19954         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19955         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19956         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19957         * modules/locale (Depends-on, Makefile.am): Likewise.
19958         * modules/math (Depends-on, Makefile.am): Likewise.
19959         * modules/search (Depends-on, Makefile.am): Likewise.
19960         * modules/signal (Depends-on, Makefile.am): Likewise.
19961         * modules/spawn (Depends-on, Makefile.am): Likewise.
19962         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19963         * modules/string (Depends-on, Makefile.am): Likewise.
19964         * modules/strings (Depends-on, Makefile.am): Likewise.
19965         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19966         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19967         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19968         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19969         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19970         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19971         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19972         * modules/wchar (Depends-on, Makefile.am): Likewise.
19973         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19974         should be poisoned.
19975         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19976         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19977         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19978         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19980         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19981         * m4/math_h.m4 (gl_MATH_H): Likewise.
19982         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19983         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19984         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19985         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19986         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19987         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19988         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19989         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19992         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19994         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19996         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19997         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19998         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19999         GL_LINK_WARNING.
20000         * lib/ctype.in.h: Likewise.
20001         * lib/dirent.in.h: Likewise.
20002         * lib/fcntl.in.h: Likewise.
20003         * lib/inttypes.in.h: Likewise.
20004         * lib/langinfo.in.h: Likewise.
20005         * lib/locale.in.h: Likewise.
20006         * lib/math.in.h: Likewise.
20007         * lib/search.in.h: Likewise.
20008         * lib/signal.in.h: Likewise.
20009         * lib/spawn.in.h: Likewise.
20010         * lib/stdio.in.h: Likewise.
20011         * lib/stdlib.in.h: Likewise.
20012         * lib/string.in.h: Likewise.
20013         * lib/strings.in.h: Likewise.
20014         * lib/sys_file.in.h: Likewise.
20015         * lib/sys_ioctl.in.h: Likewise.
20016         * lib/sys_select.in.h: Likewise.
20017         * lib/sys_socket.in.h: Likewise.
20018         * lib/sys_stat.in.h: Likewise.
20019         * lib/sys_times.in.h: Likewise.
20020         * lib/sys_utsname.in.h: Likewise.
20021         * lib/unistd.in.h: Likewise.
20022         * lib/wchar.in.h: Likewise.
20023
20024 2010-01-20  Bruno Haible  <bruno@clisp.org>
20025
20026         Avoid duplicate -lm.
20027         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20028         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20029         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20031         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20032         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20033         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20034         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20035         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20036         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20037         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20038         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20039         Reported by Paolo Bonzini.
20040
20041 2010-01-19  Bruno Haible  <bruno@clisp.org>
20042
20043         langinfo, nl_langinfo: Relicense under LGPLv2+.
20044         * modules/langinfo (License): Change to LGPLv2+.
20045         * modules/nl_langinfo (License): Likewise.
20046         Patch by David Lutterkort <lutter@redhat.com>.
20047
20048 2010-01-19  Bruno Haible  <bruno@clisp.org>
20049
20050         Avoid compilation error with cc on OSF/1 5.1.
20051         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20052         statement, not before.
20053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20054
20055 2010-01-18  Bruno Haible  <bruno@clisp.org>
20056
20057         Avoid a link error due to the __printf__ symbol.
20058         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20059         and 2.6.x.
20060         (__format__, __printf__): Remove definitions.
20061         * lib/argp-fmtstream.h: Likewise.
20062         * lib/argp.h: Likewise.
20063         * lib/error.h: Likewise.
20064         * lib/vasnprintf.h: Likewise.
20065         * lib/xprintf.h: Likewise.
20066         * lib/xvasprintf.h: Likewise.
20067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20068
20069 2010-01-18  Bruno Haible  <bruno@clisp.org>
20070
20071         Tests for module 'tanl'.
20072         * modules/tanl-tests: New file.
20073         * tests/test-tanl.c: New file.
20074
20075         Tests for module 'sqrtl'.
20076         * modules/sqrtl-tests: New file.
20077         * tests/test-sqrtl.c: New file.
20078
20079         Tests for module 'sinl'.
20080         * modules/sinl-tests: New file.
20081         * tests/test-sinl.c: New file.
20082
20083         Tests for module 'logl'.
20084         * modules/logl-tests: New file.
20085         * tests/test-logl.c: New file.
20086
20087         Tests for module 'expl'.
20088         * modules/expl-tests: New file.
20089         * tests/test-expl.c: New file.
20090
20091         Tests for module 'cosl'.
20092         * modules/cosl-tests: New file.
20093         * tests/test-cosl.c: New file.
20094
20095         Tests for module 'atanl'.
20096         * modules/atanl-tests: New file.
20097         * tests/test-atanl.c: New file.
20098
20099         Tests for module 'asinl'.
20100         * modules/asinl-tests: New file.
20101         * tests/test-asinl.c: New file.
20102
20103         Tests for module 'acosl'.
20104         * modules/acosl-tests: New file.
20105         * tests/test-acosl.c: New file.
20106
20107         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20108         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20109         tanl): Use the standard gnulib idiom.
20110         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20111         * lib/sinl.c: Likewise.
20112         * lib/tanl.c: Don't include trigl.c.
20113         (kernel_tanl): Make static.
20114         * lib/sincosl.c: Include trigl.h first.
20115         * lib/trigl.c: Likewise.
20116         * m4/acosl.m4: New file.
20117         * m4/asinl.m4: New file.
20118         * m4/atanl.m4: New file.
20119         * m4/cosl.m4: New file.
20120         * m4/expl.m4: New file.
20121         * m4/logl.m4: New file.
20122         * m4/sinl.m4: New file.
20123         * m4/sqrtl.m4: New file.
20124         * m4/tanl.m4: New file.
20125         * m4/mathl.m4: Remove file.
20126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20127         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20128         Don't initialize GNULIB_MATHL.
20129         * modules/acosl: New file.
20130         * modules/asinl: New file.
20131         * modules/atanl: New file.
20132         * modules/cosl: New file.
20133         * modules/expl: New file.
20134         * modules/logl: New file.
20135         * modules/sinl: New file.
20136         * modules/sqrtl: New file.
20137         * modules/tanl: New file.
20138         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20139         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20140         substitute GNULIB_MATHL.
20141         * modules/mathl: Rewritten.
20142         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20143         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20144         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20145         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20146         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20147         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20148         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20149         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20150         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20151
20152 2010-01-18  Bruno Haible  <bruno@clisp.org>
20153
20154         sqrt: Make gl_FUNC_SQRT requirable.
20155         * m4/sqrt.m4: New file.
20156         * modules/sqrt (Files): Add it.
20157         (configure.ac): Invoke gl_FUNC_SQRT.
20158
20159 2010-01-18  Bruno Haible  <bruno@clisp.org>
20160
20161         New modules for common <math.h> functions.
20162         * m4/mathfunc.m4: New file.
20163         * modules/acos: New file.
20164         * modules/asin: New file.
20165         * modules/atan: New file.
20166         * modules/atan2: New file.
20167         * modules/cbrt: New file.
20168         * modules/copysign: New file.
20169         * modules/cos: New file.
20170         * modules/cosh: New file.
20171         * modules/erf: New file.
20172         * modules/erfc: New file.
20173         * modules/exp: New file.
20174         * modules/fabs: New file.
20175         * modules/fmod: New file.
20176         * modules/hypot: New file.
20177         * modules/j0: New file.
20178         * modules/j1: New file.
20179         * modules/jn: New file.
20180         * modules/ldexp: New file.
20181         * modules/lgamma: New file.
20182         * modules/log: New file.
20183         * modules/log10: New file.
20184         * modules/log1p: New file.
20185         * modules/logb: New file.
20186         * modules/modf: New file.
20187         * modules/nextafter: New file.
20188         * modules/pow: New file.
20189         * modules/remainder: New file.
20190         * modules/rint: New file.
20191         * modules/sin: New file.
20192         * modules/sinh: New file.
20193         * modules/sqrt: New file.
20194         * modules/tan: New file.
20195         * modules/tanh: New file.
20196         * modules/y0: New file.
20197         * modules/y1: New file.
20198         * modules/yn: New file.
20199         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20200         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20201         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20202         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20203         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20204         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20205         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20206         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20207         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20208         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20209         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20210         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20211         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20212         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20213         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20214         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20215         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20216         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20217         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20218         * doc/posix-functions/log.texi: Mention the 'log' module.
20219         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20220         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20221         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20222         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20223         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20224         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20225         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20226         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20227         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20228         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20229         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20230         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20231         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20232         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20233         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20234         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20235
20236 2010-01-18  Jim Meyering  <meyering@redhat.com>
20237
20238         ignore-value: relax license to LGPLv2+
20239         * modules/ignore-value (License): Relax to LGPLv2+.
20240
20241         getdate: don't leak when TZ contains two or more '"'s
20242         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20243         double quote in TZ after the first one.
20244
20245         readtokens: do not leak internal token_lengths buffer
20246         * lib/readtokens.c (readtokens): Free the local, lengths,
20247         when the supplied "token_lengths" parameter is NULL.
20248
20249 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20250
20251         Fix a couple of missing LIBTHREAD link failures on AIX.
20252         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20253         $(LIBTHREAD).
20254         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20255
20256         Link test-poll against INET_PTON_LIB.
20257         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20258         for inet_pton on Solaris 10.
20259
20260 2010-01-17  Bruno Haible  <bruno@clisp.org>
20261
20262         unistdio/*-sprintf: Fix typo in module description.
20263         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20264         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20265         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20266         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20267         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20268         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20269         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20271
20272 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20273
20274         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20275         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20276         variables in shell case patterns, for AIX and HP-UX ksh.
20277
20278         Split large sed scripts, for HP-UX sed.
20279         * modules/stdio: Split sed scripts around 50 sed commands,
20280         to avoid HP-UX limit of 99 commands, in the near future.
20281         * modules/string: Likewise.
20282         * modules/unistd: Likewise.
20283
20284         gnulib-tool: avoid writing in the current directory.
20285         * gnulib-tool (func_emit_lib_Makefile_am)
20286         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20287         not in the current directory, so concurrent gnulib-tool
20288         instances do not interfere.
20289
20290 2010-01-16  Jim Meyering  <meyering@redhat.com>
20291
20292         doc: update users.txt
20293         * users.txt: Add grep.
20294         (diffutils, gzip): Update URLs.
20295
20296 2010-01-12  Bruno Haible  <bruno@clisp.org>
20297
20298         posix_spawn: Avoid test failure on Cygwin.
20299         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20300         characters.
20301         Reported by Simon Josefsson.
20302
20303 2010-01-12  Bruno Haible  <bruno@clisp.org>
20304
20305         * tests/test-cond.c (main): When skipping the test, show the reason.
20306
20307 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20308
20309         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20310
20311 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20312
20313         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20314         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20315
20316 2010-01-12  Eric Blake  <ebb9@byu.net>
20317
20318         build: guarantee AS_VAR_IF
20319         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20320         (gl_AS_VAR_IF): Move...
20321         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20322         Reported by Simon Josefsson.
20323
20324 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20325
20326         * lib/stdio.in.h: Fix typo.
20327
20328 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20329
20330         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20331         libgpg-error.
20332
20333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20334
20335         * tests/test-xalloc-die.sh: Use $EXEEXT.
20336
20337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20338             Bruno Haible  <bruno@clisp.org>
20339
20340         getlogin, getlogin_r: Avoid test failure.
20341         * tests/test-getlogin.c: Include <stdio.h>.
20342         (main): Skip the test when the function fails because stdin is not a
20343         tty.
20344         * tests/test-getlogin_r.c: Include <stdio.h>.
20345         (main): Skip the test when the function fails because stdin is not a
20346         tty.
20347
20348 2010-01-11  Eric Blake  <ebb9@byu.net>
20349
20350         tests: avoid more large file warnings
20351         * tests/test-fflush.c: Avoid warning about ftell use.
20352         * tests/test-fseek.c: Avoid warning about fseek use.
20353
20354 2010-01-10  Bruno Haible  <bruno@clisp.org>
20355
20356         nproc: Work better on Linux when /proc and /sys are not mounted.
20357         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20358         as lower bound when, on glibc/Linux systems,
20359         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20360         Suggested by Pádraig Brady <P@draigbrady.com>.
20361         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20362
20363         nproc: Refactor.
20364         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20365         extracted from num_processors.
20366         (num_processors): Call it.
20367
20368 2010-01-11  Jim Meyering  <meyering@redhat.com>
20369
20370         utimecmp: avoid new warning from upcoming gcc-4.5.0
20371         * lib/utimecmp.c (BILLION): Define using #define rather than an
20372         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20373
20374 2010-01-11  Eric Blake  <ebb9@byu.net>
20375
20376         math: add portability warnings for classification macros
20377         * modules/math (Depends-on): Add warn-on-use.
20378         (Makefile.am): Provide new substitutions.
20379         * m4/math_h.m4 (gl_MATH_H): Require inline.
20380         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20381         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20382         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20383         implement warnings.
20384
20385         unistd: warn on use of environ without module
20386         * modules/unistd (Depends-on): Add warn-on-use.
20387         (Makefile.am): Provide new substitutions.
20388         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20389         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20390
20391         stdio: warn on suspicious uses
20392         * modules/stdio (Depends-on): Add warn-on-use.
20393         (Makefile.am): Provide new substitutions.
20394         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20395         fseeko.
20396         * lib/stdio.in.h (gets): Always warn on use.
20397         (fseek, ftell): Adjust when warnings are issued, and honor
20398         _GL_NO_LARGE_FILES as a way to silence the warning.
20399         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20400         any warning about large file offsets.
20401         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20402         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20403         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20404         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20405         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20406         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20407         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20408         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20409
20410         warn-on-use: new module
20411         * modules/warn-on-use: New file.
20412         * build-aux/warn-on-use.h: Likewise.
20413         * m4/warn-on-use.m4: Likewise.
20414         * MODULES.html.sh (Support for building): Mention it.
20415
20416 2010-01-10  Bruno Haible  <bruno@clisp.org>
20417
20418         Tests for module 'unistr/u32-strdup'.
20419         * modules/unistr/u32-strdup-tests: New file.
20420         * tests/unistr/test-u32-strdup.c: New file.
20421
20422         Tests for module 'unistr/u16-strdup'.
20423         * modules/unistr/u16-strdup-tests: New file.
20424         * tests/unistr/test-u16-strdup.c: New file.
20425
20426         Tests for module 'unistr/u8-strdup'.
20427         * modules/unistr/u8-strdup-tests: New file.
20428         * tests/unistr/test-u8-strdup.c: New file.
20429         * tests/unistr/test-strdup.h: New file.
20430
20431         Tests for module 'unistr/u32-strncmp'.
20432         * modules/unistr/u32-strncmp-tests: New file.
20433         * tests/unistr/test-u32-strncmp.c: New file.
20434
20435         Tests for module 'unistr/u16-strncmp'.
20436         * modules/unistr/u16-strncmp-tests: New file.
20437         * tests/unistr/test-u16-strncmp.c: New file.
20438
20439         Tests for module 'unistr/u8-strncmp'.
20440         * modules/unistr/u8-strncmp-tests: New file.
20441         * tests/unistr/test-u8-strncmp.c: New file.
20442         * tests/unistr/test-strncmp.h: New file.
20443
20444         Tests for module 'unistr/u32-strcoll'.
20445         * modules/unistr/u32-strcoll-tests: New file.
20446         * tests/unistr/test-u32-strcoll.c: New file.
20447
20448         Tests for module 'unistr/u16-strcoll'.
20449         * modules/unistr/u16-strcoll-tests: New file.
20450         * tests/unistr/test-u16-strcoll.c: New file.
20451
20452         Tests for module 'unistr/u8-strcoll'.
20453         * modules/unistr/u8-strcoll-tests: New file.
20454         * tests/unistr/test-u8-strcoll.c: New file.
20455
20456         Tests for module 'unistr/u32-strcmp'.
20457         * modules/unistr/u32-strcmp-tests: New file.
20458         * tests/unistr/test-u32-strcmp.c: New file.
20459         * tests/unistr/test-u32-strcmp.h: New file.
20460
20461         Tests for module 'unistr/u16-strcmp'.
20462         * modules/unistr/u16-strcmp-tests: New file.
20463         * tests/unistr/test-u16-strcmp.c: New file.
20464         * tests/unistr/test-u16-strcmp.h: New file.
20465
20466         Tests for module 'unistr/u8-strcmp'.
20467         * modules/unistr/u8-strcmp-tests: New file.
20468         * tests/unistr/test-u8-strcmp.c: New file.
20469         * tests/unistr/test-u8-strcmp.h: New file.
20470         * tests/unistr/test-strcmp.h: New file.
20471
20472         Tests for module 'unistr/u32-strncat'.
20473         * modules/unistr/u32-strncat-tests: New file.
20474         * tests/unistr/test-u32-strncat.c: New file.
20475
20476         Tests for module 'unistr/u16-strncat'.
20477         * modules/unistr/u16-strncat-tests: New file.
20478         * tests/unistr/test-u16-strncat.c: New file.
20479
20480         Tests for module 'unistr/u8-strncat'.
20481         * modules/unistr/u8-strncat-tests: New file.
20482         * tests/unistr/test-u8-strncat.c: New file.
20483         * tests/unistr/test-strncat.h: New file.
20484
20485         Tests for module 'unistr/u32-strcat'.
20486         * modules/unistr/u32-strcat-tests: New file.
20487         * tests/unistr/test-u32-strcat.c: New file.
20488
20489         Tests for module 'unistr/u16-strcat'.
20490         * modules/unistr/u16-strcat-tests: New file.
20491         * tests/unistr/test-u16-strcat.c: New file.
20492
20493         Tests for module 'unistr/u8-strcat'.
20494         * modules/unistr/u8-strcat-tests: New file.
20495         * tests/unistr/test-u8-strcat.c: New file.
20496         * tests/unistr/test-strcat.h: New file.
20497
20498         Tests for module 'unistr/u32-stpncpy'.
20499         * modules/unistr/u32-stpncpy-tests: New file.
20500         * tests/unistr/test-u32-stpncpy.c: New file.
20501
20502         Tests for module 'unistr/u16-stpncpy'.
20503         * modules/unistr/u16-stpncpy-tests: New file.
20504         * tests/unistr/test-u16-stpncpy.c: New file.
20505
20506         Tests for module 'unistr/u8-stpncpy'.
20507         * modules/unistr/u8-stpncpy-tests: New file.
20508         * tests/unistr/test-u8-stpncpy.c: New file.
20509         * tests/unistr/test-stpncpy.h: New file.
20510
20511         Tests for module 'unistr/u32-strncpy'.
20512         * modules/unistr/u32-strncpy-tests: New file.
20513         * tests/unistr/test-u32-strncpy.c: New file.
20514
20515         Tests for module 'unistr/u16-strncpy'.
20516         * modules/unistr/u16-strncpy-tests: New file.
20517         * tests/unistr/test-u16-strncpy.c: New file.
20518
20519         Tests for module 'unistr/u8-strncpy'.
20520         * modules/unistr/u8-strncpy-tests: New file.
20521         * tests/unistr/test-u8-strncpy.c: New file.
20522         * tests/unistr/test-strncpy.h: New file.
20523
20524         Tests for module 'unistr/u32-stpcpy'.
20525         * modules/unistr/u32-stpcpy-tests: New file.
20526         * tests/unistr/test-u32-stpcpy.c: New file.
20527
20528         Tests for module 'unistr/u16-stpcpy'.
20529         * modules/unistr/u16-stpcpy-tests: New file.
20530         * tests/unistr/test-u16-stpcpy.c: New file.
20531
20532         Tests for module 'unistr/u8-stpcpy'.
20533         * modules/unistr/u8-stpcpy-tests: New file.
20534         * tests/unistr/test-u8-stpcpy.c: New file.
20535         * tests/unistr/test-stpcpy.h: New file.
20536
20537         Tests for module 'unistr/u32-strcpy'.
20538         * modules/unistr/u32-strcpy-tests: New file.
20539         * tests/unistr/test-u32-strcpy.c: New file.
20540
20541         Tests for module 'unistr/u16-strcpy'.
20542         * modules/unistr/u16-strcpy-tests: New file.
20543         * tests/unistr/test-u16-strcpy.c: New file.
20544
20545         Tests for module 'unistr/u8-strcpy'.
20546         * modules/unistr/u8-strcpy-tests: New file.
20547         * tests/unistr/test-u8-strcpy.c: New file.
20548         * tests/unistr/test-strcpy.h: New file.
20549
20550         Tests for module 'unistr/u32-strnlen'.
20551         * modules/unistr/u32-strnlen-tests: New file.
20552         * tests/unistr/test-u32-strnlen.c: New file.
20553
20554         Tests for module 'unistr/u16-strnlen'.
20555         * modules/unistr/u16-strnlen-tests: New file.
20556         * tests/unistr/test-u16-strnlen.c: New file.
20557
20558         Tests for module 'unistr/u8-strnlen'.
20559         * modules/unistr/u8-strnlen-tests: New file.
20560         * tests/unistr/test-u8-strnlen.c: New file.
20561         * tests/unistr/test-strnlen.h: New file.
20562
20563         Tests for module 'unistr/u32-strlen'.
20564         * modules/unistr/u32-strlen-tests: New file.
20565         * tests/unistr/test-u32-strlen.c: New file.
20566
20567         Tests for module 'unistr/u16-strlen'.
20568         * modules/unistr/u16-strlen-tests: New file.
20569         * tests/unistr/test-u16-strlen.c: New file.
20570
20571         Tests for module 'unistr/u8-strlen'.
20572         * modules/unistr/u8-strlen-tests: New file.
20573         * tests/unistr/test-u8-strlen.c: New file.
20574
20575         Tests for module 'unistr/u32-prev'.
20576         * modules/unistr/u32-prev-tests: New file.
20577         * tests/unistr/test-u32-prev.c: New file.
20578
20579         Tests for module 'unistr/u16-prev'.
20580         * modules/unistr/u16-prev-tests: New file.
20581         * tests/unistr/test-u16-prev.c: New file.
20582
20583         Tests for module 'unistr/u8-prev'.
20584         * modules/unistr/u8-prev-tests: New file.
20585         * tests/unistr/test-u8-prev.c: New file.
20586
20587         Tests for module 'unistr/u32-next'.
20588         * modules/unistr/u32-next-tests: New file.
20589         * tests/unistr/test-u32-next.c: New file.
20590
20591         Tests for module 'unistr/u16-next'.
20592         * modules/unistr/u16-next-tests: New file.
20593         * tests/unistr/test-u16-next.c: New file.
20594
20595         Tests for module 'unistr/u8-next'.
20596         * modules/unistr/u8-next-tests: New file.
20597         * tests/unistr/test-u8-next.c: New file.
20598
20599         Tests for module 'unistr/u32-strmbtouc'.
20600         * modules/unistr/u32-strmbtouc-tests: New file.
20601         * tests/unistr/test-u32-strmbtouc.c: New file.
20602
20603         Tests for module 'unistr/u16-strmbtouc'.
20604         * modules/unistr/u16-strmbtouc-tests: New file.
20605         * tests/unistr/test-u16-strmbtouc.c: New file.
20606
20607         Tests for module 'unistr/u8-strmbtouc'.
20608         * modules/unistr/u8-strmbtouc-tests: New file.
20609         * tests/unistr/test-u8-strmbtouc.c: New file.
20610
20611         Tests for module 'unistr/u32-strmblen'.
20612         * modules/unistr/u32-strmblen-tests: New file.
20613         * tests/unistr/test-u32-strmblen.c: New file.
20614
20615         Tests for module 'unistr/u16-strmblen'.
20616         * modules/unistr/u16-strmblen-tests: New file.
20617         * tests/unistr/test-u16-strmblen.c: New file.
20618
20619         Tests for module 'unistr/u8-strmblen'.
20620         * modules/unistr/u8-strmblen-tests: New file.
20621         * tests/unistr/test-u8-strmblen.c: New file.
20622
20623         Tests for module 'unistr/u32-cpy-alloc'.
20624         * modules/unistr/u32-cpy-alloc-tests: New file.
20625         * tests/unistr/test-u32-cpy-alloc.c: New file.
20626
20627         Tests for module 'unistr/u16-cpy-alloc'.
20628         * modules/unistr/u16-cpy-alloc-tests: New file.
20629         * tests/unistr/test-u16-cpy-alloc.c: New file.
20630
20631         Tests for module 'unistr/u8-cpy-alloc'.
20632         * modules/unistr/u8-cpy-alloc-tests: New file.
20633         * tests/unistr/test-u8-cpy-alloc.c: New file.
20634         * tests/unistr/test-cpy-alloc.h: New file.
20635
20636         Tests for module 'unistr/u32-mbsnlen'.
20637         * modules/unistr/u32-mbsnlen-tests: New file.
20638         * tests/unistr/test-u32-mbsnlen.c: New file.
20639
20640         Tests for module 'unistr/u16-mbsnlen'.
20641         * modules/unistr/u16-mbsnlen-tests: New file.
20642         * tests/unistr/test-u16-mbsnlen.c: New file.
20643
20644         Tests for module 'unistr/u8-mbsnlen'.
20645         * modules/unistr/u8-mbsnlen-tests: New file.
20646         * tests/unistr/test-u8-mbsnlen.c: New file.
20647
20648         Tests for module 'unistr/u32-chr'.
20649         * modules/unistr/u32-chr-tests: New file.
20650         * tests/unistr/test-u32-chr.c: New file.
20651
20652         Tests for module 'unistr/u16-chr'.
20653         * modules/unistr/u16-chr-tests: New file.
20654         * tests/unistr/test-u16-chr.c: New file.
20655
20656         Tests for module 'unistr/u8-chr'.
20657         * modules/unistr/u8-chr-tests: New file.
20658         * tests/unistr/test-u8-chr.c: New file.
20659         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20660
20661         Tests for module 'unistr/u32-cmp2'.
20662         * modules/unistr/u32-cmp2-tests: New file.
20663         * tests/unistr/test-u32-cmp2.c: New file.
20664
20665         Tests for module 'unistr/u16-cmp2'.
20666         * modules/unistr/u16-cmp2-tests: New file.
20667         * tests/unistr/test-u16-cmp2.c: New file.
20668
20669         Tests for module 'unistr/u8-cmp2'.
20670         * modules/unistr/u8-cmp2-tests: New file.
20671         * tests/unistr/test-u8-cmp2.c: New file.
20672         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20673
20674         Tests for module 'unistr/u32-cmp'.
20675         * modules/unistr/u32-cmp-tests: New file.
20676         * tests/unistr/test-u32-cmp.c: New file.
20677
20678         Tests for module 'unistr/u16-cmp'.
20679         * modules/unistr/u16-cmp-tests: New file.
20680         * tests/unistr/test-u16-cmp.c: New file.
20681
20682         Tests for module 'unistr/u8-cmp'.
20683         * modules/unistr/u8-cmp-tests: New file.
20684         * tests/unistr/test-u8-cmp.c: New file.
20685         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20686
20687         Tests for module 'unistr/u32-set'.
20688         * modules/unistr/u32-set-tests: New file.
20689         * tests/unistr/test-u32-set.c: New file.
20690
20691         Tests for module 'unistr/u16-set'.
20692         * modules/unistr/u16-set-tests: New file.
20693         * tests/unistr/test-u16-set.c: New file.
20694
20695         Tests for module 'unistr/u8-set'.
20696         * modules/unistr/u8-set-tests: New file.
20697         * tests/unistr/test-u8-set.c: New file.
20698         * tests/unistr/test-set.h: New file.
20699
20700         Tests for module 'unistr/u32-move'.
20701         * modules/unistr/u32-move-tests: New file.
20702         * tests/unistr/test-u32-move.c: New file.
20703
20704         Tests for module 'unistr/u16-move'.
20705         * modules/unistr/u16-move-tests: New file.
20706         * tests/unistr/test-u16-move.c: New file.
20707
20708         Tests for module 'unistr/u8-move'.
20709         * modules/unistr/u8-move-tests: New file.
20710         * tests/unistr/test-u8-move.c: New file.
20711         * tests/unistr/test-move.h: New file.
20712
20713         Tests for module 'unistr/u32-cpy'.
20714         * modules/unistr/u32-cpy-tests: New file.
20715         * tests/unistr/test-u32-cpy.c: New file.
20716
20717         Tests for module 'unistr/u16-cpy'.
20718         * modules/unistr/u16-cpy-tests: New file.
20719         * tests/unistr/test-u16-cpy.c: New file.
20720
20721         Tests for module 'unistr/u8-cpy'.
20722         * modules/unistr/u8-cpy-tests: New file.
20723         * tests/unistr/test-u8-cpy.c: New file.
20724         * tests/unistr/test-cpy.h: New file.
20725
20726 2010-01-09  Bruno Haible  <bruno@clisp.org>
20727
20728         Tests for module 'unistr/u32-uctomb'.
20729         * modules/unistr/u32-uctomb-tests: New file.
20730         * tests/unistr/test-u32-uctomb.c: New file.
20731
20732         Tests for module 'unistr/u16-uctomb'.
20733         * modules/unistr/u16-uctomb-tests: New file.
20734         * tests/unistr/test-u16-uctomb.c: New file.
20735
20736         Tests for module 'unistr/u8-uctomb'.
20737         * modules/unistr/u8-uctomb-tests: New file.
20738         * tests/unistr/test-u8-uctomb.c: New file.
20739
20740         Tests for module 'unistr/u32-mbtoucr'.
20741         * modules/unistr/u32-mbtoucr-tests: New file.
20742         * tests/unistr/test-u32-mbtoucr.c: New file.
20743
20744         Tests for module 'unistr/u16-mbtoucr'.
20745         * modules/unistr/u16-mbtoucr-tests: New file.
20746         * tests/unistr/test-u16-mbtoucr.c: New file.
20747
20748         Tests for module 'unistr/u8-mbtoucr'.
20749         * modules/unistr/u8-mbtoucr-tests: New file.
20750         * tests/unistr/test-u8-mbtoucr.c: New file.
20751
20752         Tests for module 'unistr/u32-mbtouc'.
20753         * modules/unistr/u32-mbtouc-tests: New file.
20754         * tests/unistr/test-u32-mbtouc.c: New file.
20755
20756         Tests for module 'unistr/u16-mbtouc'.
20757         * modules/unistr/u16-mbtouc-tests: New file.
20758         * tests/unistr/test-u16-mbtouc.c: New file.
20759
20760         Tests for module 'unistr/u8-mbtouc'.
20761         * modules/unistr/u8-mbtouc-tests: New file.
20762         * tests/unistr/test-u8-mbtouc.c: New file.
20763
20764         Tests for module 'unistr/u32-mbtouc-unsafe'.
20765         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20766         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20767         * tests/unistr/test-u32-mbtouc.h: New file.
20768
20769         Tests for module 'unistr/u16-mbtouc-unsafe'.
20770         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20771         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20772         * tests/unistr/test-u16-mbtouc.h: New file.
20773
20774         Tests for module 'unistr/u8-mbtouc-unsafe'.
20775         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20776         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20777         * tests/unistr/test-u8-mbtouc.h: New file.
20778
20779         Tests for module 'unistr/u32-mblen'.
20780         * modules/unistr/u32-mblen-tests: New file.
20781         * tests/unistr/test-u32-mblen.c: New file.
20782
20783         Tests for module 'unistr/u16-mblen'.
20784         * modules/unistr/u16-mblen-tests: New file.
20785         * tests/unistr/test-u16-mblen.c: New file.
20786
20787         Tests for module 'unistr/u8-mblen'.
20788         * modules/unistr/u8-mblen-tests: New file.
20789         * tests/unistr/test-u8-mblen.c: New file.
20790
20791         Tests for module 'unistr/u32-to-u16'.
20792         * modules/unistr/u32-to-u16-tests: New file.
20793         * tests/unistr/test-u32-to-u16.c: New file.
20794
20795         Tests for module 'unistr/u32-to-u8'.
20796         * modules/unistr/u32-to-u8-tests: New file.
20797         * tests/unistr/test-u32-to-u8.c: New file.
20798
20799         Tests for module 'unistr/u16-to-u32'.
20800         * modules/unistr/u16-to-u32-tests: New file.
20801         * tests/unistr/test-u16-to-u32.c: New file.
20802
20803         Tests for module 'unistr/u16-to-u8'.
20804         * modules/unistr/u16-to-u8-tests: New file.
20805         * tests/unistr/test-u16-to-u8.c: New file.
20806
20807         Tests for module 'unistr/u8-to-u32'.
20808         * modules/unistr/u8-to-u32-tests: New file.
20809         * tests/unistr/test-u8-to-u32.c: New file.
20810
20811         Tests for module 'unistr/u8-to-u16'.
20812         * modules/unistr/u8-to-u16-tests: New file.
20813         * tests/unistr/test-u8-to-u16.c: New file.
20814
20815         Tests for module 'unistr/u32-check'.
20816         * modules/unistr/u32-check-tests: New file.
20817         * tests/unistr/test-u32-check.c: New file.
20818
20819         Tests for module 'unistr/u16-check'.
20820         * modules/unistr/u16-check-tests: New file.
20821         * tests/unistr/test-u16-check.c: New file.
20822
20823         Tests for module 'unistr/u8-check'.
20824         * modules/unistr/u8-check-tests: New file.
20825         * tests/unistr/test-u8-check.c: New file.
20826
20827         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20828         (category_equals): New function.
20829         (main): Add more tests.
20830         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20831
20832         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20833
20834 2010-01-10  Bruno Haible  <bruno@clisp.org>
20835
20836         unistr/u*-strcoll: Try harder to distinguish different strings.
20837         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20838         compare s1 and s2 to see if they are different.
20839
20840 2010-01-10  Bruno Haible  <bruno@clisp.org>
20841
20842         unistr/u*-stpncpy: Fix the return value.
20843         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20844         description of the return value consistent with stpncpy in glibc.
20845         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20846         written non-NUL unit.
20847
20848 2010-01-10  Bruno Haible  <bruno@clisp.org>
20849
20850         unistr/u*-next: Add missing dependencies.
20851         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20852         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20853         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20854
20855 2010-01-10  Bruno Haible  <bruno@clisp.org>
20856
20857         unistr/u8-mbsnlen: Fix return value for incomplete character.
20858         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20859         u8_mblen.
20860         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20861         Remove unistr/u8-mblen.
20862         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20863         u16_mblen.
20864         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20865         Remove unistr/u16-mblen.
20866
20867 2010-01-10  Bruno Haible  <bruno@clisp.org>
20868
20869         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20870         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20871         Reported by Brian Gough <bjg@gnu.org> and
20872         Chris Clayton <chris2553@googlemail.com> via
20873         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20874
20875 2010-01-09  Bruno Haible  <bruno@clisp.org>
20876
20877         unistr/u16-to-u32: Reject invalid input.
20878         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20879         u16_mbtouc.
20880         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20881         Remove unistr/u16-mbtouc.
20882
20883         unistr/u16-to-u8: Reject invalid input.
20884         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20885         u16_mbtouc.
20886         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20887         Remove unistr/u16-mbtouc.
20888
20889         unistr/u8-to-u32: Reject invalid input.
20890         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20891         u8_mbtouc.
20892         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20893         Remove unistr/u8-mbtouc.
20894
20895         unistr/u8-to-u16: Reject invalid input.
20896         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20897         u8_mbtouc.
20898         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20899         Remove unistr/u8-mbtouc.
20900
20901 2010-01-09  Bruno Haible  <bruno@clisp.org>
20902
20903         Tests for module 'getlogin'.
20904         * modules/getlogin-tests: New file.
20905         * tests/test-getlogin.c: New file.
20906
20907         New module 'getlogin'.
20908         * lib/unistd.in.h (getlogin): New declaration.
20909         * lib/getlogin.c: New file.
20910         * m4/getlogin.m4: New file.
20911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20912         HAVE_GETLOGIN.
20913         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20914         HAVE_GETLOGIN.
20915         * modules/getlogin: New file.
20916         * doc/posix-functions/getlogin.texi: Mention the new module.
20917         Reported by John W. Eaton <jwe@gnu.org>.
20918
20919 2010-01-09  Bruno Haible  <bruno@clisp.org>
20920
20921         getlogin_r: Support for native Windows.
20922         * lib/getlogin_r.c: Include <windows.h>
20923         (getlogin_r): Implement for native Windows.
20924         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20925         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20926         via John W. Eaton <jwe@gnu.org>.
20927
20928 2010-01-09  Bruno Haible  <bruno@clisp.org>
20929
20930         getlogin_r: Small fixes.
20931         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20932         succeeds.
20933         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20934         before testing whether getlogin_r is declared. No need to set
20935         HAVE_DECL_GETLOGIN_R to 1.
20936         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20937
20938 2010-01-09  Bruno Haible  <bruno@clisp.org>
20939
20940         * lib/unistd.in.h (getlogin_r): Add comment.
20941
20942 2010-01-09  Bruno Haible  <bruno@clisp.org>
20943
20944         Tests for module 'getlogin_r'.
20945         * modules/getlogin_r-tests: New file.
20946         * tests/test-getlogin_r.c: New file.
20947
20948 2010-01-09  Jim Meyering  <meyering@redhat.com>
20949
20950         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20951         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20952         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20953
20954 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20955
20956         * lib/dup2.c (rpl_dup2): Improve comment.
20957
20958 2010-01-08  Eric Blake  <ebb9@byu.net>
20959
20960         maint.mk: allow packages to add makefile @@ exceptions
20961         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20962         (sc_makefile_check): Rename...
20963         (sc_makefile_at_at_check): ...to this, and use hook.
20964
20965         dup2: work around mingw bug
20966         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20967         Reported by Simon Josefsson.
20968
20969 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20970
20971         glob: Fix C++ compilation.
20972         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20973         C++.
20974
20975 2010-01-07  Bruno Haible  <bruno@clisp.org>
20976
20977         Fix indentation of wctype.in.h, broken since 2007-01-06.
20978         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20979
20980 2010-01-07  Bruno Haible  <bruno@clisp.org>
20981
20982         mbslen: Avoid collision with system function.
20983         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20984         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20985         * m4/mbslen.m4: New file.
20986         * modules/mbslen (Files): Add it.
20987         (configure.ac): Invoke gl_MBSLEN.
20988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20989         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20991         via Ian Beckwith <ianb@erislabs.net>.
20992
20993 2010-01-07  Bruno Haible  <bruno@clisp.org>
20994
20995         dirent: Document the last fix.
20996         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20997
20998 2010-01-07  Bruno Haible  <bruno@clisp.org>
20999
21000         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21001         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21002         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21003         va_list are defined.
21004         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21005         Reported by Eric Blake.
21006
21007 2010-01-07  Bruno Haible  <bruno@clisp.org>
21008
21009         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21010         * modules/xlist (Depends-on): Add 'list',
21011         * modules/xoset (Depends-on): Add 'oset'.
21012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21013
21014 2010-01-07  Bruno Haible  <bruno@clisp.org>
21015
21016         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21017         * doc/posix-functions/strncasecmp.texi: Likewise.
21018
21019 2010-01-07  Bruno Haible  <bruno@clisp.org>
21020
21021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21022
21023 2010-01-07  John W. Eaton  <jwe@octave.org>
21024
21025         wctype: allow C++ use
21026         * lib/wctype.in.h: Add extern "C" block for C++.
21027
21028 2010-01-06  Eric Blake  <ebb9@byu.net>
21029
21030         maint.mk: detect incorrect GFDL usage
21031         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21032
21033 2010-01-06  Jim Meyering  <meyering@redhat.com>
21034         and Eric Blake  <ebb9@byu.net>
21035
21036         maint.mk: ignore multi-line copyright in NEWS
21037         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21038
21039 2010-01-06  Eric Blake  <ebb9@byu.net>
21040
21041         select: add missing dependency
21042         * modules/select-tests (Depends-on): Move sockets dependency...
21043         * modules/select (Depends-on): ...here.
21044         Reported by Ian Beckwith.
21045
21046         doc: regenerate INSTALL
21047         * doc/INSTALL: Reflect recent autoconf update.
21048         * doc/INSTALL.ISO: Likewise.
21049         * doc/INSTALL.UTF-8: Likewise.
21050
21051         pread: fix compilation on glibc
21052         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21053         Reported by Ralf Wildenhues.
21054
21055         dirent: fix test failure
21056         * lib/dirent.in.h (includes): Guarantee ino_t.
21057         Reported by Ralf Wildenhues.
21058
21059 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21060
21061         linkat, renameat: avoid bad free
21062         * lib/at-func2.c (at_func2): Fix typo.
21063         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21064
21065 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21066
21067         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21068         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21069         to avoid failure of symlink test later.
21070
21071 2010-01-06  Eric Blake  <ebb9@byu.net>
21072
21073         stdio, unistd: guarantee ssize_t
21074         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21075         2008 are exposed when needed.
21076         * lib/stdio.in.h (includes): Likewise.
21077         Reported by Ralf Wildenhues.
21078
21079 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21080
21081         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21082         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21083         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21084
21085 2010-01-06  Jim Meyering  <meyering@redhat.com>
21086
21087         readtokens: this module *does* require xalloc.h
21088         It uses only functions that were omitted by the old syntax-check rule.
21089         * lib/readtokens.c: Include "xalloc.h" once again.
21090         * modules/readtokens (Depends-on): Add xalloc.
21091         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21092
21093 2010-01-05  Eric Blake  <ebb9@byu.net>
21094
21095         maint: support 'make announcement' from a VPATH build
21096         * top/maint.mk (announcement): Look for correct NEWS file.
21097
21098 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21099
21100         utimens (fdutimens): ignore a negative FD, per contract
21101         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21102         when we have a valid file descriptor.  Otherwise, using a brand
21103         new glibc (with just-patched futimens that now fails with EBADF)
21104         would cause this function to fail with ENOSYS.
21105         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21106         See also http://bugzilla.redhat.com/552320.
21107
21108 2010-01-05  Eric Blake  <ebb9@byu.net>
21109
21110         strcase: document what it provides
21111         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21112         gnulib module.
21113         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21114         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21115
21116 2010-01-05  Jim Meyering  <meyering@redhat.com>
21117
21118         maint: remove useless inclusions of "xalloc.h"
21119         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21120         * lib/readtokens.c: Likewise.
21121         * lib/same.c: Likewise.
21122         * modules/getloadavg (Depends-on): Remove xalloc.
21123         * modules/readtokens: Likewise.
21124         * modules/same: Likewise.
21125
21126         maint.mk: include 4 more function names in alloca.h-checking regexp
21127         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21128         regexp.  Before, we would give a false-positive (saying alloca.h
21129         is included unnecessarily) when the only uses involved omitted symbols.
21130
21131         xalloc.h: use consistent formatting
21132         * lib/xalloc.h: Move declarations to start in the first column.
21133
21134 2010-01-05  Eric Blake  <ebb9@byu.net>
21135
21136         mkdir: avoid xalloc
21137         * lib/mkdir.c (includes): Drop unused header.
21138         Reported by John W. Eaton.
21139
21140 2010-01-04  Jim Meyering  <meyering@redhat.com>
21141
21142         nl_langinfo: avoid configure-time syntax error
21143         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21144         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21145         the empty string.  Don't let that provoke a shell syntax error.
21146
21147         regcomp, regexec, fnmatch: avoid array bounds read error
21148         * lib/regcomp.c (build_equiv_class): From glibc:
21149         Use only the low 24 bits of a findidx return value as an index
21150         into the weights array.  Patch by Ulrich Drepper:
21151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21152         * lib/regexec.c (check_node_accept_bytes): Likewise.
21153         * lib/fnmatch_loop.c (FCT): Likewise.
21154
21155         regcomp: skip collseq lookup when there are no rules
21156         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21157         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21158
21159         regcomp: recognize ill-formed { } expressions
21160         * lib/regcomp.c (parse_dup_op): From glibc:
21161         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21162
21163         regcomp: fix typo in comment
21164         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21165         s/satisfy/satisfies/.
21166
21167         regcomp: sync from glibc: remove dead store
21168         * lib/regcomp.c (duplicate_node_closure): Remove useless
21169         search_duplicated_node call and dead store.
21170
21171         regcomp: sync from glibc; always use nl_langinfo
21172         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21173         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21174         * modules/regex (Depends-on): Add nl_langinfo.
21175
21176 2010-01-04  Eric Blake  <ebb9@byu.net>
21177
21178         fdopendir: fix configure test
21179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21180
21181 2010-01-01  Bruno Haible  <bruno@clisp.org>
21182
21183         wchar: Remove unused configure check.
21184         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21185
21186 2010-01-01  Eric Blake  <ebb9@byu.net>
21187
21188         headers: make check of system header explicit
21189         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21190         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21191         ourselves.
21192         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21195         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21196         internals.
21197         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21198         missing.
21199         Suggested by Bruno Haible.
21200
21201 2010-01-01  Jim Meyering  <meyering@redhat.com>
21202
21203         ChangeLog: tweak to eliminate unnecessary copyright line
21204         * ChangeLog: Remove a copyright line that was mistakenly updated
21205         by today's update-copyright run.  Reported by Eric Blake.
21206
21207         test-update-copyright: don't let envvar setting cause test failure
21208         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21209
21210 2010-01-01  Bruno Haible  <bruno@clisp.org>
21211
21212         localename: Avoid gcc warning.
21213         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21214         function if it is not used.
21215
21216 2010-01-01  Jim Meyering  <meyering@redhat.com>
21217
21218         update nearly all FSF copyright year lists to include 2010
21219         Use the same procedure as for 2009, outlined in
21220         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21221
21222         version-etc: set COPYRIGHT_YEAR to 2010
21223         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21224
21225 2009-12-31  Eric Blake  <ebb9@byu.net>
21226
21227         doc: correct availability of cygwin 1.5.x getopt
21228         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21229         variables.
21230         * doc/posix-functions/opterr.texi (opterr): Likewise.
21231         * doc/posix-functions/optind.texi (optind): Likewise.
21232         * doc/posix-functions/optopt.texi (optopt): Likewise.
21233         * doc/posix-functions/tzname.texi (tzname): Likewise.
21234
21235         openat: update maintainer
21236         * modules/openat (Maintainer): Add myself.
21237
21238         utimens: avoid shadowing warning
21239         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21240         buffers into one, to avoid shadowing, as well as avoiding a
21241         redundant stat.
21242         Reported by Jim Meyering.
21243
21244         test-dup2: avoid compiler warning
21245         * tests/test-dup2.c (is_inheritable): Only define if used.
21246
21247 2010-01-01  Bruno Haible  <bruno@clisp.org>
21248
21249         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21250         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21251         defined, use wctomb instead of wcrtomb.
21252
21253 2010-01-01  Bruno Haible  <bruno@clisp.org>
21254
21255         iconv: Reject native Solaris iconv.
21256         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21257         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21258
21259 2009-12-31  Bruno Haible  <bruno@clisp.org>
21260
21261         * tests/test-signal.c (main): Remove test of 'SIG'.
21262
21263 2009-12-31  Bruno Haible  <bruno@clisp.org>
21264
21265         spawn: Fix incomplete fix.
21266         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21267         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21268         warnings for GNULIB_POSIXCHECK again.
21269         Reported by Eric Blake.
21270
21271 2009-12-31  Bruno Haible  <bruno@clisp.org>
21272
21273         Avoid namespace pollution on glibc systems.
21274         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21275         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21276         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21277         glibc systems.
21278
21279 2009-12-31  Bruno Haible  <bruno@clisp.org>
21280
21281         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21282         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21283         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21285         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21286         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21287         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21288
21289 2009-12-31  Bruno Haible  <bruno@clisp.org>
21290
21291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21292         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21293         afterwards.
21294
21295 2009-12-31  Bruno Haible  <bruno@clisp.org>
21296
21297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21298         SYS_UTSNAME_H.
21299
21300 2009-12-31  Bruno Haible  <bruno@clisp.org>
21301
21302         spawn: Fix misapplied patch.
21303         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21304         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21305         warnings for GNULIB_POSIXCHECK.
21306
21307 2009-12-31  Bruno Haible  <bruno@clisp.org>
21308
21309         times: Update after sys_times changed.
21310         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21311         * modules/times (Files): Add it.
21312         (configure.ac): Invoke gl_FUNC_TIMES.
21313
21314 2009-12-31  Bruno Haible  <bruno@clisp.org>
21315
21316         Use AC_C_INLINE where necessary.
21317         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21318         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21320         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21321         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21322         * m4/mbiter.m4 (gl_MBITER): Likewise.
21323         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21324         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21325         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21326         * modules/u64 (configure.ac): Likewise.
21327
21328 2009-12-31  Bruno Haible  <bruno@clisp.org>
21329
21330         Use AC_C_INLINE instead of module 'inline' where possible.
21331         * modules/inline (Description): Clarify purpose.
21332         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21333         * modules/count-one-bits (Depends-on): Remove inline.
21334         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21335         * modules/openat (Depends-on): Remove inline.
21336         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21337         instead of depending on module 'inline'.
21338         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21339         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21340         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21341         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21342         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21343         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21344         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21345         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21346         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21347         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21348         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21349         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21350         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21351         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21352         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21353         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21354         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21355         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21356         Likewise.
21357         * modules/unictype/property-ascii-hex-digit (Depends-on,
21358         configure.ac): Likewise.
21359         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21360         configure.ac): Likewise.
21361         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21362         configure.ac): Likewise.
21363         * modules/unictype/property-bidi-block-separator (Depends-on,
21364         configure.ac): Likewise.
21365         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21366         configure.ac): Likewise.
21367         * modules/unictype/property-bidi-common-separator (Depends-on,
21368         configure.ac): Likewise.
21369         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21370         Likewise.
21371         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21372         configure.ac): Likewise.
21373         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21374         configure.ac): Likewise.
21375         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21376         configure.ac): Likewise.
21377         * modules/unictype/property-bidi-european-digit (Depends-on,
21378         configure.ac): Likewise.
21379         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21380         configure.ac): Likewise.
21381         * modules/unictype/property-bidi-left-to-right (Depends-on,
21382         configure.ac): Likewise.
21383         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21384         configure.ac): Likewise.
21385         * modules/unictype/property-bidi-other-neutral (Depends-on,
21386         configure.ac): Likewise.
21387         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21388         Likewise.
21389         * modules/unictype/property-bidi-segment-separator (Depends-on,
21390         configure.ac): Likewise.
21391         * modules/unictype/property-bidi-whitespace (Depends-on,
21392         configure.ac): Likewise.
21393         * modules/unictype/property-combining (Depends-on, configure.ac):
21394         Likewise.
21395         * modules/unictype/property-composite (Depends-on, configure.ac):
21396         Likewise.
21397         * modules/unictype/property-currency-symbol (Depends-on,
21398         configure.ac): Likewise.
21399         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21400         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21401         Likewise.
21402         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21403         configure.ac): Likewise.
21404         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21405         Likewise.
21406         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21407         Likewise.
21408         * modules/unictype/property-extender (Depends-on, configure.ac):
21409         Likewise.
21410         * modules/unictype/property-format-control (Depends-on, configure.ac):
21411         Likewise.
21412         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21413         Likewise.
21414         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21415         Likewise.
21416         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21417         Likewise.
21418         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21419         Likewise.
21420         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21421         Likewise.
21422         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21423         Likewise.
21424         * modules/unictype/property-id-start (Depends-on, configure.ac):
21425         Likewise.
21426         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21427         Likewise.
21428         * modules/unictype/property-ids-binary-operator (Depends-on,
21429         configure.ac): Likewise.
21430         * modules/unictype/property-ids-trinary-operator (Depends-on,
21431         configure.ac): Likewise.
21432         * modules/unictype/property-ignorable-control (Depends-on,
21433         configure.ac): Likewise.
21434         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21435         Likewise.
21436         * modules/unictype/property-join-control (Depends-on, configure.ac):
21437         Likewise.
21438         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21439         Likewise.
21440         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21441         Likewise.
21442         * modules/unictype/property-logical-order-exception (Depends-on,
21443         configure.ac): Likewise.
21444         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21445         Likewise.
21446         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21447         * modules/unictype/property-non-break (Depends-on, configure.ac):
21448         Likewise.
21449         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21450         Likewise.
21451         * modules/unictype/property-numeric (Depends-on, configure.ac):
21452         Likewise.
21453         * modules/unictype/property-other-alphabetic (Depends-on,
21454         configure.ac): Likewise.
21455         * modules/unictype/property-other-default-ignorable-code-point
21456         (Depends-on, configure.ac): Likewise.
21457         * modules/unictype/property-other-grapheme-extend (Depends-on,
21458         configure.ac): Likewise.
21459         * modules/unictype/property-other-id-continue (Depends-on,
21460         configure.ac): Likewise.
21461         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21462         Likewise.
21463         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21464         Likewise.
21465         * modules/unictype/property-other-math (Depends-on, configure.ac):
21466         Likewise.
21467         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21468         Likewise.
21469         * modules/unictype/property-paired-punctuation (Depends-on,
21470         configure.ac): Likewise.
21471         * modules/unictype/property-paragraph-separator (Depends-on,
21472         configure.ac): Likewise.
21473         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21474         Likewise.
21475         * modules/unictype/property-pattern-white-space (Depends-on,
21476         configure.ac): Likewise.
21477         * modules/unictype/property-private-use (Depends-on, configure.ac):
21478         Likewise.
21479         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21480         Likewise.
21481         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21482         Likewise.
21483         * modules/unictype/property-radical (Depends-on, configure.ac):
21484         Likewise.
21485         * modules/unictype/property-sentence-terminal (Depends-on,
21486         configure.ac): Likewise.
21487         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21488         Likewise.
21489         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21490         * modules/unictype/property-terminal-punctuation (Depends-on,
21491         configure.ac): Likewise.
21492         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21493         Likewise.
21494         * modules/unictype/property-unassigned-code-value (Depends-on,
21495         configure.ac): Likewise.
21496         * modules/unictype/property-unified-ideograph (Depends-on,
21497         configure.ac): Likewise.
21498         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21499         Likewise.
21500         * modules/unictype/property-variation-selector (Depends-on,
21501         configure.ac): Likewise.
21502         * modules/unictype/property-white-space (Depends-on, configure.ac):
21503         Likewise.
21504         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21505         Likewise.
21506         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21507         Likewise.
21508         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21509         Likewise.
21510         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21511         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21512         Likewise.
21513
21514 2009-12-31  Bruno Haible  <bruno@clisp.org>
21515
21516         Remove unnecessary AC_C_INLINE invocation.
21517         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21518         since 2009-08-21.
21519
21520 2009-12-31  Jim Meyering  <meyering@redhat.com>
21521
21522         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21523         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21524         With this change, we can all remove the gpg_key_ID = ... definition
21525         from our respective cfg.mk files.
21526
21527         maint.mk: create announcement template in ~/, not in /tmp
21528         * top/maint.mk (emit_upload_commands): Adjust.
21529         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21530         Remove temporary file, .ci-msg.
21531
21532 2009-12-31  Eric Blake  <ebb9@byu.net>
21533
21534         link-warning: always build headers with link warnings
21535         * modules/arpa_inet (Makefile.am): Always build replacement
21536         header.
21537         * modules/ctype (Makefile.am): Likewise.
21538         * modules/dirent (Makefile.am): Likewise.
21539         * modules/inttypes (Makefile.am): Likewise.
21540         * modules/langinfo (Makefile.am): Likewise.
21541         * modules/locale (Makefile.am): Likewise.
21542         * modules/spawn (Makefile.am): Likewise.
21543         * modules/sys_file (Makefile.am): Likewise.
21544         * modules/sys_ioctl (Makefile.am): Likewise.
21545         * modules/sys_select (Makefile.am): Likewise.
21546         * modules/sys_socket (Makefile.am): Likewise.
21547         * modules/sys_times (Makefile.am): Likewise.
21548         * modules/sys_utsname (Makefile.am): Likewise.
21549         * modules/sys_wait (Makefile.am): Likewise.
21550         * modules/wchar (Makefile.am): Likewise.
21551         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21552         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21553         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21554         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21555         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21556         Likewise.
21557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21558         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21559         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21560         Likewise.
21561         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21562         Likewise.
21563         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21564         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21565         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21567         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21568         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21569         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21570         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21571         (gl_WCHAR_H_DEFAULTS): Likewise.
21572
21573 2009-12-31  Eric Blake  <ebb9@byu.net>
21574
21575         signal, spawn: use link warnings
21576         * lib/signal.in.h (sigset_t): Make unconditional.
21577         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21578         (sigpending, sigprocmask, sigaction): Add link warnings.
21579         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21580         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21581         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21582         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21583         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21584         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21585         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21586         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21587         (posix_spawn_file_actions_destroy)
21588         (posix_spawn_file_actions_addopen)
21589         (posix_spawn_file_actions_addclose)
21590         (posix_spawn_file_actions_adddup2): Likewise.
21591         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21592         * tests/test-signal.c (main): Enhance test.
21593
21594         spawn: improve wrapper support
21595         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21596         (gl_SPAWN_H_DEFAULTS): New defaults.
21597         * modules/spawn (Makefile.am): Substitute them.
21598         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21599         Only declare if missing or broken.
21600
21601         sys_times, sys_utsname: use include_next
21602         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21603         header.
21604         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21606         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21607         * modules/sys_times (Depends-on): Add include_next.
21608         (Makefile.am): Substitute additional values.
21609         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21610         * lib/sys_times.in.h (includes): Include native header, if
21611         available.
21612         * lib/sys_utsname.in.h (includes): Likewise.
21613         * tests/test-sys_times.c (main): Enhance test.
21614
21615         fdutimensat: revert prior patch
21616         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21617         utimens.h.
21618         Reported by Bruno Haible.
21619
21620 2009-12-30  Eric Blake  <ebb9@byu.net>
21621
21622         sys_wait: drop link-warning dependency
21623         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21624         link-warning efforts.
21625         * lib/sys_wait.in.h: Likewise.
21626
21627         fdutimensat: remove bogus dependency
21628         * modules/fdutimensat (Depends-on): Drop inline.
21629
21630         unistd: fix typo
21631         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21632
21633 2009-12-30  Bruno Haible  <bruno@clisp.org>
21634
21635         Fix compilation error with Solaris cc.
21636         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21637         * lib/unicase/u16-is-invariant.c: Likewise.
21638         * lib/unicase/u32-is-invariant.c: Likewise.
21639         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21640
21641 2009-12-30  Bruno Haible  <bruno@clisp.org>
21642
21643         Fix test crash.
21644         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21645         locales.
21646         Reported by Simon Josefsson <simon@josefsson.org>.
21647
21648 2009-12-30  Bruno Haible  <bruno@clisp.org>
21649
21650         Fix compilation error on most platforms.
21651         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21652         Reported by Simon Josefsson <simon@josefsson.org>
21653         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21654
21655 2009-12-30  Eric Blake  <ebb9@byu.net>
21656
21657         futimens, utimensat: work around ntfs-3g bug
21658         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21659         a ctime bug is present, and expand workaround to cover ntfs-3g.
21660         * lib/utimens.c (fdutimens, lutimens): Likewise.
21661         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21662         (validate_timespec): Adjust return value.
21663         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21664         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21665         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21666
21667 2009-12-29  Eric Blake  <ebb9@byu.net>
21668
21669         link-warning: make usage consistent
21670         * modules/ctype (Depends-on): Add link-warning.
21671         (Makefile.am): Update rules accordingly.
21672         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21673         * modules/locale (Depends-on, Makefile.am): Likewise.
21674         * modules/sys_file (Makefile.am): Likewise.
21675         * modules/getopt-posix (Makefile.am): Delete unused link warning
21676         efforts.
21677         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21678         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21679         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21680         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21681
21682         stdio: remove unused variables
21683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21685         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21686
21687         tests: test more substitute headers
21688         * modules/ctype-tests: New file.
21689         * modules/dirent-tests: Likewise.
21690         * modules/spawn-tests: Likewise.
21691         * modules/sys_file-tests: Likewise.
21692         * modules/sys_ioctl-tests: Likewise.
21693         * modules/sys_wait-tests: Likewise.
21694         * tests/test-ctype.c: Likewise.
21695         * tests/test-dirent.c: Likewise.
21696         * tests/test-spawn.c: Likewise.
21697         * tests/test-sys_file.c: Likewise.
21698         * tests/test-sys_ioctl.c: Likewise.
21699         * tests/test-sys_wait.c: Likewise.
21700         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21701         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21702         whether or not flock is in use.
21703
21704         tests: remove License section from module
21705         * modules/arpa_inet-tests: Remove unneeded section.
21706         * modules/byteswap-tests: Likewise.
21707         * modules/ceilf-tests: Likewise.
21708         * modules/ceill-tests: Likewise.
21709         * modules/crypto/des-tests: Likewise.
21710         * modules/crypto/gc-arcfour-tests: Likewise.
21711         * modules/crypto/gc-arctwo-tests: Likewise.
21712         * modules/crypto/gc-des-tests: Likewise.
21713         * modules/crypto/gc-hmac-md5-tests: Likewise.
21714         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21715         * modules/crypto/gc-md2-tests: Likewise.
21716         * modules/crypto/gc-md4-tests: Likewise.
21717         * modules/crypto/gc-md5-tests: Likewise.
21718         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21719         * modules/crypto/gc-rijndael-tests: Likewise.
21720         * modules/crypto/gc-sha1-tests: Likewise.
21721         * modules/crypto/gc-tests: Likewise.
21722         * modules/crypto/md2-tests: Likewise.
21723         * modules/crypto/md4-tests: Likewise.
21724         * modules/fcntl-h-tests: Likewise.
21725         * modules/floorf-tests: Likewise.
21726         * modules/floorl-tests: Likewise.
21727         * modules/frexp-nolibm-tests: Likewise.
21728         * modules/frexp-tests: Likewise.
21729         * modules/frexpl-nolibm-tests: Likewise.
21730         * modules/frexpl-tests: Likewise.
21731         * modules/getaddrinfo-tests: Likewise.
21732         * modules/inttypes-tests: Likewise.
21733         * modules/isfinite-tests: Likewise.
21734         * modules/isinf-tests: Likewise.
21735         * modules/ldexpl-tests: Likewise.
21736         * modules/locale-tests: Likewise.
21737         * modules/math-tests: Likewise.
21738         * modules/netdb-tests: Likewise.
21739         * modules/netinet_in-tests: Likewise.
21740         * modules/printf-frexp-tests: Likewise.
21741         * modules/printf-frexpl-tests: Likewise.
21742         * modules/priv-set-tests: Likewise.
21743         * modules/random_r-tests: Likewise.
21744         * modules/round-tests: Likewise.
21745         * modules/roundf-tests: Likewise.
21746         * modules/roundl-tests: Likewise.
21747         * modules/search-tests: Likewise.
21748         * modules/select-tests: Likewise.
21749         * modules/signal-tests: Likewise.
21750         * modules/stdbool-tests: Likewise.
21751         * modules/stddef-tests: Likewise.
21752         * modules/stdint-tests: Likewise.
21753         * modules/stdio-tests: Likewise.
21754         * modules/stdlib-tests: Likewise.
21755         * modules/string-tests: Likewise.
21756         * modules/strings-tests: Likewise.
21757         * modules/sys_select-tests: Likewise.
21758         * modules/sys_socket-tests: Likewise.
21759         * modules/sys_stat-tests: Likewise.
21760         * modules/sys_time-tests: Likewise.
21761         * modules/sys_utsname-tests: Likewise.
21762         * modules/sysexits-tests: Likewise.
21763         * modules/time-tests: Likewise.
21764         * modules/trunc-tests: Likewise.
21765         * modules/truncf-tests: Likewise.
21766         * modules/truncl-tests: Likewise.
21767         * modules/tsearch-tests: Likewise.
21768         * modules/unistd-tests: Likewise.
21769         * modules/wchar-tests: Likewise.
21770         * modules/wctype-tests: Likewise.
21771
21772         tests: fix license on several tests
21773         * tests/test-des.c: Update to GPLv3+.
21774         * tests/test-flock.c: Likewise.
21775         * tests/test-fsync.c: Likewise.
21776         * tests/test-futimens.h: Likewise.
21777         * tests/test-gc-arcfour.c: Likewise.
21778         * tests/test-gc-arctwo.c: Likewise.
21779         * tests/test-gc-des.c: Likewise.
21780         * tests/test-gc-hmac-md5.c: Likewise.
21781         * tests/test-gc-hmac-sha1.c: Likewise.
21782         * tests/test-gc-md2.c: Likewise.
21783         * tests/test-gc-md4.c: Likewise.
21784         * tests/test-gc-md5.c: Likewise.
21785         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21786         * tests/test-gc-rijndael.c: Likewise.
21787         * tests/test-gc-sha1.c: Likewise.
21788         * tests/test-gc.c: Likewise.
21789         * tests/test-getcwd.c: Likewise.
21790         * tests/test-link.c: Likewise.
21791         * tests/test-link.h: Likewise.
21792         * tests/test-lutimens.h: Likewise.
21793         * tests/test-md2.c: Likewise.
21794         * tests/test-md4.c: Likewise.
21795         * tests/test-mkdir.h: Likewise.
21796         * tests/test-rename.c: Likewise.
21797         * tests/test-rename.h: Likewise.
21798         * tests/test-safe-alloc.c: Likewise.
21799         * tests/test-utimens-common.h: Likewise.
21800         * tests/test-utimens.h: Likewise.
21801
21802         maint: sync license texts
21803         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21804         * doc/gpl-3.0.texi: Revert copyright year update.
21805         * doc/lgpl-3.0.texi: Likewise.
21806
21807 2009-12-29  Jim Meyering  <meyering@redhat.com>
21808
21809         update nearly all FSF copyright year lists to include 2009
21810         The files named by the following are exempted:
21811             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21812               test -f "$dst" && { echo "$dst"; continue; }
21813               test -d "$dst" || continue
21814               echo "$dst"/$(basename "$src")
21815             done > exempt
21816             git ls-files tests/unictype >> exempt
21817         In the remaining files, convert to all-interval notation if
21818         - there is already at least one year interval like 2000-2003
21819         - the file is maintained by me
21820         - the file is in lib/uni*/, where that style already prevails
21821         Otherwise, use update-copyright's default.
21822
21823 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21824         and Eric Blake  <ebb9@byu.net>
21825
21826         tests: don't require debug system() to pass
21827         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21828         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21829         * tests/test-unlink.h (test_unlink_func): Likewise.
21830         * tests/test-fstatat.c (main): ...into callers.
21831         * tests/test-lstat.c (main): Likewise.
21832         * tests/test-rmdir.c (main): Likewise.
21833         * tests/test-unlink.c (main): Likewise.
21834         * tests/test-unlinkat.c (main): Likewise.
21835         * tests/test-areadlink-with-size.c (main): Don't require a
21836         debug-only system call to pass, aiding cross-testing to mingw.
21837         * tests/test-areadlink.c (main): Likewise.
21838         * tests/test-areadlinkat-with-size.c (main): Likewise.
21839         * tests/test-areadlinkat.c (main): Likewise.
21840         * tests/test-canonicalize-lgpl.c (main): Likewise.
21841         * tests/test-canonicalize.c (main): Likewise.
21842         * tests/test-chown.c (main): Likewise.
21843         * tests/test-fchownat.c (main): Likewise.
21844         * tests/test-lchown.c (main): Likewise.
21845         * tests/test-fdutimensat.c (main): Likewise.
21846         * tests/test-futimens.c (main): Likewise.
21847         * tests/test-link.c (main): Likewise.
21848         * tests/test-linkat.c (main): Likewise.
21849         * tests/test-mkdir.c (main): Likewise.
21850         * tests/test-mkdirat.c (main): Likewise.
21851         * tests/test-mkfifo.c (main): Likewise.
21852         * tests/test-mkfifoat.c (main): Likewise.
21853         * tests/test-mknod.c (main): Likewise.
21854         * tests/test-readlink.c (main): Likewise.
21855         * tests/test-remove.c (main): Likewise.
21856         * tests/test-rename.c (main): Likewise.
21857         * tests/test-renameat.c (main): Likewise.
21858         * tests/test-symlink.c (main): Likewise.
21859         * tests/test-symlinkat.c (main): Likewise.
21860         * tests/test-utimens.c (main): Likewise.
21861         * tests/test-utimensat.c (main): Likewise.
21862
21863 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21864
21865         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21866         on $(UNUSED_PARAMETER_H) to avoid build failure.
21867
21868 2009-12-28  Jim Meyering  <meyering@redhat.com>
21869
21870         update-copyright: you may specify a max. line length other than 72
21871         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21872
21873         maint: use consistent FSF copyright line syntax
21874         * lib/posixtm.c: Add missing comma in FSF copyright line.
21875         * lib/posixtm.h: Likewise.
21876         * lib/getugroups.c: Add missing ", Inc.".
21877
21878         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21879         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21880         FSF copyright line.  Remove trailing blanks.
21881
21882 2009-12-28  Eric Blake  <ebb9@byu.net>
21883
21884         test-dup2: reduce dependencies
21885         * modules/cloexec (Configure.ac): Set witness.
21886         * modules/dup2-tests (Depends-on): Drop cloexec.
21887         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21888         not present.
21889         Suggested by Bruno Haible.
21890
21891 2009-12-26  Bruno Haible  <bruno@clisp.org>
21892
21893         Remove an unneeded dependency.
21894         * modules/fseterr (Depends-on): Remove dup2.
21895
21896 2009-12-26  Eric Blake  <ebb9@byu.net>
21897
21898         tests: use macros.h in more places
21899         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21900         (ASSERT_STREAM): Provide default of stderr.
21901         * tests/test-dirent-safer.c: Include macros.h, using alternate
21902         stream for assertions.
21903         * tests/test-dup-safer.c: Likewise.
21904         * tests/test-freopen-safer.c: Likewise.
21905         * tests/test-getopt.c: Likewise.
21906         * tests/test-openat-safer.c: Likewise.
21907         * tests/test-pipe.c: Likewise.
21908         * tests/test-popen-safer.c: Likewise.
21909         * modules/dirent-safer-tests (Files): Include macros.h.
21910         * modules/unistd-safer-tests (Files): Likewise.
21911         * modules/freopen-safer-tests (Files): Likewise.
21912         * modules/getopt-posix-tests (Files): Likewise.
21913         * modules/openat-safer-tests (Files): Likewise.
21914         * modules/pipe-tests (Files): Likewise.
21915
21916 2009-12-26  Bruno Haible  <bruno@clisp.org>
21917
21918         javacomp: Portability fix.
21919         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21920         that it also works on Solaris.
21921
21922 2009-12-26  Bruno Haible  <bruno@clisp.org>
21923
21924         localename: Fix storage allocation of gl_locale_name_thread's result.
21925         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21926         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21927         all platforms that have 'uselocale'.
21928         (gl_locale_name_thread_unsafe): New function, extracted from
21929         gl_locale_name_thread.
21930         (gl_locale_name_thread): Call struniq on all platforms that have
21931         'uselocale'.
21932         * tests/test-localename.c (test_locale_name_thread): Check that the
21933         resulting strings are permanently allocated.
21934         * modules/localename-tests (Depends-on): Add strdup.
21935
21936 2009-12-26  Bruno Haible  <bruno@clisp.org>
21937
21938         * tests/test-localename.c (categories): Fill in the strings.
21939
21940 2009-12-26  Jim Meyering  <meyering@redhat.com>
21941
21942         isdir: complete the removal of m4/isdir.m4
21943         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21944
21945         isdir: clean up, since at least grep still uses it
21946         * lib/isdir.c: Include "isdir.h".
21947         (S_ISDIR): Remove now-unneeded definition.
21948         * modules/isdir (Files): Add lib/isdir.h.
21949         * lib/isdir.h: New file, with declaration.
21950         * m4/isdir.m4: Remove file -- unneeded.
21951
21952 2009-12-25  Bruno Haible  <bruno@clisp.org>
21953
21954         selinux-h: Make generated .h files standalone.
21955         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21956         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21957         * lib/se-selinux.in.h: Likewise.
21958         * modules/selinux-h (Depends-on): Add unused-parameter.
21959         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21960         selinux/selinux.h and selinux/context.h.
21961         Suggested by Eric Blake.
21962
21963 2009-12-25  Bruno Haible  <bruno@clisp.org>
21964
21965         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21966         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21967         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21968         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21969         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21970
21971 2009-12-24  Bruno Haible  <bruno@clisp.org>
21972
21973         openat: Fix warning.
21974         * lib/openat-proc.c: Include <unistd.h>.
21975
21976 2009-12-24  Bruno Haible  <bruno@clisp.org>
21977
21978         New module 'unused-parameter'.
21979         * build-aux/unused-parameter.h: New file, extracted from earlier
21980         gnulib-common.m4.
21981         * modules/unused-parameter: New file.
21982         * lib/unistr.h: Include unused-parameter.h.
21983         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21984         _GL_UNUSED.
21985         * modules/unistr/base (Depends-on): Add unused-parameter.
21986
21987 2009-12-24  Bruno Haible  <bruno@clisp.org>
21988
21989         Add missing dependencies to 'extensions' module.
21990         * m4/extensions.m4: Add comment.
21991         * modules/accept4 (Depends-on): Add extensions.
21992         * modules/dup3 (Depends-on): Likewise.
21993         * modules/fcntl (Depends-on): Likewise.
21994         * modules/futimens (Depends-on): Likewise.
21995         * modules/mknod (Depends-on): Likewise.
21996         * modules/pipe2 (Depends-on): Likewise.
21997         * modules/stat-time (Depends-on): Likewise.
21998         * modules/strcasestr-simple (Depends-on): Likewise.
21999         * modules/strsignal (Depends-on): Likewise.
22000         * modules/utimensat (Depends-on): Likewise.
22001         * modules/localcharset (Depends-on): Likewise. Needed because of
22002         gl_FCNTL_O_FLAGS.
22003         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22004         AC_TYPE_MBSTATE_T.
22005         * modules/wcsnrtombs (Depends-on): Likewise.
22006         * modules/wcsrtombs (Depends-on): Likewise.
22007
22008 2009-12-24  Bruno Haible  <bruno@clisp.org>
22009
22010         binary-io: Avoid gcc warning due to SET_BINARY.
22011         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22012         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22013
22014 2009-12-24  Bruno Haible  <bruno@clisp.org>
22015
22016         Avoid future namespace pollution on glibc systems.
22017         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22018         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22019         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22020         glibc systems.
22021
22022 2009-12-24  Bruno Haible  <bruno@clisp.org>
22023
22024         Refactor common macros used in tests.
22025         * tests/macros.h: New file.
22026         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22027         and/or <stdlib.h>, if appropriate.
22028         (ASSERT, SIZEOF): Remove macros.
22029         * tests/test-areadlink-with-size.c: Likewise.
22030         * tests/test-areadlinkat.c: Likewise.
22031         * tests/test-areadlinkat-with-size.c: Likewise.
22032         * tests/test-argmatch.c: Likewise.
22033         * tests/test-argv-iter.c: Likewise.
22034         * tests/test-array-mergesort.c: Likewise.
22035         * tests/test-array_list.c: Likewise.
22036         * tests/test-array_oset.c: Likewise.
22037         * tests/test-avltree_list.c: Likewise.
22038         * tests/test-avltree_oset.c: Likewise.
22039         * tests/test-avltreehash_list.c: Likewise.
22040         * tests/test-base64.c: Likewise.
22041         * tests/test-binary-io.c: Likewise.
22042         * tests/test-bitrotate.c: Likewise.
22043         * tests/test-btowc.c: Likewise.
22044         * tests/test-byteswap.c: Likewise.
22045         * tests/test-c-ctype.c: Likewise.
22046         * tests/test-c-stack.c: Likewise.
22047         * tests/test-c-strcasecmp.c: Likewise.
22048         * tests/test-c-strcasestr.c: Likewise.
22049         * tests/test-c-strncasecmp.c: Likewise.
22050         * tests/test-c-strstr.c: Likewise.
22051         * tests/test-canonicalize-lgpl.c: Likewise.
22052         * tests/test-canonicalize.c: Likewise.
22053         * tests/test-carray_list.c: Likewise.
22054         * tests/test-ceilf1.c: Likewise.
22055         * tests/test-ceilf2.c: Likewise.
22056         * tests/test-ceill.c: Likewise.
22057         * tests/test-chown.c: Likewise.
22058         * tests/test-cloexec.c: Likewise.
22059         * tests/test-copy-acl.c: Likewise.
22060         * tests/test-copy-file.c: Likewise.
22061         * tests/test-count-one-bits.c: Likewise.
22062         * tests/test-dprintf-posix.c: Likewise.
22063         * tests/test-dup2.c: Likewise.
22064         * tests/test-dup3.c: Likewise.
22065         * tests/test-duplocale.c: Likewise.
22066         * tests/test-fbufmode.c: Likewise.
22067         * tests/test-fchdir.c: Likewise.
22068         * tests/test-fchownat.c: Likewise.
22069         * tests/test-fcntl-safer.c: Likewise.
22070         * tests/test-fcntl.c: Likewise.
22071         * tests/test-fdopendir.c: Likewise.
22072         * tests/test-fdutimensat.c: Likewise.
22073         * tests/test-fflush2.c: Likewise.
22074         * tests/test-file-has-acl.c: Likewise.
22075         * tests/test-filevercmp.c: Likewise.
22076         * tests/test-flock.c: Likewise.
22077         * tests/test-floorf1.c: Likewise.
22078         * tests/test-floorf2.c: Likewise.
22079         * tests/test-floorl.c: Likewise.
22080         * tests/test-fnmatch.c: Likewise.
22081         * tests/test-fopen.h: Likewise.
22082         * tests/test-fpending.c: Likewise.
22083         * tests/test-fprintf-posix.c: Likewise.
22084         * tests/test-fpurge.c: Likewise.
22085         * tests/test-freadable.c: Likewise.
22086         * tests/test-freadahead.c: Likewise.
22087         * tests/test-freading.c: Likewise.
22088         * tests/test-freadptr.c: Likewise.
22089         * tests/test-freadptr2.c: Likewise.
22090         * tests/test-freadseek.c: Likewise.
22091         * tests/test-freopen.c: Likewise.
22092         * tests/test-frexp.c: Likewise.
22093         * tests/test-frexpl.c: Likewise.
22094         * tests/test-fseek.c: Likewise.
22095         * tests/test-fseeko.c: Likewise.
22096         * tests/test-fstatat.c: Likewise.
22097         * tests/test-fstrcmp.c: Likewise.
22098         * tests/test-fsync.c: Likewise.
22099         * tests/test-ftell.c: Likewise.
22100         * tests/test-ftello.c: Likewise.
22101         * tests/test-func.c: Likewise.
22102         * tests/test-futimens.c: Likewise.
22103         * tests/test-fwritable.c: Likewise.
22104         * tests/test-fwriting.c: Likewise.
22105         * tests/test-getcwd.c: Likewise.
22106         * tests/test-getdate.c: Likewise.
22107         * tests/test-getdelim.c: Likewise.
22108         * tests/test-getdtablesize.c: Likewise.
22109         * tests/test-getgroups.c: Likewise.
22110         * tests/test-getline.c: Likewise.
22111         * tests/test-getndelim2.c: Likewise.
22112         * tests/test-glob.c: Likewise.
22113         * tests/test-hash.c: Likewise.
22114         * tests/test-i-ring.c: Likewise.
22115         * tests/test-iconv-utf.c: Likewise.
22116         * tests/test-iconv.c: Likewise.
22117         * tests/test-idpriv-drop.c: Likewise.
22118         * tests/test-idpriv-droptemp.c: Likewise.
22119         * tests/test-inet_ntop.c: Likewise.
22120         * tests/test-inet_pton.c: Likewise.
22121         * tests/test-isblank.c: Likewise.
22122         * tests/test-isfinite.c: Likewise.
22123         * tests/test-isinf.c: Likewise.
22124         * tests/test-isnan.c: Likewise.
22125         * tests/test-isnand.h: Likewise.
22126         * tests/test-isnanf.h: Likewise.
22127         * tests/test-isnanl.h: Likewise.
22128         * tests/test-lchown.c: Likewise.
22129         * tests/test-ldexpl.c: Likewise.
22130         * tests/test-link.c: Likewise.
22131         * tests/test-linkat.c: Likewise.
22132         * tests/test-linked_list.c: Likewise.
22133         * tests/test-linkedhash_list.c: Likewise.
22134         * tests/test-localename.c: Likewise.
22135         * tests/test-lseek.c: Likewise.
22136         * tests/test-lstat.c: Likewise.
22137         * tests/test-mbmemcasecmp.c: Likewise.
22138         * tests/test-mbmemcasecoll.c: Likewise.
22139         * tests/test-mbrtowc.c: Likewise.
22140         * tests/test-mbscasecmp.c: Likewise.
22141         * tests/test-mbscasestr1.c: Likewise.
22142         * tests/test-mbscasestr2.c: Likewise.
22143         * tests/test-mbscasestr3.c: Likewise.
22144         * tests/test-mbscasestr4.c: Likewise.
22145         * tests/test-mbschr.c: Likewise.
22146         * tests/test-mbscspn.c: Likewise.
22147         * tests/test-mbsinit.c: Likewise.
22148         * tests/test-mbsncasecmp.c: Likewise.
22149         * tests/test-mbsnrtowcs.c: Likewise.
22150         * tests/test-mbspbrk.c: Likewise.
22151         * tests/test-mbspcasecmp.c: Likewise.
22152         * tests/test-mbsrchr.c: Likewise.
22153         * tests/test-mbsrtowcs.c: Likewise.
22154         * tests/test-mbsspn.c: Likewise.
22155         * tests/test-mbsstr1.c: Likewise.
22156         * tests/test-mbsstr2.c: Likewise.
22157         * tests/test-mbsstr3.c: Likewise.
22158         * tests/test-memchr.c: Likewise.
22159         * tests/test-memchr2.c: Likewise.
22160         * tests/test-memcmp.c: Likewise.
22161         * tests/test-memmem.c: Likewise.
22162         * tests/test-memrchr.c: Likewise.
22163         * tests/test-mkdir.c: Likewise.
22164         * tests/test-mkdirat.c: Likewise.
22165         * tests/test-mkfifo.c: Likewise.
22166         * tests/test-mkfifoat.c: Likewise.
22167         * tests/test-mknod.c: Likewise.
22168         * tests/test-nanosleep.c: Likewise.
22169         * tests/test-nl_langinfo.c: Likewise.
22170         * tests/test-obstack-printf.c: Likewise.
22171         * tests/test-open.c: Likewise.
22172         * tests/test-openat.c: Likewise.
22173         * tests/test-pipe-filter-gi1.c: Likewise.
22174         * tests/test-pipe-filter-gi2-main.c: Likewise.
22175         * tests/test-pipe-filter-ii1.c: Likewise.
22176         * tests/test-pipe-filter-ii2-main.c: Likewise.
22177         * tests/test-pipe2.c: Likewise.
22178         * tests/test-popen.h: Likewise.
22179         * tests/test-posixtm.c: Likewise.
22180         * tests/test-pread.c: Likewise.
22181         * tests/test-printf-frexp.c: Likewise.
22182         * tests/test-printf-frexpl.c: Likewise.
22183         * tests/test-printf-posix.c: Likewise.
22184         * tests/test-priv-set.c: Likewise.
22185         * tests/test-quotearg.c: Likewise.
22186         * tests/test-random_r.c: Likewise.
22187         * tests/test-rawmemchr.c: Likewise.
22188         * tests/test-rbtree_list.c: Likewise.
22189         * tests/test-rbtree_oset.c: Likewise.
22190         * tests/test-rbtreehash_list.c: Likewise.
22191         * tests/test-readlink.c: Likewise.
22192         * tests/test-remove.c: Likewise.
22193         * tests/test-rename.c: Likewise.
22194         * tests/test-renameat.c: Likewise.
22195         * tests/test-rmdir.c: Likewise.
22196         * tests/test-round1.c: Likewise.
22197         * tests/test-roundf1.c: Likewise.
22198         * tests/test-roundl.c: Likewise.
22199         * tests/test-safe-alloc.c: Likewise.
22200         * tests/test-sameacls.c: Likewise.
22201         * tests/test-set-mode-acl.c: Likewise.
22202         * tests/test-setenv.c: Likewise.
22203         * tests/test-sigaction.c: Likewise.
22204         * tests/test-signbit.c: Likewise.
22205         * tests/test-sleep.c: Likewise.
22206         * tests/test-snprintf-posix.c: Likewise.
22207         * tests/test-snprintf.c: Likewise.
22208         * tests/test-sprintf-posix.c: Likewise.
22209         * tests/test-stat-time.c: Likewise.
22210         * tests/test-stat.c: Likewise.
22211         * tests/test-strcasestr.c: Likewise.
22212         * tests/test-strchrnul.c: Likewise.
22213         * tests/test-strerror.c: Likewise.
22214         * tests/test-striconv.c: Likewise.
22215         * tests/test-striconveh.c: Likewise.
22216         * tests/test-striconveha.c: Likewise.
22217         * tests/test-strsignal.c: Likewise.
22218         * tests/test-strstr.c: Likewise.
22219         * tests/test-strtod.c: Likewise.
22220         * tests/test-strverscmp.c: Likewise.
22221         * tests/test-symlink.c: Likewise.
22222         * tests/test-symlinkat.c: Likewise.
22223         * tests/test-trunc1.c: Likewise.
22224         * tests/test-trunc2.c: Likewise.
22225         * tests/test-truncf1.c: Likewise.
22226         * tests/test-truncf2.c: Likewise.
22227         * tests/test-truncl.c: Likewise.
22228         * tests/test-uname.c: Likewise.
22229         * tests/test-unlink.c: Likewise.
22230         * tests/test-unlinkat.c: Likewise.
22231         * tests/test-unsetenv.c: Likewise.
22232         * tests/test-usleep.c: Likewise.
22233         * tests/test-utimens.c: Likewise.
22234         * tests/test-utimensat.c: Likewise.
22235         * tests/test-vasnprintf-posix.c: Likewise.
22236         * tests/test-vasnprintf-posix2.c: Likewise.
22237         * tests/test-vasnprintf.c: Likewise.
22238         * tests/test-vasprintf-posix.c: Likewise.
22239         * tests/test-vasprintf.c: Likewise.
22240         * tests/test-vdprintf-posix.c: Likewise.
22241         * tests/test-vfprintf-posix.c: Likewise.
22242         * tests/test-vprintf-posix.c: Likewise.
22243         * tests/test-vsnprintf-posix.c: Likewise.
22244         * tests/test-vsnprintf.c: Likewise.
22245         * tests/test-vsprintf-posix.c: Likewise.
22246         * tests/test-wcrtomb.c: Likewise.
22247         * tests/test-wcsnrtombs.c: Likewise.
22248         * tests/test-wcsrtombs.c: Likewise.
22249         * tests/test-wctype.c: Likewise.
22250         * tests/test-wcwidth.c: Likewise.
22251         * tests/test-xfprintf-posix.c: Likewise.
22252         * tests/test-xmemdup0.c: Likewise.
22253         * tests/test-xprintf-posix.c: Likewise.
22254         * tests/test-xvasprintf.c: Likewise.
22255         * tests/unicase/test-locale-language.c: Likewise.
22256         * tests/unicase/test-mapping-part1.h: Likewise.
22257         * tests/unicase/test-predicate-part1.h: Likewise.
22258         * tests/unicase/test-u8-casecmp.c: Likewise.
22259         * tests/unicase/test-u8-casecoll.c: Likewise.
22260         * tests/unicase/test-u8-casefold.c: Likewise.
22261         * tests/unicase/test-u8-is-cased.c: Likewise.
22262         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22263         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22264         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22265         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22266         * tests/unicase/test-u8-tolower.c: Likewise.
22267         * tests/unicase/test-u8-totitle.c: Likewise.
22268         * tests/unicase/test-u8-toupper.c: Likewise.
22269         * tests/unicase/test-u16-casecmp.c: Likewise.
22270         * tests/unicase/test-u16-casecoll.c: Likewise.
22271         * tests/unicase/test-u16-casefold.c: Likewise.
22272         * tests/unicase/test-u16-is-cased.c: Likewise.
22273         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22274         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22275         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22276         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22277         * tests/unicase/test-u16-tolower.c: Likewise.
22278         * tests/unicase/test-u16-totitle.c: Likewise.
22279         * tests/unicase/test-u16-toupper.c: Likewise.
22280         * tests/unicase/test-u32-casecmp.c: Likewise.
22281         * tests/unicase/test-u32-casecoll.c: Likewise.
22282         * tests/unicase/test-u32-casefold.c: Likewise.
22283         * tests/unicase/test-u32-is-cased.c: Likewise.
22284         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22285         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22286         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22287         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22288         * tests/unicase/test-u32-tolower.c: Likewise.
22289         * tests/unicase/test-u32-totitle.c: Likewise.
22290         * tests/unicase/test-u32-toupper.c: Likewise.
22291         * tests/unicase/test-ulc-casecmp.c: Likewise.
22292         * tests/unicase/test-ulc-casecoll.c: Likewise.
22293         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22294         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22295         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22296         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22297         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22298         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22299         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22300         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22301         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22302         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22303         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22304         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22305         * tests/unictype/test-bidi_byname.c: Likewise.
22306         * tests/unictype/test-bidi_name.c: Likewise.
22307         * tests/unictype/test-bidi_of.c: Likewise.
22308         * tests/unictype/test-bidi_test.c: Likewise.
22309         * tests/unictype/test-block_list.c: Likewise.
22310         * tests/unictype/test-block_of.c: Likewise.
22311         * tests/unictype/test-block_test.c: Likewise.
22312         * tests/unictype/test-categ_and.c: Likewise.
22313         * tests/unictype/test-categ_and_not.c: Likewise.
22314         * tests/unictype/test-categ_byname.c: Likewise.
22315         * tests/unictype/test-categ_name.c: Likewise.
22316         * tests/unictype/test-categ_none.c: Likewise.
22317         * tests/unictype/test-categ_of.c: Likewise.
22318         * tests/unictype/test-categ_or.c: Likewise.
22319         * tests/unictype/test-categ_test_withtable.c: Likewise.
22320         * tests/unictype/test-combining.c: Likewise.
22321         * tests/unictype/test-decdigit.c: Likewise.
22322         * tests/unictype/test-digit.c: Likewise.
22323         * tests/unictype/test-mirror.c: Likewise.
22324         * tests/unictype/test-numeric.c: Likewise.
22325         * tests/unictype/test-pr_byname.c: Likewise.
22326         * tests/unictype/test-pr_test.c: Likewise.
22327         * tests/unictype/test-predicate-part1.h: Likewise.
22328         * tests/unictype/test-scripts.c: Likewise.
22329         * tests/unictype/test-sy_c_ident.c: Likewise.
22330         * tests/unictype/test-sy_java_ident.c: Likewise.
22331         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22332         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22333         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22334         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22335         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22336         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22337         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22338         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22339         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22340         * tests/uninorm/test-compat-decomposition.c: Likewise.
22341         * tests/uninorm/test-composition.c: Likewise.
22342         * tests/uninorm/test-decomposing-form.c: Likewise.
22343         * tests/uninorm/test-decomposition.c: Likewise.
22344         * tests/uninorm/test-u8-nfc.c: Likewise.
22345         * tests/uninorm/test-u8-nfd.c: Likewise.
22346         * tests/uninorm/test-u8-nfkc.c: Likewise.
22347         * tests/uninorm/test-u8-nfkd.c: Likewise.
22348         * tests/uninorm/test-u8-normcmp.c: Likewise.
22349         * tests/uninorm/test-u8-normcoll.c: Likewise.
22350         * tests/uninorm/test-u16-nfc.c: Likewise.
22351         * tests/uninorm/test-u16-nfd.c: Likewise.
22352         * tests/uninorm/test-u16-nfkc.c: Likewise.
22353         * tests/uninorm/test-u16-nfkd.c: Likewise.
22354         * tests/uninorm/test-u16-normcmp.c: Likewise.
22355         * tests/uninorm/test-u16-normcoll.c: Likewise.
22356         * tests/uninorm/test-u32-nfc.c: Likewise.
22357         * tests/uninorm/test-u32-nfd.c: Likewise.
22358         * tests/uninorm/test-u32-nfkc.c: Likewise.
22359         * tests/uninorm/test-u32-nfkd.c: Likewise.
22360         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22361         * tests/uninorm/test-u32-normcmp.c: Likewise.
22362         * tests/uninorm/test-u32-normcoll.c: Likewise.
22363         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22364         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22365         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22366         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22367         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22368         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22369         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22370         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22371         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22372         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22373         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22374         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22375         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22376         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22377         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22378         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22379         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22380         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22381         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22382         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22383         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22384         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22385         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22386         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22387         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22388         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22389         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22390         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22391         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22392         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22393         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22394         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22395         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22396         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22397         * tests/uniwidth/test-u8-width.c: Likewise.
22398         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22399         * tests/uniwidth/test-u16-width.c: Likewise.
22400         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22401         * tests/uniwidth/test-u32-width.c: Likewise.
22402         * tests/uniwidth/test-uc_width.c: Likewise.
22403         * tests/uniwidth/test-uc_width2.c: Likewise.
22404         * modules/acl-tests (Files): Add tests/macros.h.
22405         * modules/areadlink-tests (Files): Likewise.
22406         * modules/areadlink-with-size-tests (Files): Likewise.
22407         * modules/areadlinkat-tests (Files): Likewise.
22408         * modules/areadlinkat-with-size-tests (Files): Likewise.
22409         * modules/argmatch-tests (Files): Likewise.
22410         * modules/argv-iter-tests (Files): Likewise.
22411         * modules/array-list-tests (Files): Likewise.
22412         * modules/array-mergesort-tests (Files): Likewise.
22413         * modules/array-oset-tests (Files): Likewise.
22414         * modules/avltree-list-tests (Files): Likewise.
22415         * modules/avltree-oset-tests (Files): Likewise.
22416         * modules/avltreehash-list-tests (Files): Likewise.
22417         * modules/base64-tests (Files): Likewise.
22418         * modules/binary-io-tests (Files): Likewise.
22419         * modules/bitrotate-tests (Files): Likewise.
22420         * modules/btowc-tests (Files): Likewise.
22421         * modules/byteswap-tests (Files): Likewise.
22422         * modules/c-ctype-tests (Files): Likewise.
22423         * modules/c-stack-tests (Files): Likewise.
22424         * modules/c-strcase-tests (Files): Likewise.
22425         * modules/c-strcasestr-tests (Files): Likewise.
22426         * modules/c-strstr-tests (Files): Likewise.
22427         * modules/canonicalize-lgpl-tests (Files): Likewise.
22428         * modules/canonicalize-tests (Files): Likewise.
22429         * modules/carray-list-tests (Files): Likewise.
22430         * modules/ceilf-tests (Files): Likewise.
22431         * modules/ceill-tests (Files): Likewise.
22432         * modules/chown-tests (Files): Likewise.
22433         * modules/cloexec-tests (Files): Likewise.
22434         * modules/copy-file-tests (Files): Likewise.
22435         * modules/count-one-bits-tests (Files): Likewise.
22436         * modules/dprintf-posix-tests (Files): Likewise.
22437         * modules/dup2-tests (Files): Likewise.
22438         * modules/dup3-tests (Files): Likewise.
22439         * modules/duplocale-tests (Files): Likewise.
22440         * modules/fbufmode-tests (Files): Likewise.
22441         * modules/fchdir-tests (Files): Likewise.
22442         * modules/fcntl-safer-tests (Files): Likewise.
22443         * modules/fcntl-tests (Files): Likewise.
22444         * modules/fdopendir-tests (Files): Likewise.
22445         * modules/fdutimensat-tests (Files): Likewise.
22446         * modules/fflush-tests (Files): Likewise.
22447         * modules/filevercmp-tests (Files): Likewise.
22448         * modules/flock-tests (Files): Likewise.
22449         * modules/floorf-tests (Files): Likewise.
22450         * modules/floorl-tests (Files): Likewise.
22451         * modules/fnmatch-tests (Files): Likewise.
22452         * modules/fopen-safer-tests (Files): Likewise.
22453         * modules/fopen-tests (Files): Likewise.
22454         * modules/fpending-tests (Files): Likewise.
22455         * modules/fprintf-posix-tests (Files): Likewise.
22456         * modules/fpurge-tests (Files): Likewise.
22457         * modules/freadable-tests (Files): Likewise.
22458         * modules/freadahead-tests (Files): Likewise.
22459         * modules/freading-tests (Files): Likewise.
22460         * modules/freadptr-tests (Files): Likewise.
22461         * modules/freadseek-tests (Files): Likewise.
22462         * modules/freopen-tests (Files): Likewise.
22463         * modules/frexp-nolibm-tests (Files): Likewise.
22464         * modules/frexp-tests (Files): Likewise.
22465         * modules/frexpl-nolibm-tests (Files): Likewise.
22466         * modules/frexpl-tests (Files): Likewise.
22467         * modules/fseek-tests (Files): Likewise.
22468         * modules/fseeko-tests (Files): Likewise.
22469         * modules/fstrcmp-tests (Files): Likewise.
22470         * modules/fsync-tests (Files): Likewise.
22471         * modules/ftell-tests (Files): Likewise.
22472         * modules/ftello-tests (Files): Likewise.
22473         * modules/func-tests (Files): Likewise.
22474         * modules/futimens-tests (Files): Likewise.
22475         * modules/fwritable-tests (Files): Likewise.
22476         * modules/fwriting-tests (Files): Likewise.
22477         * modules/getcwd-tests (Files): Likewise.
22478         * modules/getdate-tests (Files): Likewise.
22479         * modules/getdelim-tests (Files): Likewise.
22480         * modules/getdtablesize-tests (Files): Likewise.
22481         * modules/getgroups-tests (Files): Likewise.
22482         * modules/getline-tests (Files): Likewise.
22483         * modules/getndelim2-tests (Files): Likewise.
22484         * modules/glob-tests (Files): Likewise.
22485         * modules/hash-tests (Files): Likewise.
22486         * modules/i-ring-tests (Files): Likewise.
22487         * modules/iconv-tests (Files): Likewise.
22488         * modules/iconv_open-utf-tests (Files): Likewise.
22489         * modules/idpriv-drop-tests (Files): Likewise.
22490         * modules/idpriv-droptemp-tests (Files): Likewise.
22491         * modules/inet_ntop-tests (Files): Likewise.
22492         * modules/inet_pton-tests (Files): Likewise.
22493         * modules/isblank-tests (Files): Likewise.
22494         * modules/isfinite-tests (Files): Likewise.
22495         * modules/isinf-tests (Files): Likewise.
22496         * modules/isnan-tests (Files): Likewise.
22497         * modules/isnand-nolibm-tests (Files): Likewise.
22498         * modules/isnand-tests (Files): Likewise.
22499         * modules/isnanf-nolibm-tests (Files): Likewise.
22500         * modules/isnanf-tests (Files): Likewise.
22501         * modules/isnanl-nolibm-tests (Files): Likewise.
22502         * modules/isnanl-tests (Files): Likewise.
22503         * modules/lchown-tests (Files): Likewise.
22504         * modules/ldexpl-tests (Files): Likewise.
22505         * modules/link-tests (Files): Likewise.
22506         * modules/linkat-tests (Files): Likewise.
22507         * modules/linked-list-tests (Files): Likewise.
22508         * modules/linkedhash-list-tests (Files): Likewise.
22509         * modules/localename-tests (Files): Likewise.
22510         * modules/lseek-tests (Files): Likewise.
22511         * modules/lstat-tests (Files): Likewise.
22512         * modules/mbmemcasecmp-tests (Files): Likewise.
22513         * modules/mbmemcasecoll-tests (Files): Likewise.
22514         * modules/mbrtowc-tests (Files): Likewise.
22515         * modules/mbscasecmp-tests (Files): Likewise.
22516         * modules/mbscasestr-tests (Files): Likewise.
22517         * modules/mbschr-tests (Files): Likewise.
22518         * modules/mbscspn-tests (Files): Likewise.
22519         * modules/mbsinit-tests (Files): Likewise.
22520         * modules/mbsncasecmp-tests (Files): Likewise.
22521         * modules/mbsnrtowcs-tests (Files): Likewise.
22522         * modules/mbspbrk-tests (Files): Likewise.
22523         * modules/mbspcasecmp-tests (Files): Likewise.
22524         * modules/mbsrchr-tests (Files): Likewise.
22525         * modules/mbsrtowcs-tests (Files): Likewise.
22526         * modules/mbsspn-tests (Files): Likewise.
22527         * modules/mbsstr-tests (Files): Likewise.
22528         * modules/memchr-tests (Files): Likewise.
22529         * modules/memchr2-tests (Files): Likewise.
22530         * modules/memcmp-tests (Files): Likewise.
22531         * modules/memmem-tests (Files): Likewise.
22532         * modules/memrchr-tests (Files): Likewise.
22533         * modules/mkdir-tests (Files): Likewise.
22534         * modules/mkfifo-tests (Files): Likewise.
22535         * modules/mkfifoat-tests (Files): Likewise.
22536         * modules/mknod-tests (Files): Likewise.
22537         * modules/nanosleep-tests (Files): Likewise.
22538         * modules/nl_langinfo-tests (Files): Likewise.
22539         * modules/obstack-printf-tests (Files): Likewise.
22540         * modules/open-tests (Files): Likewise.
22541         * modules/openat-tests (Files): Likewise.
22542         * modules/pipe-filter-gi-tests (Files): Likewise.
22543         * modules/pipe-filter-ii-tests (Files): Likewise.
22544         * modules/pipe2-tests (Files): Likewise.
22545         * modules/popen-safer-tests (Files): Likewise.
22546         * modules/popen-tests (Files): Likewise.
22547         * modules/posixtm-tests (Files): Likewise.
22548         * modules/pread-tests (Files): Likewise.
22549         * modules/printf-frexp-tests (Files): Likewise.
22550         * modules/printf-frexpl-tests (Files): Likewise.
22551         * modules/printf-posix-tests (Files): Likewise.
22552         * modules/priv-set-tests (Files): Likewise.
22553         * modules/quotearg-tests (Files): Likewise.
22554         * modules/random_r-tests (Files): Likewise.
22555         * modules/rawmemchr-tests (Files): Likewise.
22556         * modules/rbtree-list-tests (Files): Likewise.
22557         * modules/rbtree-oset-tests (Files): Likewise.
22558         * modules/rbtreehash-list-tests (Files): Likewise.
22559         * modules/readlink-tests (Files): Likewise.
22560         * modules/remove-tests (Files): Likewise.
22561         * modules/rename-tests (Files): Likewise.
22562         * modules/renameat-tests (Files): Likewise.
22563         * modules/rmdir-tests (Files): Likewise.
22564         * modules/round-tests (Files): Likewise.
22565         * modules/roundf-tests (Files): Likewise.
22566         * modules/roundl-tests (Files): Likewise.
22567         * modules/safe-alloc-tests (Files): Likewise.
22568         * modules/setenv-tests (Files): Likewise.
22569         * modules/sigaction-tests (Files): Likewise.
22570         * modules/signbit-tests (Files): Likewise.
22571         * modules/sleep-tests (Files): Likewise.
22572         * modules/snprintf-posix-tests (Files): Likewise.
22573         * modules/snprintf-tests (Files): Likewise.
22574         * modules/sprintf-posix-tests (Files): Likewise.
22575         * modules/stat-tests (Files): Likewise.
22576         * modules/stat-time-tests (Files): Likewise.
22577         * modules/strcasestr-tests (Files): Likewise.
22578         * modules/strchrnul-tests (Files): Likewise.
22579         * modules/strerror-tests (Files): Likewise.
22580         * modules/striconv-tests (Files): Likewise.
22581         * modules/striconveh-tests (Files): Likewise.
22582         * modules/striconveha-tests (Files): Likewise.
22583         * modules/strsignal-tests (Files): Likewise.
22584         * modules/strstr-tests (Files): Likewise.
22585         * modules/strtod-tests (Files): Likewise.
22586         * modules/strverscmp-tests (Files): Likewise.
22587         * modules/symlink-tests (Files): Likewise.
22588         * modules/symlinkat-tests (Files): Likewise.
22589         * modules/trunc-tests (Files): Likewise.
22590         * modules/truncf-tests (Files): Likewise.
22591         * modules/truncl-tests (Files): Likewise.
22592         * modules/uname-tests (Files): Likewise.
22593         * modules/unicase/cased-tests (Files): Likewise.
22594         * modules/unicase/ignorable-tests (Files): Likewise.
22595         * modules/unicase/locale-language-tests (Files): Likewise.
22596         * modules/unicase/tolower-tests (Files): Likewise.
22597         * modules/unicase/totitle-tests (Files): Likewise.
22598         * modules/unicase/toupper-tests (Files): Likewise.
22599         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22600         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22601         * modules/unicase/u8-casefold-tests (Files): Likewise.
22602         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22603         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22604         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22605         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22606         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22607         * modules/unicase/u8-tolower-tests (Files): Likewise.
22608         * modules/unicase/u8-totitle-tests (Files): Likewise.
22609         * modules/unicase/u8-toupper-tests (Files): Likewise.
22610         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22611         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22612         * modules/unicase/u16-casefold-tests (Files): Likewise.
22613         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22614         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22615         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22616         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22617         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22618         * modules/unicase/u16-tolower-tests (Files): Likewise.
22619         * modules/unicase/u16-totitle-tests (Files): Likewise.
22620         * modules/unicase/u16-toupper-tests (Files): Likewise.
22621         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22622         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22623         * modules/unicase/u32-casefold-tests (Files): Likewise.
22624         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22625         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22626         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22627         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22628         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22629         * modules/unicase/u32-tolower-tests (Files): Likewise.
22630         * modules/unicase/u32-totitle-tests (Files): Likewise.
22631         * modules/unicase/u32-toupper-tests (Files): Likewise.
22632         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22633         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22634         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22635         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22636         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22637         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22638         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22639         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22640         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22641         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22642         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22643         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22644         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22645         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22646         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22647         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22648         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22649         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22650         * modules/unictype/block-list-tests (Files): Likewise.
22651         * modules/unictype/block-of-tests (Files): Likewise.
22652         * modules/unictype/block-test-tests (Files): Likewise.
22653         * modules/unictype/category-C-tests (Files): Likewise.
22654         * modules/unictype/category-Cc-tests (Files): Likewise.
22655         * modules/unictype/category-Cf-tests (Files): Likewise.
22656         * modules/unictype/category-Cn-tests (Files): Likewise.
22657         * modules/unictype/category-Co-tests (Files): Likewise.
22658         * modules/unictype/category-Cs-tests (Files): Likewise.
22659         * modules/unictype/category-L-tests (Files): Likewise.
22660         * modules/unictype/category-Ll-tests (Files): Likewise.
22661         * modules/unictype/category-Lm-tests (Files): Likewise.
22662         * modules/unictype/category-Lo-tests (Files): Likewise.
22663         * modules/unictype/category-Lt-tests (Files): Likewise.
22664         * modules/unictype/category-Lu-tests (Files): Likewise.
22665         * modules/unictype/category-M-tests (Files): Likewise.
22666         * modules/unictype/category-Mc-tests (Files): Likewise.
22667         * modules/unictype/category-Me-tests (Files): Likewise.
22668         * modules/unictype/category-Mn-tests (Files): Likewise.
22669         * modules/unictype/category-N-tests (Files): Likewise.
22670         * modules/unictype/category-Nd-tests (Files): Likewise.
22671         * modules/unictype/category-Nl-tests (Files): Likewise.
22672         * modules/unictype/category-No-tests (Files): Likewise.
22673         * modules/unictype/category-P-tests (Files): Likewise.
22674         * modules/unictype/category-Pc-tests (Files): Likewise.
22675         * modules/unictype/category-Pd-tests (Files): Likewise.
22676         * modules/unictype/category-Pe-tests (Files): Likewise.
22677         * modules/unictype/category-Pf-tests (Files): Likewise.
22678         * modules/unictype/category-Pi-tests (Files): Likewise.
22679         * modules/unictype/category-Po-tests (Files): Likewise.
22680         * modules/unictype/category-Ps-tests (Files): Likewise.
22681         * modules/unictype/category-S-tests (Files): Likewise.
22682         * modules/unictype/category-Sc-tests (Files): Likewise.
22683         * modules/unictype/category-Sk-tests (Files): Likewise.
22684         * modules/unictype/category-Sm-tests (Files): Likewise.
22685         * modules/unictype/category-So-tests (Files): Likewise.
22686         * modules/unictype/category-Z-tests (Files): Likewise.
22687         * modules/unictype/category-Zl-tests (Files): Likewise.
22688         * modules/unictype/category-Zp-tests (Files): Likewise.
22689         * modules/unictype/category-Zs-tests (Files): Likewise.
22690         * modules/unictype/category-and-not-tests (Files): Likewise.
22691         * modules/unictype/category-and-tests (Files): Likewise.
22692         * modules/unictype/category-byname-tests (Files): Likewise.
22693         * modules/unictype/category-name-tests (Files): Likewise.
22694         * modules/unictype/category-none-tests (Files): Likewise.
22695         * modules/unictype/category-of-tests (Files): Likewise.
22696         * modules/unictype/category-or-tests (Files): Likewise.
22697         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22698         * modules/unictype/combining-class-tests (Files): Likewise.
22699         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22700         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22701         * modules/unictype/ctype-blank-tests (Files): Likewise.
22702         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22703         * modules/unictype/ctype-digit-tests (Files): Likewise.
22704         * modules/unictype/ctype-graph-tests (Files): Likewise.
22705         * modules/unictype/ctype-lower-tests (Files): Likewise.
22706         * modules/unictype/ctype-print-tests (Files): Likewise.
22707         * modules/unictype/ctype-punct-tests (Files): Likewise.
22708         * modules/unictype/ctype-space-tests (Files): Likewise.
22709         * modules/unictype/ctype-upper-tests (Files): Likewise.
22710         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22711         * modules/unictype/decimal-digit-tests (Files): Likewise.
22712         * modules/unictype/digit-tests (Files): Likewise.
22713         * modules/unictype/mirror-tests (Files): Likewise.
22714         * modules/unictype/numeric-tests (Files): Likewise.
22715         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22716         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22717         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22718         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22719         Likewise.
22720         * modules/unictype/property-bidi-block-separator-tests (Files):
22721         Likewise.
22722         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22723         Likewise.
22724         * modules/unictype/property-bidi-common-separator-tests (Files):
22725         Likewise.
22726         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22727         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22728         Likewise.
22729         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22730         Likewise.
22731         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22732         Likewise.
22733         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22734         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22735         Likewise.
22736         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22737         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22738         Likewise.
22739         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22740         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22741         * modules/unictype/property-bidi-segment-separator-tests (Files):
22742         Likewise.
22743         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22744         * modules/unictype/property-byname-tests (Files): Likewise.
22745         * modules/unictype/property-combining-tests (Files): Likewise.
22746         * modules/unictype/property-composite-tests (Files): Likewise.
22747         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22748         * modules/unictype/property-dash-tests (Files): Likewise.
22749         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22750         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22751         Likewise.
22752         * modules/unictype/property-deprecated-tests (Files): Likewise.
22753         * modules/unictype/property-diacritic-tests (Files): Likewise.
22754         * modules/unictype/property-extender-tests (Files): Likewise.
22755         * modules/unictype/property-format-control-tests (Files): Likewise.
22756         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22757         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22758         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22759         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22760         * modules/unictype/property-hyphen-tests (Files): Likewise.
22761         * modules/unictype/property-id-continue-tests (Files): Likewise.
22762         * modules/unictype/property-id-start-tests (Files): Likewise.
22763         * modules/unictype/property-ideographic-tests (Files): Likewise.
22764         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22765         * modules/unictype/property-ids-trinary-operator-tests (Files):
22766         Likewise.
22767         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22768         * modules/unictype/property-iso-control-tests (Files): Likewise.
22769         * modules/unictype/property-join-control-tests (Files): Likewise.
22770         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22771         * modules/unictype/property-line-separator-tests (Files): Likewise.
22772         * modules/unictype/property-logical-order-exception-tests (Files):
22773         Likewise.
22774         * modules/unictype/property-lowercase-tests (Files): Likewise.
22775         * modules/unictype/property-math-tests (Files): Likewise.
22776         * modules/unictype/property-non-break-tests (Files): Likewise.
22777         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22778         * modules/unictype/property-numeric-tests (Files): Likewise.
22779         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22780         * modules/unictype/property-other-default-ignorable-code-point-tests
22781         (Files): Likewise.
22782         * modules/unictype/property-other-grapheme-extend-tests (Files):
22783         Likewise.
22784         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22785         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22786         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22787         * modules/unictype/property-other-math-tests (Files): Likewise.
22788         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22789         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22790         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22791         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22792         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22793         * modules/unictype/property-private-use-tests (Files): Likewise.
22794         * modules/unictype/property-punctuation-tests (Files): Likewise.
22795         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22796         * modules/unictype/property-radical-tests (Files): Likewise.
22797         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22798         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22799         * modules/unictype/property-space-tests (Files): Likewise.
22800         * modules/unictype/property-terminal-punctuation-tests (Files):
22801         Likewise.
22802         * modules/unictype/property-test-tests (Files): Likewise.
22803         * modules/unictype/property-titlecase-tests (Files): Likewise.
22804         * modules/unictype/property-unassigned-code-value-tests (Files):
22805         Likewise.
22806         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22807         * modules/unictype/property-uppercase-tests (Files): Likewise.
22808         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22809         * modules/unictype/property-white-space-tests (Files): Likewise.
22810         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22811         * modules/unictype/property-xid-start-tests (Files): Likewise.
22812         * modules/unictype/property-zero-width-tests (Files): Likewise.
22813         * modules/unictype/scripts-tests (Files): Likewise.
22814         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22815         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22816         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22817         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22818         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22819         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22820         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22821         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22822         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22823         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22824         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22825         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22826         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22827         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22828         * modules/uninorm/composition-tests (Files): Likewise.
22829         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22830         * modules/uninorm/decomposition-tests (Files): Likewise.
22831         * modules/uninorm/filter-tests (Files): Likewise.
22832         * modules/uninorm/nfc-tests (Files): Likewise.
22833         * modules/uninorm/nfd-tests (Files): Likewise.
22834         * modules/uninorm/nfkc-tests (Files): Likewise.
22835         * modules/uninorm/nfkd-tests (Files): Likewise.
22836         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22837         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22838         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22839         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22840         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22841         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22842         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22843         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22844         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22845         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22846         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22847         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22848         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22849         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22850         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22851         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22852         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22853         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22854         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22855         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22856         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22857         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22858         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22859         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22860         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22861         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22862         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22863         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22864         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22865         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22866         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22867         * modules/uniwidth/u8-width-tests (Files): Likewise.
22868         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22869         * modules/uniwidth/u16-width-tests (Files): Likewise.
22870         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22871         * modules/uniwidth/u32-width-tests (Files): Likewise.
22872         * modules/uniwidth/width-tests (Files): Likewise.
22873         * modules/unlink-tests (Files): Likewise.
22874         * modules/unsetenv-tests (Files): Likewise.
22875         * modules/usleep-tests (Files): Likewise.
22876         * modules/utimens-tests (Files): Likewise.
22877         * modules/utimensat-tests (Files): Likewise.
22878         * modules/vasnprintf-posix-tests (Files): Likewise.
22879         * modules/vasnprintf-tests (Files): Likewise.
22880         * modules/vasprintf-posix-tests (Files): Likewise.
22881         * modules/vasprintf-tests (Files): Likewise.
22882         * modules/vdprintf-posix-tests (Files): Likewise.
22883         * modules/vfprintf-posix-tests (Files): Likewise.
22884         * modules/vprintf-posix-tests (Files): Likewise.
22885         * modules/vsnprintf-posix-tests (Files): Likewise.
22886         * modules/vsnprintf-tests (Files): Likewise.
22887         * modules/vsprintf-posix-tests (Files): Likewise.
22888         * modules/wcrtomb-tests (Files): Likewise.
22889         * modules/wcsnrtombs-tests (Files): Likewise.
22890         * modules/wcsrtombs-tests (Files): Likewise.
22891         * modules/wctype-tests (Files): Likewise.
22892         * modules/wcwidth-tests (Files): Likewise.
22893         * modules/xmemdup0-tests (Files): Likewise.
22894         * modules/xprintf-posix-tests (Files): Likewise.
22895         * modules/xvasprintf-tests (Files): Likewise.
22896
22897 2009-12-24  Eric Blake  <ebb9@byu.net>
22898
22899         test-nanosleep: fix typo
22900         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22901         patch.
22902         Reported by Bruno Haible.
22903
22904 2009-12-24  Bruno Haible  <bruno@clisp.org>
22905
22906         Reduce namespace pollution on glibc systems.
22907         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22908         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22909         systems.
22910         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22911         <getopt.h> on glibc systems.
22912         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22913         systems.
22914         * lib/fcntl.c: Include <unistd.h> here instead.
22915
22916 2009-12-24  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22919
22920 2009-12-24  Eric Blake  <ebb9@byu.net>
22921
22922         tests: add signature checks
22923         * tests/signature.h (SIGNATURE_CHECK): New file.
22924         * modules/atexit-tests (Files): Use it.
22925         * modules/btowc-tests (Files): Likewise.
22926         * modules/canonicalize-lgpl-tests (Files): Likewise.
22927         * modules/ceilf-tests (Files): Likewise.
22928         * modules/ceill-tests (Files): Likewise.
22929         * modules/chown-tests (Files): Likewise.
22930         * modules/dprintf-posix-tests (Files): Likewise.
22931         * modules/dup2-tests (Files): Likewise.
22932         * modules/dup3-tests (Files): Likewise.
22933         * modules/duplocale-tests (Files): Likewise.
22934         * modules/fchdir-tests (Files): Likewise.
22935         * modules/fcntl-tests (Files): Likewise.
22936         * modules/fdopendir-tests (Files): Likewise.
22937         * modules/fflush-tests (Files): Likewise.
22938         * modules/flock-tests (Files): Likewise.
22939         * modules/floorf-tests (Files): Likewise.
22940         * modules/floorl-tests (Files): Likewise.
22941         * modules/fnmatch-tests (Files): Likewise.
22942         * modules/fopen-tests (Files): Likewise.
22943         * modules/fprintf-posix-tests (Files): Likewise.
22944         * modules/freopen-tests (Files): Likewise.
22945         * modules/frexp-nolibm-tests (Files): Likewise.
22946         * modules/frexp-tests (Files): Likewise.
22947         * modules/frexpl-nolibm-tests (Files): Likewise.
22948         * modules/frexpl-tests (Files): Likewise.
22949         * modules/fseek-tests (Files): Likewise.
22950         * modules/fseeko-tests (Files): Likewise.
22951         * modules/fsync-tests (Files): Likewise.
22952         * modules/ftell-tests (Files): Likewise.
22953         * modules/ftello-tests (Files): Likewise.
22954         * modules/futimens-tests (Files): Likewise.
22955         * modules/getaddrinfo-tests (Files): Likewise.
22956         * modules/getcwd-tests (Files): Likewise.
22957         * modules/getdelim-tests (Files): Likewise.
22958         * modules/getdtablesize-tests (Files): Likewise.
22959         * modules/getgroups-tests (Files): Likewise.
22960         * modules/gethostname-tests (Files): Likewise.
22961         * modules/getline-tests (Files): Likewise.
22962         * modules/getopt-posix-tests (Files): Likewise.
22963         * modules/gettimeofday-tests (Files): Likewise.
22964         * modules/glob-tests (Files): Likewise.
22965         * modules/iconv-tests (Files): Likewise.
22966         * modules/inet_ntop-tests (Files): Likewise.
22967         * modules/inet_pton-tests (Files): Likewise.
22968         * modules/isblank-tests (Files): Likewise.
22969         * modules/lchown-tests (Files): Likewise.
22970         * modules/ldexpl-tests (Files): Likewise.
22971         * modules/link-tests (Files): Likewise.
22972         * modules/linkat-tests (Files): Likewise.
22973         * modules/lseek-tests (Files): Likewise.
22974         * modules/lstat-tests (Files): Likewise.
22975         * modules/mbrtowc-tests (Files): Likewise.
22976         * modules/mbsinit-tests (Files): Likewise.
22977         * modules/mbsnrtowcs-tests (Files): Likewise.
22978         * modules/mbsrtowcs-tests (Files): Likewise.
22979         * modules/memchr-tests (Files): Likewise.
22980         * modules/memcmp-tests (Files): Likewise.
22981         * modules/memmem-tests (Files): Likewise.
22982         * modules/memrchr-tests (Files): Likewise.
22983         * modules/mkdir-tests (Files): Likewise.
22984         * modules/mkfifo-tests (Files): Likewise.
22985         * modules/mkfifoat-tests (Files): Likewise.
22986         * modules/mknod-tests (Files): Likewise.
22987         * modules/nanosleep-tests (Files): Likewise.
22988         * modules/nl_langinfo-tests (Files): Likewise.
22989         * modules/obstack-printf-tests (Files): Likewise.
22990         * modules/open-tests (Files): Likewise.
22991         * modules/openat-tests (Files): Likewise.
22992         * modules/perror-tests (Files): Likewise.
22993         * modules/pipe2-tests (Files): Likewise.
22994         * modules/poll-tests (Files): Likewise.
22995         * modules/popen-tests (Files): Likewise.
22996         * modules/posix_spawn-tests (Files): Likewise.
22997         * modules/posix_spawnp-tests (Files): Likewise.
22998         * modules/pread-tests (Files): Likewise.
22999         * modules/printf-posix-tests (Files): Likewise.
23000         * modules/pty-tests (Files): Likewise.
23001         * modules/random_r-tests (Files): Likewise.
23002         * modules/rawmemchr-tests (Files): Likewise.
23003         * modules/readlink-tests (Files): Likewise.
23004         * modules/remove-tests (Files): Likewise.
23005         * modules/rename-tests (Files): Likewise.
23006         * modules/renameat-tests (Files): Likewise.
23007         * modules/rmdir-tests (Files): Likewise.
23008         * modules/round-tests (Files): Likewise.
23009         * modules/roundf-tests (Files): Likewise.
23010         * modules/roundl-tests (Files): Likewise.
23011         * modules/select-tests (Files): Likewise.
23012         * modules/setenv-tests (Files): Likewise.
23013         * modules/sigaction-tests (Files): Likewise.
23014         * modules/sleep-tests (Files): Likewise.
23015         * modules/snprintf-posix-tests (Files): Likewise.
23016         * modules/snprintf-tests (Files): Likewise.
23017         * modules/sprintf-posix-tests (Files): Likewise.
23018         * modules/stat-tests (Files): Likewise.
23019         * modules/strcasestr-tests (Files): Likewise.
23020         * modules/strchrnul-tests (Files): Likewise.
23021         * modules/strerror-tests (Files): Likewise.
23022         * modules/strsignal-tests (Files): Likewise.
23023         * modules/strstr-tests (Files): Likewise.
23024         * modules/strtod-tests (Files): Likewise.
23025         * modules/strverscmp-tests (Files): Likewise.
23026         * modules/symlink-tests (Files): Likewise.
23027         * modules/symlinkat-tests (Files): Likewise.
23028         * modules/times-tests (Files): Likewise.
23029         * modules/trunc-tests (Files): Likewise.
23030         * modules/truncf-tests (Files): Likewise.
23031         * modules/truncl-tests (Files): Likewise.
23032         * modules/tsearch-tests (Files): Likewise.
23033         * modules/uname-tests (Files): Likewise.
23034         * modules/unlink-tests (Files): Likewise.
23035         * modules/unsetenv-tests (Files): Likewise.
23036         * modules/usleep-tests (Files): Likewise.
23037         * modules/utimensat-tests (Files): Likewise.
23038         * modules/vasprintf-tests (Files): Likewise.
23039         * modules/vdprintf-posix-tests (Files): Likewise.
23040         * modules/vfprintf-posix-tests (Files): Likewise.
23041         * modules/vprintf-posix-tests (Files): Likewise.
23042         * modules/vsnprintf-posix-tests (Files): Likewise.
23043         * modules/vsnprintf-tests (Files): Likewise.
23044         * modules/vsprintf-posix-tests (Files): Likewise.
23045         * modules/wcrtomb-tests (Files): Likewise.
23046         * modules/wcsnrtombs-tests (Files): Likewise.
23047         * modules/wcsrtombs-tests (Files): Likewise.
23048         * modules/wcwidth-tests (Files): Likewise.
23049         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23050         * tests/test-isinf.c (isinf): Likewise.
23051         * tests/test-isnan.c (isnan): Likewise.
23052         * tests/test-signbit.c (signbit): Likewise.
23053         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23054         declaration, either as macro or with correct signature.
23055         (select): Ensure function under test is declared with correct
23056         signature in correct header.
23057         * tests/test-atexit.c (atexit): Likewise.
23058         * tests/test-btowc.c (btowc): Likewise.
23059         * tests/test-canonicalize-lgpl.c (realpath)
23060         (canonicalize_file_name): Likewise.
23061         * tests/test-ceilf1.c (ceilf): Likewise.
23062         * tests/test-ceill.c (ceill): Likewise.
23063         * tests/test-chown.c (chown): Likewise.
23064         * tests/test-dprintf-posix.c (dprintf): Likewise.
23065         * tests/test-dup2.c (dup2): Likewise.
23066         * tests/test-dup3.c (dup3): Likewise.
23067         * tests/test-duplocale.c (duplocale): Likewise.
23068         * tests/test-fchdir.c (fchdir): Likewise.
23069         * tests/test-fchownat.c (fchownat): Likewise.
23070         * tests/test-fcntl.c (fcntl): Likewise.
23071         * tests/test-fdopendir.c (fdopendir): Likewise.
23072         * tests/test-fflush.c (fflush): Likewise.
23073         * tests/test-flock.c (flock): Likewise.
23074         * tests/test-floorf1.c (floorf): Likewise.
23075         * tests/test-floorl.c (floorl): Likewise.
23076         * tests/test-fnmatch.c (fnmatch): Likewise.
23077         * tests/test-fopen.c (fopen): Likewise.
23078         * tests/test-fprintf-posix.c (fprintf): Likewise.
23079         * tests/test-freopen.c (freopen): Likewise.
23080         * tests/test-frexp.c (frexp): Likewise.
23081         * tests/test-frexpl.c (frexpl): Likewise.
23082         * tests/test-fseek.c (fseek): Likewise.
23083         * tests/test-fseeko.c (fseeko): Likewise.
23084         * tests/test-fstatat.c (fstatat): Likewise.
23085         * tests/test-fsync.c (fsync): Likewise.
23086         * tests/test-ftell.c (ftell): Likewise.
23087         * tests/test-ftello.c (ftello): Likewise.
23088         * tests/test-futimens.c (futimens): Likewise.
23089         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23090         (gai_strerror): Likewise.
23091         * tests/test-getcwd.c (getcwd): Likewise.
23092         * tests/test-getdelim.c (getdelim): Likewise.
23093         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23094         * tests/test-getgroups.c (getgroups): Likewise.
23095         * tests/test-gethostname.c (gethostname): Likewise.
23096         * tests/test-getline.c (getline): Likewise.
23097         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23098         Likewise.
23099         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23100         * tests/test-glob.c (glob, globfree): Likewise.
23101         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23102         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23103         * tests/test-inet_pton.c (inet_pton): Likewise.
23104         * tests/test-isblank.c (isblank): Likewise.
23105         * tests/test-lchown.c (lchown): Likewise.
23106         * tests/test-ldexpl.c (ldexpl): Likewise.
23107         * tests/test-link.c (link): Likewise.
23108         * tests/test-linkat.c (linkat): Likewise.
23109         * tests/test-lseek.c (lseek): Likewise.
23110         * tests/test-lstat.c (lstat): Likewise.
23111         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23112         * tests/test-mbsinit.c (mbsinit): Likewise.
23113         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23114         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23115         * tests/test-memchr.c (memchr): Likewise.
23116         * tests/test-memcmp.c (memcmp): Likewise.
23117         * tests/test-memmem.c (memmem): Likewise.
23118         * tests/test-memrchr.c (memrchr): Likewise.
23119         * tests/test-mkdir.c (mkdir): Likewise.
23120         * tests/test-mkdirat.c (mkdirat): Likewise.
23121         * tests/test-mkfifo.c (mkfifo): Likewise.
23122         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23123         * tests/test-mknod.c (mknod): Likewise.
23124         * tests/test-nanosleep.c (nanosleep): Likewise.
23125         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23126         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23127         Likewise.
23128         * tests/test-open.c (open): Likewise.
23129         * tests/test-openat.c (openat): Likewise.
23130         * tests/test-perror.c (perror): Likewise.
23131         * tests/test-pipe2.c (pipe2): Likewise.
23132         * tests/test-poll.c (poll): Likewise.
23133         * tests/test-popen.c (popen, pclose): Likewise.
23134         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23135         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23136         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23137         (posix_spawn_file_actions_destroy)
23138         (posix_spawn_file_actions_addclose)
23139         (posix_spawn_file_actions_addopen)
23140         (posix_spawn_file_actions_adddup2): Likewise.
23141         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23142         * tests/test-pread.c (pread): Likewise.
23143         * tests/test-printf-posix.c (printf): Likewise.
23144         * tests/test-pty.c (openpty, forkpty): Likewise.
23145         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23146         (random_r): Likewise.
23147         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23148         * tests/test-readlink.c (readlink): Likewise.
23149         * tests/test-remove.c (remove): Likewise.
23150         * tests/test-rename.c (rename): Likewise.
23151         * tests/test-renameat.c (renameat): Likewise.
23152         * tests/test-rmdir.c (rmdir): Likewise.
23153         * tests/test-round1.c (round): Likewise.
23154         * tests/test-roundf1.c (roundf): Likewise.
23155         * tests/test-roundl.c (roundl): Likewise.
23156         * tests/test-setenv.c (setenv): Likewise.
23157         * tests/test-sigaction.c (sigaction): Likewise.
23158         * tests/test-sleep.c (sleep): Likewise.
23159         * tests/test-snprintf.c (snprintf): Likewise.
23160         * tests/test-sprintf-posix.c (sprintf): Likewise.
23161         * tests/test-stat.c (stat): Likewise.
23162         * tests/test-stpncpy.c (stpncpy): Likewise.
23163         * tests/test-strcasestr.c (strcasestr): Likewise.
23164         * tests/test-strchrnul.c (strchrnul): Likewise.
23165         * tests/test-strerror.c (strerror): Likewise.
23166         * tests/test-strsignal.c (strsignal): Likewise.
23167         * tests/test-strstr.c (strstr): Likewise.
23168         * tests/test-strtod.c (strtod): Likewise.
23169         * tests/test-strverscmp.c (strverscmp): Likewise.
23170         * tests/test-symlink.c (symlink): Likewise.
23171         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23172         * tests/test-times.c (times): Likewise.
23173         * tests/test-trunc1.c (trunc): Likewise.
23174         * tests/test-truncf1.c (truncf): Likewise.
23175         * tests/test-truncl.c (truncl): Likewise.
23176         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23177         Likewise.
23178         * tests/test-uname.c (uname): Likewise.
23179         * tests/test-unlink.c (unlink): Likewise.
23180         * tests/test-unlinkat.c (unlinkat): Likewise.
23181         * tests/test-unsetenv.c (unsetenv): Likewise.
23182         * tests/test-usleep.c (usleep): Likewise.
23183         * tests/test-utimensat.c (utimensat): Likewise.
23184         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23185         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23186         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23187         * tests/test-vprintf-posix.c (vprintf): Likewise.
23188         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23189         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23190         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23191         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23192         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23193         * tests/test-wcwidth.c (wcwidth): Likewise.
23194
23195         build: pull in conditional headers during GNULIB_POSIXCHECK
23196         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23197         definitions from any conditionally-included headers.
23198         * lib/stdlib.in.h (includes): Likewise.
23199         * lib/unistd.in.h (includes): Likewise.
23200
23201 2009-12-24  Bruno Haible  <bruno@clisp.org>
23202
23203         * tests/test-argv-iter.c: Include header file being tested immediately
23204         after config.h.
23205         * tests/test-base64.c: Likewise.
23206         * tests/test-flock.c: Likewise.
23207         * tests/test-fsync.c: Likewise.
23208         * tests/test-getdate.c: Likewise.
23209         * tests/test-getndelim2.c: Likewise.
23210         * tests/test-isfinite.c: Likewise.
23211         * tests/test-isinf.c: Likewise.
23212         * tests/test-strerror.c: Likewise.
23213         * tests/test-strsignal.c: Likewise.
23214
23215 2009-12-23  Eric Blake  <ebb9@byu.net>
23216
23217         unistd: work around cygwin bug
23218         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23219         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23220         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23221
23222 2009-12-23  Bruno Haible  <bruno@clisp.org>
23223
23224         localename: More tests.
23225         * tests/test-localename.c (SIZEOF): New macro.
23226         (categories): New variable.
23227         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23228         test_locale_name_default): Add test w.r.t. thread locale.
23229         (test_locale_name_thread): New function.
23230         (main): Invoke it.
23231
23232         localename: Make aware of thread locale.
23233         * lib/localename.h (gl_locale_name_thread): New declaration.
23234         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23235         behaviour with respect to thread locale.
23236         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23237         <langinfo.h>, glthread/lock.h.
23238         (SIZE_BITS): New macro.
23239         (string_hash): New function.
23240         (struct hash_node): New type.
23241         (HASH_TABLE_SIZE): New macro.
23242         (struniq_hash_table, struniq_lock): New variables.
23243         (struniq): New function.
23244         (gl_locale_name_thread): New function.
23245         (gl_locale_name): Invoke it.
23246         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23247         * modules/localename (Depends-on): Add lock.
23248         Reported by Mike Gran <spk121@yahoo.com>.
23249
23250 2009-12-23  Eric Blake  <ebb9@byu.net>
23251
23252         va-args: new module
23253         * modules/va-args: New file.
23254         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23255         * MODULES.html.sh (Core language properties): Mention it.
23256
23257         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23258         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23259         named alias for __attribute__((__unused__)).
23260         * lib/chown.c: Update client.
23261         * lib/fchmodat.c: Likewise.
23262         * lib/fts.c: Likewise.
23263         * lib/getdate.y: Likewise.
23264         * lib/getgroups.c: Likewise.
23265         * lib/getopt.c: Likewise.
23266         * lib/getugroups.c: Likewise.
23267         * lib/mkdir.c: Likewise.
23268         * lib/mkfifo.c: Likewise.
23269         * lib/mkfifoat.c: Likewise.
23270         * lib/mknod.c: Likewise.
23271         * lib/mknodat.c: Likewise.
23272         * lib/readlink.c: Likewise.
23273         * lib/se-context.in.h: Likewise.
23274         * lib/se-selinux.in.h: Likewise.
23275         * lib/sockets.c: Likewise.
23276         * lib/symlink.c: Likewise.
23277         * lib/symlinkat.c: Likewise.
23278         * lib/unicodeio.c: Likewise.
23279         * lib/unistr.h: Likewise.
23280         * tests/test-areadlink.c: Likewise.
23281         * tests/test-areadlinkat.c: Likewise.
23282         * tests/test-filenamecat.c: Likewise.
23283         * tests/test-fseeko.c: Likewise.
23284         * tests/test-ftello.c: Likewise.
23285         * tests/test-getdate.c: Likewise.
23286         * tests/test-getgroups.c: Likewise.
23287         * tests/test-gethostname.c: Likewise.
23288         * tests/test-quotearg.c: Likewise.
23289         * tests/test-version-etc.c: Likewise.
23290         * tests/test-xalloc-die.c: Likewise.
23291         * tests/test-xfprintf-posix.c: Likewise.
23292         * tests/test-xprintf-posix.c: Likewise.
23293         * tests/test-xvasprintf.c: Likewise.
23294
23295         tests: avoid compiler warnings
23296         * tests/test-fcntl.c (main): Delete unused parameters.
23297         * tests/test-freopen-safer.c (main): Likewise.
23298         * tests/test-xalloc-die.c (main): Mark unused parameters.
23299         * tests/test-fseeko.c (main): Likewise.
23300         * tests/test-ftello.c (main): Likewise.
23301         * tests/test-nanosleep.c (main): Avoid declaration warning.
23302         * tests/test-sleep.c (main): Likewise.
23303         * tests/test-unsetenv.c (main): Silence warning about string
23304         literal.
23305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23306
23307 2009-12-23  Bruno Haible  <bruno@clisp.org>
23308
23309         * tests/test-localename.c (test_locale_name): New function, extracted
23310         from main. Also test mixed situations.
23311         (test_locale_name_posix, test_locale_name_environ,
23312         test_locale_name_default): New functions.
23313         (main): Invoke them all.
23314         * modules/localename-tests (configure.ac): Test for newlocale.
23315
23316 2009-12-23  Bruno Haible  <bruno@clisp.org>
23317
23318         unistd: Ensure getcwd gets declared before being overridden.
23319         * lib/unistd.in.h: Conditionally include <io.h>.
23320
23321 2009-12-22  Bruno Haible  <bruno@clisp.org>
23322
23323         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23324         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23325         (gl_WCHAR_H): Invoke it.
23326         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23327         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23328         Reported by Karl Berry <karl@freefriends.org>.
23329
23330 2009-12-22  Eric Blake  <ebb9@byu.net>
23331
23332         math, unistd: avoid redundant includes
23333         * lib/math.in.h (isnan): No need to re-include <math.h>.
23334         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23335
23336         getsubopt: work around cygwin bug
23337         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23338         avoid conflicting with system getsubopt.
23339         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23340         bug.
23341
23342         getopt: synchronize from glibc
23343         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23344         parameter order.  Adjust all callers.
23345         (_getopt_internal_r, main): Adjust quoting in error messages.
23346         Drop considerations for outdated POSIX 1003.2 error message.
23347         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23348         callers.
23349         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23350
23351         test-getopt: test stderr behavior
23352         * modules/getopt-posix-tests (Depends-on): Add dup2.
23353         * tests/test-getopt.c (ASSERT): Avoid stderr.
23354         (main): Move stderr to a temporary file.
23355         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23356         Instead, add parameter to inform caller if output occurred.
23357         (test_getopt): Adjust all existing tests to expect silence, and
23358         add new tests of leading ":".
23359         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23360         glibc shortcomings with leading "-:" or "+:" in optstring.
23361         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23362         Likewise.
23363         * doc/posix-functions/getopt.texi (getopt): Likewise.
23364
23365         test-getopt: enhance test
23366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23367         supports optind=0.
23368         * tests/test-getopt.c (OPTIND_MIN): Move...
23369         * tests/test-getopt.h (OPTIND_MIN): ...here.
23370         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23371         Require that optind=0 works, since modern BSD supports it in
23372         addition to optreset, and since coreutils expects it.
23373         (test_getopt_long_only): New test.
23374         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23375         glibc shortcomings with 'W;', and enforcement of optind=0.
23376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23377         Likewise.
23378
23379 2009-12-21  Bruno Haible  <bruno@clisp.org>
23380
23381         localename: Improvements for MacOS X and Cygwin.
23382         * lib/localename.h (gl_locale_name_environ): New declaration.
23383         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23384         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23385         (gl_locale_name_posix): Invoke it.
23386         (gl_locale_name_default): Add comments. Use Windows native API also on
23387         Cygwin.
23388
23389 2009-12-21  Bruno Haible  <bruno@clisp.org>
23390
23391         Update list of Win32 locale ids.
23392         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23393         (LANG_SAMI): Renamed from LANG_SAAMI.
23394         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23395         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23396         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23397         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23398         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23399         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23400         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23401         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23402         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23403         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23404         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23405         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23406         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23407         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23408         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23409         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23410         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23411         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23412         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23413         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23414         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23415         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23416         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23417         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23418         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23419         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23420         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23421         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23422         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23423         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23424         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23425         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23426         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23427         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23428         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23429         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23430         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23431         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23432         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23433         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23434         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23435         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23436         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23437         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23438         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23439         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23440         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23441         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23442         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23443         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23444         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23445         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23446         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23447         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23448         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23449         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23450         Add more languages and countries for Sami, Sorbian. Add more countries
23451         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23452         for Pashto. Change country for Syriac, Tswana.
23453
23454 2009-12-21  Eric Blake  <ebb9@byu.net>
23455
23456         test-utimens: avoid spurious failure
23457         * tests/test-chown.h (nap): Factor...
23458         * tests/nap.h: ...into new file.
23459         * tests/test-lchown.h (nap): Avoid duplication.
23460         * tests/test-utimens-common.h (nap): Use shared implementation,
23461         necessary on file systems with 1-second resolution.
23462         * modules/chown-tests (Files): Include new file.
23463         * modules/fdutimensat-tests (Files): Likewise.
23464         * modules/futimens-tests (Files): Likewise.
23465         * modules/lchown-tests (Files): Likewise.
23466         * modules/openat-tests (Files): Likewise.
23467         * modules/utimens-tests (Files): Likewise.
23468         * modules/utimensat-tests (Files): Likewise.
23469
23470 2009-12-19  Eric Blake  <ebb9@byu.net>
23471
23472         futimens, utimensat: work around Linux bug
23473         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23474         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23475         * lib/utimensat.c (rpl_utimensat): Work around it.
23476         * lib/futimens.c (rpl_futimens): Adjust comment.
23477
23478         utimens: work around Linux ctime bug
23479         * lib/utimens.c (detect_ctime_bug): New helper function.
23480         (update_timespec): Differentiate between workaround needed for
23481         this bug vs. what is needed for systems that lack utimensat.
23482         (fdutimens, lutimens): Work around bug.
23483
23484         utimens: check for ctime update
23485         * tests/test-utimens-common.h (check_ctime): Define.
23486         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23487         * tests/test-futimens.h (test_futimens): Likewise.
23488         * tests/test-lutimens.h (test_lutimens): Likewise.
23489         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23490         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23491
23492 2009-12-19  Bruno Haible  <bruno@clisp.org>
23493
23494         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23495         * tests/test-dprintf-posix2.sh: New file.
23496         * tests/test-dprintf-posix2.c: New file.
23497         * modules/dprintf-posix-tests (Files): Add them.
23498         (configure.ac): Check for getrlimit and setrlimit.
23499         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23500
23501 2009-12-19  Bruno Haible  <bruno@clisp.org>
23502
23503         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23504         * tests/test-fprintf-posix3.sh: New file.
23505         * tests/test-fprintf-posix3.c: New file.
23506         * modules/fprintf-posix-tests (Files): Add them.
23507         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23508
23509 2009-12-19  Eric Blake  <ebb9@byu.net>
23510
23511         dirfd: fix prototype
23512         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23513         * lib/dirfd.c (dirfd): Likewise.
23514
23515         canonicalize: reduce memory usage
23516         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23517         allocation to size.
23518         Reported by Solar Designer <solar@openwall.com>.
23519
23520 2009-12-19  Bruno Haible  <bruno@clisp.org>
23521
23522         New module attribute 'Applicability'.
23523         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23524         * gnulib-tool: New option --extract-applicability.
23525         (func_usage): Document it.
23526         (sed_extract_prog): Recognize it.
23527         (func_get_applicability): New function.
23528         (func_import): Generalize handling of 'link-warning' module.
23529         * modules/link-warning (Applicability): New section.
23530         * modules/arg-nonnull (Applicability): New section.
23531         Repoted by Simon Josefsson <simon@josefsson.org>.
23532
23533 2009-12-19  Bruno Haible  <bruno@clisp.org>
23534
23535         fflush: tweak
23536         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23537         * lib/fseeko.c (rpl_fseeko): Likewise.
23538
23539 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23540
23541         * lib/gl_list.h: Fix typo in comment.
23542
23543 2009-12-16  Eric Blake  <ebb9@byu.net>
23544
23545         fcntl: use to simplify other modules
23546         * modules/cloexec (Depends-on): Add fcntl.
23547         * modules/fchdir (Depends-on): Likewise.
23548         * modules/fd-safer-flag (Depends-on): Likewise.
23549         * modules/unistd-safer (Depends-on): Likewise.
23550         * modules/dup3 (configure.ac): Set module indicator.
23551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23552         missing.
23553         * lib/fchdir.c (_gl_register_dup): Fix comment.
23554         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23555         * lib/dup-safer.c (dup_safer): Likewise.
23556         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23557         * lib/dup3.c (dup3): Likewise.
23558         * tests/test-fchdir.c (main): Enhance test.
23559         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23560
23561         fcntl: port portions of fcntl to mingw
23562         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23563         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23564         replacement for mingw.
23565         * modules/fcntl (Description): Update.
23566         (Depends-on): Add dup2.
23567         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23568         * modules/fcntl-h (Makefile.am): Substitute it.
23569         * lib/fcntl.in.h (fcntl): Update declaration.
23570         (F_DUPFD, F_GETFD): New macros, when needed.
23571         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23572         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23573         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23574         we now guarantee.
23575
23576         fcntl: work around cygwin bug in F_DUPFD
23577         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23578         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23579         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23580         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23581         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23582
23583         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23584         * modules/fcntl (Files): List new files.
23585         (configure.ac): Run a test.
23586         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23587         * lib/fcntl.c (rpl_fcntl): Likewise.
23588         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23589         (gl_FCNTL_H): Always replace fcntl.h.
23590         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23591         * lib/fcntl.in.h (fcntl): Declare replacement.
23592         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23593         needed, plus a witness.
23594         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23595         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23596         * tests/test-fcntl.c: New file.
23597         * modules/fcntl-tests: Likewise.
23598
23599         binary-io: avoid potential compilation warning
23600         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23601         directives.
23602
23603         fflush: avoid compilation error on NetBSD
23604         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23605         between off_t and fpos_t, since the latter is sometimes a struct.
23606         * lib/fseeko.c (rpl_fseeko): Likewise.
23607         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23608
23609 2009-12-15  Eric Blake  <ebb9@byu.net>
23610
23611         fcntl-h, stdio, sys_ioctl: fix declarations
23612         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23613         function must not take arguments.
23614         * lib/sys_ioctl.in.h (ioctl): Likewise.
23615         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23616         (open): Add a link warning.
23617
23618 2009-12-15  Jim Meyering  <meyering@redhat.com>
23619
23620         areadlink, areadlink-with-size: relax license to LGPLv2+
23621         * modules/areadlink (License): Relax to LGPLv2+.
23622         * modules/areadlink-with-size (License): Likewise.
23623
23624 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23625             Bruno Haible  <bruno@clisp.org>
23626
23627         *printf: Fix memory leak.
23628         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23629         * lib/vfprintf.c (vfprintf): Likewise.
23630         * lib/dprintf.c (dprintf): Likewise.
23631         * lib/vdprintf.c (vdprintf): Likewise.
23632
23633 2009-12-14  Eric Blake  <ebb9@byu.net>
23634
23635         accept4: adjust module dependencies
23636         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23637
23638         utimens: one more try at avoiding compiler warning
23639         * lib/utimens.c (lutimens): Lower scope of result.
23640
23641 2009-12-13  Bruno Haible  <bruno@clisp.org>
23642
23643         Move the malloc checking from module 'list' to new module 'xlist'.
23644         * modules/xlist: New file.
23645         * lib/gl_xlist.h: New file.
23646         * lib/gl_xlist.c: New file.
23647         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23648         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23649         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23650         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23651         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23652         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23653         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23654         gl_sortedlist_nx_add): New declarations.
23655         (struct gl_list_implementation): Rename and change methods accordingly.
23656         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23657         (gl_list_nx_create): Renamed from gl_list_create.
23658         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23659         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23660         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23661         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23662         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23663         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23664         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23665         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23666         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23667         gl_list_create_empty.
23668         (gl_list_nx_create): Renamed from gl_list_create.
23669         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23670         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23671         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23672         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23673         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23674         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23675         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23676         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23677         * lib/gl_array_list.c: Don't include xalloc.h.
23678         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23679         NULL upon out-of-memory.
23680         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23681         out-of-memory.
23682         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23683         Change return type to 'int'.
23684         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23685         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23686         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23687         upon out-of-memory.
23688         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23689         upon out-of-memory.
23690         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23691         upon out-of-memory.
23692         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23693         upon out-of-memory.
23694         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23695         out-of-memory.
23696         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23697         Update.
23698         (gl_array_list_implementation): Update.
23699         * lib/gl_carray_list.c: Don't include xalloc.h.
23700         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23701         Return NULL upon out-of-memory.
23702         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23703         out-of-memory.
23704         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23705         Change return type to 'int'.
23706         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23707         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23708         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23709         upon out-of-memory.
23710         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23711         upon out-of-memory.
23712         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23713         out-of-memory.
23714         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23715         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23716         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23717         Update.
23718         (gl_carray_list_implementation): Update.
23719         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23720         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23721         gl_linked_create_empty. Return NULL upon out-of-memory.
23722         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23723         out-of-memory.
23724         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23725         Change return type to 'int'. Return -1 upon out-of-memory.
23726         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23727         out-of-memory.
23728         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23729         upon out-of-memory.
23730         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23731         upon out-of-memory.
23732         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23733         NULL upon out-of-memory.
23734         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23735         upon out-of-memory.
23736         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23737         out-of-memory.
23738         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23739         Update.
23740         * lib/gl_linked_list.c: Don't include xalloc.h.
23741         (gl_linked_list_implementation): Update.
23742         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23743         (add_to_bucket): Change return type to 'int'.
23744         (gl_linkedhash_list_implementation): Update.
23745         * lib/gl_anytree_list1.h (free_subtree): New function.
23746         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23747         gl_tree_create_empty. Return NULL upon out-of-memory.
23748         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23749         Change return type to 'int'. Return -1 upon out-of-memory.
23750         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23751         out-of-memory.
23752         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23753         (gl_tree_remove_node): New function, moved here from
23754         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23755         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23756         Update.
23757         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23758         malloc, not xmalloc. Return NULL upon out-of-memory.
23759         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23760         out-of-memory.
23761         (gl_tree_remove_node_from_tree): New function, extracted from
23762         gl_tree_remove_node.
23763         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23764         upon out-of-memory.
23765         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23766         out-of-memory.
23767         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23768         upon out-of-memory.
23769         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23770         upon out-of-memory.
23771         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23772         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23773         not xmalloc. Return NULL upon out-of-memory.
23774         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23775         out-of-memory.
23776         (gl_tree_remove_node_from_tree): New function, extracted from
23777         gl_tree_remove_node.
23778         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23779         upon out-of-memory.
23780         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23781         out-of-memory.
23782         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23783         upon out-of-memory.
23784         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23785         upon out-of-memory.
23786         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23787         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23788         gl_anytree_list1.h before gl_anyavltree_list2.h.
23789         (gl_avltree_list_implementation): Update.
23790         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23791         gl_anytree_list1.h before gl_anyavltree_list2.h.
23792         (gl_rbtree_list_implementation): Update.
23793         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23794         Change return type to 'int'. Return -1 upon out-of-memory. Use
23795         __builtin_expect.
23796         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23797         (gl_avltreehash_list_implementation): Update.
23798         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23799         (gl_rbtreehash_list_implementation): Update.
23800         * modules/array-list (Depends-on): Remove xalloc.
23801         * modules/carray-list (Depends-on): Likewise.
23802         * modules/linked-list (Depends-on): Likewise.
23803         * modules/linkedhash-list (Depends-on): Likewise.
23804         * modules/avltree-list (Depends-on): Likewise.
23805         * modules/rbtree-list (Depends-on): Likewise.
23806         * modules/avltreehash-list (Depends-on): Likewise.
23807         * modules/rbtreehash-list (Depends-on): Likewise.
23808
23809         * modules/xsublist: New file.
23810         * lib/gl_xsublist.h: New file.
23811         * lib/gl_xsublist.c: New file.
23812         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23813         (gl_sublist_nx_create): New declaration.
23814         * lib/gl_sublist.c: Don't include xalloc.h.
23815         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23816         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23817         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23818         Change return type to 'int'. Return -1 upon out-of-memory.
23819         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23820         upon out-of-memory.
23821         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23822         NULL upon out-of-memory.
23823         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23824         upon out-of-memory.
23825         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23826         NULL upon out-of-memory.
23827         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23828         NULL upon out-of-memory.
23829         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23830         upon out-of-memory.
23831         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23832         (gl_sublist_list_implementation): Update.
23833         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23834         upon out-of-memory.
23835         * modules/sublist (Depends-on): Remove xalloc.
23836
23837         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23838         * tests/test-carray_list.c: Likewise.
23839         * tests/test-linked_list.c: Likewise.
23840         * tests/test-linkedhash_list.c: Likewise.
23841         * tests/test-avltree_list.c: Likewise.
23842         * tests/test-rbtree_list.c: Likewise.
23843         * tests/test-avltreehash_list.c: Likewise.
23844         * tests/test-rbtreehash_list.c: Likewise.
23845         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23846         * modules/carray-list-tests (Makefile.am): Likewise.
23847         * modules/linked-list-tests (Makefile.am): Likewise.
23848         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23849         * modules/avltree-list-tests (Makefile.am): Likewise.
23850         * modules/rbtree-list-tests (Makefile.am): Likewise.
23851         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23852         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23853
23854         * NEWS: Mention the changes.
23855
23856         * lib/clean-temp.c: Include gl_xlist.h.
23857         * modules/clean-temp (Depends-on): Add xlist.
23858
23859         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23860         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23861
23862         * tests/test-array_oset.c: Include gl_xlist.h.
23863         * modules/array-oset-tests (Depends-on): Add xlist.
23864
23865         Reported by José E. Marchesi <jemarch@gnu.org>.
23866
23867 2009-12-13  Bruno Haible  <bruno@clisp.org>
23868
23869         Move the malloc checking from module 'oset' to new module 'xoset'.
23870         * modules/xoset: New file.
23871         * lib/gl_xoset.h: New file.
23872         * lib/gl_xoset.c: New file.
23873         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23874         declarations.
23875         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23876         (struct gl_oset_implementation): Rename and change methods accordingly.
23877         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23878         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23879         'int'. Mark as __warn_unused_result__.
23880         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23881         gl_oset_create_empty.
23882         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23883         'int'.
23884         * lib/gl_array_oset.c: Don't include xalloc.h.
23885         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23886         malloc, not xmalloc.
23887         (grow): Change return type to 'int'. Don't call xalloc_die.
23888         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23889         to 'int'.
23890         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23891         'int'.
23892         (gl_array_oset_implementation): Update.
23893         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23894         gl_tree_create_empty.
23895         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23896         'int'.
23897         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23898         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23899         xmalloc.
23900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23901         not xmalloc.
23902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23903         xmalloc.
23904         (gl_avltree_oset_implementation): Update.
23905         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23906         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23907         xmalloc.
23908         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23909         not xmalloc.
23910         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23911         xmalloc.
23912         (gl_rbtree_oset_implementation): Update.
23913         * modules/array-oset (Depends-on): Remove xalloc.
23914         * modules/avltree-oset (Depends-on): Likewise.
23915         * modules/rbtree-oset (Depends-on): Likewise.
23916         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23917         * tests/test-avltree_oset.c: Likewise.
23918         * tests/test-rbtree_oset.c: Likewise.
23919         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23920         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23921         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23922         * NEWS: Mention the change.
23923
23924 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23925
23926         maint.mk: allow a project to override release-prep commands
23927         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23928         commands into a new rule.
23929         (release-prep): New rule.
23930         (release-prep-hook): New overridable variable.
23931
23932 2009-12-13  Bruno Haible  <bruno@clisp.org>
23933
23934         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23935
23936 2009-12-13  Jim Meyering  <meyering@redhat.com>
23937
23938         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23939         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23940
23941 2009-12-12  Bruno Haible  <bruno@clisp.org>
23942
23943         duplocale: Tweak.
23944         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23945
23946 2009-12-12  Karl Berry  <karl@gnu.org>
23947
23948         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23949
23950 2009-12-12  Bruno Haible  <bruno@clisp.org>
23951
23952         * m4/po.m4: Undo incorrect untabification.
23953
23954 2009-12-12  Bruno Haible  <bruno@clisp.org>
23955
23956         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23957         * modules/c-strtod (Depends-on): Add locale.
23958         * modules/c-strtold (Depends-on): Likewise.
23959
23960 2009-12-12  Bruno Haible  <bruno@clisp.org>
23961
23962         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23963
23964 2009-12-11  Eric Blake  <ebb9@byu.net>
23965
23966         setenv: relax requirement in light of POSIX ruling
23967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23968         not NULL.
23969         * tests/test-setenv.c (main): Relax test.
23970         * tests/test-unsetenv.c (main): Likewise.
23971         * doc/posix-functions/setenv.texi (setenv): Document this.
23972         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23973
23974 2009-12-11  Bruno Haible  <bruno@clisp.org>
23975
23976         New module 'fd-safer-flag'.
23977         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23978         * lib/dup-safer.c (dup_safer_flag): Remove function.
23979         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23980         * lib/fd-safer.c (fd_safer_flag): Remove function.
23981         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23982         * modules/cloexec (configure.ac): Drop indicator macro.
23983         * modules/fd-safer-flag: New file.
23984         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23985         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23986         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23987
23988 2009-12-11  Bruno Haible  <bruno@clisp.org>
23989
23990         Tests for module 'nl_langinfo'.
23991         * modules/nl_langinfo-tests: New file.
23992         * tests/test-nl_langinfo.sh: New file.
23993         * tests/test-nl_langinfo.c: New file.
23994
23995         New module 'nl_langinfo'.
23996         * lib/nl_langinfo.c: New file.
23997         * m4/nl_langinfo.m4: New file.
23998         * modules/nl_langinfo: New file.
23999         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24000
24001 2009-12-11  Bruno Haible  <bruno@clisp.org>
24002
24003         Tests for module 'langinfo'.
24004         * modules/langinfo-tests: New file.
24005         * tests/test-langinfo.c: New file.
24006
24007         New module 'langinfo'.
24008         * lib/langinfo.in.h: New file.
24009         * m4/langinfo_h.m4: New file.
24010         * modules/langinfo: New file.
24011         * doc/posix-headers/langinfo.texi: Mention the new module.
24012
24013 2009-12-11  Bruno Haible  <bruno@clisp.org>
24014
24015         * lib/config.charset: Untabify.
24016
24017 2009-12-11  Bruno Haible  <bruno@clisp.org>
24018
24019         * modules/unistd-safer (configure.ac): Drop indicator macro.
24020
24021 2009-12-11  Bruno Haible  <bruno@clisp.org>
24022
24023         Move pipe2-safer code to its own file.
24024         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24025         * lib/pipe-safer.c (pipe2_safer): Remove function.
24026         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24027         (Makefile.am): Add it to lib_SOURCES.
24028
24029 2009-12-10  Bruno Haible  <bruno@clisp.org>
24030
24031         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24032
24033 2009-12-10  Bruno Haible  <bruno@clisp.org>
24034
24035         Declare which arguments expect non-NULL values, for GCC and clang.
24036         * build-aux/arg-nonnull.h: New file.
24037         * modules/arg-nonnull: New file.
24038         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24039         (inet_ntop, inet_pton): Use it.
24040         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24041         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24042         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24043         (open, openat): Use it.
24044         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24045         (fnmatch): Use it.
24046         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24047         (getopt, getopt_long, getopt_long_only): Use it.
24048         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24049         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24050         Use it.
24051         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24052         (iconv_open): Use it.
24053         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24054         (strtoimax, strtoumax): Use it.
24055         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24056         (duplocale): Use it.
24057         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24058         (frexp, frexpl): Use it.
24059         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24060         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24061         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24062         (tsearch, tfind, tdelete, twalk): Use it.
24063         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24064         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24065         sigpending): Use it.
24066         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24067         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24068         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24069         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24070         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24071         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24072         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24073         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24074         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24075         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24076         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24077         Use it.
24078         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24079         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24080         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24081         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24082         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24083         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24084         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24085         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24086         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24087         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24088         strtoull, unsetenv): Use it.
24089         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24090         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24091         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24092         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24093         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24094         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24095         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24096         (strcasecmp, strncasecmp): Use it.
24097         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24098         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24099         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24100         rpl_setsockopt): Use it.
24101         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24102         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24103         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24104         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24105         (gettimeofday): Use it.
24106         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24107         (times): Use it.
24108         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24109         (uname): Use it.
24110         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24111         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24112         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24113         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24114         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24115         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24116         unlinkat, write): Use it.
24117         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24118         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24119         * lib/argv-iter.h: Include arg-nonnull.h.
24120         (_ATTRIBUTE_NONNULL_): Remove macro.
24121         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24122         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24123         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24124         optimization.
24125         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24126         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24127         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24128         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24129         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24130         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24131         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24132         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24133         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24134         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24135         * modules/dirent (Depends-on): Add arg-nonnull.
24136         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24137         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24138         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24139         * modules/fnmatch (Depends-on): Add arg-nonnull.
24140         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24141         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24142         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24143         * modules/glob (Depends-on): Add arg-nonnull.
24144         (Makefile.am): Insert arg-nonnull.h into glob.h.
24145         * modules/iconv_open (Depends-on): Add arg-nonnull.
24146         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24147         * modules/inttypes (Depends-on): Add arg-nonnull.
24148         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24149         * modules/locale (Depends-on): Add arg-nonnull.
24150         (Makefile.am): Insert arg-nonnull.h into locale.h.
24151         * modules/math (Depends-on): Add arg-nonnull.
24152         (Makefile.am): Insert arg-nonnull.h into math.h.
24153         * modules/netdb (Depends-on): Add arg-nonnull.
24154         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24155         * modules/search (Depends-on): Add arg-nonnull.
24156         (Makefile.am): Insert arg-nonnull.h into search.h.
24157         * modules/signal (Depends-on): Add arg-nonnull.
24158         (Makefile.am): Insert arg-nonnull.h into signal.h.
24159         * modules/spawn (Depends-on): Add arg-nonnull.
24160         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24161         * modules/stdio (Depends-on): Add arg-nonnull.
24162         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24163         * modules/stdlib (Depends-on): Add arg-nonnull.
24164         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24165         * modules/string (Depends-on): Add arg-nonnull.
24166         (Makefile.am): Insert arg-nonnull.h into string.h.
24167         * modules/strings (Depends-on): Add arg-nonnull.
24168         (Makefile.am): Insert arg-nonnull.h into strings.h.
24169         * modules/sys_socket (Depends-on): Add arg-nonnull.
24170         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24171         * modules/sys_stat (Depends-on): Add arg-nonnull.
24172         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24173         * modules/sys_time (Depends-on): Add arg-nonnull.
24174         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24175         * modules/sys_times (Depends-on): Add arg-nonnull.
24176         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24177         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24178         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24179         * modules/time (Depends-on): Add arg-nonnull.
24180         (Makefile.am): Insert arg-nonnull.h into time.h.
24181         * modules/unistd (Depends-on): Add arg-nonnull.
24182         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24183         * modules/wchar (Depends-on): Add arg-nonnull.
24184         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24185         * modules/argv-iter (Depends-on): Add arg-nonnull.
24186         * tests/test-canonicalize.c (null_ptr): New function.
24187         (main): Use it.
24188         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24189         (main): Use it.
24190         * tests/test-memmem.c (null_ptr): New function.
24191         (main): Use it.
24192         Reported by Jim Meyering.
24193
24194 2009-12-10  Bruno Haible  <bruno@clisp.org>
24195
24196         Use spaces for indentation, not tabs.
24197         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24198         * m4/*.m4: Untabify.
24199         * build-aux/*.h: Untabify.
24200         * tests/**/*.[hc]: Untabify.
24201         * README: New section "Indent with spaces, not TABs", based on
24202         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24203         * NEWS: Mention the change.
24204
24205 2009-12-10  Bruno Haible  <bruno@clisp.org>
24206
24207         pty test: Fix link error.
24208         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24209         test_pty_LDADD.
24210
24211 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24212
24213         * modules/pty: New file.
24214         * modules/pty-tests: New file.
24215         * m4/pty.m4: New file.
24216         * tests/test-pty.c: New file.
24217         * doc/glibc-headers/pty.texi: Modified.
24218         * doc/glibc-functions/forkpty.texi: Modified.
24219         * doc/glibc-functions/openpty.texi: Modified.
24220
24221 2009-12-10  Bruno Haible  <bruno@clisp.org>
24222
24223         Avoid syntax error in C++ mode.
24224         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24225
24226 2009-12-10  Bruno Haible  <bruno@clisp.org>
24227
24228         Use sed with option -e.
24229         * gnulib-tool (func_version, func_emit_copyright_notice,
24230         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24231         option -e to sed.
24232         * modules/link-warning (Makefile.am): Likewise.
24233
24234 2009-12-10  Jim Meyering  <meyering@redhat.com>
24235
24236         mgetgroups: do not write bytes beyond end of malloc'd buffer
24237         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24238         username, we call getgroups with a one-element-shorter buffer,
24239         but still told it the length was original, max_n_groups.
24240
24241 2009-12-09  Eric Blake  <ebb9@byu.net>
24242
24243         cloexec: relax license
24244         * modules/cloexec (Maintainer): Add myself.
24245         (License): Use LGPL, not GPL.
24246
24247         link-warning: optimize generation
24248         * modules/link-warning (Makefile.am): Reduce process usage.
24249
24250 2009-12-09  Bruno Haible  <bruno@clisp.org>
24251
24252         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24253         workaround was added on 2009-11-17.
24254
24255 2009-12-09  Jim Meyering  <meyering@redhat.com>
24256             Bruno Haible  <bruno@clisp.org>
24257
24258         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24259         * modules/link-warning (Makefile.am): Make the comment-removing sed
24260         command more robust in the face of bootstrap-prepended comment lines.
24261
24262 2009-12-09  Bruno Haible  <bruno@clisp.org>
24263
24264         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24265         most one group.
24266
24267 2009-12-09  Simon Josefsson <simon@josefsson.org>
24268             Bruno Haible  <bruno@clisp.org>
24269
24270         * build-aux/link-warning.h: Add copyright notice.
24271         * modules/link-warning (Makefile.am): Generate link-warning.h from
24272         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24273         * NEWS: Mention change in link-warning module.
24274         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24275         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24276         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24277         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24278         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24279         * modules/math (Makefile.am): Add dependency to math.h.
24280         * modules/search (Makefile.am): Add dependency to search.h.
24281         * modules/signal (Makefile.am): Add dependency to signal.h.
24282         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24283         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24284         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24285         * modules/string (Makefile.am): Add dependency to string.h.
24286         * modules/strings (Makefile.am): Add dependency to strings.h.
24287         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24288         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24289         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24290         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24291         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24292         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24293         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24294         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24295         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24296
24297 2009-12-09  Bruno Haible  <bruno@clisp.org>
24298
24299         fchdir: Optimize away rpl_fstat when possible.
24300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24301         REPLACE_OPEN_DIRECTORY.
24302         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24303
24304 2009-12-09  Bruno Haible  <bruno@clisp.org>
24305
24306         * lib/fchdir.c: Update comment.
24307
24308 2009-12-09  Bruno Haible  <bruno@clisp.org>
24309
24310         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24311
24312 2009-12-08  Eric Blake  <ebb9@byu.net>
24313
24314         fchdir: avoid memory leak on re-registration.
24315         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24316
24317 2009-12-08  Jim Meyering  <meyering@redhat.com>
24318
24319         init.sh: avoid Solaris 10 /bin/sh portability problem
24320         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24321         sourced script:
24322           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24323           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24324           bar
24325         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24326         and two tests used that idiom.
24327         * tests/init.sh: Update suggested usage comments.
24328         (path_prepend_): New function, to be used in place
24329         of the --src-path=DIR option.
24330         (setup_): Move PATH-prepending code into path_prepend_.
24331         * tests/test-pread.sh: Adapt to new usage.
24332         * tests/test-xalloc-die.sh: Likewise.
24333
24334 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24335
24336         * doc/gnulib.texi (Glibc pty.h): Add.
24337         * doc/glibc-functions/forkpty.texi: Add.
24338         * doc/glibc-functions/openpty.texi: Add.
24339         Suggested by Bruno Haible.
24340
24341 2009-12-08  Eric Blake  <ebb9@byu.net>
24342
24343         fchdir: fix logic bugs
24344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24345         * tests/test-fchdir.c (main): Enhance test.
24346         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24347         is in use.
24348
24349         dup2: fix logic bugs
24350         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24351         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24352         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24353         exists.
24354         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24355
24356 2009-12-07  Eric Blake  <ebb9@byu.net>
24357
24358         unlink: fix m4 detection
24359         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24360
24361         unistd-safer: add unit test
24362         * modules/unistd-safer-tests: New file.
24363         * tests/test-dup-safer.c: Likewise.
24364         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24365         * tests/test-dup2.c (setmode): Likewise.
24366         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24367
24368         cloexec: preserve text vs. binary across dup_cloexec
24369         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24370         mode.
24371         * modules/dup2-tests (Depends-on): Add binary-io.
24372         * modules/cloexec-tests (Depends-on): Likewise.
24373         * tests/test-dup2.c (setmode, is_mode): New helpers.
24374         (main): Add tests that translation mode is preserved.
24375         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24376         Reported by Bruno Haible.
24377
24378         mgetgroups: reduce duplicate listings
24379         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24380         resulting array.
24381         * tests/test-chown.h (test_chown): Simplify client.
24382         * tests/test-lchown.h (test_lchown): Likewise.
24383
24384 2009-12-06  Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24387         value.
24388
24389 2009-12-06  Bruno Haible  <bruno@clisp.org>
24390
24391         * lib/progname.c: Include stdio.h, stdlib.h.
24392         (set_program_name): Reject a NULL argument.
24393
24394 2009-12-05  Eric Blake  <ebb9@byu.net>
24395
24396         pipe2-safer: new module
24397         * modules/pipe2-safer: New file.
24398         * lib/unistd-safer.h (pipe2_safer): New prototype.
24399         * lib/unistd--.h (pipe2): New wrapper.
24400         * lib/pipe-safer.c (pipe2_safer): New function.
24401         * modules/pipe (Depends-on): Add pipe2-safer.
24402         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24403
24404         stdlib-safer: preserve cloexec flag for mkostemp[s]
24405         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24406         fd_safer_flag.
24407
24408         unistd-safer: allow preservation of cloexec status via flag
24409         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24410         prototypes.
24411         * lib/dup-safer.c (dup_safer_flag): New function.
24412         * lib/fd-safer.c (fd_safer_flag): Likewise.
24413         * modules/cloexec (configure.ac): Set witness.
24414
24415         test-dup2: enhance test
24416         * modules/dup2-tests (Depends-on): Add cloexec.
24417         * tests/test-dup2.c (main): Enhance test.
24418
24419         cloexec: add dup_cloexec
24420         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24421         header and comments.
24422         * lib/cloexec.c (set_cloexec_flag): Add comments.
24423         (dup_cloexec): New function, with mingw implementation borrowed
24424         from...
24425         * lib/w32spawn.h (dup_noinherit): ...here.
24426         * modules/execute (Depends-on): Add cloexec.
24427         * modules/pipe (Depends-on): Likewise.
24428         * modules/cloexec (Depends-on): Add dup2.
24429         * modules/cloexec-tests (Files): New file.
24430         * tests/test-cloexec.c: Likewise.
24431
24432         test-xalloc-die: fix test for mingw
24433         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24434         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24435         directory and .exe suffix off argv[0] output.
24436
24437         test-fseeko: fix test for mingw
24438         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24439         than undefining fseek, so test will pass on mingw.
24440
24441 2009-12-05  Bruno Haible  <bruno@clisp.org>
24442
24443         * lib/progname.h (set_program_name): Clarify specification.
24444         * lib/progname.c (set_program_name): Likewise.
24445         Reported by Jim Meyering.
24446
24447 2009-12-05  Jim Meyering  <meyering@redhat.com>
24448
24449         maint.mk: backslash-escape parens in default regexp
24450         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24451         backslash-escape the literal parentheses.
24452
24453         maint.mk: news-date-check: use grep -E
24454         * top/maint.mk (today): Define a Make variable, not a...
24455         (news-date-check): ...shell variable.
24456         (news-date-regexp): Use the Make variable.
24457         Use grep's -E option.  Change the failing diagnostic to mention
24458         the variable, $(news-date-regexp).
24459
24460 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24461
24462         maintainer-makefile: allow customization of NEWS entry format
24463         * top/maint.mk (news-date-regexp): New overridable variable.
24464         (news-date-check): Use it.
24465
24466 2009-12-04  Eric Blake  <ebb9@byu.net>
24467
24468         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24469         * lib/mgetgroups.h (xgetgroups): New prototype.
24470         * lib/mgetgroups.c (xgetgroups): New wrapper.
24471         (mgetgroups): Handle ENOSYS.
24472         * modules/mgetgroups (Depends-on): Add realloc.
24473         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24474
24475         mgetgroups: avoid argument promotion issues with -1
24476         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24477         for invalid gid_t.
24478         * tests/test-chown.h (getegid, test_chown): Likewise.
24479         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24480
24481 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24482
24483         exclude: Fix header file problems.
24484         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24485
24486 2009-12-01  Jim Meyering  <meyering@redhat.com>
24487
24488         fts: fts_open: do not let an empty string cause immediate failure
24489         This is required in support of GNU rm, for which the command
24490         "rm A '' B" must process and remove both A and B, in spite of
24491         the empty string argument.
24492         * lib/fts.c (fts_open): Do not let the presence of an empty string
24493         cause fts_open to fail immediately.  Most fts-using tools must be
24494         able to process all arguments, in order, and can be expected to
24495         diagnose such arguments themselves.
24496
24497 2009-11-30  Eric Blake  <ebb9@byu.net>
24498
24499         utimens: fix compilation error
24500         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24501         Declare variable at right scope.
24502
24503 2009-11-29  Jim Meyering  <meyering@redhat.com>
24504
24505         bootstrap: handle perl-5.11's changed --version output
24506         * build-aux/bootstrap (get_version): Handle perl separately,
24507         since perl-5.11's --version output is different.
24508
24509 2009-11-28  Jim Meyering  <meyering@redhat.com>
24510
24511         userspec: depend on the inttostr module, too
24512         * modules/userspec (Depends-on): Add inttostr.
24513
24514         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24515         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24516         number of MAXUID when it evaluates to (uid_t) -1.
24517         Likewise for group ID.  Reported by Matt McCutchen in
24518         <http://savannah.gnu.org/bugs/?28113>
24519
24520         userspec: reformat to use spaces, not TABs
24521         * lib/userspec.c: Expand TABs to spaces.
24522         Add Emacs' "indent-tabs-mode: nil" hint.
24523
24524 2009-11-27  Eric Blake  <ebb9@byu.net>
24525
24526         getopt-gnu: flush out another BSD bug
24527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24528         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24529         flush out BSD bug.
24530         * tests/test-getopt.h (test_getopt): End lists with NULL.
24531         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24532         (test_getopt_long_posix): Enhance test.
24533         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24534         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24535         getopt-gnu.
24536         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24537         Likewise.
24538
24539 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24540
24541         * modules/idpriv-droptemp-tests (Notice): Fix text.
24542
24543 2009-11-27  Jim Meyering  <meyering@redhat.com>
24544
24545         test-xalloc-die: avoid spurious failure due to libtool argv difference
24546         In a libtool-enabled project, this test would fail due to a difference
24547         in the emitted program name, e.g.,
24548         -test-xalloc-die: memory exhausted
24549         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24550         Use program to avoid that.
24551         * modules/xalloc-die-tests (Depends-on): Add progname.
24552         * tests/test-xalloc-die.c: Include progname.h".
24553         (program_name): Remove decl.
24554         (main): Call set_program_name.
24555         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24556
24557 2009-11-26  Richard Jones  <rjones@redhat.com>
24558
24559         w32sock: leave win32 error in place.
24560         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24561
24562 2009-11-26  Eric Blake  <ebb9@byu.net>
24563
24564         init.sh: suggest to use skip_ and fail_ functions in comments
24565         * tests/init.sh: Add a sentence.
24566
24567 2009-11-25  Bruno Haible  <bruno@clisp.org>
24568
24569         init.sh: add documentation in comments
24570         * tests/init.sh: Add some developer and user documentation.
24571
24572 2009-11-26  Jim Meyering  <meyering@redhat.com>
24573
24574         init.sh: accommodate even those who specify bogus srcdir manually
24575         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24576         configure-time tests to be sanitized, so that there is no need to
24577         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24578         (with no double quotes) suffices.  However, since tests may be
24579         invoked manually, and since you may explicitly set srcdir to the
24580         name of a directory containing spaces, do quote its uses here.
24581         * tests/test-pread.sh: Likewise.
24582         Suggested by Bruno Haible.
24583
24584         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24585         * tests/test-pread.sh: Write no data into the pipe, because
24586         test-pread actually reads none.  This avoids a diagnostic,
24587         "bash: echo: write error: Broken pipe", that arises in the unusual
24588         event something is ignoring SIGPIPE, and might be interpreted
24589         as some sort of failure.  Reported by Bruno Haible.
24590
24591 2009-11-25  Jim Meyering  <meyering@redhat.com>
24592
24593         test-pread: cover failure with ESPIPE and EINVAL
24594         * tests/test-pread.c (main): Test for failure, too.
24595         * tests/test-pread.sh: Invoke with stdin on a pipe.
24596         Suggested by Eric Blake.
24597
24598         pread: improvement and fix
24599         * modules/pread (Depends-on): Depend on lseek, for portability to
24600         e.g., mingw.  Suggested by Eric Blake.
24601         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24602
24603         unistd.in.h: correct declaration of pread
24604         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24605         Reported by Richard W.M. Jones.
24606
24607         test-pread.sh: distribute the test script
24608         * modules/pread-tests (Files): Include test-pread.sh.
24609
24610         test-pread.sh: clean up
24611         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24612         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24613         That is unnecessary, since it's always ".".
24614         Suggestion from Eric Blake.
24615
24616         test-pread.sh: make executable
24617         * tests/test-pread.sh: Set executable bit.
24618         Reported by Eric Blake.
24619
24620         correct typo in test-pread.sh
24621         * tests/test-pread.sh: Add #! line.
24622
24623         test pread
24624         * tests/test-pread.c: New file.
24625         * tests/test-pread.sh: Likewise.
24626         * modules/pread-tests: Likewise.
24627
24628         pread: new module
24629         * modules/pread: New file.
24630         * lib/unistd.in.h (pread): Define/declare.
24631         * lib/pread.c (pread): New file.
24632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24633         * modules/unistd (Makefile.am): Substitute witnesses.
24634         * doc/posix-functions/pread.texi (pread): Update.
24635         * MODULES.html.sh: Add pread.
24636
24637 2009-11-25  Jim Meyering  <meyering@redhat.com>
24638
24639         tests/init.sh: new file to be used via most *.sh tests
24640         * tests/init.sh: New file.
24641
24642 2009-11-25  Eric Blake  <ebb9@byu.net>
24643
24644         utimens: work around older Linux failure with symlinks
24645         * lib/utimens.c (lutimensat_works_really): New variable.
24646         (fdutimens, lutimens): Use it to manage kernels that support
24647         nanosecond times on files, but not on symlinks.
24648         Reported by OndÅ™ej Vašík.
24649
24650         utimes: fix configure grammar
24651         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24652
24653 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24654
24655         regex: Fix fastmap for multibyte character ranges.
24656         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24657         characters when a multibyte character range is included.
24658
24659 2009-11-22  Andy Wingo  <wingo@pobox.com>
24660
24661         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24662         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24663
24664 2009-11-24  Bruno Haible  <bruno@clisp.org>
24665
24666         doc: Most *_l functions exist in MacOS X 10.5.
24667         * doc/posix-functions/duplocale.texi: Update platforms list.
24668         * doc/posix-functions/freelocale.texi: Likewise.
24669         * doc/posix-functions/newlocale.texi: Likewise.
24670         * doc/posix-functions/uselocale.texi: Likewise.
24671         * doc/posix-functions/isalnum_l.texi: Likewise.
24672         * doc/posix-functions/isalpha_l.texi: Likewise.
24673         * doc/posix-functions/isblank_l.texi: Likewise.
24674         * doc/posix-functions/iscntrl_l.texi: Likewise.
24675         * doc/posix-functions/isdigit_l.texi: Likewise.
24676         * doc/posix-functions/isgraph_l.texi: Likewise.
24677         * doc/posix-functions/islower_l.texi: Likewise.
24678         * doc/posix-functions/isprint_l.texi: Likewise.
24679         * doc/posix-functions/ispunct_l.texi: Likewise.
24680         * doc/posix-functions/isspace_l.texi: Likewise.
24681         * doc/posix-functions/isupper_l.texi: Likewise.
24682         * doc/posix-functions/iswalnum_l.texi: Likewise.
24683         * doc/posix-functions/iswalpha_l.texi: Likewise.
24684         * doc/posix-functions/iswblank_l.texi: Likewise.
24685         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24686         * doc/posix-functions/iswctype_l.texi: Likewise.
24687         * doc/posix-functions/iswdigit_l.texi: Likewise.
24688         * doc/posix-functions/iswgraph_l.texi: Likewise.
24689         * doc/posix-functions/iswlower_l.texi: Likewise.
24690         * doc/posix-functions/iswprint_l.texi: Likewise.
24691         * doc/posix-functions/iswpunct_l.texi: Likewise.
24692         * doc/posix-functions/iswspace_l.texi: Likewise.
24693         * doc/posix-functions/iswupper_l.texi: Likewise.
24694         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24695         * doc/posix-functions/isxdigit_l.texi: Likewise.
24696         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24697         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24698         * doc/posix-functions/strcoll_l.texi: Likewise.
24699         * doc/posix-functions/strfmon_l.texi: Likewise.
24700         * doc/posix-functions/strftime_l.texi: Likewise.
24701         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24702         * doc/posix-functions/strxfrm_l.texi: Likewise.
24703         * doc/posix-functions/tolower_l.texi: Likewise.
24704         * doc/posix-functions/toupper_l.texi: Likewise.
24705         * doc/posix-functions/towctrans_l.texi: Likewise.
24706         * doc/posix-functions/towlower_l.texi: Likewise.
24707         * doc/posix-functions/towupper_l.texi: Likewise.
24708         * doc/posix-functions/wcscoll_l.texi: Likewise.
24709         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24710         * doc/posix-functions/wctrans_l.texi: Likewise.
24711         * doc/posix-functions/wctype_l.texi: Likewise.
24712         * doc/glibc-functions/strptime_l.texi: Likewise.
24713         * doc/glibc-functions/strtod_l.texi: Likewise.
24714         * doc/glibc-functions/strtof_l.texi: Likewise.
24715         * doc/glibc-functions/strtol_l.texi: Likewise.
24716         * doc/glibc-functions/strtold_l.texi: Likewise.
24717         * doc/glibc-functions/strtoll_l.texi: Likewise.
24718         * doc/glibc-functions/strtoul_l.texi: Likewise.
24719         * doc/glibc-functions/strtoull_l.texi: Likewise.
24720         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24721         * doc/glibc-functions/wcstod_l.texi: Likewise.
24722         * doc/glibc-functions/wcstof_l.texi: Likewise.
24723         * doc/glibc-functions/wcstol_l.texi: Likewise.
24724         * doc/glibc-functions/wcstold_l.texi: Likewise.
24725         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24726         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24727         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24728
24729 2009-11-24  Bruno Haible  <bruno@clisp.org>
24730
24731         duplocale: Fix logic bug.
24732         * lib/duplocale.c: Don't include <langinfo.h>.
24733         (_NL_LOCALE_NAME): Remove macro.
24734         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24735         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24736
24737 2009-11-23  Jim Meyering  <meyering@redhat.com>
24738
24739         test-update-copyright: don't hard-code /usr/bin/perl
24740         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24741         perl to print the current year.  Gilles Espinasse reported that
24742         the replaced use of perl was hard-coded as /usr/bin/perl.
24743
24744 2009-11-23  Bruno Haible  <bruno@clisp.org>
24745
24746         duplocale: Add support for glibc 2.3.x.
24747         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24748
24749 2009-11-22  Bruno Haible  <bruno@clisp.org>
24750
24751         vasnprintf: Tiny optimization.
24752         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24753         MacOS X.
24754
24755 2009-11-22  Bruno Haible  <bruno@clisp.org>
24756
24757         Tests for module 'duplocale'.
24758         * modules/duplocale-tests: New file.
24759         * tests/test-duplocale.c: New file.
24760
24761         New module 'duplocale'.
24762         * m4/duplocale.m4: New file.
24763         * lib/locale.in.h (duplocale): New declaration.
24764         * lib/duplocale.c: New file.
24765         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24766         gl_LOCALE_H_DEFAULTS): New macros.
24767         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24768         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24769         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24770         REPLACE_DUPLOCALE.
24771         * modules/duplocale: New file.
24772         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24773
24774 2009-11-22  Bruno Haible  <bruno@clisp.org>
24775
24776         * modules/locale-tests (configure.ac): Test for newlocale function.
24777         * tests/test-locale.c: When the system has extended locale functions,
24778         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24779
24780         locale: Make locale_t available when possible.
24781         * lib/locale.in.h: Include <xlocale.h> when it exists.
24782         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24783         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24784         * modules/locale (Depends-on): Add extensions.
24785         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24786         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24787
24788 2009-11-22  Bruno Haible  <bruno@clisp.org>
24789
24790         Add comments.
24791         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24792         invocation.
24793         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24794         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24795         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24796
24797 2009-11-22  Bruno Haible  <bruno@clisp.org>
24798
24799         error: account for the possibility of freopen (stdout).
24800         * lib/error.c: Include <unistd.h>.
24801         (flush_stdout): New function, extracted from error and error_at_line.
24802         Determine stdout's fd dynamically.
24803         (error, error_at_line): Invoke flush_stdout.
24804         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24805         * modules/error (Depends-on): Add unistd.
24806
24807 2009-11-22  Bruno Haible  <bruno@clisp.org>
24808
24809         diffseq: Add comment.
24810         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24811
24812 2009-11-22  Jim Meyering  <meyering@redhat.com>
24813
24814         c-stack: avoid defining an unused static function
24815         * lib/c-stack.c (find_stack_direction): Do not define this function
24816         when it will not be used.
24817
24818         diffseq: avoid spurious gcc warnings
24819         * lib/diffseq.h (IF_LINT2): Define.
24820         (compareseq): Use it to initialize two members of "part".
24821         This avoids two used-uninitialized warnings.
24822
24823 2009-11-21  Jim Meyering  <meyering@redhat.com>
24824
24825         c-stack: avoid "ignoring return value of `write'" warning
24826         * lib/c-stack.c: Include "ignore-value.h".
24827         (die): Explicitly ignore each write return value.
24828         * modules/c-stack (Depends-on): Add ignore-value.
24829
24830 2009-11-21  Bruno Haible  <bruno@clisp.org>
24831
24832         diffseq: reduce scope of variable 'best'.
24833         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24834         variable, earlier used for two different purposes.
24835
24836 2009-11-21  Jim Meyering  <meyering@redhat.com>
24837
24838         diffseq: remove useless assignment to "best"
24839         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24840         assignment.  At that point "best" is already guaranteed to be zero.
24841
24842 2009-11-20  Eric Blake  <ebb9@byu.net>
24843
24844         build: mention ftp redirector in release announcements
24845         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24846         values that used to come from cfg.mk; mention FTP redirect URL.
24847         * build-aux/announce-gen: Mention the mirror list.
24848         Suggested by Karl Berry.
24849
24850         nanosleep: improve port to mingw
24851         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24853         LIB_NANOSLEEP, but only when needed.
24854         * modules/select (Link): Document LIBSOCKET.
24855         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24856         enough.
24857
24858         nanosleep: work around cygwin bug
24859         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24860         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24861         bug.
24862         (getnow): Delete, not needed.
24863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24864         LIB_CLOCK_GETTIME.
24865         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24866         clock-time, gettime.
24867         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24868         bug.
24869         * modules/nanosleep-tests: New test.
24870         * tests/test-nanosleep.c: New file.
24871
24872         sleep: work around cygwin bug
24873         * lib/sleep.c (rpl_sleep): Work around the bug.
24874         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24875         (gl_PREREQ_SLEEP): Delete unused macro.
24876         * modules/sleep (Depends-on): Add verify.
24877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24878         * modules/unistd (Makefile.am): Substitute witness.
24879         * lib/unistd.in.h (sleep): Update prototype.
24880         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24881         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24882         * modules/sleep-tests (Depends-on): Check for alarm.
24883
24884 2009-11-20  Jim Meyering  <meyering@redhat.com>
24885
24886         maint.mk: improve sc_prohibit_magic_number_exit
24887         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24888         so it does not match uses like System.exit(1).
24889         Add comments showing how to correct all offenders.
24890
24891 2009-11-19  Eric Blake  <ebb9@byu.net>
24892
24893         xalloc-die-tests: add missing library
24894         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24895
24896         test-xvasprintf: silence compiler warnings
24897         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24898         empty string from gcc.
24899
24900 2009-11-19  Jim Meyering  <meyering@redhat.com>
24901
24902         xfreopen: new module, from coreutils
24903         * modules/xfreopen: New module.
24904         * lib/xfreopen.c: New file.
24905         * lib/xfreopen.h: New file.
24906         * MODULES.html.sh (File stream based Input/Output"): Add it.
24907
24908 2009-11-19  Eric Blake  <ebb9@byu.net>
24909
24910         manywarnings: depend on warnings
24911         * modules/manywarnings (Depends-on): Add warnings.
24912
24913         build: avoid compiler warnings
24914         * lib/select.c (rpl_select): Delete unused variable.
24915         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24916
24917 2009-11-18  Eric Blake  <ebb9@byu.net>
24918
24919         tests: avoid false negative with --with-packager
24920         * tests/test-version-etc.sh: Discard packager information.
24921         * tests/test-argp-version-etc-1.sh: Likewise.
24922         Reported by Mike Frysinger.
24923
24924         utimens: fix regression on Solaris
24925         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24926         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24927         can only change fd timestamps via futimesat.  Instead, use an
24928         additional witness macro to avoid BSD bug.
24929         Reported by Jim Meyering.
24930
24931 2009-11-17  Eric Blake  <ebb9@byu.net>
24932
24933         usleep: use it to simplify tests
24934         * modules/stat-time-tests (Depends-on): Add usleep.
24935         (configure.ac): Drop usleep check.
24936         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24937         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24938         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24939         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24940         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24941         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24942         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24943         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24944         Likewise.
24945         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24946         * tests/test-lchown.h (nap): Likewise.
24947         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24948         * tests/test-stat-time.c (nap): Likewise.
24949         * tests/test-utimens-common.h (nap): Update comments.
24950
24951         usleep: new module
24952         * modules/usleep: New file.
24953         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24954         * lib/usleep.c (usleep): Likewise.
24955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24956         * modules/unistd (Makefile.am): Substitute witnesses.
24957         * lib/unistd.in.h (usleep): Add declaration.
24958         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24959         * MODULES.html.sh (Date and time): Likewise.
24960         * modules/usleep-tests (Depends-on): New test.
24961         * tests/test-usleep.c: New file.
24962
24963         chown: work around OpenBSD bug
24964         * lib/chown.c (rpl_chown): Work around the bug.
24965         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24966         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24967         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24968         * modules/chown (Depends-on): Add stdbool.
24969         * modules/lchown (Depends-on): Likewise.
24970         * doc/posix-functions/chown.texi (chown): Document the bug.
24971         * doc/posix-functions/lchown.texi (lchown): Likewise.
24972         * tests/test-lchown.h (test_chown): Relax test.
24973
24974         mkstemp: avoid conflict with C++ keyword template
24975         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24976         * lib/mkostemp.c (mkostemp): Likewise.
24977         * lib/mkostemps.c (mkostemps): Likewise.
24978         * lib/mkstemp.c (mkstemp): Likewise.
24979         * lib/mkstemps.c (mkstemps): Likewise.
24980
24981         xalloc-die-tests: optimize
24982         * tests/test-xalloc-die.sh: Reduce number of processes.
24983
24984 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24985
24986         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24987         patch from ludo@gnu.org (Ludovic Courtès).
24988
24989 2009-11-17  Jim Meyering  <meyering@redhat.com>
24990
24991         version-etc: use proper license string
24992         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24993         * modules/version-etc-fsf: Likewise.
24994
24995 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24996
24997         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24998         printed to stdout.  Deal with EOL differences.
24999
25000 2009-11-17  Eric Blake  <ebb9@byu.net>
25001
25002         unsetenv: work around Solaris bug
25003         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25004         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25005         Reported by Jim Meyering.
25006
25007         vasnprintf: avoid compiler warnings
25008         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25009         variables.
25010         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25011
25012 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25013
25014         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25015         settings since xalloc-die is no longer the self test,
25016         xalloc-die.sh is.
25017
25018 2009-11-17  Jim Meyering  <meyering@redhat.com>
25019
25020         test-xalloc-die.sh: make the code agree with the commit log
25021         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25022         at the end, just in case you happen to have a test-xalloc-die
25023         program in some other PATH directory.
25024
25025         test-xalloc-die.sh: fix a portability bug
25026         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25027         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25028         Otherwise, argv[0] (as often seen in diagnostics) would be too
25029         system-dependent, sometimes with, and sometimes without the leading "./".
25030
25031         version-etc-fsf: relax license to LGPLv3+
25032         * modules/version-etc-fsf (License): Relax license.
25033
25034 2009-11-16  Eric Blake  <ebb9@byu.net>
25035
25036         xalloc-die-tests: avoid printing null pointer
25037         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25038         shell script.
25039         * tests/test-xalloc-die.c (program_name): Declare.
25040         * tests/test-xalloc-die.sh (tmpfiles): New file.
25041
25042         setenv, unsetenv: work around various bugs
25043         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25044         (setenv) [HAVE_SETENV]: Work around bugs.
25045         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25046         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25047         for bugs.
25048         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25049         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25051         * modules/stdlib (Makefile.am): Update substitutions.
25052         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25053         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25054         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25055         * modules/setenv-tests: New test.
25056         * modules/unsetenv-tests: Likewise.
25057         * tests/test-setenv.c: New file.
25058         * tests/test-unsetenv.c: Likewise.
25059
25060 2009-11-16  Jim Meyering  <meyering@redhat.com>
25061
25062         version-etc: relax license to LGPLv3+
25063         * modules/version-etc (License): Relax license.
25064
25065         better AC_REQUIRE expanded-before-required-warning avoidance
25066         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25067         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25068         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25069         which is no longer needed.
25070
25071 2009-11-16  Eric Blake  <ebb9@byu.net>
25072
25073         test-freading: clean up temporary file
25074         * tests/test-freading.c (main): Remove file on success, and use
25075         ASSERT more liberally.
25076         Reported by Jim Meyering.
25077
25078 2009-11-16  Jim Meyering  <meyering@redhat.com>
25079
25080         avoid new AC_REQUIRE expanded-before-required warnings
25081         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25082         merely using it.
25083         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25084         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25085
25086 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25087
25088         * tests/test-xalloc-die.c: New file.
25089         * modules/xalloc-die-tests: New file.
25090         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25091         XFAIL_TESTS so it can be appended by modules.
25092
25093 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25094
25095         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25096         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25097
25098 2009-11-14  Eric Blake  <ebb9@byu.net>
25099
25100         fnmatch: avoid compiler warning
25101         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25102         to silence compiler warning about mismatch signedness in ?:.
25103         Reported by Robert Millan.
25104
25105         intprops: add double-inclusion guard
25106         * lib/intprops.h: Allow idempotent includes.
25107         Suggested by Bruce Korb.
25108
25109         openat: detect Solaris fchownat bug
25110         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25111         penalizing glibc chownat when only lchownat is broken.
25112         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25113         trailing slash bugs.
25114         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25115         * modules/openat-tests (Files): Include more files.
25116         (Depends-on): Add mgetgroups, sleep, stat-time.
25117         (configure.ac): Add additional checks.
25118         (Makefile.am): Build new test.
25119         * tests/test-fchownat.c: New file.
25120
25121         lchown: detect Solaris and FreeBSD bug
25122         * lib/lchown.c (rpl_lchown): Work around bug.
25123         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25125         * modules/unistd (Makefile.am): Populate it.
25126         * lib/unistd.in.h (lchown): Update declaration.
25127         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25128         * modules/lchown-tests: New file.
25129         * tests/test-lchown.h (test_lchown): Likewise.
25130         * tests/test-lchown.c (main): Likewise.
25131
25132         chown: detect Solaris and FreeBSD bug
25133         * lib/chown.c (rpl_chown): Work around bug.
25134         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25135         (gl_PREREQ_CHOWN): Delete.
25136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25137         * modules/unistd (Makefile.am): Populate it.
25138         * lib/unistd.in.h (chown): Update declaration.
25139         * lib/lchown.c (chown): Update client.
25140         * modules/lchown (Depends-on): Add lstat.
25141         * doc/posix-functions/chown.texi (chown): Document the bug.
25142         * doc/posix-functions/getgroups.texi (getgroups): Document
25143         getgroups pitfall.
25144         * modules/chown-tests: New file.
25145         * tests/test-chown.h (test_chown): Likewise.
25146         * tests/test-chown.c (main): Likewise.
25147
25148 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25149
25150         gnulib-tool: correctly detect absence of m4 directories
25151         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25152
25153 2009-11-14  Jim Meyering  <meyering@redhat.com>
25154
25155         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25156         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25157
25158 2009-11-14  John W. Eaton  <jwe@gnu.org>
25159
25160         strftime.h: wrap funtion declaration in extern "C" block
25161         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25162
25163 2009-11-13  Eric Blake  <ebb9@byu.net>
25164
25165         getgroups: avoid compiler warning
25166         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25167
25168         getgroups: work around FreeBSD bug
25169         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25170         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25171         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25172         * tests/test-getgroups.c (main): Fix buffer overrun.
25173
25174         getgroups: avoid compilation failure
25175         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25176         * modules/getgroups (Depends-on): Add stdint.
25177
25178 2009-11-13  Jim Meyering  <meyering@redhat.com>
25179
25180         test-getgroups: avoid compilation failure
25181         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25182
25183 2009-11-13  Eric Blake  <ebb9@byu.net>
25184
25185         mgetgroups: new module, taken from coreutils
25186         * modules/mgetgroups: New file.
25187         * lib/mgetgroups.h: Likewise.
25188         * lib/mgetgroups.c (mgetgroups): Likewise.
25189         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25190         * MODULES.html.sh (Users and groups): Mention it.
25191
25192         getgroups: don't expose GETGROUPS_T to user
25193         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25194         an element at a time if GETGROUPS_T is wrong size.
25195         * lib/getugroups.h (getugroups): Change signature.
25196         * lib/unistd.in.h (getgroups): Likewise.
25197         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25198         signature needs fixing.
25199         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25200         AC_TYPE_GETGROUPS.
25201         * modules/group-member (Depends-on): Add getgroups.
25202         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25203         (group_member): Rely on getgroups replacement.
25204         * lib/getugroups.c (getugroups): Use gid_t.
25205         * tests/test-getgroups.c (main): Likewise.
25206         * NEWS: Mention the signature change.
25207         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25208         problem with signature.
25209         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25210         GETGROUPS_T is still useful for setgroups.
25211
25212         getgroups, getugroups: provide stubs for mingw
25213         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25214         * lib/getugroups.c (getugroups): Likewise.
25215         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25216         function.  Modernize replacement scheme.
25217         (gl_PREREQ_GETGROUPS): Delete.
25218         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25219         * modules/getgroups (configure.ac): Declare witness.
25220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25221         * modules/unistd (Depends-on): Substitute witness.
25222         * lib/unistd.in.h (getgroups): Declare replacement.
25223
25224         getgroups: avoid calling exit
25225         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25226         drop xalloc.
25227         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25228         dependencies.
25229         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25230         exiting, in the rare case of malloc failure.
25231
25232         getgroups: fix logic error
25233         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25234         has more than 20 groups.
25235         * modules/getgroups-tests: New test.
25236         * tests/test-getgroups.c: New file.
25237
25238 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25239
25240         * tests/test-base64.c: Improve.
25241
25242 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25243
25244         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25245         Blake <ebb9@byu.net>.
25246
25247 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25248
25249         * tests/test-xvasprintf.c: Add %s%s related checks.
25250
25251 2009-11-12  Eric Blake  <ebb9@byu.net>
25252
25253         version-etc: match standards.texi style
25254         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25255         and use <> only for URLs.
25256
25257 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25258
25259         fts: do not fail on a submount during traversal
25260         * lib/fts.c (fts_build): Read the stat info again after opening
25261         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25262         Original report at http://bugzilla.redhat.com/501848.
25263
25264 2009-11-12  Jim Meyering  <meyering@redhat.com>
25265
25266         bootstrap: sync from coreutils
25267         * build-aux/bootstrap (bootstrap_epilogue): New function.
25268         Use git_modules_config in one more place.  This make bootstrap's
25269         --gnulib-srcdir option more useful for testing.
25270
25271         bootstrap: generalize autoheader check
25272         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25273         AC_CONFIG_HEADERS.
25274
25275 2009-11-11  Eric Blake  <ebb9@byu.net>
25276
25277         mkfifoat: use new modules for Solaris and BSD bugs
25278         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25279         * lib/mkfifoat.c (mknodat): Split...
25280         * lib/mknodat.c (mknodat): ...into new file.
25281         * modules/mkfifoat (Files): Ship new file.
25282         (Depends-on): Add mkfifo, mknod.
25283         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25284         (Depends-on): Add symlink.
25285         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25286         redundant with test_mkfifo.h.
25287         (do_mkfifoat, do_mknodat): New helpers.
25288
25289         mknod: new module
25290         * modules/mknod: New file.
25291         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25292         * lib/mknod.c (mknod): Likewise.
25293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25294         defaults.
25295         * modules/sys_stat (Makefile.am): Substitute them.
25296         * lib/sys_stat.in.h (mknod): Declare replacement.
25297         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25298         Document it.
25299         * doc/posix-functions/mknod.texi (mknod): Likewise.
25300         * modules/mknod-tests: New test.
25301         * tests/test-mknod.c: Likewise.
25302
25303         mkfifo: new module
25304         * modules/mkfifo: New file.
25305         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25306         * lib/mkfifo.c (mkfifo): Likewise.
25307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25308         defaults.
25309         * modules/sys_stat (Makefile.am): Substitute them.
25310         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25311         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25312         Document it.
25313         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25314         * modules/mkfifo-tests: New test.
25315         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25316         from test-mkfifoat.c.
25317         * tests/test-mkfifo.c: New file.
25318
25319         readlink: detect FreeBSD bug
25320         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25321         slash on symlink.
25322         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25323         * tests/test-readlink.h (test_readlink): Enhance test.
25324
25325         symlink: detect FreeBSD bug
25326         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25327         slash on symlink.
25328         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25329         * tests/test-symlink.h (test_symlink): Enhance test.
25330
25331 2009-11-10  Eric Blake  <ebb9@byu.net>
25332
25333         link: detect FreeBSD bug
25334         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25335         symlink.
25336         * doc/posix-functions/link.texi (link): Document the bug.
25337         * tests/test-link.h (test_link): Enhance test.
25338         * tests/test-linkat.c (main): Update caller.
25339
25340         unlink, remove: detect FreeBSD bug
25341         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25342         slash on symlink.
25343         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25344         * doc/posix-functions/remove.texi (remove): Likewise.
25345         * tests/test-unlink.h (test_unlink): Enhance test.
25346         * tests/test-remove.c (main): Likewise.
25347
25348 2009-11-09  Eric Blake  <ebb9@byu.net>
25349
25350         rename: detect FreeBSD bug
25351         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25352         slash on symlink.
25353         * modules/renameat-tests (Depends-on): Add filenamecat.
25354         * tests/test-rename.h (test_rename): Allow one more errno.
25355         * tests/test-renameat.c (main): Likewise.
25356         * doc/posix-functions/rename.texi (rename): Document the bug.
25357
25358         open: detect FreeBSD bug
25359         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25360         symlink.
25361         * doc/posix-functions/open.texi (open): Document the bug.
25362         * doc/posix-functions/utimes.texi (utimes): Likewise.
25363         * tests/test-open.h (test_open): Add parameters, and test symlink
25364         handling.
25365         * tests/test-open.c (main): Adjust caller.
25366         * tests/test-fcntl-safer.c (main): Likewise.
25367         * modules/open-tests (Depends-on): Add stdbool, symlink.
25368         * modules/fcntl-safer-tests (Depends-on): Likewise.
25369         * tests/test-openat.c (main): Add test-open tests.
25370
25371         stat: detect FreeBSD bug
25372         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25373         symlink.
25374         * doc/posix-functions/stat.texi (stat): Document the bug.
25375         * tests/test-stat.h (test_stat_func): Add argument.
25376         * tests/test-stat.c (main): Adjust caller.
25377         * tests/test-fstatat.c (main): Likewise.
25378         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25379         Reported by Jim Meyering.
25380
25381 2009-11-09  James Youngman  <jay@gnu.org>
25382
25383         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25384         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25385
25386 2009-11-08  Jim Meyering  <meyering@redhat.com>
25387
25388         utimens: remove invalid futimesat call
25389         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25390         It used the file descriptor of the target file as the DIR_FD
25391         parameter and NULL as the file name.  That caused failure with
25392         errno == EFAULT on FreeBSD-8.0-rc2
25393
25394 2009-11-07  Eric Blake  <ebb9@byu.net>
25395
25396         fflush, freadseek: use fseeko, not fseek
25397         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25398         (clear_ungetc_buffer): Avoid potential problems on large files.
25399         * lib/freadseek.c (freadseek): Likewise.
25400         * modules/freadseek (Depends-on): Add fseeko.
25401         * modules/fseek (configure.ac): Set a witness.
25402         * tests/test-fflush.c (main): Use fseeko.
25403         * tests/test-fpurge.c (fseek): Disable link warning.
25404         * tests/test-freadable.c (fseek): Likewise.
25405         * tests/test-freading.c (fseek): Likewise.
25406         * tests/test-fseeko.c (fseek): Likewise.
25407         * tests/test-ftell.c (fseek): Likewise.
25408         * tests/test-ftello.c (fseek): Likewise.
25409         * tests/test-fwritable.c (fseek): Likewise.
25410         * tests/test-fwriting.c (fseek): Likewise.
25411
25412 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25413
25414         * modules/memchr (Depends-on): Drop getpagesize dependency.
25415
25416 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25417
25418         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25419         Reported by Ludovic Courtès.
25420         * build-aux/pmccabe2html: Improve example usage.
25421         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25422
25423 2009-11-06  Jim Meyering  <meyering@redhat.com>
25424
25425         do-release-commit-and-tag: New module.
25426         Automate the release-commit and tag process.
25427         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25428         * modules/do-release-commit-and-tag: New file.
25429         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25430
25431 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25432
25433         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25434         because test-select.c uses inet_pton.
25435
25436 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25437
25438         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25439         GETADDRINFO_LIB.  Bump serial number.
25440         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25441         Suggested by Eric Blake <ebb9@byu.net>.
25442
25443 2009-11-05  Eric Blake  <ebb9@byu.net>
25444
25445         strtod: detect darwin bug
25446         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25447         Reported by Leo Davis.
25448
25449         freopen-safer: new module
25450         * modules/freopen-safer: New module.
25451         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25452         * lib/freopen-safer.c (freopen_safer): New file.
25453         * lib/stdio-safer.h (freopen_safer): New declaration.
25454         * lib/stdio--.h (freopen): New override.
25455         * MODULES.html.sh (File stream based Input/Output): Mention it.
25456         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25457         freopen-safer module.
25458         * doc/posix-functions/stderr.texi (stderr): Likewise.
25459         * doc/posix-functions/stdin.texi (stdin): Likewise.
25460         * doc/posix-functions/stdout.texi (stdout): Likewise.
25461         * modules/freopen-safer-tests: New test.
25462         * tests/test-reopen-safer.c: New file.
25463
25464 2009-11-05  Jim Meyering  <meyering@redhat.com>
25465
25466         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25467         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25468
25469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25470
25471         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25472
25473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25474
25475         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25476
25477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25478
25479         Fix link error.
25480         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25482
25483 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25484
25485         * tests/test-func.c: Also test value of __func__.
25486
25487 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25488
25489         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25490         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25491
25492 2009-11-05  Bruno Haible  <bruno@clisp.org>
25493
25494         Fix link error.
25495         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25496         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25497         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25498
25499 2009-11-05  Bruno Haible  <bruno@clisp.org>
25500
25501         Tests for module 'inet_pton'.
25502         * modules/inet_pton-tests: New file.
25503         * tests/test-inet_pton.c: New file.
25504
25505 2009-11-05  Bruno Haible  <bruno@clisp.org>
25506
25507         Tests for module 'inet_ntop'.
25508         * modules/inet_ntop-tests: New file.
25509         * tests/test-inet_ntop.c: New file.
25510
25511 2009-11-04  Eric Blake  <ebb9@byu.net>
25512
25513         stdlib-safer: wrap all mkstemp variants
25514         * modules/mkostemp (configure.ac): Set witness.
25515         * modules/mkostemps (configure.ac): Likewise.
25516         * modules/mkstemps (configure.ac): Likewise.
25517         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25518         (mkstemps_safer): Wrap more functions.
25519         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25520         wrapping.
25521         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25522         (mkstemps_safer): Implement the wrappers.
25523
25524         mkstemps, mkostemps: new modules
25525         * modules/mkostemps: New module.
25526         * modules/mkstemps: Likewise.
25527         * lib/mkostemps.c (mkostemps): New file.
25528         * lib/mkstemps.c (mkstemps): Likewise.
25529         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25530         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25532         * modules/stdlib (Makefile.am): Substitute them.
25533         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25534         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25535         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25536         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25537         * MODULES.html.sh (File system functions): Mention them.
25538
25539         tempname: resync from glibc
25540         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25541         same values for __GT_FILE as glibc.  Abort even when assertions
25542         are disabled.
25543         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25544         match its value otherwise.  Allow idempotent inclusion.
25545         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25546         * lib/mkostemp.c (mkostemp): Likewise.
25547         * lib/mkstemp.c (mkstemp): Likewise.
25548         * lib/tmpfile.c (tmpfile): Likewise.
25549         * NEWS: Document this.
25550
25551         utimens: fix use of futimens on older Linux
25552         * lib/utimens.c (fdutimens): Use updated, rather than original,
25553         timespec to avoid bug in older Linux kernel.
25554         Reported by Simon Josefsson.
25555
25556 2009-11-04  Bruno Haible  <bruno@clisp.org>
25557
25558         Make num_processors more flexible and consistent.
25559         * lib/nproc.h (enum nproc_query): New type.
25560         (num_processors): Add a 'query' argument.
25561         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25562         (num_processors): Add a 'query' argument. Test the value of the
25563         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25564         mingw, count the number of CPUs available for the current process.
25565         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25566         Check for sched_getaffinity and sched_getaffinity_np.
25567         * modules/nproc (Depends-on): Add c-ctype, extensions.
25568         * NEWS: Mention the change.
25569
25570 2009-11-03  Bruno Haible  <bruno@clisp.org>
25571
25572         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25573
25574 2009-11-03  Jim Meyering  <meyering@redhat.com>
25575
25576         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25577         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25578         if it is defined.
25579
25580 2009-11-02  Eric Blake  <ebb9@byu.net>
25581
25582         mktime, timegm: share common declaration
25583         * lib/mktime-internal.h: New file.
25584         * lib/mktime.c: Use it rather than open-coding a declaration.
25585         * lib/timegm.c: Likewise.
25586         * modules/mktime (Files): Ship it.
25587         * modules/timegm (Files): Likewise.
25588         Suggested by Bruno Haible.
25589
25590         test-update-copyright: update test to match script changes
25591         * tests/test-update-copyright.sh: Avoid hard-coding perl
25592         location.  Don't update *.bak created by earlier runs.
25593
25594 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25595             Simon Josefsson  <simon@josefsson.org>
25596             Bruno Haible  <bruno@clisp.org>
25597
25598         Fix link error on Solaris 8.
25599         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25600         also in libnsl. Define also INET_PTON_LIB.
25601         * modules/inet_pton (Link): New section.
25602
25603 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25604             Bruno Haible  <bruno@clisp.org>
25605
25606         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25607         * modules/inet_ntop (Link): New section.
25608         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25609
25610 2009-11-02  Eric Blake  <ebb9@byu.net>
25611
25612         maint: avoid compiler warnings in m4 macros
25613         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25614         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25615
25616 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25617
25618         * m4/pmccabe2html.m4: Remove file.
25619         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25620         function.  Change maintainer.
25621         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25622         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25623         Courtès).
25624
25625 2009-10-31  Eric Blake  <ebb9@byu.net>
25626
25627         fseeko: fix m4 regression
25628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25629         regression from 2009-10-27.
25630         Reported by Ralf Wildenhues.
25631
25632 2009-10-31  Jim Meyering  <meyering@redhat.com>
25633
25634         inttostr: aesthetics and improved (compile-time) safety
25635         Define inttype_is_signed rather than inttype_is_unsigned,
25636         since the sole use is via "#if inttype_is_signed".
25637         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25638         inttype_is_unsigned.
25639         * lib/offtostr.c (inttype_is_signed): Likewise.
25640         * lib/uinttostr.c (inttype_is_signed): Likewise.
25641         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25642         * lib/inttostr.c (inttostr): Use verify to cross-check the
25643         inttype_is_signed value and the signedness of the actual type.
25644         * modules/inttostr (Depends-on): Add verify.
25645
25646 2009-10-30  Eric Blake  <ebb9@byu.net>
25647
25648         build: avoid compiler warnings
25649         * lib/fchmodat.c (lchmod): Mark unused variables.
25650         * lib/getopt.c (_getopt_initialize): Likewise.
25651         * lib/mktime.c (__mktime_internal): Provide prototype.
25652         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25653         older gcc that do not understand #pragma GCC diagnostic.
25654         * lib/uinttostr.c (inttype_is_unsigned): Define.
25655         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25656
25657 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25658
25659         stat: fix compilation on AIX
25660         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25661         only see struct stat64.
25662
25663 2009-10-30  Eric Blake  <ebb9@byu.net>
25664
25665         exclude: make more robust
25666         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25667         rather than masking a coding bug.
25668         Suggested by Bruno Haible.
25669
25670 2009-10-30  Jim Meyering  <meyering@redhat.com>
25671
25672         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25673         Rather than putting #!/usr/bin/perl on the first line,
25674         start with a variant of what's recommended by "man perlrun" that
25675         invokes the first "perl" program from your shell's search path.
25676         * build-aux/gitlog-to-changelog: Replace #!... as above.
25677         Add a "Local Variables" perl mode setting.
25678         Prompted by a patch from Ludovic Courtès.
25679         Improved by Eric Blake.
25680         * build-aux/useless-if-before-free: Likewise.
25681         * build-aux/announce-gen: Likewise.
25682         * build-aux/update-copyright: Likewise.
25683
25684 2009-10-29  Eric Blake  <ebb9@byu.net>
25685
25686         filenamecat-lgpl: adjust clients
25687         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25688         filenamecat.
25689         * modules/renameat (Depends-on): Likewise.
25690
25691         filenamecat: split into filenamecat-lgpl
25692         * modules/filenamecat-lgpl: New module.
25693         * modules/filenamecat (Files): Move library-safe files into
25694         filenamecat-lgpl.
25695         (Depends-on): Add filenamecat-lgpl.
25696         (configure.ac): Declare witness.
25697         * lib/filenamecat.h (file_name_concat): Only declare when using
25698         GPL module.
25699         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25700         Move...
25701         * lib/filenamecat-lgpl.c: ...into new file.
25702         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25703         (gl_FILE_NAME_CONCAT): Use it.
25704         * MODULES.html.sh (File system functions): Mention new module.
25705
25706         argp: avoid memory leak
25707         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25708         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25709         base_name, since the latter malloc()s and can call exit().
25710         Leak introduced 2006-07-03.
25711
25712         dirname-lgpl: adjust clients that don't need full dirname
25713         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25714         * modules/filenamecat (Depends-on): Likewise.
25715         * modules/linkat (Depends-on): Likewise.
25716         * modules/mkancesdirs (Depends-on): Likewise.
25717         * modules/mkdir (Depends-on): Likewise.
25718         * modules/openat (Depends-on): Likewise.
25719         * modules/savewd (Depends-on): Likewise.
25720         * modules/rename (Depends-on): Likewise.
25721         (License): Relax license.
25722         * modules/mkdir-tests (Depends-on): Drop progname.
25723         (Makefile.am): Delete unneeded LDADD.
25724         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25725
25726         dirname: split into dirname-lgpl
25727         * modules/dirname-lgpl: New module.
25728         * modules/dirname (Files): Move library-safe files into
25729         dirname-lgpl.
25730         (Depends-on): Add dirname-lgpl.
25731         (configure.ac): Declare witness.
25732         * modules/double-slash-root (License): Relax license.
25733         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25734         module.
25735         * lib/dirname.c (dir_len, mdir_name): Move...
25736         * lib/dirname-lgpl.c: ...into new file.
25737         * lib/basename.c (last_component, base_len): Move...
25738         * lib/basename-lgpl.c: ...into new file.
25739         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25740         (gl_DIRNAME): Use it.
25741         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25742         Mention new module.
25743         * modules/dirname-tests (Depends-on): Add progname.
25744         * tests/test-dirname.c (program_name): Delete.
25745
25746         mkdir: make safe for libraries
25747         * modules/mkdir (Depends-on): Drop xalloc.
25748         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25749         exit.
25750
25751         tests: avoid some compiler warnings
25752         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25753         literals.
25754         * tests/test-memchr.c (main): Avoid type mismatch.
25755         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25756         * tests/test-base64.c (main): Likewise.
25757         * tests/test-getdelim.c (main): Likewise.
25758         * tests/test-gethostname.c (main): Likewise.
25759         * tests/test-getline.c (main): Likewise.
25760         * tests/test-netinet_in.c (main): Likewise.
25761         * tests/test-select.c (open_server_socket, main): Likewise.
25762         * tests/test-select-stdin.c (main): Likewise.
25763         * tests/test-sockets.c (main): Likewise.
25764         * tests/test-strsignal.c (main): Likewise.
25765         * tests/test-sys_select.c (main): Likewise.
25766         * tests/test-sys_socket.c (main): Likewise.
25767         * tests/test-u64.c (main): Likewise.
25768         * tests/test-xfprintf-posix.c (main): Likewise.
25769         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25770
25771         sockets: avoid compiler warning
25772         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25773
25774         maint: detect usage(1) and other suspicious exits
25775         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25776
25777 2009-10-29  Jim Meyering  <meyering@redhat.com>
25778
25779         timespec: long-to-int truncation could make timespec_cmp malfunction
25780         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25781         a multiple of 2^32 nanoseconds as no difference.
25782
25783 2009-10-28  Jim Meyering  <meyering@redhat.com>
25784
25785         fprintftime: wrap macro code argument in "do {...} while(0)"
25786         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25787         cpy macro must be a statement that can be followed by a semicolon.
25788         Now that the else clause contains a comment and is hence longer
25789         than one line, I require curly braces.  That in turn requires
25790         that we wrap this code block in the standard do...while(0).
25791
25792         fprintftime: remove stray semicolon from previous change
25793         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25794
25795         fprintftime: avoid a warning about ignored fwrite return value
25796         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25797         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25798         that is unsafe.
25799         * modules/fprintftime (Depends-on): Add ignore-value.
25800
25801         exclude: avoid an unwarranted warning
25802         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25803
25804 2009-10-27  Eric Blake  <ebb9@byu.net>
25805
25806         fseek: avoid compilation failure when fflush is replaced
25807         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25808         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25809         module is in use.
25810         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25811         module is not in use; since REPLACE_FSEEK worked otherwise.
25812         (GNULIB_FTELLO): Likewise for ftell.
25813         Reported by Ian Beckwith and others.
25814
25815 2009-10-27  Bruno Haible  <bruno@clisp.org>
25816
25817         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25818         Reported by Jim Meyering.
25819
25820 2009-10-27  Jim Meyering  <jim@meyering.net>
25821             Bruno Haible  <bruno@clisp.org>
25822
25823         Avoid warning despite dropping the return value of fwrite.
25824         * lib/unicodeio.c: Include ignore-value.h.
25825         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25826         * modules/unicodeio (Depends-on): Add ignore-value.
25827
25828 2009-10-26  Eric Blake  <ebb9@byu.net>
25829
25830         areadlinkat: fix fallback path
25831         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25832         pointer and zero.
25833
25834 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25835
25836         Use a better IO block size for modern systems
25837         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25838         * lib/md2.c: Likewise.
25839         * lib/md4.c: Likewise.
25840         * lib/md5.c: Likewise.
25841         * lib/sha1.c: Likewise.
25842         * lib/sha256.c: Likewise.
25843         * lib/sha512.c: Likewise.
25844
25845 2009-10-22  Eric Blake  <ebb9@byu.net>
25846
25847         tests: avoid several compiler warnings
25848         * tests/test-getcwd.c (main): Avoid buffer underflow.
25849         * tests/test-getdate.c (main): String literals are not safe with
25850         putenv, so use setenv.  Declare unused argument.
25851         * modules/getdate-tests (Depends-on): Add setenv.
25852         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25853         problems with string literals in char *.
25854         * tests/test-hash.c (main): Avoid shadowing declaration.
25855         (insert_new): Treat string literals as char const *.
25856         * tests/test-getopt.h (test_getopt): Likewise.
25857         (getopt_loop): Alter types to minimize casting elsewhere.
25858         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25859         (test_getopt_long_posix): Likewise.
25860         (do_getopt_long): Add wrapper to minimize casting.
25861         * tests/test-atexit.c (clear_temp_file): Use void.
25862         * tests/test-areadlink-with-size.c (main): Declare unused
25863         arguments.
25864         * tests/test-areadlink.c (main): Likewise.
25865         * tests/test-areadlinkat-with-size.c (main): Likewise.
25866         * tests/test-areadlinkat.c (main): Likewise.
25867         * tests/test-canonicalize-lgpl.c (main): Likewise.
25868         * tests/test-canonicalize.c (main): Likewise.
25869         * tests/test-dirent-safer.c (main): Likewise.
25870         * tests/test-dirname.c (main): Likewise.
25871         * tests/test-dup2.c (main): Likewise.
25872         * tests/test-fchdir.c (main): Likewise.
25873         * tests/test-fcntl-h.c (main): Likewise.
25874         * tests/test-fcntl-safer.c (main): Likewise.
25875         * tests/test-fdopendir.c (main): Likewise.
25876         * tests/test-fdutimensat.c (main): Likewise.
25877         * tests/test-fflush.c (main): Likewise.
25878         * tests/test-filenamecat.c (main): Likewise.
25879         * tests/test-filevercmp.c (main): Likewise.
25880         * tests/test-fopen-safer.c (main): Likewise.
25881         * tests/test-fopen.c (main): Likewise.
25882         * tests/test-fpending.c (main): Likewise.
25883         * tests/test-fpurge.c (main): Likewise.
25884         * tests/test-freading.c (main): Likewise.
25885         * tests/test-fstatat.c (main): Likewise.
25886         * tests/test-fsync.c (main): Likewise.
25887         * tests/test-futimens.c (main): Likewise.
25888         * tests/test-getndelim2.c (main): Likewise.
25889         * tests/test-gettimeofday.c (main): Likewise.
25890         * tests/test-getopt.c (main): Likewise.
25891         * tests/test-i-ring.c (main): Likewise.
25892         * tests/test-inttypes.c (main): Likewise.
25893         * tests/test-link.c (main): Likewise.
25894         * tests/test-lstat.c (main): Likewise.
25895         * tests/test-math.c (main): Likewise.
25896         * tests/test-md5.c (main): Likewise.
25897         * tests/test-memchr2.c (main): Likewise.
25898         * tests/test-memrchr.c (main): Likewise.
25899         * tests/test-mkdir.c (main): Likewise.
25900         * tests/test-mkdirat.c (main): Likewise.
25901         * tests/test-mkfifoat.c (main): Likewise.
25902         * tests/test-open.c (main): Likewise.
25903         * tests/test-openat-safer.c (main): Likewise.
25904         * tests/test-openat.c (main): Likewise.
25905         * tests/test-quotearg.c (main): Likewise.
25906         * tests/test-rawmemchr.c (main): Likewise.
25907         * tests/test-readlink.c (main): Likewise.
25908         * tests/test-remove.c (main): Likewise.
25909         * tests/test-rename.c (main): Likewise.
25910         * tests/test-renameat.c (main): Likewise.
25911         * tests/test-rmdir.c (main): Likewise.
25912         * tests/test-sha1.c (main): Likewise.
25913         * tests/test-signal.c (main): Likewise.
25914         * tests/test-sigaction.c (main): Likewise.
25915         * tests/test-stat.c (main): Likewise.
25916         * tests/test-stat-time.c (main): Likewise.
25917         * tests/test-stddef.c (main): Likewise.
25918         * tests/test-stdint.c (main): Likewise.
25919         * tests/test-stdio.c (main): Likewise.
25920         * tests/test-stdlib.c (main): Likewise.
25921         * tests/test-strchrnul.c (main): Likewise.
25922         * tests/test-strerror.c (main): Likewise.
25923         * tests/test-string.c (main): Likewise.
25924         * tests/test-strtod.c (main): Likewise.
25925         * tests/test-strverscmp.c (main): Likewise.
25926         * tests/test-symlink.c (main): Likewise.
25927         * tests/test-symlinkat.c (main): Likewise.
25928         * tests/test-sys_stat.c (main): Likewise.
25929         * tests/test-sys_time.c (main): Likewise.
25930         * tests/test-time.c (main): Likewise.
25931         * tests/test-unistd.c (main): Likewise.
25932         * tests/test-unlink.c (main): Likewise.
25933         * tests/test-unlinkat.c (main): Likewise.
25934         * tests/test-utimens.c (main): Likewise.
25935         * tests/test-utimensat.c (main): Likewise.
25936         * tests/test-version-etc.c (main): Likewise.
25937         * tests/test-wchar.c (main): Likewise.
25938         * tests/test-wctype.c (main): Likewise.
25939         * tests/test-xprintf-posix.c (main): Likewise.
25940         * tests/test-posixtm.c (main): Likewise.
25941         (STREQ): Delete unused macro.
25942         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25943         shadowed variables.
25944         * tests/test-memchr.c (main): Likewise.
25945
25946 2009-10-21  Eric Blake  <ebb9@byu.net>
25947
25948         areadlinkat: avoid failure on older glibc
25949         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25950         rather than mis-comparing 0 against FUNC_RESULT of char*.
25951
25952 2009-10-21  Bruno Haible  <bruno@clisp.org>
25953
25954         * modules/stpncpy (License): Relicense under LGPLv2+.
25955         Reported by David Lutterkort <lutter@redhat.com>.
25956
25957 2009-10-20  Eric Blake  <ebb9@byu.net>
25958
25959         utimensat: work around Solaris 9 bug
25960         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25961         has trailing slash bugs.
25962         * tests/test-lutimens.h (test_lutimens): Enhance test.
25963         * tests/test-utimens.h (test_utimens): Likewise.
25964         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25965         * doc/posix-functions/utimes.texi (utimes): Likewise.
25966         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25967         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25968         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25969         * doc/posix-functions/futimens.texi (futimens): Likewise.
25970
25971         fdutimensat: new module
25972         * modules/fdutimensat: New file.
25973         * lib/fdutimensat.c (fdutimensat): Likewise.
25974         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25975         * MODULES.html.sh (File system functions): Mention module.
25976         * modules/fdutimensat-tests: New test.
25977         * tests/test-fdutimensat.c: Likewise.
25978
25979         doc: regenerate INSTALL
25980         * doc/INSTALL: Reflect recent autoconf update.
25981         * doc/INSTALL.ISO: Likewise.
25982         * doc/INSTALL.UTF-8: Likewise.
25983
25984 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25985
25986         acl: warn if ACL support is not detected
25987         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25988
25989 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25990
25991         * lib/nproc.h: Add extern "C" block for C++.
25992
25993 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25997         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25998         * doc/posix-functions/isalpha.texi: Likewise.
25999         * doc/posix-functions/isblank.texi: Likewise.
26000         * doc/posix-functions/iscntrl.texi: Likewise.
26001         * doc/posix-functions/isdigit.texi: Likewise.
26002         * doc/posix-functions/isgraph.texi: Likewise.
26003         * doc/posix-functions/islower.texi: Likewise.
26004         * doc/posix-functions/isprint.texi: Likewise.
26005         * doc/posix-functions/ispunct.texi: Likewise.
26006         * doc/posix-functions/isspace.texi: Likewise.
26007         * doc/posix-functions/isupper.texi: Likewise.
26008         * doc/posix-functions/isxdigit.texi: Likewise.
26009
26010 2009-10-18  Bruno Haible  <bruno@clisp.org>
26011
26012         Tests for module 'isblank'.
26013         * modules/isblank-tests: New file.
26014         * tests/test-isblank.c: New file.
26015
26016         New module 'isblank'.
26017         * lib/isblank.c: New file.
26018         * m4/isblank.m4: New file.
26019         * modules/isblank: New file.
26020         * doc/posix-functions/isblank.texi: Mention the new module.
26021
26022 2009-10-18  Bruno Haible  <bruno@clisp.org>
26023
26024         New module 'ctype'.
26025         * lib/ctype.in.h: New file.
26026         * m4/ctype.m4: New file.
26027         * modules/ctype: New file.
26028         * doc/posix-headers/ctype.texi: Mention the new module.
26029
26030 2009-10-18  Jim Meyering  <meyering@redhat.com>
26031
26032         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26033         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26034         right after its initialization, rather than farther down.
26035         Keeping these in close proximity makes it easier to ensure
26036         that each such variable is initialized.  E.g.,
26037
26038             LIB_CLOCK_GETTIME=
26039             AC_SUBST([LIB_CLOCK_GETTIME])
26040
26041         This change also increments these serial numbers.
26042         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26045
26046 2009-10-18  Bruno Haible  <bruno@clisp.org>
26047
26048         Don't let environment variables perturb build.
26049         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26050         (gl_PREREQ_GETHRXTIME): ... not here.
26051
26052 2009-10-18  Bruno Haible  <bruno@clisp.org>
26053
26054         Avoid symlink attack in localcharset module.
26055         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26056         (O_NOFOLLOW): Define fallback.
26057         (get_charset_aliases): Don't open the file if it is a symbolic link.
26058         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26059         gl_FCNTL_H.
26060         (gl_FCNTL_H): Require it.
26061         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26062         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26063         Reported by Fergal Glynn <fglynn@veracode.com>.
26064
26065 2009-10-18  Bruno Haible  <bruno@clisp.org>
26066
26067         Implement nproc for mingw.
26068         * lib/nproc.c: Include <windows.h>
26069         (num_processors): On native Windows platforms, try GetSystemInfo.
26070
26071 2009-10-18  Bruno Haible  <bruno@clisp.org>
26072
26073         Implement nproc for IRIX.
26074         * lib/nproc.c: Include <sys/sysmp.h>.
26075         (num_processors): On IRIX systems, try sysmp.
26076         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26077
26078 2009-10-18  Bruno Haible  <bruno@clisp.org>
26079
26080         Implement nproc for HP-UX.
26081         * lib/nproc.c: Include <sys/pstat.h>
26082         (num_processors): On HP-UX systems, try pstat_getdynamic.
26083         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26084         pstat_getdynamic.
26085
26086 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26087             Bruno Haible  <bruno@clisp.org>
26088
26089         Implement nproc for NetBSD, OpenBSD.
26090         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26091         (ARRAY_SIZE): New macro.
26092         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26093         * m4/nproc.m4: New file.
26094         * modules/nproc (Files): Add m4/nproc.m4.
26095         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26096         (Makefile.am): Instead, augment lib_SOURCES.
26097
26098 2009-10-18  Bruno Haible  <bruno@clisp.org>
26099
26100         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26101         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26102         sys/param.h.
26103
26104 2009-10-16  Eric Blake  <ebb9@byu.net>
26105
26106         utimensat: new module
26107         * modules/utimensat: New file.
26108         * lib/utimensat.c (utimensat): Likewise.
26109         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26110         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26111         so we can work around Linux bugs.
26112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26113         * modules/sys_stat (Makefile.am): Substitute them.
26114         * lib/sys_stat.in.h (utimensat): Declare it.
26115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26116         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26117         * modules/utimensat-tests: New test.
26118         * tests/test-utimensat.c: Likewise.
26119
26120         utimens: let lutimens work on non-symlinks
26121         * lib/utimens.c (lutimens): Fall back to utimens rather than
26122         failing with ENOSYS, when file is not a symlink.
26123         (utimens): Reduce redirection.
26124         * tests/test-lutimens.h (test_lutimens): Update test to cover
26125         non-symlinks.
26126         * tests/test-utimens.h (test_utimens): Update test to cover
26127         symlinks.
26128         * tests/test-utimens.c (main): Update caller.
26129
26130         utimens: cache whether utimensat syscall works
26131         * lib/utimens.c (utimensat_works_really): New cache variable.
26132         (fdutimens, lutimens): Use it to avoid failing syscall.
26133
26134         test-stat-time, test-utimens: improve portability
26135         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26136         ext4 on alpha, and for cygwin.
26137         * tests/test-utimens-common.h: New file.
26138         (nap): Factor delays into single function.
26139         * tests/test-lutimens.h (test_lutimens): Use new header.
26140         * tests/test-futimens.h (test_futimens): Likewise.
26141         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26142         timestamps to occur from same machine, as was done previously for
26143         test_utimens.
26144         * modules/utimens-tests (Files): Ship new file.
26145         * modules/futimens-tests (Files): Likewise.
26146         Reported in part by Jim Meyering.
26147
26148         sys_stat: sort replacement declarations
26149         * lib/sys_stat.in.h: Sort declarations.
26150         * lib/futimens.c (futimens): Fix typo.
26151
26152 2009-10-15  Jim Meyering  <meyering@redhat.com>
26153
26154         don't let environment settings perturb build
26155         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26156         could cause a configure-time and/or build-time malfunction.
26157         Typically, a configure-time function-in-library test is performed
26158         via code like this:
26159
26160           LIB_VAR=
26161           AC_SUBST([LIB_VAR])
26162           prefix_saved_LIBS=$LIBS
26163             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26164                        [test "$ac_cv_search_FUNC" = "none required" ||
26165                         LIB_VAR=$ac_cv_search_FUNC])
26166           LIBS=$prefix_saved_LIBS
26167
26168         However, in each of the files affected by this change, the LIB_VAR=
26169         initialization was omitted.  Thus, when set in the environment, its
26170         value would propagate into generated Makefiles when FUNC is not found
26171         in LIB_NAME.
26172         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26173         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26175
26176 2009-10-14  Eric Blake  <ebb9@byu.net>
26177
26178         fchdir: avoid infinite recursion in mingw
26179         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26180         recursing.
26181
26182         test-stat-time: port to mingw
26183         * tests/test-stat-time.c (force_unlink): Return a value.
26184         (test_ctime) [W32]: Fix compilation error.
26185         (nap): Don't call usleep with too large an argument.  Use
26186         force_unlink.
26187         * doc/pastposix-functions/usleep.texi (usleep): Document the
26188         portability issue.
26189
26190 2009-10-13  Jim Meyering  <meyering@redhat.com>
26191
26192         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26193         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26194         * modules/pipe-filter-ii: Likewise.
26195         * modules/sys_socket-tests: Likewise.
26196         * modules/tsearch-tests: Likewise.
26197         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26198         (check): Depend on it.
26199
26200 2009-10-12  Eric Blake  <ebb9@byu.net>
26201
26202         utimens-tests: port to NFS file systems
26203         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26204         comparisons to avoid spurious failures from timestamp drift
26205         between NFS machines.
26206
26207 2009-10-12  Eric Blake  <ebb9@byu.net>
26208
26209         stat-time-tests: minor cleanups
26210         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26211         * tests/test-stat-time.c (nap): Separate assignment from call.
26212         Suggested by Paolo Bonzini and Bruno Haible.
26213
26214         sys_stat: guarantee struct timespec
26215         * lib/sys_stat.in.h (includes): Always include <time.h>
26216         * modules/sys_stat (Depends-on): Add time.
26217         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26218         mode_t permission values.
26219         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26220         get at subsecond timestamps.
26221
26222 2009-10-10  Eric Blake  <ebb9@byu.net>
26223
26224         futimens: new module
26225         * modules/futimens: New file.
26226         * lib/futimens.c (futimens): Likewise.
26227         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26228         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26229         we can work around Linux bugs.
26230         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26231         * modules/sys_stat (Makefile.am): Substitute them.
26232         * lib/sys_stat.in.h (futimens): Declare it.
26233         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26234         * doc/posix-functions/futimens.texi (futimens): Likewise.
26235         * modules/futimens-tests: New test.
26236         * tests/test-futimens.c: Likewise.
26237
26238         utimens: introduce fdutimens
26239         * lib/utimens.h (fdutimens): New prototype.
26240         * lib/utimens.c (gl_futimens): Move guts...
26241         (fdutimens): ...to new interface.
26242         * tests/test-utimens.c (do_fdutimens): Use it.
26243
26244         utimens: add UTIME_NOW and UTIME_OMIT support
26245         * lib/utimens.c (validate_timespec, update_timespec): New helper
26246         functions.
26247         (gl_futimens, lutimens): Use them.
26248         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26249         stdbool, sys_stat.
26250         (Link): Mention resulting library dependency.
26251         * modules/utimecmp (Link): Likewise.
26252         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26253         (Makefile.am): Pick up library dependency.
26254         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26255         definition.
26256         * tests/test-sys_stat.c: Test the definitions.
26257         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26258         * NEWS: Document library dependency.
26259
26260         utimecmp: support symlink timestamps
26261         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26262         hashing when possible.  Use pathconf when available.
26263         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26264         * modules/utimecmp (Depends-on): Add lstat.
26265
26266         utimens: add lutimens interface
26267         * lib/utimens.c (lutimens): New function.
26268         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26269         * lib/utimens.h (lutimens): Declare new interface.
26270         * tests/test-utimens.c (main): Enhance test.
26271         * tests/test-lutimens.h (test_lutimens): New file.
26272         * modules/utimens-tests (Files): Distribute it.
26273         (Depends-on): Add symlink.
26274         (configure.ac): Check for usleep.
26275
26276         utimens: validate futimens usage
26277         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26278         fewer syscalls on failure later on.  Avoid compiler warning on
26279         mingw.
26280         * modules/utimens (Depends-on): Add dup2.
26281
26282         utimens: add test
26283         * modules/utimens-tests: New test.
26284         * tests/test-utimens.h: New file.
26285         * tests/test-futimens.h: Likewise.
26286         * tests/test-utimens.c: Likewise.
26287
26288         doc: mention timestamp portability issues
26289         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26290         instead.
26291         * doc/posix-functions/utime.texi (utime): Likewise.
26292         * doc/posix-functions/utimes.texi (utimes): Likewise.
26293         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26294         instead.
26295         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26296         module.
26297         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26298         Mention weakness with symlink timestamps.
26299         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26300         to utimensat/futimens instead.
26301         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26302
26303         test-dup2: enhance test
26304         * tests/test-dup2.c (main): Also check AT_FDCWD.
26305
26306         test-stat-time: avoid more spurious failures
26307         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26308         xfs; and avoid race if the two timestamps cross quantization edge.
26309
26310         relocatable: prefer 'file system' over 'filesystem'
26311         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26312         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26313         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26314         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26315         * lib/relocatable.c (compute_curr_prefix): Likewise.
26316
26317 2009-10-10  Jim Meyering  <meyering@redhat.com>
26318
26319         stat-time-tests: check for the usleep function
26320         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26321
26322 2009-10-10  Bruno Haible  <bruno@clisp.org>
26323
26324         * modules/xnanosleep: Put the Link section after the Include section.
26325
26326 2009-10-09  Eric Blake  <ebb9@byu.net>
26327
26328         dup2: work around FreeBSD 6.1 bug
26329         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26330         * doc/posix-functions/dup2.texi (dup2): Document it.
26331         Reported by Nelson H. F. Beebe and Jim Meyering.
26332
26333         test-stat-time: port to buggy NFS clients
26334         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26335         (test_ctime): Also skip test if mtime and ctime are skewed.
26336
26337         maint: prefer 'file system' over 'filesystem'
26338         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26339         * doc/posix-functions/lstat.texi (lstat): Likewise.
26340         * lib/file-has-acl.c (file_has_acl): Likewise.
26341         * lib/fwriteerror.c [TEST]: Likewise.
26342         * tests/test-areadlink.h (test_areadlink): Likewise.
26343         * tests/test-areadlinkat-with-size.c (main): Likewise.
26344         * tests/test-areadlinkat.c (main): Likewise.
26345         * tests/test-canonicalize-lgpl.c (main): Likewise.
26346         * tests/test-canonicalize.c (main): Likewise.
26347         * tests/test-fstatat.c (main): Likewise.
26348         * tests/test-linkat.c (main): Likewise.
26349         * tests/test-lstat.h (test_lstat_func): Likewise.
26350         * tests/test-mkdir.h (test_mkdir): Likewise.
26351         * tests/test-readlink.h (test_readlink): Likewise.
26352         * tests/test-remove.c (main): Likewise.
26353         * tests/test-rename.h (test_rename): Likewise.
26354         * tests/test-renameat.c (main): Likewise.
26355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26356         * tests/test-symlink.h (test_symlink): Likewise.
26357         * tests/test-symlinkat.c (main): Likewise.
26358         * tests/test-unlink.h (test_unlink_func): Likewise.
26359         * tests/test-unlinkat.c (main): Likewise.
26360
26361         maint: make realtime library usage explicit
26362         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26363         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26364         * modules/settime (Link): Likewise.
26365         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26366
26367         test-stat-time: speed up execution
26368         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26369         warning on mingw.
26370         (nap): New helper function.
26371         (prepare_test): Use it to reduce sleep time.
26372         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26373         execution.
26374         * modules/stat-time-tests (configure.ac): Check for usleep.
26375
26376 2009-10-09  Jim Meyering  <meyering@redhat.com>
26377
26378         selinux-h: always use getfilecon wrappers
26379         * lib/getfilecon.c: New file.
26380         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26381         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26382         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26383         (fgetfilecon): Provide a stub.
26384         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26385         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26386         file unconditionally.
26387         When <selinux/selinux.h> is found, arrange to use wrappers.
26388         * modules/selinux-h (Files): Add getfilecon.c.
26389         (Makefile.am): Substitute include-next-related bits
26390         into the now-always-generated selinux/selinux.h file.
26391         * doc/glibc-functions/lgetfilecon.texi: New file.
26392         * doc/glibc-functions/fgetfilecon.texi: New file.
26393         * doc/glibc-functions/getfilecon.texi: New file.
26394         * doc/glibc-functions/getfilecon-desc.texi: New file.
26395         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26396         which to pull in the new files.
26397         * MODULES.html.sh (Misc): Add selinux-h.
26398
26399 2009-10-08  Jim Meyering  <meyering@redhat.com>
26400
26401         unistd: fix comment typo
26402         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26403
26404 2009-10-08  Eric Blake  <ebb9@byu.net>
26405
26406         areadlink: use SIZE_MAX consistently
26407         * modules/areadlink (Depends-on): Add stdint.
26408         * modules/areadlink-with-size (Depends-on): Likewise.
26409         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26410         gives NULL; drop sys/types, since unistd gives size_t; and add
26411         stdint for SIZE_MAX.
26412         (SIZE_MAX): Rely on headers.
26413         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26414         and add stdint.
26415         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26416         (SIZE_MAX): Likewise.
26417         (INITIAL_BUF_SIZE): Turn into enum.
26418         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26419
26420 2009-10-08  Jim Meyering  <meyering@redhat.com>
26421
26422         areadlinkat: avoid compilation failure
26423         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26424         Fix typo in comment.
26425
26426 2009-10-07  Eric Blake  <ebb9@byu.net>
26427
26428         areadlinkat-with-size: new module
26429         * modules/areadlinkat-with-size: New module.
26430         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26431         * lib/areadlink.h (areadlinkat): Declare it.
26432         * MODULES.html.sh (File system functions): Mention it.
26433         * modules/areadlinkat-with-size-tests: New test.
26434         * tests/test-areadlinkat-with-size.c: New file.
26435
26436         xreadlinkat: new module
26437         * modules/xreadlinkat: New module.
26438         * lib/xreadlinkat.c (xreadlinkat): New file.
26439         * lib/xreadlink.h (xreadlinkat): Declare it.
26440         * MODULES.html.sh (File system functions): Mention it.
26441
26442         areadlinkat: new module
26443         * lib/at-func.c (FUNC_FAIL): New define.
26444         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26445         * modules/areadlinkat: New module.
26446         * lib/linkat.c (areadlinkat): Move...
26447         * lib/areadlinkat.c (areadlinkat): ...to new file.
26448         * lib/areadlink.h (areadlinkat): Declare it.
26449         * modules/linkat (Depends-on): Add areadlinkat.
26450         * MODULES.html.sh (File system functions): Mention it.
26451         * modules/areadlinkat-tests: New test.
26452         * tests/test-areadlinkat.c: New file.
26453
26454         areadlink, areadlink-with-size: add tests
26455         * modules/areadlink-tests: New test.
26456         * modules/areadlink-with-size-tests: Likewise.
26457         * tests/test-areadlink.h: New file.
26458         * tests/test-areadlink.c: Likewise.
26459         * tests/test-areadlink-with-size.c: Likewise.
26460
26461         maint: minor cleanups
26462         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26463         _UNUSED_PARAMETER_ instead.
26464         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26465         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26466         * modules/linkat-tests (Files): Distribute test-link.h.
26467
26468         openat, utimens: whitespace cleanup
26469         * lib/openat.c: Prefer space throughout, rather than mix of 8
26470         spaces vs. tabs.
26471         * lib/at-func.c: Likewise.
26472         * lib/utimens.c: Likewise.
26473
26474         openat: avoid using wrong fd
26475         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26476         working directory chooses same fd.
26477         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26478
26479         mkdir, mkdirat: fix cygwin 1.5.x bug
26480         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26481         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26482         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26483         bug.
26484         (gl_PREREQ_MKDIR): Delete unused macro.
26485         * modules/mkdir (Files): Track file rename.
26486         (configure.ac): Update macro name.
26487         * modules/openat (Depends-on): Add mkdir.
26488         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26489
26490         mkdir, mkdirat: add tests
26491         * modules/mkdir-tests: New test.
26492         * tests/test-mkdir.h: New file.
26493         * tests/test-mkdir.c: Likewise.
26494         * tests/test-mkdirat.c: Likewise.
26495         * modules/openat-tests (Files): Add new files.
26496         (Makefile.am): Run new test.
26497
26498 2009-10-06  Eric Blake  <ebb9@byu.net>
26499
26500         doc: tweak *at function documentation
26501         * doc/posix-functions/faccessat.texi (faccessat): Mention
26502         known issue with replacement.
26503         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26504         * doc/posix-functions/linkat.texi (linkat): Likewise.
26505         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26506         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26507         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26508         * doc/posix-functions/renameat.texi (renameat): Likewise.
26509         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26510
26511         openat: fix GNU/Hurd bug in unlinkat
26512         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26513         broken.
26514         * doc/posix-functions/unlink.texi (unlink): Document this.
26515         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26516
26517         fdopendir: fix GNU/Hurd bug
26518         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26519         allowing non-directory fds.
26520         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26521         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26522         * modules/dirent (Makefile.am): Substitute it.
26523         * lib/dirent.in.h (fdopendir): Declare replacement.
26524         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26525         * tests/test-fdopendir.c (main): Test something other than
26526         /dev/null, since on Hurd that behaves like a directory.
26527
26528         test-symlink: port to GNU/Hurd
26529         * tests/test-symlink.h (test_symlink): Relax expected errno.
26530
26531         doc: tweak more cygwin information
26532         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26533         now compatible with glibc.
26534         * doc/posix-functions/getopt.texi (getopt): Likewise.
26535
26536         getopt-gnu: add another test
26537         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26538         guarantee behavior relied on by m4.
26539         * tests/test-getopt.c (main): Use it.
26540         * modules/getopt-posix-tests (Depends-on): Add setenv.
26541         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26542
26543         getopt: fix compilation on darwin
26544         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26545         include.
26546         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26547         Reported by Ludovic Courtès.
26548
26549 2009-10-06  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/size_max (Description): Discourage its use.
26552         Reported by Simon Josefsson.
26553
26554 2009-10-06  Jim Meyering  <meyering@redhat.com>
26555
26556         linkat: avoid compilation failure
26557         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26558
26559 2009-10-05  Eric Blake  <ebb9@byu.net>
26560
26561         linkat: support Linux 2.6.17
26562         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26563         linkat on Linux, but allow cache variable override.
26564         * lib/linkat.c (rpl_linkat): Define override.
26565         * modules/linkat (Depends-on): Add symlinkat.
26566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26567         * modules/unistd (Makefile.am): Substitute it.
26568         * lib/unistd.in.h (linkat): Declare replacement.
26569         Reported by Pádraig Brady.
26570
26571         quotearg: port test to systems with C.UTF-8 locale
26572         * tests/test-quotearg.c (struct result_strings): Add another
26573         member, differentiating between C.ASCII and C.UTF-8 handling.
26574         (compare_strings): Add parameter.
26575         (main): Adjust all callers.
26576
26577         getopt: avoid clash with FreeBSD _getopt_internal
26578         * lib/getopt.in.h (_getopt_internal): Override the name.
26579         * lib/getopt_int.h (includes): Pick up any overrides.
26580         Reported by Reuben Thomas.
26581
26582         hash: allow C89 compilation
26583         * lib/hash.c (check_tuning): Move declaration before statement.
26584         Reported by Reuben Thomas.
26585
26586 2009-10-05  Karl Berry  <karl@gnu.org>
26587
26588         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26589
26590 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26591             Bruno Haible  <bruno@clisp.org>
26592
26593         * lib/uname.c (uname): Use a table-driven algorithm to compute
26594         Windows NT versions.
26595
26596 2009-10-04  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26599         program_invocation_short_name.
26600         * modules/progname (configure.ac): Test for presence of
26601         program_invocation_short_name.
26602         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26603
26604 2009-10-04  Bruno Haible  <bruno@clisp.org>
26605
26606         * lib/progname.c (set_program_name): Fix comment.
26607         Reported by Jim Meyering.
26608
26609 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26610             Bruno Haible  <bruno@clisp.org>
26611
26612         * lib/uname.c: Include <string.h>.
26613         (uname): Do only one call to GetVersionEx in the common case.
26614
26615 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26616             Bruno Haible  <bruno@clisp.org>
26617
26618         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26619         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26620         (uname): Add support for Windows CE and various non-x86 CPU types.
26621
26622 2009-10-03  Bruno Haible  <bruno@clisp.org>
26623
26624         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26625         invocation to tests/configure.ac.
26626         Reported by Ian Beckwith <ianb@erislabs.net>.
26627
26628 2009-10-02  Eric Blake  <ebb9@byu.net>
26629
26630         fchdir: avoid compiler warning
26631         * lib/fchdir.c (canonicalize_file_name)
26632         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26633
26634         test-open: support mingw errno values
26635         * tests/test-open.h (test_open): Relax test.
26636         * tests/test-fopen.h (test_fopen): Likewise.
26637         * tests/test-openat-safer.c (main): Likewise.
26638
26639         open: fix opening directory on mingw
26640         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26641
26642         test-open: on GNU/Hurd, /dev/null is a directory
26643         * tests/test-fopen.h (main): Rename...
26644         (test_fopen): ...to this.  Use a guaranteed non-directory when
26645         confirming open behavior on trailing slash.
26646         * tests/test-openat-safer.c (main): Likewise.
26647         * tests/test-open.h (main): Likewise....
26648         (test_open): ...to this.
26649         * tests/test-fopen.c (main): Adjust caller.
26650         * tests/test-fopen-safer.c (main): Likewise.
26651         * tests/test-open.c (main): Likewise.
26652         * tests/test-fcntl-safer.c (main): Likewise.
26653         Reported by Samuel Thibault.
26654
26655         rename, fchdir: don't ignore chdir failure
26656         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26657         * lib/rename.c (rpl_rename) [W32]: Likewise.
26658         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26659         an empty destination directory if source cannot be renamed,
26660         although there is still possibility for failure.
26661         * doc/posix-functions/rename.texi (rename): Document the race.
26662         Reported by Jim Meyering.
26663
26664         maint: cleanup whitespace in recent commits
26665         * lib/rename.c (rpl_rename): Remove tabs.
26666         * tests/test-link.h (test_link): Likewise.
26667         * lib/fchdir.c (get_name): Likewise.
26668         Reported by Jim Meyering.
26669
26670 2009-10-02  Ben Pfaff  <blp@gnu.org>
26671
26672         relocatable-prog-wrapper: Add missing dependency on
26673         double-slash-root.
26674         * modules/relocatable-prog-wrapper: Add dependency.
26675         Reported by Ian Beckwith <ianb@erislabs.net>.
26676
26677 2009-10-02  Eric Blake  <ebb9@byu.net>
26678
26679         renameat: fix Solaris bugs
26680         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26681         needed fixing.
26682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26683         * modules/stdio (Makefile.am): Substitute it.
26684         * lib/stdio.in.h (renameat): Declare replacement.
26685         * lib/renameat.c (rpl_renameat): Implement fix.
26686
26687         renameat: new module
26688         * modules/renameat: New file.
26689         * lib/renameat.c (renameat): Likewise.
26690         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26692         * modules/stdio (Makefile.am): Substitute them.
26693         * lib/stdio.in.h (renameat): Declare it.
26694         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26695         * doc/posix-functions/renameat.texi (renameat): Likewise.
26696         * modules/renameat-tests: New test.
26697         * tests/test-renameat.c: Likewise.
26698
26699         rename: fix mingw bugs
26700         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26701         directory overwrite bugs.
26702
26703         rename: fix another cygwin 1.5 bug
26704         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26705         checks.
26706         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26707         unnecessary cygwin workarounds.  Also work around bug with moving
26708         full directory onto an empty one.
26709         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26710
26711         rename-dest-slash: merge into rename module
26712         * modules/rename-dest-slash (Status): Mark obsolete.
26713         (Depends-on): Add rename.
26714         (Files): Let rename do it all.
26715         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26716         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26717         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26718         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26719         * lib/rename.c (rpl_rename): Update comments.
26720
26721         rename: fix cygwin 1.5.x bugs
26722         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26723         * lib/rename.c (rpl_rename): Work around them.
26724         * modules/rename (Depends-on): Add same-inode.
26725
26726         rename: fix Solaris 10 bug
26727         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26728         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26729         was the only bug.
26730
26731         rename: fix Solaris 9 bug
26732         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26733         on non-directory.  Avoid calling exit.
26734         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26735         strdup.
26736         * modules/rename-tests (Depends-on): Drop lstat.
26737         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26738         (gl_PREREQ_RENAME): Delete unused macro.
26739
26740         rename-dest-slash: fix NetBSD bug
26741         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26742         links.
26743         * modules/rename-dest-slash (Depends-on): Add same-inode.
26744
26745         rename-tests: new test, exposes several platform bugs
26746         * modules/rename-tests: New file.
26747         * tests/test-rename.h: Likewise.
26748         * tests/test-rename.c: Likewise.
26749         * doc/posix-functions/rename.texi (rename): Improve documentation,
26750         including bugs that will eventually be fixed in gnulib.
26751
26752 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26753
26754         * lib/uname.c: Include <stdlib.h>
26755         (uname): Assume version info is available.
26756
26757 2009-10-02  Jim Meyering  <meyering@redhat.com>
26758
26759         gnu-web-doc-update: correct --help output
26760         * build-aux/gnu-web-doc-update: Make --help output relevant.
26761
26762         gnu-web-doc-update: add standard options
26763         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26764
26765         gnu-web-doc-update: New module.
26766         Use this script to automatically update the on-line web documentation
26767         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26768         * modules/gnu-web-doc-update: New file, from coreutils.
26769         * build-aux/gnu-web-doc-update: New script.
26770
26771 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26772
26773         link: LoadLibrary is not needed.
26774         * lib/link.c: Use GetModuleHandle.
26775
26776 2009-10-01  Eric Blake  <ebb9@byu.net>
26777
26778         getopt: bump serial number
26779         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26780         change.
26781
26782         tests: tighten link, rmdir, and remove tests
26783         * tests/test-link.h (includes): No need to use <config.h> here.
26784         Clean up if directory hard link was created, otherwise test for
26785         trailing '.'.
26786         * tests/test-linkat.c (main): Simplify.
26787         * tests/test-remove.c (main): Enhance test for trailing '.'.
26788         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26789
26790 2009-10-01  Jim Meyering  <meyering@redhat.com>
26791
26792         maint.mk: requiring "make major" was annoying, for a "minor" release.
26793         What is intended is "stable", to contrast with alpha and beta,
26794         so require "make stable", not "make major".
26795         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26796         (get_tool_versions): Likewise.
26797         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26798
26799 2009-09-30  Ben Pfaff  <blp@gnu.org>
26800
26801         Fix broken build of replacement for Windows tmpfile().
26802         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26803         flags argument added along with the 'mkostemp' module.
26804
26805 2009-09-28  Bruno Haible  <bruno@clisp.org>
26806
26807         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26808         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26809         to 'remove_elt'.
26810         (gl_list_remove): Update.
26811         * lib/gl_list.c (gl_list_remove): Update.
26812         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26813         to 'remove_elt'.
26814         (gl_oset_remove): Update.
26815         * lib/gl_list.c (gl_oset_remove): Update.
26816         Reported by Eric Blake.
26817
26818 2009-09-28  Eric Blake  <ebb9@byu.net>
26819
26820         doc: mention yet more cygwin 1.7 status
26821         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26822         cygwin.
26823         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26824         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26825
26826         argp: fix test failure
26827         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26828         that are not upper-case.  Pass correct range to tolower.
26829
26830 2009-09-27  Jim Meyering  <meyering@redhat.com>
26831
26832         test-yesno: work around sparc-dash here-document infelicity
26833         Without this change, the literal \177 byte in a here document
26834         would make dash 0.5.5.1-3 access uninitialized memory.
26835         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26836         Instead, use a marker, "@", and filter through tr to create the desired
26837         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26838
26839 2009-09-27  Bruno Haible  <bruno@clisp.org>
26840
26841         Disable untested support for new flavours of ACLs on AIX.
26842         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26843         progress.
26844         * lib/set-mode-acl.c (qset_acl): Likewise.
26845
26846 2008-12-07  Bruno Haible  <bruno@clisp.org>
26847
26848         Add support for new flavours of ACLs on AIX. (Untested.)
26849         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26850         (file_has_acl): Add support for newer AIX.
26851         * lib/set-mode-acl.c (qset_acl): Likewise.
26852         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26853         Rainer Tammer <tammer@tammer.net>.
26854
26855 2009-09-26  Eric Blake  <ebb9@byu.net>
26856
26857         argp: fix compilation of getopt
26858         * lib/getopt.in.h (includes): Use different guard than glibc.
26859         Reported by Sergey Poznyakoff.
26860
26861         doc: mention more cygwin 1.7 status
26862         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26863         bug.
26864         * doc/posix-functions/execl.texi (execl): Likewise.
26865         * doc/posix-functions/execle.texi (execle): Likewise.
26866         * doc/posix-functions/execlp.texi (execlp): Likewise.
26867         * doc/posix-functions/execv.texi (execv): Likewise.
26868         * doc/posix-functions/execve.texi (execve): Likewise.
26869         * doc/posix-functions/execvp.texi (execvp): Likewise.
26870         * doc/glibc-functions/canonicalize_file_name.texi
26871         (canonicalize_file_name): Cygwin 1.7 now provides this.
26872         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26873         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26874         on AT_SYMLINK_NOFOLLOW.
26875
26876 2009-09-24  Eric Blake  <ebb9@byu.net>
26877
26878         test-linkat: make test more robust
26879         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26880
26881         getopt: fix inclusion guards for cygwin
26882         * modules/getopt-posix (Depends-on): Add include-next.
26883         (Makefile.am): Substitute more items in replacement header.
26884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26885         <getopt.h>.
26886         * lib/getopt.in.h (includes): Use split inclusion guard, and
26887         prefer <getopt.h> over include <unistd.h> when one is present.
26888         (option): Also override name of 'struct option'.
26889
26890         same-inode: revert prior change; it is not yet ready
26891         * NEWS: Undo mention of this change.
26892         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26893         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26894         * lib/cycle-check.c (cycle_check): Likewise.
26895         * lib/same.c (same_name): Likewise.
26896         * lib/at-func2.c (at_func2): Likewise.
26897
26898 2009-09-23  Eric Blake  <ebb9@byu.net>
26899
26900         linkat: new module
26901         * modules/linkat: New file.
26902         * lib/at-func2.c (at_func2): Likewise.
26903         * lib/linkat.c (linkat): Likewise.
26904         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26905         * lib/openat-priv.h (at_func2): Add declaration.
26906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26907         * modules/unistd (Makefile.am): Substitute them.
26908         * lib/unistd.in.h (linkat): Declare it.
26909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26910         * doc/posix-functions/linkat.texi (linkat): Likewise.
26911         * doc/posix-functions/link.texi (link): Tweak wording.
26912         * tests/test-link.c (main): Move guts...
26913         * tests/test-link.h (test_link): ...into new file.
26914         * modules/linkat-tests: New test.
26915         * tests/test-linkat.c: Likewise.
26916         * modules/link-tests (Files): Ship new file.
26917         (Depends-on): Add stdbool.
26918
26919         dirname: add library-safe mdir_name
26920         * lib/dirname.h (mdir_name): New prototype.
26921         * lib/dirname.c (dir_name): Move guts...
26922         (mdir_name): ...to new function that avoids xalloc_die.
26923
26924         fchdir: another mingw fix
26925         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26926         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26927         on mingw (where it has not yet been ported), and make it optional
26928         elsewhere.
26929         (_gl_register_fd): Use it.
26930
26931         same-inode: make SAME_INODE tri-state, to port to mingw
26932         * NEWS: Mention this change.
26933         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26934         st_ino always being 0.
26935         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26936         * lib/cycle-check.c (cycle_check): Likewise.
26937         * lib/same.c (same_name): Likewise.
26938
26939         lstat: avoid mingw compilation error
26940         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26942         lstat ourselves.
26943         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26944         was adequate.
26945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26946         the checks for lstat.
26947         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26948
26949         link: fix test failure on Solaris 9
26950         * lib/link.c (rpl_link): Don't assume link will catch bogus
26951         trailing slash on source.
26952
26953         test-symlinkat: enhance test
26954         * tests/test-readlink.c (main): Move guts...
26955         * tests/test-readlink.h (test_readlink): ...into new file.
26956         * tests/test-symlink.c (main): Move guts...
26957         * tests/test-symlink.h (test_symlink): ...into new file.
26958         * tests/test-symlinkat.c (main): Use new files for further
26959         coverage.
26960         (do_symlink, do_readlink): New helper functions.
26961         * modules/symlink-tests (Files): Ship new file.
26962         (Depends-on): Add stdbool.
26963         * modules/readlink-tests (Files): Ship new file.
26964         (Depends-on): Add stdbool.
26965         * modules/symlinkat-tests (Files): Use new files.
26966
26967 2009-09-23  Eric Blake  <ebb9@byu.net>
26968
26969         readlink: document portability issue with symlink length
26970         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26971         systems have bogus st_size on symlinks, and mention the
26972         areadlink-with-size module.
26973         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26974         * doc/posix-functions/readlink.texi (readlink): Mention the
26975         areadlink module, and ERANGE failure.
26976         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26977         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26978
26979         readlink: fix Solaris 9 bug with trailing slash
26980         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26981         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26982         * doc/posix-functions/readlink.texi (readlink): Document this.
26983         * modules/readlink-tests: New test.
26984         * tests/test-readlink.c: Likewise.
26985
26986         readlink: fix cygwin 1.5.x bug with return type
26987         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26988         * lib/unistd.in.h (readlink): Use ssize_t.
26989         * lib/readlink.c (readlink): Likewise.
26990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26991         * modules/unistd (Makefile.am): Substitute it.
26992         * lib/unistd.in.h (readlink): Declare replacement.
26993         * doc/posix-functions/readlink.texi (readlink): Document this.
26994
26995         symlink: use throughout gnulib
26996         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26997         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26998         symlink is not used.
26999         * modules/symlinkat (Depends-on): Add symlink.
27000         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27001         * modules/canonicalize-tests (Depends-on): Likewise.
27002         * modules/lstat-tests (Depends-on): Likewise.
27003         * modules/openat-tests (Depends-on): Likewise.
27004         * modules/remove-tests (Depends-on): Likewise.
27005         * modules/rmdir-tests (Depends-on): Likewise.
27006         * modules/unlink-tests (Depends-on): Likewise.
27007         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27008         * tests/test-canonicalize.c (symlink): Likewise.
27009         * tests/test-fstatat.c (symlink): Likewise.
27010         * tests/test-lstat.c (symlink): Likewise.
27011         * tests/test-remove.c (symlink): Likewise.
27012         * tests/test-rmdir.c (symlink): Likewise.
27013         * tests/test-unlink.c (symlink): Likewise.
27014         * tests/test-unlinkat.c (symlink): Likewise.
27015
27016         symlink: new module, for Solaris 9 bug
27017         * modules/symlink: New file.
27018         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27019         * lib/symlink.c: Likewise.
27020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27021         * modules/unistd (Makefile.am): Substitute them.
27022         * lib/unistd.in.h (symlink): Declare replacement.
27023         * MODULES.html.sh (File system functions): Mention it.
27024         * doc/posix-functions/symlink.texi (symlink): Likewise.
27025         * modules/symlink-tests: New test.
27026         * tests/test-symlink.c: Likewise.
27027
27028 2009-09-23  Bruno Haible  <bruno@clisp.org>
27029
27030         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27031         when needed.
27032         Test case: gnulib-tool --import --with-tests atexit inttypes.
27033         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27034
27035 2009-09-23  Bruno Haible  <bruno@clisp.org>
27036
27037         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27038         subcommand, not in a subshell.
27039
27040 2009-09-22  Eric Blake  <ebb9@byu.net>
27041
27042         unistd: sort replacement declarations
27043         * lib/unistd.in.h: Sort declarations.
27044
27045         open, openat: minor optimization
27046         * lib/open.c (open): If open succeeded, len is non-zero.
27047         * lib/openat.c (rpl_openat): Likewise.
27048
27049         link-follow: ensure correct result
27050         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27051         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27052         distinguish between possible failures.
27053
27054 2009-09-21  Eric Blake  <ebb9@byu.net>
27055
27056         fts: avoid compiler warning
27057         * lib/fts.c (dirent_inode_sort_may_be_useful)
27058         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27059
27060 2009-09-19  Bruno Haible  <bruno@clisp.org>
27061
27062         * lib/progreloc.c (canonicalize_file_name): New declaration.
27063
27064 2009-09-19  Eric Blake  <ebb9@byu.net>
27065
27066         link: fix quoting
27067         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27068
27069         openat: fix openat bugs on Solaris 9
27070         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27071         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27072         * modules/openat (Depends-on): Add open.
27073         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27074         * modules/fcntl-h (Makefile.am): Substitute it.
27075         * lib/fcntl.in.h (openat): Declare replacement.
27076         * doc/posix-functions/openat.texi (openat): Document this.
27077
27078         openat: move fstatat and unlinkat into correct files
27079         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27080         compiled.
27081         * lib/openat.c (fstatat, unlinkat): Move...
27082         * lib/fstatat.c (fstatat): ...into correct files.
27083         * lib/unlinkat.c (unlinkat): Likewise.
27084
27085         openat: fix unlinkat bugs on Solaris 9
27086         * lib/unlinkat.c (unlinkat): New file.
27087         * modules/openat (Depends-on): Add unlink.
27088         (Files): Distribute it.
27089         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27090         trailing slash behavior is broken.
27091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27092         * modules/unistd (Makefile.am): Substitute it.
27093         * lib/unistd.in.h (unlinkat): Declare replacement.
27094         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27095
27096         openat: fix fstatat bugs on Solaris 9
27097         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27098         stat.
27099         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27100
27101         test-unlinkat: enhance test, to expose Solaris 9 bug
27102         * tests/test-unlink.c (main): Factor guts...
27103         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27104         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27105         * tests/test-rmdir.c (main): Adjust caller.
27106         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27107         (unlinker): New helper function.
27108         (rmdirat): Enhance check.
27109         * modules/rmdir-tests (Depends-on): Add stdbool.
27110         * modules/unlink-tests (Depends-on): Likewise.
27111         (Files): Add test-unlink.h.
27112         * modules/openat-tests (Files): Likewise.
27113         (Depends-on): Add unlinkdir.
27114
27115         test-fstatat: new test, to expose Solaris 9 bugs
27116         * tests/test-stat.c (main): Factor guts...
27117         * tests/test-stat.h (test_stat_func): ...into new file.
27118         * tests/test-lstat.c (main): Factor guts...
27119         * tests/test-lstat.h (test_lstat_func): ...into new file.
27120         * tests/test-fstatat.c: New file.
27121         * modules/stat-tests (Files): Add test-stat.h.
27122         * modules/lstat-tests (Files): Add test-lstat.h.
27123         (Depends-on): Add stdbool.
27124         * modules/openat-tests (Depends-on): Add pathmax.
27125         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27126         (Makefile.am): Run new test.
27127
27128         remove: new module, for mingw and Solaris 9 bugs
27129         * modules/remove: New file.
27130         * lib/remove.c: Likewise.
27131         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27133         * modules/stdio (Makefile.am): Use them.
27134         * lib/stdio.in.h (remove): Declare replacement.
27135         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27136         * doc/posix-functions/remove.texi (remove): Likewise.
27137         * modules/remove-tests: New test.
27138         * tests/test-remove.c: Likewise.
27139
27140         unlink: new module, for Solaris 9 bug
27141         * modules/unlink: New file.
27142         * lib/unlink.c: Likewise.
27143         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27145         * modules/unistd (Makefile.am): Use them.
27146         * lib/unistd.in.h (stat): Declare replacement.
27147         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27148         * doc/posix-functions/unlink.texi (unlink): Likewise.
27149         * modules/unlink-tests: New test.
27150         * tests/test-unlink.c: Likewise.
27151
27152         lstat: fix Solaris 9 bug
27153         * lib/lstat.c (lstat): Also check for trailing slash on
27154         non-symlink, non-directories.  Use stat module to simplify logic.
27155         * doc/posix-functions/lstat.texi (lstat): Document it.
27156         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27157         (configure.ac): Check for symlink.
27158         * tests/test-lstat.c (main): Add more tests.
27159
27160         stat: add as dependency to other modules
27161         * modules/chown (Depends-on): Add stat.
27162         * modules/euidaccess (Depends-on): Likewise.
27163         * modules/fchdir (Depends-on): Likewise.
27164         * modules/isdir (Depends-on): Likewise.
27165         * modules/link (Depends-on): Likewise.
27166         * modules/lstat (Depends-on): Likewise.
27167         * modules/mkdir-p (Depends-on): Likewise.
27168         * modules/modechange (Depends-on): Likewise.
27169         * modules/open (Depends-on): Likewise.
27170         * modules/readlink (Depends-on): Likewise.
27171         * modules/same (Depends-on): Likewise.
27172
27173         stat: fix Solaris 9 bug
27174         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27175         slash.
27176         * lib/stat.c (rpl_stat): Work around it.
27177         * doc/posix-functions/stat.texi (stat): Update documentation.
27178
27179         stat: new module, for mingw bug
27180         * modules/stat: New file.
27181         * lib/stat.c: Likewise.
27182         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27184         * modules/sys_stat (Makefile.am): Use them.
27185         * lib/sys_stat.in.h (stat): Declare replacement.
27186         * lib/openat.c (fstatat): Deal with lstat and stat being function
27187         macros.
27188         * modules/openat (Depends-on): Add inline.
27189         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27190         * doc/posix-functions/stat.texi (stat): Likewise.
27191         * modules/stat-tests: New test.
27192         * tests/test-stat.c: Likewise.
27193
27194 2009-09-19  Jim Meyering  <meyering@redhat.com>
27195
27196         syntax-check: detect unnecessary inclusion of canonicalize.h
27197         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27198
27199 2009-09-19  Eric Blake  <ebb9@byu.net>
27200
27201         canonicalize-lgpl: adjust clients to use correct header
27202         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27203         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27204         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27205         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27206         * lib/progreloc.c (includes): Likewise.
27207
27208 2009-09-19  Jim Meyering  <meyering@redhat.com>
27209
27210         test-posixtm.c: correct a comment
27211         * tests/test-posixtm.c: Correct first-line comment.
27212         Spotted by Eric Blake.
27213
27214 2009-09-16  Jim Meyering  <meyering@redhat.com>
27215
27216         posixtm-tests: make T const-correct; add a test case
27217         * tests/test-posixtm.c (T): Declare const.
27218         Add a test for -(2^31+1).
27219         Remove useless can-succeed-only-in-2002 test.
27220
27221         posixtm-tests: adjust the sole failing test
27222         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27223         expected output matches what mktime now produces.  Cross-checked via
27224         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27225
27226         posixtm: move #ifdef'd tests into a new module
27227         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27228         * tests/test-posixtm.c: ... this new file.
27229         * modules/posixtm-tests: New module.
27230
27231 2009-09-19  Eric Blake  <ebb9@byu.net>
27232
27233         openat: simplify use of at-func.c
27234         * lib/at-func.c (includes): Include prerequisites here, to
27235         simplify requirements on client files.
27236         * lib/openat-priv.h: Add double-inclusion guard.
27237         * lib/faccessat.c (includes): Simplify.
27238         * lib/fchmodat.c (includes): Likewise.
27239         * lib/fchownat.c (includes): Likewise.
27240         * lib/mkdirat.c (includes): Likewise.
27241         * lib/mkfifoat.c (includes): Likewise.
27242         * lib/symlinkat.c (includes): Likewise.
27243
27244         openat: allow return of fd 0
27245         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27246         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27247         unistd-safer.
27248         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27249         <fcntl.h>; this module does not leak fds.
27250         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27251         must be allowed to return 0, leaving openat_safer to add the
27252         safety.
27253         (openat_permissive): Avoid writing to just-opened fd 2 if
27254         restoring the current directory fails.
27255         * lib/openat-die.c (openat_restore_fail): Add comment.
27256         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27257         (save_cwd): Guarantee safe fd, but without use of open_safer.
27258         * tests/test-openat.c: New test.
27259         * modules/openat-tests (Files, Makefile.am): Distribute and build
27260         new file.
27261
27262         relocatable-prog-wrapper: fix build
27263         * modules/relocatable-prog-wrapper (Files): Update name of
27264         canonicalize m4 file, broken on 2009-09-17.
27265         Reported by emad hajjar <aleppos@hotmail.com>.
27266
27267 2009-09-19  Bruno Haible  <bruno@clisp.org>
27268
27269         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27270         * lib/safe-alloc.c: Likewise.
27271         Reported by Ian Beckwith <ianb@erislabs.net>.
27272
27273 2009-09-18  Bruno Haible  <bruno@clisp.org>
27274
27275         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27276         Reported by <erobles@sensacd.com.mx>.
27277
27278 2009-09-17  Eric Blake  <ebb9@byu.net>
27279
27280         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27281         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27282         slashes when checking if last component is missing.
27283         * tests/test-canonicalize.c (main): Test this.
27284
27285         canonicalize, canonicalize-lgpl: honor // if distinct from /
27286         * modules/canonicalize (Files): Add double-slash-root.m4.
27287         * modules/canonicalize-lgpl (Files): Likewise.
27288         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27289         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27290         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27291         fallback definition.
27292         (canonicalize_filename_mode): Use it to protect //.
27293         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27294         (__realpath): Likewise.
27295         * tests/test-canonicalize.c (main): Test this.
27296         * tests/test-canonicalize-lgpl.c (main): Likewise.
27297         * modules/canonicalize-tests (Depends-on): Add same-inode.
27298         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27299
27300         canonicalize-lgpl: fix glibc bug with trailing slash
27301         * m4/canonicalize-lgpl.m4: Move contents...
27302         * m4/canonicalize.m4: ...here.
27303         (gl_CANONICALIZE_LGPL): Factor realpath check...
27304         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27305         glibc 2.3.5 bug, fixed 2005-04-27.
27306         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27307         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27308         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27309         * modules/canonicalize-lgpl (Files): Manage file rename.
27310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27311         * modules/stdlib (Makefile.am): Substitute witness.
27312         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27313         is needed.
27314         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27315         replacement is required.
27316         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27317         * doc/glibc-functions/canonicalize_file_name.texi
27318         (canonicalize_file_name): Document this.
27319         * doc/posix-functions/realpath.texi (realpath): Likewise.
27320
27321         canonicalize-lgpl: reject non-directory with trailing slash
27322         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27323         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27324         catches failures in glibc 2.3.5.
27325         * tests/test-canonicalize.c (main): Likewise.
27326
27327         canonicalize-lgpl: use native realpath if it works
27328         * lib/canonicalize-lgpl.c (realpath): Guard with
27329         FUNC_REALPATH_WORKS.
27330         * lib/stdlib.in.h (realpath): Make declaration optional based on
27331         HAVE_REALPATH.
27332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27333         native realpath works.
27334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27335         * modules/stdlib (Makefile.am): Substitute witness.
27336
27337         canonicalize, canonicalize-lgpl: use <stdlib.h>
27338         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27339         (Include): Mention <stdlib.h>.
27340         (configure.ac): Mention functions we provide.
27341         * modules/canonicalize (configure.ac): Likewise.
27342         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27343         realpath if canonicalize_file_name is missing.
27344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27345         * modules/stdlib (Makefile.am): Substitute witnesses.
27346         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27347         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27348         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27349         * NEWS: Document this.
27350         * doc/glibc-functions/canonicalize_file_name.texi
27351         (canonicalize_file_name): Likewise.
27352         * doc/posix-functions/realpath.texi (realpath): Likewise.
27353         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27354
27355         test-canonicalize: consolidate into single C program
27356         * tests/test-canonicalize.sh: Delete; move setup into...
27357         * tests/test-canonicalize.c (main): ...the program, making it
27358         easier to run in debugger.  Add some tests.
27359         * modules/canonicalize-tests (Files): Remove unused file.
27360         (Depends-on): Add progname.
27361         (configure.ac, Makefile.am): Simplify.
27362
27363         test-canonicalize-lgpl: consolidate into single C program
27364         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27365         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27366         easier to run in debugger.  Add some tests.
27367         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27368         (configure.ac, Makefile.am): Simplify.
27369
27370         canonicalize: avoid resolvepath
27371         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27372         unnecessary checks.
27373         * lib/canonicalize.c (includes): Simplify.
27374         (canonicalize_file_name): Drop resolvepath implementation.
27375         * modules/canonicalize (Depends-on): Drop filenamecat.
27376
27377         canonicalize: don't lose errno
27378         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27379         over calls to free.
27380
27381         canonicalize: simplify errno handling
27382         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27383         assignment.
27384
27385         canonicalize, canonicalize-lgpl: update module dependencies
27386         * modules/canonicalize (Depends-on): Add extensions, lstat,
27387         pathmax, stdlib.
27388         (Files): Drop pathmax.h.
27389         (configure.ac): Adjust macro name.
27390         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27391         lstat, stdlib, sys_stat.
27392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27393         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27394         extensions.
27395         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27396         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27397         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27398         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27399         declaration, if available.
27400         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27401         we can rely on the readlink module.
27402         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27403         (includes): Use <unistd.h> unconditionally.
27404
27405 2009-09-17  Eric Blake  <ebb9@byu.net>
27406
27407         maint: make Include sections of modules consistent
27408         * modules/alloca: Use only header name; no need to list #include.
27409         * modules/alloca-opt: Likewise.
27410         * modules/arpa_inet: Likewise.
27411         * modules/canon-host: Likewise.
27412         * modules/configmake: Likewise.
27413         * modules/dirent: Likewise.
27414         * modules/eealloc: Likewise.
27415         * modules/environ: Likewise.
27416         * modules/fchdir: Likewise.
27417         * modules/fcntl: Likewise.
27418         * modules/fcntl-h: Likewise.
27419         * modules/gethrxtime: Likewise.
27420         * modules/gettime: Likewise.
27421         * modules/ignore-value: Likewise.
27422         * modules/inet_ntop: Likewise.
27423         * modules/inet_pton: Likewise.
27424         * modules/inttypes: Likewise.
27425         * modules/isnand-nolibm: Likewise.
27426         * modules/isnanf-nolibm: Likewise.
27427         * modules/mbchar: Likewise.
27428         * modules/mbfile: Likewise.
27429         * modules/mbiter: Likewise.
27430         * modules/mbuiter: Likewise.
27431         * modules/netdb: Likewise.
27432         * modules/netinet_in: Likewise.
27433         * modules/nproc: Likewise.
27434         * modules/pagealign_alloc: Likewise.
27435         * modules/poll: Likewise.
27436         * modules/printf-frexp: Likewise.
27437         * modules/pthread: Likewise.
27438         * modules/putenv: Likewise.
27439         * modules/random_r: Likewise.
27440         * modules/relocatable-prog: Likewise.
27441         * modules/search: Likewise.
27442         * modules/select: Likewise.
27443         * modules/selinux-h: Likewise.
27444         * modules/settime: Likewise.
27445         * modules/signal: Likewise.
27446         * modules/size_max: Likewise.
27447         * modules/socklen: Likewise.
27448         * modules/ssize_t: Likewise.
27449         * modules/stdarg: Likewise.
27450         * modules/stdbool: Likewise.
27451         * modules/stddef: Likewise.
27452         * modules/stdint: Likewise.
27453         * modules/stdio: Likewise.
27454         * modules/stdlib: Likewise.
27455         * modules/string: Likewise.
27456         * modules/strings: Likewise.
27457         * modules/sys_file: Likewise.
27458         * modules/sys_ioctl: Likewise.
27459         * modules/sys_select: Likewise.
27460         * modules/sys_socket: Likewise.
27461         * modules/sys_stat: Likewise.
27462         * modules/sys_time: Likewise.
27463         * modules/sys_times: Likewise.
27464         * modules/sys_utsname: Likewise.
27465         * modules/sys_wait: Likewise.
27466         * modules/sysexits: Likewise.
27467         * modules/time: Likewise.
27468         * modules/times: Likewise.
27469         * modules/tmpfile: Likewise.
27470         * modules/trim: Likewise.
27471         * modules/unistd: Likewise.
27472         * modules/wchar: Likewise.
27473         * modules/wctype: Likewise.
27474
27475 2009-09-17  Bruno Haible  <bruno@clisp.org>
27476
27477         Make getdate.y compile on QNX and NetBSD 5 / i386.
27478         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27479         TIME_T_FITS_IN_LONG_INT.
27480         * lib/getdate.y (long_time_t): New type.
27481         (relative_time): Change type of 'seconds' field to long_time_t.
27482         (get_date): Update types of local variables. Check against overflow
27483         during conversion from long_time_t to time_t.
27484         Reported by Matt Kraai <kraai@ftbfs.org>
27485         and Hasso Tepper <hasso@netbsd.org>.
27486
27487 2009-09-17  Bruno Haible  <bruno@clisp.org>
27488
27489         * modules/COPYING: Update copyright years.
27490         * modules/README: Likeiwse.
27491         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27492         Reported by Ian Beckwith <ianb@erislabs.net>.
27493
27494 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27495
27496         * users.txt: Update references for gnuit package.
27497
27498 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27499
27500         * m4/getdelim.m4: Fix typo in copyright line.
27501
27502 2009-09-17  Bruno Haible  <bruno@clisp.org>
27503
27504         * lib/atoll.c: Use the standard header with GPL copyright.
27505         * lib/argz.in.h: Likewise.
27506         * lib/glob.c: Likewise.
27507         * lib/glob-libc.h: Likewise.
27508         * lib/random_r.c: Likewise.
27509         * lib/siglist.h: Likewise.
27510         * lib/strsignal.c: Likewise.
27511         Reported by Ian Beckwith <ianb@erislabs.net>.
27512
27513 2009-09-17  Eric Blake  <ebb9@byu.net>
27514
27515         rmdir: ensure correct dependency order
27516         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27517
27518 2009-09-17  Bruno Haible  <bruno@clisp.org>
27519
27520         Disable assertion that fails on NetBSD 5 / i386.
27521         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27522         Reported by Sam Steingold <sds@gnu.org>
27523         and Hasso Tepper <hasso@netbsd.org>.
27524
27525 2009-09-16  Eric Blake  <ebb9@byu.net>
27526
27527         unlinkdir: port to mingw
27528         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27529         on which no one can unlink a directory.
27530
27531         stdlib: sort witness names
27532         * modules/stdlib (Makefile.am): Sort replacements.
27533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27534         * lib/stdlib.in.h: Likewise.
27535
27536         parse-duration-tests: avoid link failure
27537         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27538         LIBINTL.
27539         Reported by Tom G. Christensen.
27540
27541         openat-tests: ensure unlinkat behaves like rmdir
27542         * tests/test-rmdir.c (main): Factor guts...
27543         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27544         * modules/rmdir-tests (Files): Ship new file.
27545         * modules/openat-tests: New test.
27546         * tests/test-unlinkat.c: Likewise.
27547
27548         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27549         * modules/rmdir-errno (Status, Notice): Now obsolete.
27550
27551         rmdir: work around cygwin 1.5.x and mingw bugs
27552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27553         * lib/rmdir.c (rmdir): Work around it.
27554         * modules/rmdir (Status, Notice): No longer obsolete.
27555         (Files): Add dos.m4.
27556         (Depends-on): Add unistd.
27557         (configure.ac): Set witnesses.
27558         (License): Relax to LGPLv2+.
27559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27560         * modules/unistd (Makefile.am): Substitute witnesses.
27561         * lib/unistd.in.h (rmdir): Declare replacement.
27562         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27563         * modules/rmdir-tests: New tests.
27564         * tests/test-rmdir.c: Likewise.
27565
27566 2009-09-15  Eric Blake  <ebb9@byu.net>
27567
27568         fchdir: improve use of replacement functions
27569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27571         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27572         REPLACE_CLOSEDIR.
27573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27574         * modules/sys_stat (Makefile.am): Substitute correct witness.
27575         * modules/dirent (Makefile.am): Likewise.
27576         * modules/unistd (Makefile.am): Likewise.
27577         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27578         * lib/unistd.in.h (dup): Likewise.
27579         * lib/sys_stat.in.h (fstat): Likewise.
27580
27581         maint: ignore gnulib-tool temp files
27582         * .gitignore: Ignore files created during gnulib-tool --test.
27583
27584 2009-09-13  Jim Meyering  <meyering@redhat.com>
27585
27586         posixtm: don't reject a time that specify "60" as the number of seconds
27587         * lib/posixtm.c (posixtime): The code to reject invalid dates
27588         would also reject a time specified with the .60 suffix.
27589         But POSIX allows that, in order to accommodate leap seconds.
27590         So don't reject it.
27591         (main): Adjust tests accordingly.
27592         * modules/posixtm (Depends-on): Add stpcpy.
27593
27594 2009-09-11  Jim Meyering  <meyering@redhat.com>
27595
27596         announce-gen: include [$release_type] in emitted Subject:
27597         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27598         e.g., [stable] in the emitted Subject: line.
27599
27600 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27601
27602         Remove obsolete macros from several modules.
27603         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27604         obsolete Autoconf macros with their modern counterparts.
27605         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27606         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27608         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27609         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27612         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27613         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27614         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27615         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27617         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27618         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27619         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27621         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27622         * m4/time_r.m4 (gl_TIME_R): Likewise.
27623         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27624         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27625         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27626
27627         Fix copyright header in build-aux scripts.
27628         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27629         recommendation.
27630         * build-aux/ncftpput-ftp: Likewise.
27631         * build-aux/update-copyright: Likewise.
27632
27633 2009-09-09  Eric Blake  <ebb9@byu.net>
27634
27635         test-link: allow Linux choice of errno
27636         * tests/test-link.c (main): Relax test for alternate error.
27637
27638         strndup: fix improper m4 caching
27639         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27640         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27641         (gl_PREREQ_STRNDUP): Delete.
27642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27643         * modules/string (Makefile.am): Substitute it.
27644         * lib/string.in.h (strndup): Modernize prototype.
27645
27646         getcwd: port to mingw
27647         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27648         different from the POSIX assumptions made throughout the getcwd
27649         module; fortunately, the mingw getcwd does not need replacement.
27650         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27651         * modules/getcwd-tests: New test.
27652         * tests/test-getcwd.c: Likewise.
27653
27654         link: fix platform bugs
27655         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27656         * lib/link.c (link): Work around them.  Fix related mingw bug.
27657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27658         * modules/unistd (Makefile.am): Substitute it.
27659         * lib/unistd.in.h (link): Declare replacement.
27660         * doc/posix-functions/link.texi (link): Document this.
27661         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27662
27663         test-link: consolidate into single C program, test more cases
27664         * tests/test-link.sh: Delete.
27665         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27666         at least Cygwin and Solaris.
27667         * modules/link-tests (Files): Remove unused file.
27668         (Depends-on): Add errno, sys_stat.
27669         (Makefile.am): Simplify.
27670
27671 2009-09-08  Bruno Haible  <bruno@clisp.org>
27672
27673         Work around towlower, towupper bug on mingw.
27674         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27675         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27676         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27677         * doc/posix-functions/towupper.texi: Likewise.
27678         Reported by Eric Blake.
27679
27680 2009-09-08  Jim Meyering  <meyering@redhat.com>
27681
27682         build: don't try to run autoheader if we don't use it
27683         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27684         is not used in configure.ac.
27685
27686 2009-09-08  Eric Blake  <ebb9@byu.net>
27687
27688         euidaccess: fix compilation error
27689         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27690
27691         rawmemchr: relax license
27692         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27693         okay.
27694         Reported by Jim Meyering.
27695
27696         mkfifoat: new module
27697         * modules/mkfifoat: New file.
27698         * lib/mkfifoat.c: Likewise.
27699         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27701         * modules/sys_stat (Makefile.am): Use them.
27702         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27703         * MODULES.html.sh (File system functions): Mention module.
27704         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27705         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27706         * modules/mkfifoat-tests: New test.
27707         * tests/test-mkfifoat.c: Likewise.
27708
27709         strchrnul: relax license
27710         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27711         okay.
27712         Reported by Jim Meyering.
27713
27714 2009-09-08  Eric Blake  <ebb9@byu.net>
27715
27716         fstatat: fix compilation on Solaris
27717         * lib/fstatat.c (includes): Add fcntl.h.
27718         Reported by Pádraig Brady.
27719
27720 2009-09-07  Eric Blake  <ebb9@byu.net>
27721
27722         rename: modernize replacement
27723         * modules/rename (Depends-on): Add stdio.
27724         (configure.ac): Declare witness.
27725         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27726         stdio take care of replacement.
27727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27728         * modules/stdio (Makefile.am): Substitute them.
27729         * lib/stdio.in.h (rename): Declare replacement.
27730         * lib/rename.c (includes): Allow cross-compilation to non-windows
27731         machines.
27732         * doc/posix-functions/rename.texi (rename): Improve
27733         documentation.
27734
27735         stdio: sort witness names
27736         * modules/stdio (Makefile.am): Sort replacements.
27737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27738         * lib/stdio.in.h: Likewise.
27739
27740         getcwd: minor cleanups
27741         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27742         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27743
27744         openat: provide more convenience names
27745         * modules/faccessat (configure.ac): Add C witness.
27746         * lib/unistd.in.h (readlinkat): Fix typo.
27747         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27748         convenience wrappers.
27749         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27750         wrappers in syntax checks.
27751
27752 2009-09-06  Eric Blake  <ebb9@byu.net>
27753
27754         doc: fix comments in recent patches
27755         * lib/faccessat.c: Mention correct function.
27756         * lib/fchmodat.c: Likewise.
27757         * lib/fchownat.c: Likewise.
27758         * lib/symlinkat.c: Likewise.
27759         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27760         constants.
27761
27762         faccessat, symlinkat: continue cleanup of previous patch
27763         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27764         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27765         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27767         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27768         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27769         set.
27770
27771 2009-09-06  Bruno Haible  <bruno@clisp.org>
27772
27773         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27774         (fstatat): Declare if GNULIB_FSTATAT is set.
27775         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27776         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27777         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27778         * modules/fcntl-h (Files): Remove m4/openat.m4.
27779         * modules/sys_stat (Files): Remove m4/openat.m4.
27780         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27781         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27782         * modules/unistd (Files): Remove m4/openat.m4.
27783         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27784         GNULIB_OPENAT.
27785         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27786         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27788         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27789         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27790         gl_OPENAT_DEFAULTS.
27791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27792         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27793         Don't require gl_OPENAT_DEFAULTS.
27794         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27795         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27796         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27797         (gl_OPENAT_DEFAULTS): Remove macro.
27798
27799 2009-09-06  Bruno Haible  <bruno@clisp.org>
27800
27801         * modules/openat (configure.ac): Remove unneeded witness.
27802
27803 2009-09-06  Bruno Haible  <bruno@clisp.org>
27804
27805         Set errno to ENOSYS when a function is entirely unsupported.
27806         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27807         EOPNOTSUPP.
27808         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27809         * modules/chown (Depends-on): Remove errno.
27810
27811 2009-09-06  Bruno Haible  <bruno@clisp.org>
27812
27813         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27814
27815 2009-09-06  Bruno Haible  <bruno@clisp.org>
27816
27817         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27818
27819 2009-09-06  Ben Pfaff  <blp@gnu.org>
27820             Bruno Haible  <bruno@clisp.org>
27821
27822         Work around a glibc bug in strtok_r.
27823         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27824         Undefine if UNDEFINE_STRTOK_R is set.
27825         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27827         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27828         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27829         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27830         UNDEFINE_STRTOK_R.
27831         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27832
27833 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27834
27835         exclude: minor fix
27836         * lib/exclude.c: Include wctype.h
27837
27838 2009-09-06  Akim Demaille  <demaille@gostai.com>
27839
27840         bootstrap: improve error message
27841         * build-aux/bootstrap (find_tool): Upon failure, report the list
27842         of candidates.
27843         Honor the initial value of the envvar.
27844
27845 2009-09-05  Eric Blake  <ebb9@byu.net>
27846
27847         symlinkat: new module
27848         * modules/symlinkat: New file.
27849         * lib/symlinkat.c: Likewise.
27850         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27852         * modules/unistd (Makefile.am): Use them.
27853         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27854         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27855         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27856         * MODULES.html.sh (File system functions): Mention module.
27857         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27859         * modules/symlinkat-tests: New test.
27860         * tests/test-symlinkat.c: Likewise.
27861
27862         test-openat-safer: add more checks
27863         * tests/test-openat-safer.c (main): Check more code paths.
27864
27865 2009-09-05  Jim Meyering  <meyering@redhat.com>
27866
27867         syntax-check: detect unnecessary inclusion of openat.h
27868         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27869
27870 2009-09-05  Bruno Haible  <bruno@clisp.org>
27871
27872         Support towlower, towupper.
27873         * doc/posix-functions/towlower.texi: Mention module wctype.
27874         * doc/posix-functions/towupper.texi: Likewise.
27875         * lib/wctype.in.h (towlower, towupper): New functions.
27876         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27877         (ASSERT): New macro.
27878         (e): New variable.
27879         (main): Test also towlower, towupper. Test WEOF argument.
27880         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27881
27882 2009-09-05  Bruno Haible  <bruno@clisp.org>
27883
27884         Fix conversion behaviour when the input is invalid.
27885         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27886         mark occurring in first pass of indirect conversion.
27887         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27888         input.
27889         Found by clang's static analyzer.
27890
27891 2009-09-05  Bruno Haible  <bruno@clisp.org>
27892
27893         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27894         where direct conversion is possible.
27895
27896 2009-09-04  Eric Blake  <ebb9@byu.net>
27897
27898         openat: fail with ENOENT on empty name
27899         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27900         buffer.
27901
27902         link-follow: fix logic bug in prior patch
27903         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27904         reversed sense of yes and no in prior patch.  Avoid confusing
27905         compilation failure with desired semantics.
27906
27907         link-follow: accomodate mingw and cross-compilation
27908         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27909         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27910         cross-compilation results to -1, to make linkat easier to
27911         implement when cross-compiling.  Trivially support mingw.
27912         * modules/link-follow (configure.ac): Call new name.
27913         * NEWS: Mention this.
27914
27915 2009-09-03  Eric Blake  <ebb9@byu.net>
27916
27917         faccessat: compile replacement
27918         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27919         needed.
27920
27921         fts: fix compilation error
27922         * lib/fts.c (includes): Re-add "openat.h", for
27923         openat_needs_fchdir.
27924
27925         faccessat: new module
27926         * modules/faccessat: New file.
27927         * lib/faccessat.c: Likewise.
27928         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27930         * modules/unistd (Makefile.am): Use it.
27931         * lib/unistd.in.h (faccessat): Declare it.
27932         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27933         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27934         * MODULES.html.sh (File system functions): Mention it.
27935         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27936         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27937
27938         euidaccess: prefer POSIX over non-standard implementation
27939         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27940         * lib/euidaccess.c (euidaccess): Use it if available.
27941
27942         openat: make template easier to use
27943         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27944         AT_FUNC_F2 to be undefined.
27945         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27946         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27947         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27948         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27949         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27950         Likewise.
27951         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27952         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27953         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27954         Likewise.
27955
27956         openat: declare in POSIX headers
27957         * NEWS: Mention this.
27958         * modules/openat (configure.ac): Declare witnesses.
27959         (Depends-on): Add fcntl-h, sys_stat, unistd.
27960         (Include): Mention correct headers.
27961         * modules/fcntl-h (Depends-on): Add link-warning.
27962         (Files): Add openat.m4.
27963         (Makefile.am): Substitute witnesses.
27964         * modules/sys_stat (Files, Makefile.am): Likewise.
27965         * modules/unistd (Files, Makefile.am): Likewise.
27966         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27967         (gl_OPENAT_DEFAULTS): New macro.
27968         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27971         (SYS_STAT_H): Remove unused variable.
27972         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27973         * lib/fcntl--.h (includes): Remove unneeded header.
27974         * lib/openat-safer.c (includes): Likewise.
27975         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27976         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27977         appropriate headers.
27978         (__OPENAT_PREFIX): Delete.
27979         * lib/fcntl.in.h (openat): Provide declaration.
27980         (AT_FDCWD): Fix Solaris bug.
27981         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27982         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27983         * lib/fchmodat.c (includes):  Adjust to find declaration.
27984         * lib/fchownat.c (includes): Likewise.
27985         * lib/mkdirat.c (includes): Likewise.
27986         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27987         still visible.
27988
27989 2009-09-02  Eric Blake  <ebb9@byu.net>
27990
27991         errno: use consistently
27992         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27993         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27994         * lib/canonicalize.c (ELOOP): Likewise.
27995         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27996         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27997         * lib/lchown.c (EOPNOTSUPP): Likewise.
27998         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27999         * lib/savewd.c (ESTALE): Likewise.
28000         * lib/settime.c (ENOSYS): Likewise.
28001         * lib/utimens.c (ENOSYS): Likewise.
28002         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28003         * lib/chdir-safer.c (ELOOP): Likewise.
28004         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28005         * modules/c-stack (Depends-on): Add errno.
28006         * modules/canonicalize (Depends-on): Likewise.
28007         * modules/chdir-safer (Depends-on): Likewise.
28008         * modules/fdopendir (Depends-on): Likewise.
28009         * modules/inet_ntop (Depends-on): Likewise.
28010         * modules/inet_pton (Depends-on): Likewise.
28011         * modules/lchown (Depends-on): Likewise.
28012         * modules/openat (Depends-on): Likewise.
28013         * modules/savewd (Depends-on): Likewise.
28014         * modules/settime (Depends-on): Likewise.
28015         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28016
28017         fts: avoid leaking fds
28018         * modules/fts (Depends-on): Add cloexec.
28019         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28020         flag.
28021
28022         fts: make directory fds more robust
28023         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28024         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28025
28026         backupfile, chdir-long, fts, savedir: make safer
28027         * lib/backupfile.c (includes): Use "dirent--.h", since
28028         numbered_backup can write to stderr during readdir.
28029         * lib/savedir.c (includes): Likewise.
28030         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28031         emulation can write to stderr on failure.
28032         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28033         * lib/getcwd.c: Document why opendir_safer is unused.
28034         * lib/glob.c: Likewise.
28035         * lib/scandir.c: Likewise.
28036         * lib/openat-proc.c: Likewise, for open_safer.
28037         * modules/backupfile (Depends-on): Add dirent-safer.
28038         * modules/savedir (Depends-on): Likewise.
28039         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28040         * modules/chdir-long (Depends-on): Add openat-safer.
28041
28042         openat-safer: new module
28043         * modules/openat-safer: New file.
28044         * lib/openat-safer.c: Likewise.
28045         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28046         * lib/fcntl-safer.h (openat_safer): Declare.
28047         * lib/fcntl--.h (openat): Override.
28048         * MODULES.html.sh (File descriptor based I/O): Mention it.
28049         * lib/openat.h: Add double-inclusion guards.
28050         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28051         "fcntl--.h", so we can implement openat.
28052         * modules/openat-safer-tests: New test.
28053         * tests/test-openat-safer.c: New file.
28054
28055         dirent-safer: new module
28056         * modules/dirent-safer: New file.
28057         * lib/dirent--.h: Likewise.
28058         * lib/dirent-safer.h: Likewise.
28059         * lib/opendir-safer.c: Likewise.
28060         * m4/dirent-safer.m4: Likewise.
28061         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28062         * modules/dirent-safer-tests: New test.
28063         * tests/test-dirent-safer.c: New file.
28064         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28065
28066         fdopendir: optimize on mingw
28067         * lib/unistd.in.h (_gl_directory_name): New prototype.
28068         * lib/fchdir.c (_gl_directory_name): Implement it.
28069         (fchdir): Use it to simplify implementation.
28070         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28071         fchdir, when available, to avoid calling [f]chdir().
28072
28073         fdopendir: split into its own module
28074         * lib/openat.c (fdopendir): Move...
28075         * lib/fdopendir.c: ...into new file.
28076         * modules/fdopendir: New module.
28077         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28078         * modules/openat (Depends-on): Add fdopendir.
28079         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28080         fdopendir here.
28081         * modules/savedir (Depends-on): Only need fdopendir, not full
28082         openat.
28083         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28084         * lib/openat.h (fdopendir): Drop prototype.
28085         * lib/dirent.in.h (fdopendir): Provide prototype.
28086         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28087         * modules/dirent (Makefile.am): Substitute them.
28088         * MODULES.html.sh (File system functions): Mention it.
28089         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28090         * modules/fdopendir-tests: New file.
28091         * tests/test-fdopendir.c: Likewise.
28092
28093         fchdir: use more consistent macro convention
28094         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28095         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28096         REPLACE_FCHDIR, rather than relying on config.h macros.
28097         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28098         inside a single make-time REPLACE_FCHDIR block, rather than using
28099         the config.h FCHDIR_REPLACEMENT.
28100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28101         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28102         Manage fstat replacement.
28103         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28104         REPLACE_FCHDIR.
28105         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28106         (Makefile.am): Substitute REPLACE_FCHDIR.
28107         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28108         FCHDIR_REPLACEMENT.
28109         * lib/dup-safer.c (dup_safer): Likewise.
28110         * lib/dup2.c (rpl_dup2): Likewise.
28111         * lib/dup3.c (rpl_dup3): Likewise.
28112         * lib/open.c (rpl_open): Likewise.
28113
28114         fchdir: simplify error handling, and support dup3
28115         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28116         stdbool, malloc-posix, realloc-posix.
28117         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28118         (ensure_dirs_slot): Return false on allocation failure.
28119         (rpl_dup2): Delete.
28120         (_gl_register_dup): New function.
28121         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28122         (_gl_register_fd): Close fd on allocation failure.
28123         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28124         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28125         prototype.
28126         (rpl_dup2_fchdir): Delete prototype.
28127         * lib/open.c (open): Update caller.
28128         * lib/dup2.c (dup2): Track fchdir metadata.
28129         * lib/dup3.c (dup3): Likewise.
28130         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28132
28133 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28134
28135         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28136         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28137         don't pass arguments to AC_OUTPUT.
28138
28139 2009-09-02  Bruno Haible  <bruno@clisp.org>
28140
28141         * modules/mkdtemp (License): Relicense under LGPLv2+.
28142         Reported by Paolo Bonzini.
28143
28144 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28145
28146         Replace uses of obsolete autoconf macros in Jim's modules.
28147         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28148         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28149         can evoke a warning from autoconf when run with -Wobsolete
28150         enabled.  They were declared obsolete for good reasons (see
28151         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28152         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28153         should not continue using the deprecated macros.
28154         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28155         obsolete Autoconf macros with modern counterparts.
28156         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28157         * m4/dos.m4 (gl_AC_DOS): Likewise.
28158         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28160         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28161         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28162         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28165         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28166         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28167         Likewise.
28168         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28169         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28170         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28171         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28172         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28173         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28174
28175 2009-09-01  Eric Blake  <ebb9@byu.net>
28176
28177         fchdir: fix off-by-one bug in previous patch
28178         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28179         (_gl_unregister_fd): Delete useless if.
28180
28181 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28182
28183         maint.mk: sort the list of syntax-check rules
28184         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28185         easier to get a sense of progress when the rules are run sequentially
28186         and take a long time.
28187
28188 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28189
28190         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28191         * modules/netinet_in: Likewise.
28192         * modules/sys_file: Likewise.
28193         * modules/sys_ioctl: Likewise.
28194         * modules/sys_select: Likewise.
28195         * modules/sys_socket: Likewise.
28196         * modules/sys_stat: Likewise.
28197         * modules/sys_time: Likewise.
28198         * modules/sys_times: Likewise.
28199         * modules/sys_utsname: Likewise.
28200         * modules/sys_wait: Likewise.
28201
28202 2009-09-01  Jim Meyering  <meyering@redhat.com>
28203
28204         fts: help ensure that return values are not ignored
28205         * lib/fts_.h (__GNUC_PREREQ): Define.
28206         (__attribute_warn_unused_result__): Define.
28207         (fts_children, fts_close, fts_open, fts_read): Declare with
28208         __attribute_warn_unused_result__.
28209
28210         fts: fts_close now fails also when closing a dir file descriptor fails
28211         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28212         and propagate to caller, along with errno.
28213
28214         announce-gen: correct formatting in --help output
28215         * build-aux/announce-gen (usage): Move the one-line description in
28216         --help output "up", to where it belongs, just after Usage:.
28217
28218 2009-08-31  Eric Blake  <ebb9@byu.net>
28219
28220         fchdir: port to mingw
28221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28222         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28223         opened, then use a substitute.
28224         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28225         replacement.
28226         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28227         (_gl_register_fd): No need to check stat if open already filters
28228         all directories.
28229         (fchdir): Fix error condition to match POSIX.
28230         * modules/fchdir (Depends-on): Add sys_stat.
28231         * doc/posix-functions/open.texi (open): Document the limitation.
28232         * modules/fchdir-tests: New file.
28233         * tests/test-fchdir.c: Likewise.
28234
28235         canonicalize: allow cross-testing from cygwin to mingw
28236         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28237         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28238         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28239         Likewise.
28240         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28241         target does not support symlinks.
28242         * tests/test-canonicalize-lgpl.sh: Likewise.
28243
28244         chown: avoid compilation warning on mingw
28245         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28246         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28247         mingw.
28248         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28249         * modules/chown (Depends-on): Add errno.
28250
28251 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28252
28253         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28254         command.
28255
28256 2009-08-31  Jim Meyering  <meyering@redhat.com>
28257
28258         canonicalize: remove useless initialization
28259         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28260         initialization of local, "end".
28261
28262 2009-08-30  Bruno Haible  <bruno@clisp.org>
28263
28264         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28265         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28266         ENOSYS.
28267
28268 2009-08-30  Bruno Haible  <bruno@clisp.org>
28269
28270         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28271         /usr/xpg4/bin/tr when it exists.
28272         * tests/test-pipe-filter-gi1.sh: Likewise.
28273
28274 2009-08-30  Bruno Haible  <bruno@clisp.org>
28275
28276         Work around deficient /usr/bin/id program on Solaris.
28277         * tests/test-file-has-acl.sh (ID): New variable.
28278         * tests/test-set-mode-acl.sh (ID): Likewise.
28279         * tests/test-copy-acl.sh (ID): Likewise.
28280         * tests/test-copy-file.sh (ID): Likewise.
28281
28282 2009-08-30  Bruno Haible  <bruno@clisp.org>
28283
28284         New module 'xstriconveh'.
28285         * lib/xstriconveh.h: New file.
28286         * lib/xstriconveh.c: New file.
28287         * modules/xstriconveh: New file.
28288
28289 2009-08-30  Bruno Haible  <bruno@clisp.org>
28290
28291         Make it easier to use mem_cd_iconveh.
28292         * lib/striconveh.h (iconveh_t): New type.
28293         (iconveh_open, iconveh_close): New declarations.
28294         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28295         with a single 'const iconveh_t *' argument.
28296         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28297         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28298         with a single 'const iconveh_t *' argument.
28299         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28300         * tests/test-striconveh.c (main): Update.
28301         * NEWS: Mention the change.
28302
28303 2009-08-30  Bruno Haible  <bruno@clisp.org>
28304
28305         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28306         problem.
28307
28308 2009-08-30  Bruno Haible  <bruno@clisp.org>
28309
28310         Work around iconv_open problem on Solaris.
28311         * lib/iconv_open-solaris.gperf: New file.
28312         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28313         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28314         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28315         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28316         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28317         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28318
28319 2009-08-29  Jim Meyering  <meyering@redhat.com>
28320
28321         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28322         * top/maint.mk (cvs-check): Remove target; it was just an alias
28323         to the better-named vc-diff-check.
28324         (maintainer-distcheck): Remove rule.  It was used only from
28325         the (alpha/beta/major) target, and all of its commands but one
28326         were coreutils-specific.
28327         (vc-dist): Remove rule.
28328         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28329         Run vc-diff-check, not vc-dist.
28330         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28331
28332 2009-08-27  Bruno Haible  <bruno@clisp.org>
28333
28334         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28335         of 0.
28336
28337 2009-08-27  Bruno Haible  <bruno@clisp.org>
28338
28339         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28340         compilers.
28341         * doc/func.texi: Document the SunPRO C bug.
28342
28343 2009-08-27  Bruno Haible  <bruno@clisp.org>
28344
28345         Fix link error on Solaris.
28346         * tests/test-parse-duration.c (xstrdup): Remove function.
28347
28348 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28349
28350         ignore-value: handle pointer types, too
28351         * lib/ignore-value.h (__attribute__): Remove definition.
28352         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28353         of a more concise and more-often effective "(void) i" statement.
28354         (ignore_ptr): New function to suppress warnings from functions that
28355         return pointers, and to make it explicit that one function doesn't
28356         handle all cases.
28357
28358 2009-08-25  Bruno Haible  <bruno@clisp.org>
28359
28360         dup2: work around a Linux bug.
28361         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28362         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28363         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28364         Reported by Simon Josefsson.
28365
28366 2009-08-25  Jim Meyering  <meyering@redhat.com>
28367
28368         libguestfs uses gnulib
28369         * users.txt: Add libguestfs.
28370
28371 2009-08-24  Eric Blake  <ebb9@byu.net>
28372
28373         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28374         * lib/pipe2.c (includes): Add binary-io.h.
28375         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28376
28377 2009-08-24  Bruno Haible  <bruno@clisp.org>
28378
28379         Tolerate declared but missing accept4 syscall.
28380         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28381         available.
28382         * lib/sys_socket.in.h (accept4): If the function is already present,
28383         override it.
28384         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28385         * modules/accept4 (Makefile.am): Compile accept4.c always.
28386         Reported by Paolo Bonzini and Eric Blake.
28387
28388 2009-08-23  Bruno Haible  <bruno@clisp.org>
28389
28390         New module 'accept4'.
28391         * lib/sys_socket.in.h (accept4): New declaration.
28392         * lib/accept4.c: New file.
28393         * m4/accept4.m4: New file.
28394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28395         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28396         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28397         HAVE_ACCEPT4.
28398         * modules/accept4: New file.
28399         * doc/glibc-functions/accept4.texi: Mention the new module.
28400
28401 2009-08-24  Jim Meyering  <meyering@redhat.com>
28402
28403         progname: also set global program_invocation_name, when possible
28404         Before this change, a libtool-enabled program that calls glibc's
28405         error function would report the program name as
28406         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28407         * modules/progname (configure.ac): Check for a declaration of
28408         program_invocation_name.
28409         * lib/progname.c:  Include <errno.h>.
28410         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28411         Set program_invocation_name.
28412
28413 2009-08-23  Bruno Haible  <bruno@clisp.org>
28414
28415         * lib/dup3.c: Include <string.h>.
28416
28417 2009-08-23  Bruno Haible  <bruno@clisp.org>
28418
28419         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28420         * lib/pipe2.c (pipe2): Likewise.
28421         Suggested by Eric Blake.
28422
28423 2009-08-23  Bruno Haible  <bruno@clisp.org>
28424
28425         Tolerate declared but missing dup3 syscall.
28426         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28427         * lib/unistd.in.h (dup3): If the function is already present,
28428         override it.
28429         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28430         * modules/dup3 (Makefile.am): Compile dup3.c always.
28431         Reported by Paolo Bonzini.
28432
28433 2009-08-23  Bruno Haible  <bruno@clisp.org>
28434
28435         Tolerate declared but missing pipe2 syscall.
28436         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28437         available.
28438         * lib/unistd.in.h (pipe2): If the function is already present,
28439         override it.
28440         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28441         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28442         Reported by Paolo Bonzini.
28443
28444 2009-08-23  Bruno Haible  <bruno@clisp.org>
28445
28446         * lib/pipe2.c (pipe2): Move #ifs inside function.
28447
28448 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28449
28450         quotearg: document limitations of quote_these_too
28451         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28452         those limitations are created.
28453         * lib/quotearg.h (set_char_quoting): Document that digits and
28454         letters that are special after backslash are not permitted.
28455         (quotearg_char): Cross-reference set_char_quoting documentation.
28456
28457 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28458
28459         quotearg: implement custom_quoting_style
28460         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28461         right_quote fields.
28462         (set_custom_quoting): New public function.
28463         (quotearg_buffer_restyled): Add left_quote and right_quote
28464         arguments, handle them very much like locale quoting, and update
28465         all uses.
28466         (quotearg_n_custom): New public function.
28467         (quotearg_n_custom_mem): New public function.
28468         (quotearg_custom): New public function.
28469         (quotearg_custom_mem): New public function.
28470         * lib/quotearg.h: Prototype and document new public functions.
28471         (enum quoting_style): For escape_quoting_style and
28472         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28473         ignored even though they're otherwise like c_quoting_style.
28474         Add custom_quoting_style member and document with comparison to
28475         clocale_quoting_style.
28476         * tests/test-quotearg.c (custom_quotes): New array.
28477         (custom_results): New array.
28478         (main): Extend to test custom quoting.
28479
28480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28481
28482         quotearg: fix right quote escaping when it's in quote_these_too
28483         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28484         quote, be sure to prepend only one backslash.
28485         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28486         (main): Test it.
28487
28488 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28489
28490         quotearg-tests: test escaping of embedded locale quotes
28491         * tests/test-quotearg.c (struct result_strings): Add member for
28492         new input.
28493         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28494         (inputs): Add new input.
28495         (results_g): Add expected results.
28496         (flag_results): Likewise.
28497         (locale_results): Likewise.
28498         (compare_strings): Check those.
28499
28500 2009-08-23  Bruno Haible  <bruno@clisp.org>
28501
28502         Tests for module 'dup3'.
28503         * modules/dup3-tests: New file.
28504         * tests/test-dup3.c: New file.
28505
28506         New module 'dup3'.
28507         * lib/unistd.in.h (dup3): New declaration.
28508         * lib/dup3.c: New file.
28509         * m4/dup3.m4: New file.
28510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28511         HAVE_DUP3.
28512         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28513         * modules/dup3: New file.
28514         * doc/glibc-functions/dup3.texi: Mention the new module.
28515
28516 2009-08-23  Bruno Haible  <bruno@clisp.org>
28517
28518         Tweak the dup2 test.
28519         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28520         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28521         the test file is still empty. Fix argument order of lseek.
28522
28523 2009-08-23  Bruno Haible  <bruno@clisp.org>
28524
28525         Avoid test link errors when the modules getopt-gnu, gettext are used.
28526         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28528
28529 2009-08-23  Bruno Haible  <bruno@clisp.org>
28530
28531         Fix getdtablesize() on mingw.
28532         * lib/getdtablesize.c (getdtablesize): Implement differently.
28533         * lib/unistd.in.h (getdtablesize): Improve comment.
28534
28535 2009-08-23  Bruno Haible  <bruno@clisp.org>
28536
28537         New module 'mkostemp'.
28538         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28539         * lib/stdlib.in.h (mksotemp): New declaration.
28540         * lib/mkostemp.c: New file, from glibc with modifications.
28541         * lib/tempname.h (GT_FILE): Remove outdated comment.
28542         (gen_tempname): Add flags argument.
28543         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28544         (__GT_FILE): Map to 1.
28545         (small_open, large_open): Remove macros.
28546         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28547         * lib/mkstemp.c (mkstemp): Update.
28548         * lib/mkdtemp.c (mkdtemp): Likewise.
28549         * m4/mkostemp.m4: New file.
28550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28551         HAVE_MKOSTEMP.
28552         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28553         HAVE_MKOSTEMP.
28554         * modules/mkostemp: New file, based on modules/mkstemp.
28555         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28556         * NEWS: Mention the change.
28557
28558 2009-08-23  Bruno Haible  <bruno@clisp.org>
28559
28560         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28561         Reported by Eric Blake.
28562
28563 2009-08-23  Bruno Haible  <bruno@clisp.org>
28564
28565         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28566         Reported by Eric Blake.
28567
28568 2009-08-23  Bruno Haible  <bruno@clisp.org>
28569
28570         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28571         * modules/pipe2 (Depends-on): Likewise.
28572
28573 2009-08-23  Eric Blake  <ebb9@byu.net>
28574
28575         fcntl-h: add O_TTY_INIT support
28576         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28577         * tests/test-fcntl-h.c (o): Test it.
28578         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28579
28580         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28581         * modules/fcntl: Move <fcntl.h> header replacement...
28582         * modules/fcntl-h: ...to new name, so as not to collide with
28583         like-named function.
28584         * tests/test-fcntl.c: Rename...
28585         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28586         * modules/fcntl-tests: Rename...
28587         * modules/fcntl-h-tests: ...to this.  Update test file name.
28588         * modules/chdir-long (Depends-on): Update clients.
28589         * modules/chdir-safer (Depends-on): Likewise.
28590         * modules/fcntl-safer (Depends-on): Likewise.
28591         * modules/fts (Depends-on): Likewise.
28592         * modules/mkancesdirs (Depends-on): Likewise.
28593         * modules/mkdir-p (Depends-on): Likewise.
28594         * modules/open (Depends-on): Likewise.
28595         * modules/savewd (Depends-on): Likewise.
28596         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28597         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28598
28599 2009-08-22  Bruno Haible  <bruno@clisp.org>
28600
28601         * modules/binary-io (License): Relicense under LGPL.
28602         * modules/pipe2 (License): Likewise.
28603
28604 2009-08-22  Bruno Haible  <bruno@clisp.org>
28605
28606         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28607         return value.
28608         * lib/pipe-filter-gi.c (filter_init): Likewise.
28609         Reported by Eric Blake.
28610
28611 2009-08-22  Bruno Haible  <bruno@clisp.org>
28612
28613         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28614         * modules/pipe (Depends-on): Add pipe2.
28615
28616 2009-08-22  Bruno Haible  <bruno@clisp.org>
28617
28618         Tests for module 'pipe2'.
28619         * modules/pipe2-tests: New file.
28620         * tests/test-pipe2.c: New file.
28621
28622         New module 'pipe2'.
28623         * lib/unistd.in.h (pipe2): New declaration.
28624         * lib/pipe2.c: New file.
28625         * m4/pipe2.m4: New file.
28626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28627         HAVE_PIPE2.
28628         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28629         * modules/pipe2: New file.
28630         * doc/glibc-functions/pipe2.texi: Mention the new module.
28631
28632 2009-08-22  Bruno Haible  <bruno@clisp.org>
28633
28634         Reference some new glibc functions.
28635         * doc/glibc-functions/accept4.texi: New file.
28636         * doc/glibc-functions/dup3.texi: New file.
28637         * doc/glibc-functions/mkostemp.texi: New file.
28638         * doc/glibc-functions/pipe2.texi: New file.
28639         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28640         (Glibc sys/socket.h): Refer to accept4.
28641         (Glibc unistd.h): Refer to dup3, pipe2.
28642         Reported by Eric Blake.
28643
28644 2009-08-22  Jim Meyering  <meyering@redhat.com>
28645             Bruno Haible  <bruno@clisp.org>
28646
28647         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28648         This makes it so packages using automake-1.11's silent-rules option
28649         can print e.g., a single "GEN    configmake.h" line, rather than
28650         the 30+ statements that perform the job.  If you want to see the
28651         actual commands, you can still run "make V=1".
28652         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28653         so that make output is abbreviated when those variables are defined
28654         appropriately.
28655         * modules/argz: Likewise.
28656         * modules/arpa_inet: Likewise.
28657         * modules/byteswap: Likewise.
28658         * modules/configmake: Likewise.
28659         * modules/dirent: Likewise.
28660         * modules/errno: Likewise.
28661         * modules/fcntl: Likewise.
28662         * modules/float: Likewise.
28663         * modules/fnmatch: Likewise.
28664         * modules/getopt-posix: Likewise.
28665         * modules/glob: Likewise.
28666         * modules/iconv_open: Likewise.
28667         * modules/inttypes: Likewise.
28668         * modules/localcharset: Likewise.
28669         * modules/locale: Likewise.
28670         * modules/math: Likewise.
28671         * modules/netdb: Likewise.
28672         * modules/netinet_in: Likewise.
28673         * modules/poll: Likewise.
28674         * modules/posix_spawnp-tests: Likewise.
28675         * modules/sched: Likewise.
28676         * modules/search: Likewise.
28677         * modules/selinux-h: Likewise.
28678         * modules/signal: Likewise.
28679         * modules/spawn: Likewise.
28680         * modules/stdarg: Likewise.
28681         * modules/stdbool: Likewise.
28682         * modules/stddef: Likewise.
28683         * modules/stdint: Likewise.
28684         * modules/stdio: Likewise.
28685         * modules/stdlib: Likewise.
28686         * modules/string: Likewise.
28687         * modules/strings: Likewise.
28688         * modules/sys_file: Likewise.
28689         * modules/sys_ioctl: Likewise.
28690         * modules/sys_select: Likewise.
28691         * modules/sys_socket: Likewise.
28692         * modules/sys_stat: Likewise.
28693         * modules/sys_time: Likewise.
28694         * modules/sys_times: Likewise.
28695         * modules/sys_utsname: Likewise.
28696         * modules/sys_wait: Likewise.
28697         * modules/sysexits: Likewise.
28698         * modules/time: Likewise.
28699         * modules/unistd: Likewise.
28700         * modules/wchar: Likewise.
28701         * modules/wctype: Likewise.
28702
28703 2009-08-22  Jim Meyering  <meyering@redhat.com>
28704
28705         announce-gen: detect write failure
28706         * build-aux/announce-gen: Add Coda at end.
28707         Remove equivalent-but-more-verbose block at top.
28708
28709 2009-08-19  Akim Demaille  <demaille@gostai.com>
28710
28711         bootstrap: --help to stdout.
28712         * bootstrap (usage): Don't send --help to stderr.
28713         Use a here doc instead of a long string.
28714
28715 2009-08-21  Eric Blake  <ebb9@byu.net>
28716
28717         test-popen-safer: split from test-popen
28718         * tests/test-popen.c (main): Move...
28719         * tests/test-popen.h: ...into new file.
28720         * tests/test-popen-safer2.c: New file.
28721         * modules/popen-tests (Files): Add test-popen.h.
28722         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28723         Suggested by Bruno Haible.
28724
28725         test-fcntl-safer: split from test-open
28726         * tests/test-open.c (main): Move...
28727         * tests/test-open.h: ...into new file.
28728         * tests/test-fcntl-safer.c: New file.
28729         * modules/open-tests (Files): Add test-open.h.
28730         * modules/fcntl-safer-tests: New file.
28731         Suggested by Bruno Haible.
28732
28733         test-fopen-safer: split from test-fopen
28734         * tests/test-fopen.c (main): Move...
28735         * tests/test-fopen.h: ...into new file.
28736         * tests/test-fopen-safer.c: New file.
28737         * modules/fopen-tests (Files): Add test-fopen.h.
28738         * modules/fopen-safer-tests: New file.
28739         Suggested by Bruno Haible.
28740
28741 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28742
28743         popen-safer: test O_CLOEXEC at run-time.
28744         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28745
28746 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28747
28748         fcntl: move more flags to the header
28749         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28750         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28751         * lib/fcntl.in.h: Do both things here.
28752
28753 2009-08-21  Jim Meyering  <meyering@redhat.com>
28754
28755         consistently remove $@-t before redirecting to it
28756         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28757         * modules/alloca-opt: Likewise.
28758         * modules/byteswap: Likewise.
28759         * modules/fnmatch: Likewise.
28760         * modules/getopt-posix: Likewise.
28761         * modules/glob: Likewise.
28762         * modules/poll: Likewise.
28763         * modules/posix_spawnp-tests: Likewise.
28764         * modules/sys_socket: Likewise.
28765         * modules/sysexits: Likewise.
28766
28767 2009-08-21  Eric Blake  <ebb9@byu.net>
28768
28769         popen: simplify access to original popen
28770         * lib/popen.c (rpl_popen): No need to worry about popen being a
28771         macro.
28772         Reported by Bruno Haible.
28773
28774 2009-08-20  Eric Blake  <ebb9@byu.net>
28775
28776         build: avoid some compiler warnings
28777         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28778         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28779         type.
28780         (new_exclude_segment, excluded_file_pattern_p)
28781         (excluded_file_name_p): Reduce scope.
28782         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28783         old-style declaration.
28784
28785 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28786
28787         * tests/test-exclude1.sh: Handle Windows EOL.
28788         * tests/test-exclude2.sh: Likewise.
28789         * tests/test-exclude3.sh: Likewise.
28790         * tests/test-exclude4.sh: Likewise.
28791         * tests/test-exclude5.sh: Likewise.
28792         * tests/test-exclude6.sh: Likewise.
28793         * tests/test-exclude7.sh: Likewise.
28794
28795 2009-08-19  Akim Demaille  <demaille@gostai.com>
28796
28797         bootstrap: find sha1sum when named gsha1sum.
28798         * bootstrap (find_tool): New.
28799         ($SHA1SUM): New.
28800         Use it.
28801
28802 2009-08-20  Jim Meyering  <meyering@redhat.com>
28803
28804         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28805         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28806         expression that converts "." in a file name to "\." in the resulting
28807         regexp.  Start with a dummy statement, so that prior shell variable
28808         definitions are expanded portably.  Reported by Simon Josefsson.
28809
28810 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28811
28812         Fix polling for writeability of a screen buffer.
28813         * lib/poll.c: Distinguish input and screen buffers for the
28814         Win32 implementation.
28815         * lib/select.c: Likewise.
28816
28817 2009-08-19  Eric Blake  <ebb9@byu.net>
28818
28819         popen-safer: prevent popen from clobbering std descriptors
28820         * modules/popen-safer: New file.
28821         * lib/popen-safer.c: Likewise.
28822         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28823         * lib/stdio--.h (popen): Provide override.
28824         * lib/stdio-safer.h (popen_safer): Provide declaration.
28825         * tests/test-popen.c (includes): Partially test this.
28826         * modules/popen-safer-tests: New file, for more tests.
28827         * tests/test-popen-safer.c: Likewise.
28828         * MODULES.html.sh (file stream based Input/Output): Mention it.
28829
28830         tests: test some of the *-safer modules
28831         * modules/fopen-safer (Depends-on): Add fopen.
28832         * modules/fcntl-safer (Depends-on): Add fcntl.
28833         * modules/stdlib-safer (Depends-on): Add stdlib.
28834         (configure.ac): Set indicator.
28835         * modules/unistd-safer (configure.ac): Likewise.
28836         * modules/tmpfile-safer (configure.ac): Likewise.
28837         (Depends-on): Add tmpfile.
28838         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28839         active.
28840         * tests/test-fopen.c (includes): Test safer versions when they are
28841         in use.
28842         * tests/test-open.c (includes): Likewise.
28843
28844         popen: fix cygwin 1.5 bug when stdin closed
28845         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28846         * modules/popen: New file.
28847         * modules/popen-tests: Likewise.
28848         * tests/test-popen.c: Likewise.
28849         * m4/popen.m4: Likewise.
28850         * lib/popen.c: Likewise.
28851         * lib/stdio.in.h (popen): New declaration.
28852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28853         * modules/stdio (Makefile.am): Likewise.
28854         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28855
28856 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28857
28858         maint.mk: give full control over update-copyright exclusions
28859         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28860         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28861         (update-copyright): Don't force inclusion of top-level
28862         ChangeLog.  Don't force exclusion of all COPYING files, but make
28863         them the default exclusion instead.
28864
28865 2009-08-16  Bruno Haible  <bruno@clisp.org>
28866
28867         Fix test failures on Solaris 10.
28868         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28869         tests when Solaris iconv() is used.
28870         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28871         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28872         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28873         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28874         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28875
28876 2009-08-16  Bruno Haible  <bruno@clisp.org>
28877
28878         Fix test failures on Solaris 10.
28879         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28880         'tr' program and pass it as first argument.
28881         * tests/test-pipe-filter-gi1.sh: Likewise.
28882         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28883         program as first argument.
28884         * tests/test-pipe-filter-gi1.c (main): Likewise.
28885
28886 2009-08-16  Eric Blake  <ebb9@byu.net>
28887
28888         fpurge: fix previous commits
28889         * modules/fpurge (Makefile.am): Make replacement conditional,
28890         partially reverting 2007-04-29 change; missed in previous
28891         attempt.
28892         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28893         is missing.
28894
28895 2009-08-16  Bruno Haible  <bruno@clisp.org>
28896
28897         Clarify fpurge's effect on the file position.
28898         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28899         * tests/test-fpurge.c (main): Make a second pass for checking the file
28900         position.
28901
28902 2009-08-16  Bruno Haible  <bruno@clisp.org>
28903
28904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28905         declaration of fpurge is missing.
28906         * tests/test-fpurge.c (main): Check that the file has not more contents
28907         than expected. Close the file before removing it.
28908
28909 2009-08-15  Eric Blake  <ebb9@byu.net>
28910
28911         fpurge: don't wrap working cygwin implementation
28912         * lib/fpurge.c (fpurge): Fix comment typo.
28913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28914         1.7 to avoid replacement.
28915         * tests/test-fpurge.c (main): Enhance test.
28916
28917 2009-08-15  Eric Blake  <ebb9@byu.net>
28918         and Jim Meyering  <meyering@redhat.com>
28919
28920         test-update-copyright: skip if perl is insufficient
28921         * tests/test-update-copyright.sh: Failure to run maintainer tool
28922         should not cause testsuite failure on cygwin 1.5.
28923
28924 2009-08-14  Eric Blake  <ebb9@byu.net>
28925
28926         doc: mention more functions added in cygwin 1.7.0
28927         * doc/posix-headers/limits.texi (limits.h): Update for recent
28928         cygwin additions.
28929         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28930         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28931         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28932         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28933         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28934
28935 2009-08-14  Eric Blake  <ebb9@byu.net>
28936
28937         maint.mk: simplify update-copyright rule
28938         * top/maint.mk (update-copyright-local): Delete, and document how
28939         to do it in cfg.mk instead.
28940         (update-copyright-exclude-regexp): Delete, and document how to do
28941         it in .x-update-copyright instead.
28942         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28943         exclude ChangeLog.
28944
28945 2009-08-14  Bruno Haible  <bruno@clisp.org>
28946
28947         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28948
28949 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28950
28951         maint.mk: support update-copyright-env
28952         * top/maint.mk (update-copyright-env): Define place-holder.
28953         (update-copyright): Expand $(update-copyright-env) before
28954         invoking update-copyright.
28955
28956 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28957
28958         update-copyright: implement forced reformatting
28959         * build-aux/update-copyright: Implement and document
28960         UPDATE_COPYRIGHT_FORCE.
28961         * tests/test-update-copyright.sh: Test it.
28962
28963 2009-08-14  Eric Blake  <ebb9@byu.net>
28964         and Bruno Haible  <bruno@clisp.org>
28965
28966         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28967         * tests/test-locale.c: Revert previous patch related to NULL.
28968         * tests/test-stdio.c: Likewise.
28969         * tests/test-stdlib.c: Likewise.
28970         * tests/test-string.c: Likewise.
28971         * tests/test-unistd.c: Likewise.
28972         * modules/time-tests (Depends-on): Add verify.
28973         * modules/wchar-tests (Depends-on): Likewise.
28974         * tests/test-time.c: Test for NULL compliance.
28975         * tests/test-wchar.c: Likewise.
28976         * modules/locale (Depends-on): Add stddef.
28977         * modules/stdio (Depends-on): Likewise.
28978         * modules/stdlib (Depends-on): Likewise.
28979         * modules/string (Depends-on): Likewise.
28980         * modules/time (Depends-on): Likewise.
28981         * modules/unistd (Depends-on): Likewise.
28982         * modules/wchar (Depends-on): Likewise.
28983         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28984         * lib/stdlib.in.h (includes): Likewise.
28985         * lib/string.in.h (includes): Likewise.
28986         * lib/time.in.h (includes): Likewise.
28987         * lib/unistd.in.h (includes): Likewise.
28988         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28989         replaced.
28990         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28991         * m4/stddef_h.m4: New file.
28992         * modules/stddef: Likewise.
28993         * lib/stddef.in.h: Likewise.
28994         * modules/stddef-tests: Likewise.
28995         * tests/test-stddef.c: Likewise.
28996         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28997         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28998         * doc/posix-headers/locale.texi (locale.h): Likewise.
28999         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29001         * doc/posix-headers/string.texi (string.h): Likewise.
29002         * doc/posix-headers/time.texi (time.h): Likewise.
29003         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29004         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29005
29006 2009-08-14  Eric Blake  <ebb9@byu.net>
29007
29008         doc: improve git diff of texinfo files
29009         * .gitattributes: Add rule for *.texi files, with hint on how to
29010         use it.
29011         Copied from m4, and based on a report by Bruno Haible.
29012
29013 2009-08-14  Bruno Haible  <bruno@clisp.org>
29014
29015         Disable multithread support by default on Cygwin 1.5.x for real.
29016         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29017
29018 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29019
29020         update-copyright: much ado about intervals
29021         * build-aux/update-copyright: Implement and document
29022         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29023         of copyright year intervals.
29024         Also, document UPDATE_COPYRIGHT_YEAR.
29025         * tests/test-update-copyright.sh: Test it.
29026
29027         update-copyright: convert 2-digit to 4-digit years
29028         * build-aux/update-copyright: Implement and document.
29029         * tests/test-update-copyright.sh: Update.
29030
29031 2009-08-14  Jim Meyering  <meyering@redhat.com>
29032
29033         test-exclude: avoid coreutils "make check" failure
29034         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29035         just as in test-argmatch.c.
29036
29037 2009-08-13  Eric Blake  <ebb9@byu.net>
29038
29039         test-dup2: fix bad assumption
29040         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29041         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29042
29043         test-version-etc: fix CRLF portability issue
29044         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29045         recognize \r.
29046         * tests/test-argp-version-etc-1.sh: Likewise.
29047
29048         getopt: update client modules
29049         * modules/argp (Depends-on): Use getopt-gnu.
29050         * modules/git-merge-changelog (Depends-on): Likewise.
29051         * modules/long-options (Depends-on): Likewise.
29052         * modules/xstrtol (Depends-on): Likewise.
29053
29054 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29055
29056         * tests/test-version-etc.sh: Don't fail on different
29057         project/version.  Don't fail on CRLF differences.  Rewrite to use
29058         multiple -e instead of multiple sed forks, suggested by Eric Blake
29059         <ebb9@byu.net>.
29060         * tests/test-argp-version-etc-1.sh: Likewise.
29061
29062 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29063
29064         * tests/test-version-etc.sh: Don't fail on different
29065         project/version.
29066
29067 2009-08-12  Bruno Haible  <bruno@clisp.org>
29068
29069         Tests for modules 'getopt-posix', 'getopt-gnu'.
29070         * modules/getopt-posix-tests: New file.
29071         * tests/test-getopt.c: New file.
29072         * tests/test-getopt.h: New file.
29073         * tests/test-getopt_long.h: New file.
29074
29075         New modules 'getopt-posix', 'getopt-gnu'.
29076         * modules/getopt-gnu: New file, renamed from modules/getopt.
29077         * modules/getopt-posix: New file.
29078         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29079         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29080         (gl_GETOPT): Remove macro.
29081         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29082         Disable the test against BSD systems that declare optreset. Test
29083         against mingw bug. Test against lack of support of optional arguments
29084         on many platforms.
29085         * doc/glibc-headers/getopt.texi: Update module name and list of
29086         relevant platforms.
29087         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29088         'getopt-gnu' and more portability problems.
29089         * NEWS: Mention the changes.
29090
29091 2009-08-12  Bruno Haible  <bruno@clisp.org>
29092
29093         Ensure that optarg etc. get declared by <unistd.h>.
29094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29095         AC_USE_SYSTEM_EXTENSIONS.
29096         * modules/getopt (Depends-on): Add 'extensions'.
29097
29098 2009-08-12  Bruno Haible  <bruno@clisp.org>
29099
29100         Avoid test link errors.
29101         * modules/pipe-filter-ii-tests (Makefile.am): Define
29102         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29103         * modules/pipe-filter-gi-tests (Makefile.am): Define
29104         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29106
29107 2009-08-12  Bruno Haible  <bruno@clisp.org>
29108
29109         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29110         gl_GETOPT_SUBSTITUTE before.
29111         (gl_GETOPT): Use it.
29112         * m4/argp.m4 (gl_ARGP): Update.
29113         Reported by Sergey Poznyakoff.
29114
29115         * m4/getopt.m4: Reorder macros.
29116         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29117         (gl_GETOPT_SUBSTITUTE): Remove macro.
29118
29119 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29120
29121         Minor improvement in gitlog-to-changelog
29122
29123         * build-aux/gitlog-to-changelog: New option `--format' makes
29124         output format string configurable.
29125
29126 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29127
29128         Optimize exclude: use hash tables for non-wildcard patterns.
29129
29130         * lib/exclude.c: Include hash.h and mbuiter.h
29131         (struct exclude_pattern, exclude_segment): New data types.
29132         (struct exclude): Rewrite.
29133         (fnmatch_pattern_has_wildcards): New function.
29134         (new_exclude_segment, free_exclude_segment): New functions.
29135         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29136         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29137         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29138         * modules/exclude: Depend on hash and mbuiter.
29139
29140         * modules/exclude-tests: New file.
29141         * tests/test-exclude.c: New file.
29142         * tests/test-exclude1.sh: New file.
29143         * tests/test-exclude2.sh: New file.
29144         * tests/test-exclude3.sh: New file.
29145         * tests/test-exclude4.sh: New file.
29146         * tests/test-exclude5.sh: New file.
29147         * tests/test-exclude6.sh: New file.
29148         * tests/test-exclude7.sh: New file.
29149
29150 2009-08-12  Bruno Haible  <bruno@clisp.org>
29151
29152         Ensure that getopt() gets declared by <unistd.h>.
29153         * lib/unistd.in.h: Conditionally include getopt.h.
29154         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29155         Set GNULIB_UNISTD_H_GETOPT.
29156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29157         GNULIB_UNISTD_H_GETOPT.
29158         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29159
29160 2009-08-12  Bruno Haible  <bruno@clisp.org>
29161
29162         Clarify logic.
29163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29164         gl_replace_getopt instead of GETOPT_H.
29165
29166 2009-08-12  Bruno Haible  <bruno@clisp.org>
29167
29168         * m4/getopt.m4: Add comments.
29169
29170 2009-08-12  Bruno Haible  <bruno@clisp.org>
29171
29172         Disable multithread support by default on Cygwin 1.5.x.
29173         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29174         set gl_use_threads=no if not specified otherwise.
29175
29176 2009-08-11  Bruno Haible  <bruno@clisp.org>
29177
29178         Avoid compilation error on NetBSD 5.0.
29179         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29180         * tests/test-stdio.c: Likewise.
29181         * tests/test-stdlib.c: Likewise.
29182         * tests/test-string.c: Likewise.
29183         * tests/test-unistd.c: Likewise.
29184         Reported by Greg Troxel <gdt@ir.bbn.com>
29185         at <https://savannah.gnu.org/support/?106973>.
29186
29187 2009-08-11  Bruno Haible  <bruno@clisp.org>
29188
29189         * modules/dup2-tests (Depends-on): Remove close.
29190
29191         Undo 2009-07-19 commit.
29192         * modules/acl-tests (Depends-on): Remove close.
29193         * modules/binary-io-tests (Depends-on): Likewise.
29194         * modules/closein-tests (Depends-on): Likewise.
29195         * modules/flock-tests (Depends-on): Likewise.
29196         * modules/fsync-tests (Depends-on): Likewise.
29197         * modules/lseek-tests (Depends-on): Likewise.
29198         * modules/pipe-tests (Depends-on): Likewise.
29199         * modules/posix_spawn-tests (Depends-on): Likewise.
29200         * modules/posix_spawnp-tests (Depends-on): Likewise.
29201         * modules/stat-time-tests (Depends-on): Likewise.
29202         * modules/yesno-tests (Depends-on): Likewise.
29203
29204 2009-08-10  Bruno Haible  <bruno@clisp.org>
29205
29206         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29207
29208 2009-08-10  Bruno Haible  <bruno@clisp.org>
29209
29210         Fix a gcc warning.
29211         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29212
29213 2009-08-10  Bruno Haible  <bruno@clisp.org>
29214
29215         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29216         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29217         not only the first time.
29218         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29219         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29220         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29221         is 1, not only the the first time.
29222
29223 2009-08-10  Bruno Haible  <bruno@clisp.org>
29224
29225         Make it possible to use module 'gethostname' without module 'close'.
29226         * lib/unistd.in.h (close): Evoke a link error only if
29227         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29230         * modules/unistd (Makefile.am): Substitute
29231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29232         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29233         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29235         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29236         * modules/sys_ioctl (Makefile.am): Substitute
29237         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29238         * modules/socket (configure.ac): On native Windows, set
29239         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29240         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29241         Reported by Sam Steingold <sds@gnu.org>.
29242
29243 2009-08-10  Bruno Haible  <bruno@clisp.org>
29244
29245         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29246         * modules/ioctl (configure.ac): Likewise.
29247
29248 2009-08-10  Bruno Haible  <bruno@clisp.org>
29249
29250         Avoid collision between gnulib wrapper and libintl wrapper.
29251         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29252         already defined in intl/printf.c.
29253         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29254         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29255
29256 2009-08-09  Bruno Haible  <bruno@clisp.org>
29257
29258         Make <sys/select.h> really self-contained, also on Solaris 10.
29259         * lib/sys_select.in.h: Include <string.h>.
29260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29261         Solaris 10 problem.
29262         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29263         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29264         Reported by Jim Meyering.
29265
29266 2009-08-09  Bruno Haible  <bruno@clisp.org>
29267
29268         Avoid warnings from 'aclocal' that are due to a use of macro name
29269         AM_XGETTEXT_OPTION that is not defined in automake.
29270         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29271         automake.
29272         * modules/error (configure.ac): Likewise.
29273         * modules/propername (configure.ac): Likewise.
29274         * modules/vasprintf (configure.ac): Likewise.
29275         * modules/verror (configure.ac): Likewise.
29276         * modules/xprintf (configure.ac): Likewise.
29277         * modules/xvasprintf (configure.ac): Likewise.
29278
29279 2009-08-08  Bruno Haible  <bruno@clisp.org>
29280
29281         Avoid compilation error in C++ mode.
29282         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29283         Reported by Sam Steingold <sds@gnu.org>.
29284
29285 2009-08-08  Bruno Haible  <bruno@clisp.org>
29286
29287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29288         for the various Unix platforms.
29289         * doc/posix-headers/limits.texi: Update platforms list regarding
29290         HOST_NAME_MAX.
29291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29292
29293 2009-08-07  Jim Meyering  <meyering@redhat.com>
29294
29295         selinux-at: fix typo in a comment
29296         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29297         Spotted by Paolo Bonzini.
29298
29299         selinux-at: remove redundant m4 code, add documentation
29300         * modules/selinux-at (configure.ac): Remove redundant code.
29301         LIB_SELINUX is already set via the dependent module, selinux-h.
29302         (Include): Add quotes around selinux-at.h.
29303         * lib/selinux-at.h: Add documentation.
29304         Reported by Bruno Haible in
29305         http://marc.info/?l=gnulib-bug&m=124958988300749
29306
29307 2009-08-07  Bruno Haible  <bruno@clisp.org>
29308
29309         Avoid link error on MacOS X 10.3 and 10.4.
29310         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29311         on non-ELF systems.
29312         * lib/argp-pv.c (argp_program_version): Likewise.
29313         Reported by Simon Josefsson.
29314
29315 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29316
29317         * tests/test-version-etc.sh: Use $EXEEXT.
29318
29319 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29320
29321         update-copyright: update documentation to point to maint.mk
29322         * build-aux/update-copyright: Here.
29323
29324 2009-08-06  Jim Meyering  <meyering@redhat.com>
29325
29326         maint.mk: support update-copyright-local
29327         * top/maint.mk (update-copyright-local): Define place-holder.
29328         (update-copyright): Depend on $(update-copyright-local).
29329
29330 2009-08-06  Jim Meyering  <meyering@redhat.com>
29331
29332         selinux-at: new module
29333         Initially written for coreutils, this module will soon be
29334         used by findutils, too.
29335         * MODULES.html.sh [Misc]: Add selinux-at.
29336         * lib/selinux-at.h: New file, from coreutils.
29337         * lib/selinux-at.c: Likewise.
29338         * modules/selinux-at: Likewise.
29339         (License): Change from LGPL to GPL, since it depends
29340         on the GPL'd openat module.
29341
29342         doc: update README
29343         * README: Remove references to cogito.
29344         Remove cvs-repo-updating instructions from 2007.
29345         Don't imply that CVS is better if you have limited disk space.
29346
29347 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29348
29349         update-copyright: support C-style comments
29350         * build-aux/update-copyright: Implement and document.
29351         * tests/test-update-copyright.sh: Test.
29352
29353 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29354
29355         update-copyright: support omitted "(C)"
29356         * build-aux/update-copyright: Implement and document.  Also,
29357         allow variable whitespace before "(C)".
29358         * tests/test-update-copyright.sh: Test.
29359
29360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29361
29362         update-copyright: don't trip on non-FSF copyright statements
29363         * build-aux/update-copyright: Fix so that the first correctly
29364         formatted FSF copyright statement is recognized no matter what
29365         appears before it.  Update documentation.
29366         * tests/test-update-copyright.sh: Test that.
29367
29368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29369
29370         update-copyright: clean up code a little
29371         * build-aux/update-copyright: Append "_re" to the name of any
29372         variable holding a regular expression.
29373         Replace "old" and "new" with "stmt" in variable names.
29374         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29375         handled correctly.
29376         Format code more consistently.
29377
29378 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29379
29380         update-copyright-tests: improve portability
29381         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29382         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29383
29384 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29385
29386         update-copyright: support @copyright{} and &copy;
29387         * build-aux/update-copyright: Implement and document.
29388         * tests/test-update-copyright.sh: Test.
29389
29390 2009-08-04  Jim Meyering  <meyering@redhat.com>
29391
29392         update-copyright-tests: correctly test EOL=\r\n handling
29393         * tests/test-update-copyright.sh: Put \r at the end of some lines
29394         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29395
29396         maint.mk: make update-copyright exclusion list more configurable
29397         * top/maint.mk (update-copyright): Default to excluding COPYING,
29398         but allow an override, in case someone does want to update that file.
29399
29400         maint.mk: don't update copyright date in COPYING
29401         * top/maint.mk (update-copyright): Exclude COPYING.
29402
29403         maint.mk: add a copyright-updating rule
29404         * top/maint.mk (update-copyright): New rule.
29405         Derived from coreutils/Makefile.am.
29406
29407         update-copyright: rename some variables
29408         * build-aux/update-copyright: Rename a few variables for clarity.
29409         Tweak syntax.  List Joel E. Denny as coauthor.
29410
29411 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29412
29413         update-copyright: fix bug for 2-digit last year and add tests
29414         * build-aux/update-copyright: Fix bug.
29415         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29416         specified.
29417         * modules/update-copyright-tests: New
29418         * tests/test-update-copyright.sh: New.
29419
29420 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29421
29422         update-copyright: handle leading tabs in line prefix
29423         * build-aux/update-copyright: Count leading tabs as 8 spaces
29424         when computing margin.  This helps with the formatting of
29425         ChangeLogs, for example.
29426         Fix documentation a little.
29427
29428 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29429
29430         update-copyright: support EOL=\r\n
29431         * build-aux/update-copyright: Implement that.
29432
29433 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29434
29435         update-copyright: automatically format copyright statements
29436         * build-aux/update-copyright: Implement that.
29437         Also, be a little more predictable and safer by always failing
29438         when the full copyright format is not perfectly recognized as an
29439         unbroken whole.  Discussed at
29440         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29441         Rewrite documentation.
29442
29443 2009-08-03  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29446
29447 2009-08-02  Bruno Haible  <bruno@clisp.org>
29448
29449         Tests for module 'uname'.
29450         * modules/uname-tests: New file.
29451         * tests/test-uname.c: New file.
29452
29453         New module 'uname'.
29454         * lib/uname.c: New file.
29455         * m4/uname.m4: New file.
29456         * modules/uname: New file.
29457         * doc/posix-functions/uname.texi: Mention the new module.
29458
29459 2009-08-02  Bruno Haible  <bruno@clisp.org>
29460
29461         Tests for module 'sys_utsname'.
29462         * modules/sys_utsname-tests: New file.
29463         * tests/test-sys_utsname.c: New file.
29464
29465         New module 'sys_utsname'.
29466         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29467         * m4/sys_utsname_h.m4: New file.
29468         * modules/sys_utsname: New file.
29469         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29470
29471 2009-08-02  Bruno Haible  <bruno@clisp.org>
29472
29473         Implicitly initialize the sockets library.
29474         * lib/gethostname.c: Include sockets.h.
29475         (rpl_gethostname): Invoke gl_sockets_startup.
29476         * lib/socket.c: Include sockets.h.
29477         (rpl_socket): Invoke gl_sockets_startup.
29478         * modules/gethostname (Depends-on): Add sockets.
29479         * modules/socket (Depends-on): Likewise.
29480         * tests/test-poll.c: Don't include sockets.h.
29481         (main): Don't invoke gl_sockets_startup.
29482         * tests/test-select.c: Don't include sockets.h.
29483         (main): Don't invoke gl_sockets_startup.
29484
29485 2009-08-02  Bruno Haible  <bruno@clisp.org>
29486
29487         Allow multiple calls to gl_sockets_startup.
29488         * lib/sockets.c (initialized_sockets_version): New variable.
29489         (gl_sockets_startup): Do nothing if already called for this or a higher
29490         version.
29491         (gl_sockets_cleanup): Reset initialized_sockets_version.
29492
29493 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29494
29495         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29496         different project/version.
29497
29498 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29499             Bruno Haible  <bruno@clisp.org>
29500
29501         Tests for module 'pipe-filter-gi'.
29502         * modules/pipe-filter-gi-tests: New file.
29503         * tests/test-pipe-filter-gi1.sh: New file.
29504         * tests/test-pipe-filter-gi1.c: New file.
29505         * tests/test-pipe-filter-gi2.sh: New file.
29506         * tests/test-pipe-filter-gi2-main.c: New file.
29507         * tests/test-pipe-filter-gi2-child.c: New file.
29508
29509         New module 'pipe-filter-gi'.
29510         * lib/pipe-filter-gi.c: New file.
29511         * modules/pipe-filter-gi: New file.
29512
29513 2009-08-02  Bruno Haible  <bruno@clisp.org>
29514             Paolo Bonzini  <bonzini@gnu.org>
29515
29516         Tests for module 'pipe-filter-ii'.
29517         * modules/pipe-filter-ii-tests: New file.
29518         * tests/test-pipe-filter-ii1.sh: New file.
29519         * tests/test-pipe-filter-ii1.c: New file.
29520         * tests/test-pipe-filter-ii2.sh: New file.
29521         * tests/test-pipe-filter-ii2-main.c: New file.
29522         * tests/test-pipe-filter-ii2-child.c: New file.
29523
29524         New module 'pipe-filter-ii'.
29525         * lib/pipe-filter.h: New file.
29526         * lib/pipe-filter-ii.c: New file.
29527         * lib/pipe-filter-aux.h: New file.
29528         * modules/pipe-filter-ii: New file.
29529
29530 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29531
29532         * lib/gc-libgcrypt.c: Change copyright to FSF.
29533         * lib/gc-gnulib.c: Likewise.
29534
29535 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29536
29537         * lib/gethostname.c: Include limits.h.
29538
29539 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29540             Bruno Haible  <bruno@clisp.org>
29541
29542         Ensure HOST_NAME_MAX as part of the gethostname module.
29543         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29544         define also HOST_NAME_MAX.
29545         * tests/test-gethostname.c: Include <limits.h>.
29546         (main): Check also HOST_NAME_MAX.
29547         * doc/posix-headers/limits.texi: Document the mingw problem.
29548
29549 2009-08-02  Bruno Haible  <bruno@clisp.org>
29550
29551         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29552         Add comments.
29553
29554 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29555
29556         * lib/gethostname.c: Add Windows wrapper.
29557         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29558         * modules/gethostname: Depend on sys_socket & errno, for also
29559         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29560         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29561
29562 2009-07-31  Jim Meyering  <meyering@redhat.com>
29563
29564         getloadavg: fix symbol name in comment
29565         * lib/getloadavg.c: Correct a typo I introduced when adding
29566         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29567         Matt Kraai spotted the problem.
29568
29569 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29570
29571         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29572         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29573         code also if ! defined N_NAME_POINTER.
29574         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29575         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29576         but the n_name member is a 12-byte array.
29577
29578 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29579
29580         update-copyright: generalize comment handling
29581         * build-aux/update-copyright: Handle copyright statements
29582         within more comment styles.
29583         Document usage.
29584         Report any file with an external copyright holder or parse failure.
29585
29586 2009-07-29  Jim Meyering  <meyering@redhat.com>
29587
29588         mktime: correct setting of REPLACE_MKTIME
29589         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29590
29591         update-copyright: new module
29592         * modules/update-copyright: New file.
29593         * build-aux/update-copyright: New file.
29594         * MODULES.html.sh (maint+release support): Add update-copyright.
29595
29596 2009-07-27  Bruno Haible  <bruno@clisp.org>
29597
29598         Fix compilation error when <ctime> is used and mktime is replaced.
29599         * lib/time.in.h (mktime): New declaration.
29600         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29601         REPLACE_MKTIME instead of defining mktime in config.h.
29602         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29603         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29604         Reported by Ross McFarland <rwmcfa1@neces.com>.
29605
29606 2009-07-27  Bruno Haible  <bruno@clisp.org>
29607
29608         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29609         Reported by Matt Kraai <mkraai@beckman.com>.
29610
29611 2009-07-25  Jim Meyering  <meyering@redhat.com>
29612
29613         maint.mk: avoid warnings about missing files
29614         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29615         diagnostic when .prev-version does not exist.
29616         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29617         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29618         nonexistent cfg.mk.
29619         Suggestions from Simon Josefsson.
29620
29621 2009-07-25  Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29624         defined as macros. Needed on QNX 6.4.1.
29625         Reported by Matt Kraai <mkraai@beckman.com>.
29626
29627 2009-07-23  Jim Meyering  <meyering@redhat.com>
29628
29629         maint.mk: invoke "make dist" with a working value of XZ_OPT
29630         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29631
29632 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29633
29634         Make fseeko.c compile on QNX.
29635         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29636
29637 2009-07-22  Peter Simons  <simons@cryp.to>
29638
29639         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29640         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29641         * lib/md4.h: Likewise.
29642         * lib/md5.h: Likewise.
29643         * lib/sha1.h: Likewise.
29644         * lib/sha256.h: Likewise.
29645         * lib/sha512.h: Likewise.
29646
29647         tests-sha1: don't assign literal string to 'char *' variable
29648         * tests/test-sha1.c (main): Declare locals with "const" to match
29649         attributes of the right hand side.
29650
29651 2009-07-21  Eric Blake  <ebb9@byu.net>
29652
29653         dup2: fix more mingw problems
29654         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29655         fd to itself.
29656         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29657         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29658         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29659         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29660         care of mingw bugs.
29661
29662 2009-07-21  Jim Meyering  <meyering@redhat.com>
29663
29664         vc-list-files: avoid failure when /bin/sh is dash
29665         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29666         On some Debian based systems, /bin/sh is a symlink to dash, and running
29667         this command would omit the "/" following each 'tests' prefix:
29668           dash -x build-aux/vc-list-files -C . tests
29669         That is because bash and dash work differently:
29670           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29671           bash ok
29672           dash odd
29673
29674 2009-07-21  Eric Blake  <ebb9@byu.net>
29675
29676         dup2-tests: test previous patch
29677         * modules/dup2-tests: New file.
29678         * tests/test-dup2.c: Likewise.
29679         * tests/test-open.c (main): Avoid unspecified behavior.
29680         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29681         test.
29682
29683         dup2: work around mingw and cygwin 1.5 bug
29684         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29686         * modules/unistd (Makefile.am): Substitute it.
29687         * lib/unistd.in.h (dup2): Declare the replacement.
29688         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29689         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29690         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29691         * modules/execute (Depends-on): Add dup2.
29692         * modules/fseterr (Depends-on): Likewise.
29693         * modules/pipe (Depends-on): Likewise.
29694         * modules/posix_spawn-internal (Depends-on): Likewise.
29695
29696 2009-07-21  Bruno Haible  <bruno@clisp.org>
29697
29698         * modules/.gitattributes: New file.
29699
29700 2009-07-20  Bruno Haible  <bruno@clisp.org>
29701
29702         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29703         (main): Use it.
29704
29705 2009-07-20  Eric Blake  <ebb9@byu.net>
29706
29707         test-pipe: make a bit more robust.
29708         * tests/test-pipe.c (myerr): Allow error messages regardless of
29709         what we do to stderr.
29710         (test_pipe): Rearrange to avoid deadlock.
29711         (child_main): Try a larger read, to ensure we avoided deadlock.
29712         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29713         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29714         if misused.
29715
29716 2009-07-19  Jim Meyering  <meyering@redhat.com>
29717
29718         fts: avoid false-positive cycle-detection
29719         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29720         for each new command line argument.
29721
29722 2009-07-19  Bruno Haible  <bruno@clisp.org>
29723
29724         Fix build error on mingw with the modules sys_select and unistd.
29725         * modules/acl-tests (Depends-on): Add close.
29726         * modules/binary-io-tests (Depends-on): Likewise.
29727         * modules/closein-tests (Depends-on): Likewise.
29728         * modules/flock-tests (Depends-on): Likewise.
29729         * modules/fsync-tests (Depends-on): Likewise.
29730         * modules/lseek-tests (Depends-on): Likewise.
29731         * modules/pipe-tests (Depends-on): Likewise.
29732         * modules/posix_spawn-tests (Depends-on): Likewise.
29733         * modules/posix_spawnp-tests (Depends-on): Likewise.
29734         * modules/stat-time-tests (Depends-on): Likewise.
29735         * modules/yesno-tests (Depends-on): Likewise.
29736
29737 2009-07-19  Bruno Haible  <bruno@clisp.org>
29738
29739         Unify conditionals.
29740         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29741         macros, not at the compiler macros.
29742         * lib/pipe.c: Likewise.
29743         * lib/execute.c: Likewise.
29744         * lib/spawni.c: Likewise.
29745
29746 2009-07-19  Bruno Haible  <bruno@clisp.org>
29747
29748         Fix handling of closed stdin/stdout/stderr on mingw.
29749         * lib/w32spawn.h: Include unistd.h.
29750         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29751         file descriptor with O_NOINHERIT flag.
29752         (fd_safer_noinherit): New function, based on fd-safer.c.
29753         (dup_safer_noinherit): New function, based on dup-safer.c.
29754         (undup_safer_noinherit): New function.
29755         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29756         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29757         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29758         instead of fd_safer.
29759         * tests/test-pipe.c: Include <windows.h>.
29760         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29761         result.
29762
29763         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29764         from main.
29765         (test_pipe): Pass an extra argument for disambiguation.
29766         (main): Invoke parent_main or child_main.
29767
29768         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29769         consistently.
29770
29771 2009-07-18  Eric Blake  <ebb9@byu.net>
29772
29773         test-pipe: fix mingw build
29774         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29775
29776 2009-07-18  Bruno Haible  <bruno@clisp.org>
29777
29778         * modules/pipe-tests (Makefile.am): Fix typo.
29779
29780 2009-07-18  Eric Blake  <ebb9@byu.net>
29781
29782         error: fix mingw build
29783         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29784         Reported by Bruno Haible.
29785
29786         error: avoid undefined use of stdout
29787         * lib/error.c (error, error_at_line): Check that fd 1 is open
29788         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29789         is handling faults and the close_stdout module wants to report the
29790         detection of closed stdout as an error.
29791
29792 2009-07-17  Eric Blake  <ebb9@byu.net>
29793
29794         pipe: be robust in face of closed fds
29795         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29796         should cause child to misbehave.
29797         * modules/pipe-tests: New module.
29798         * tests/test-pipe.c: New file.
29799         * tests/test-pipe.sh: New file.
29800         Reported by Akim Demaille.
29801
29802 2009-07-14  Bruno Haible  <bruno@clisp.org>
29803
29804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29805         Reported by anonymous kc.
29806
29807 2009-07-07  Jim Meyering  <meyering@redhat.com>
29808
29809         maint.mk: don't look for translatable strings in *.m4 or *.mk
29810         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29811         when searching for translatable strings.
29812
29813 2009-07-05  Jim Meyering  <meyering@redhat.com>
29814
29815         remove superfluous parentheses in STREQ definition
29816         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29817         * lib/getugroups.c (STREQ): Likewise.
29818         * lib/fnmatch.c (STREQ): Likewise.
29819         Spotted by Bruno Haible.
29820
29821 2009-07-04  Jim Meyering  <meyering@redhat.com>
29822
29823         argv-iter: new module
29824         * MODULES.html.sh: Add argv-iter.
29825         * lib/argv-iter.c, lib/argv-iter.h: New files.
29826         * modules/argv-iter: New file.
29827         * modules/argv-iter-tests: New file.
29828         * tests/test-argv-iter.c: Test it.
29829
29830 2009-07-04  Bruno Haible  <bruno@clisp.org>
29831
29832         Fix assertion.
29833         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29834         contains more exact copies of a given entry than file2, leave the extra
29835         copies unpaired rather than aborting.
29836         Reported by Eric Blake.
29837
29838 2009-07-02  Bruno Haible  <bruno@clisp.org>
29839
29840         Speedup git-merge-changelog for git cherry-pick.
29841         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29842         (entries_mapping_get): New function, extracted from compute_mapping.
29843         (entries_mapping_reverse_get): New function.
29844         (compute_mapping): Add a 'full' argument. Return the result in a
29845         'struct entries_mapping'.
29846         (main): Update. Access the mappings through entries_mapping_get.
29847         Reported by Eric Blake.
29848
29849 2009-07-02  Bruno Haible  <bruno@clisp.org>
29850
29851         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29852         best_i.
29853
29854 2009-07-02  Bruno Haible  <bruno@clisp.org>
29855
29856         Speed up approximate search for matching ChangeLog entries.
29857         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29858         argument. Call fstrcmp_bounded instead of fstrcmp.
29859         (compute_mapping, try_split_merged_entry, main): Update callers.
29860
29861 2009-07-02  Bruno Haible  <bruno@clisp.org>
29862
29863         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29864
29865 2009-06-30  Bruno Haible  <bruno@clisp.org>
29866
29867         Reduce the number of uc_is_cased calls.
29868         * lib/unicase.h (casing_suffix_context_t): Add
29869         'first_char_except_ignorable' field.
29870         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29871         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29872         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29873         Update initializer.
29874         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29875         case-ignorable characters.
29876         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29877         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29878         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29879         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29880         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29881
29882 2009-06-30  Bruno Haible  <bruno@clisp.org>
29883
29884         Tests for module 'unicase/ignorable'.
29885         * modules/unicase/ignorable-tests: New file.
29886         * tests/unicase/test-ignorable.c: New file, generated by
29887         gen-uni-tables.
29888
29889         Tests for module 'unicase/cased'.
29890         * modules/unicase/cased-tests: New file.
29891         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29892         * tests/unicase/test-predicate-part1.h: New file, derived from
29893         tests/unictype/test-predicate-part1.h.
29894         * tests/unicase/test-predicate-part2.h: New file, same as
29895         tests/unictype/test-predicate-part2.h.
29896
29897         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29898         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29899         (output_casing_properties): New function.
29900         (main): Call it.
29901         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29902         * lib/unicase/cased.c: Include unictype/bitmap.h.
29903         (uc_is_cased): Define through a bitmap lookup.
29904         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29905         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29906         (uc_is_case_ignorable): Define through a bitmap lookup.
29907         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29908         lib/unictype/bitmap.h.
29909         (Depends-on): Add inline. Clean up.
29910         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29911         lib/unictype/bitmap.h.
29912         (Depends-on): Add inline. Clean up.
29913         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29914         recognition.
29915         * tests/unicase/test-u16-tolower.c (main): Likewise.
29916         * tests/unicase/test-u32-tolower.c (main): Likewise.
29917
29918 2009-06-30  Bruno Haible  <bruno@clisp.org>
29919
29920         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29921         * lib/unicase/u16-casemap.c: Likewise.
29922         * lib/unicase/u32-casemap.c: Likewise.
29923
29924 2009-06-29  Bruno Haible  <bruno@clisp.org>
29925
29926         Define u32_casefold as a wrapper around u32_ct_casefold.
29927         * lib/unicase/u32-casefold.c: Update.
29928         * modules/unicase/u32-casefold (Depends-on): Add
29929         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29930         unicase/empty-suffix-context. Clean up.
29931
29932         Define u16_casefold as a wrapper around u16_ct_casefold.
29933         * lib/unicase/u16-casefold.c: Update.
29934         * modules/unicase/u16-casefold (Depends-on): Add
29935         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29936         unicase/empty-suffix-context. Clean up.
29937
29938         Define u8_casefold as a wrapper around u8_ct_casefold.
29939         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29940         * lib/unicase/u8-casefold.c: Update.
29941         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29942         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29943
29944         Define u32_totitle as a wrapper around u32_ct_totitle.
29945         * lib/unicase/u32-totitle.c: Update.
29946         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29947         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29948
29949         Define u16_totitle as a wrapper around u16_ct_totitle.
29950         * lib/unicase/u16-totitle.c: Update.
29951         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29953
29954         Define u8_totitle as a wrapper around u8_ct_totitle.
29955         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29956         functions.
29957         (FUNC): Delegate to U_CT_TOTITLE.
29958         * lib/unicase/u8-totitle.c: Update.
29959         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29961
29962         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29963         invocation.
29964         * modules/unicase/u32-tolower (Depends-on): Add
29965         unicase/empty-prefix-context, unicase/empty-suffix-context.
29966
29967         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29968         invocation.
29969         * modules/unicase/u16-tolower (Depends-on): Add
29970         unicase/empty-prefix-context, unicase/empty-suffix-context.
29971
29972         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29973         * modules/unicase/u8-tolower (Depends-on): Add
29974         unicase/empty-prefix-context, unicase/empty-suffix-context.
29975
29976         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29977         invocation.
29978         * modules/unicase/u32-toupper (Depends-on): Add
29979         unicase/empty-prefix-context, unicase/empty-suffix-context.
29980
29981         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29982         invocation.
29983         * modules/unicase/u16-toupper (Depends-on): Add
29984         unicase/empty-prefix-context, unicase/empty-suffix-context.
29985
29986         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29987         * modules/unicase/u8-toupper (Depends-on): Add
29988         unicase/empty-prefix-context, unicase/empty-suffix-context.
29989
29990         New module 'unicase/u32-ct-casefold'.
29991         * lib/unicase/u32-ct-casefold.c: New file.
29992         * modules/unicase/u32-ct-casefold: New file.
29993
29994         New module 'unicase/u16-ct-casefold'.
29995         * lib/unicase/u16-ct-casefold.c: New file.
29996         * modules/unicase/u16-ct-casefold: New file.
29997
29998         New module 'unicase/u8-ct-casefold'.
29999         * lib/unicase/u8-ct-casefold.c: New file.
30000         * lib/unicase/u-ct-casefold.h: New file, derived from
30001         lib/unicase/u-casefold.h.
30002         * modules/unicase/u8-ct-casefold: New file.
30003
30004         New module 'unicase/u32-ct-totitle'.
30005         * lib/unicase/u32-ct-totitle.c: New file.
30006         * modules/unicase/u32-ct-totitle: New file.
30007
30008         New module 'unicase/u16-ct-totitle'.
30009         * lib/unicase/u16-ct-totitle.c: New file.
30010         * modules/unicase/u16-ct-totitle: New file.
30011
30012         New module 'unicase/u8-ct-totitle'.
30013         * lib/unicase/u8-ct-totitle.c: New file.
30014         * lib/unicase/u-ct-totitle.h: New file, derived from
30015         lib/unicase/u-totitle.h.
30016         * modules/unicase/u8-ct-totitle: New file.
30017
30018         New module 'unicase/u32-ct-tolower'.
30019         * lib/unicase/u32-ct-tolower.c: New file.
30020         * modules/unicase/u32-ct-tolower: New file.
30021
30022         New module 'unicase/u16-ct-tolower'.
30023         * lib/unicase/u16-ct-tolower.c: New file.
30024         * modules/unicase/u16-ct-tolower: New file.
30025
30026         New module 'unicase/u8-ct-tolower'.
30027         * lib/unicase/u8-ct-tolower.c: New file.
30028         * modules/unicase/u8-ct-tolower: New file.
30029
30030         New module 'unicase/u32-ct-toupper'.
30031         * lib/unicase/u32-ct-toupper.c: New file.
30032         * modules/unicase/u32-ct-toupper: New file.
30033
30034         New module 'unicase/u16-ct-toupper'.
30035         * lib/unicase/u16-ct-toupper.c: New file.
30036         * modules/unicase/u16-ct-toupper: New file.
30037
30038         New module 'unicase/u8-ct-toupper'.
30039         * lib/unicase/u8-ct-toupper.c: New file.
30040         * modules/unicase/u8-ct-toupper: New file.
30041
30042         Add context arguments to u*_casemap functions.
30043         * lib/unicase/unicasemap.h: Include unicase.h.
30044         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30045         suffix_context arguments.
30046         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30047         functions.
30048         (FUNC): Add prefix_context and suffix_context arguments. Use
30049         uc_is_cased and uc_is_case_ignorable.
30050         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30051         * lib/unicase/u16-casemap.c: Likewise.
30052         * lib/unicase/u32-casemap.c: Likewise.
30053         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30054         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30055         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30056         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30057         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30058         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30059
30060         New module 'unicase/u32-suffix-context'.
30061         * lib/unicase/u32-suffix-context.c: New file.
30062         * modules/unicase/u32-suffix-context: New file.
30063
30064         New module 'unicase/u16-suffix-context'.
30065         * lib/unicase/u16-suffix-context.c: New file.
30066         * modules/unicase/u16-suffix-context: New file.
30067
30068         New module 'unicase/u8-suffix-context'.
30069         * lib/unicase/u8-suffix-context.c: New file.
30070         * lib/unicase/u-suffix-context.h: New file.
30071         * modules/unicase/u8-suffix-context: New file.
30072
30073         New module 'unicase/empty-suffix-context'.
30074         * lib/unicase/empty-suffix-context.c: New file.
30075         * modules/unicase/empty-suffix-context: New file.
30076
30077         New module 'unicase/u32-prefix-context'.
30078         * lib/unicase/u32-prefix-context.c: New file.
30079         * modules/unicase/u32-prefix-context: New file.
30080
30081         New module 'unicase/u16-prefix-context'.
30082         * lib/unicase/u16-prefix-context.c: New file.
30083         * modules/unicase/u16-prefix-context: New file.
30084
30085         New module 'unicase/u8-prefix-context'.
30086         * lib/unicase/u8-prefix-context.c: New file.
30087         * lib/unicase/u-prefix-context.h: New file.
30088         * lib/unicase/context.h: New file.
30089         * modules/unicase/u8-prefix-context: New file.
30090
30091         New module 'unicase/empty-prefix-context'.
30092         * lib/unicase/empty-prefix-context.c: New file.
30093         * modules/unicase/empty-prefix-context: New file.
30094
30095         New module 'unicase/ignorable'.
30096         * lib/unicase/ignorable.c: New file.
30097         * modules/unicase/ignorable: New file.
30098
30099         New module 'unicase/cased'.
30100         * lib/unicase/caseprop.h: New file.
30101         * lib/unicase/cased.c: New file.
30102         * modules/unicase/cased: New file.
30103
30104         New functions for case mapping of substrings.
30105         * lib/unicase.h (casing_prefix_context_t): New type.
30106         (unicase_empty_prefix_context): New variable.
30107         (u8_casing_prefix_context, u16_casing_prefix_context,
30108         u32_casing_prefix_context, u8_casing_prefixes_context,
30109         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30110         declarations.
30111         (casing_suffix_context_t): New type.
30112         (unicase_empty_suffix_context): New variable.
30113         (u8_casing_suffix_context, u16_casing_suffix_context,
30114         u32_casing_suffix_context, u8_casing_suffixes_context,
30115         u16_casing_suffixes_context, u32_casing_suffixes_context,
30116         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30117         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30118         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30119         declarations.
30120
30121 2009-06-28  Jim Meyering  <meyering@redhat.com>
30122
30123         boostrap: indent only with spaces
30124         * build-aux/bootstrap: Indent only with spaces, never TABs.
30125
30126         bootstrap: split long lines
30127         * build-aux/bootstrap: Keep line length < 80.
30128
30129         bootstrap: sync from coreutils
30130         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30131         just as autoreconf does.  Verify a list of prerequisite
30132         package-name,version-number pairs if defined in bootstrap.conf.
30133         Refer to README-prereq, if prerequisites are not satisfied.
30134
30135 2009-06-27  Eric Blake  <ebb9@byu.net>
30136
30137         tests: add test for bogus NULL definition
30138         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30139         * tests/test-stdlib.c: Likewise.
30140         * tests/test-string.c: Likewise.
30141         * tests/test-locale.c: Likewise.
30142         * tests/test-unistd.c: Likewise.
30143         * modules/stdio-tests (Depends-on): Add verify.
30144         * modules/stdlib-tests (Depends-on): Likewise.
30145         * modules/string-tests (Depends-on): Likewise.
30146         * modules/locale-tests (Depends-on): Likewise.
30147         * modules/unistd-tests (Depends-on): Likewise.
30148
30149 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30150
30151         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30152         self-explaining comment.
30153         * m4/selinux-selinux-h: Update serial.
30154         (gl_LIBSELINUX): New macro, adding a warning for missing development
30155         packages to code extracted from...
30156         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30157         Add warning for missing development packages here, too.
30158
30159 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30160
30161         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30162
30163 2009-06-25  Eric Blake  <ebb9@byu.net>
30164
30165         version-etc: fix regression
30166         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30167         gcc.
30168         (version_etc): Use it, to catch bugs with trailing NULL.
30169         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30170         (version_etc_va): Fix logic bug.
30171         * modules/version-etc-tests: Add test.
30172         * tests/test-version-etc.c: New file.
30173         * tests/test-version-etc.sh: Likewise.
30174
30175 2009-06-25  Sam Steingold  <sds@gnu.org>
30176
30177         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30178         mbtowc declaration.
30179
30180 2009-06-25  Eric Blake  <ebb9@byu.net>
30181
30182         fpurge: migrate into <stdio.h>
30183         * lib/fpurge.h: Delete...
30184         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30185         * lib/fpurge.c (fpurge): Change declaring header.
30186         * modules/fpurge (Files): Drop deleted file.
30187         (Depends-on): Add stdio.
30188         (configure.ac): Set witness.
30189         * modules/stdio (Makefile.am): Support fpurge macros.
30190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30191         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30192         * lib/fflush.c: Update client.
30193         * tests/test-fpurge.c: Likewise.
30194         * NEWS: Mention the change.
30195
30196 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30197
30198         * lib/argp-version-etc.c (program_authors): Add const
30199         qualifier.
30200         * lib/version-etc.c: Fix typos in the comments.
30201         * modules/argp-version-etc: Depends on version-etc.
30202
30203 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30204
30205         argp-version-etc: new module.
30206
30207         * lib/argp-version-etc.c: New file.
30208         * lib/argp-version-etc.h: New file.
30209         * modules/argp-version-etc: New file.
30210         * modules/argp-version-etc-tests: New file.
30211         * tests/test-argp-version-etc.c: New test.
30212         * tests/test-argp-version-etc-1.sh: New test.
30213
30214 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30215
30216         Provide additional interfaces and documentation for version-etc
30217         module.
30218
30219         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30220         interfaces.
30221         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30222         prototypes.
30223
30224 2009-06-24  Bruno Haible  <bruno@clisp.org>
30225
30226         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30227         HAVE_LIB${NAME} macro.
30228         Reported by Sam Steingold <sds@gnu.org>.
30229
30230 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30231
30232         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30233         needed.
30234
30235 2009-06-21  Bruno Haible  <bruno@clisp.org>
30236
30237         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30238         work.
30239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30240         together with LIB${NAME}, LTLIB${NAME}.
30241         Reported by Sam Steingold <sds@gnu.org>.
30242
30243 2009-06-20  Jim Meyering  <meyering@redhat.com>
30244
30245         tests: make sc_require_test_exit_idiom more generic
30246         * top/maint.mk (Exit_witness_file): New overridable variable.
30247         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30248         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30249
30250 2009-06-19  Jim Meyering  <meyering@redhat.com>
30251
30252         hash: reverse order of src/dst parameters in an internal interface
30253         * lib/hash.c (transfer_entries): Reverse order of parameters to
30254         put DST before SRC.  Adjust callers.
30255
30256         tests: test-hash: avoid wholesale duplication
30257         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30258         Instead, use a loop and add a single conditional.
30259
30260         tests: test-hash: allow seed selection via a command line argument
30261         * tests/test-hash.c (get_seed): New function.
30262         (main): Use it.
30263
30264 2009-06-19  Eric Blake  <ebb9@byu.net>
30265
30266         hash: avoid memory leak on allocation failure
30267         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30268         failure.  Factor repeated algorithm...
30269         (transfer_entries): ...into new helper routine.
30270         (hash_delete): React to hash_rehash return value.
30271
30272         hash: reduce memory pressure in hash_rehash no-op case
30273         * lib/hash.c (next_prime): Avoid overflow.
30274         (hash_initialize): Factor bucket size computation...
30275         (compute_bucket_size): ...into new helper function.
30276         (hash_rehash): Use new function and open coding to reduce memory
30277         pressure, and avoid a memory leak in USE_OBSTACK code.
30278         Reported by Jim Meyering.
30279
30280 2009-06-18  Eric Blake  <ebb9@byu.net>
30281
30282         hash: make rotation more obvious
30283         * modules/hash (Depends-on): Add bitrotate and stdint.
30284         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30285         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30286         (SIZE_MAX): Rely on headers for definition.
30287         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30288         (raw_hasher): Use rotr_sz.
30289         Suggested by Jim Meyering.
30290
30291         hash: fix memory leak in last patch
30292         * lib/hash.c (hash_rehash): Avoid memory leak.
30293
30294         hash: avoid no-op rehashing
30295         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30296
30297         hash: provide default callback functions
30298         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30299         (hash_initialize): Use them as defaults.
30300         * tests/test-hash.c (main): Test this.
30301
30302         hash: minor optimization
30303         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30304         when possible.
30305         (hash_initialize): Document this promise.
30306         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30307         * tests/test-hash.c (hash_compare_strings): Test this.
30308
30309 2009-06-18  Bruno Haible  <bruno@clisp.org>
30310
30311         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30312         going to be replaced anyway.
30313
30314 2009-06-18  Bruno Haible  <bruno@clisp.org>
30315
30316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30317         in one place.
30318         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30319         be replaced anyway.
30320
30321 2009-06-18  Eric Blake  <ebb9@byu.net>
30322
30323         hash: check for resize before insertion
30324         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30325         threshold before insertion, so that a pathological hash_rehash
30326         that fills every bucket can still trigger another rehash.
30327
30328 2009-06-18  Jim Meyering  <meyering@redhat.com>
30329
30330         hash-tests: add a loop around the small tests
30331         * tests/test-hash.c (main): Repeat small tests with selected
30332         small initial table sizes.
30333
30334 2009-06-17  Eric Blake  <ebb9@byu.net>
30335
30336         hash: minor cleanups
30337         * lib/hash.h (hash_entry): Make opaque, by moving...
30338         * lib/hash.c (hash_entry): ...here.
30339         (hash_insert): Clarify restrictions on what can be inserted.
30340         (hash_get_next): Clarify when it is safe to remove an element
30341         during traversal.
30342         (check_tuning): Skip verification when tuning is known safe.
30343         (hash_initialize): Clarify restrictions on tuning.
30344
30345 2009-06-17  Jim Meyering  <jim@meyering.net>
30346         and Eric Blake  <ebb9@byu.net>
30347
30348         hash-tests: new module
30349         * modules/hash-tests: New file.
30350         * tests/test-hash.c: New file.
30351
30352 2009-06-17  Eric Blake  <ebb9@byu.net>
30353
30354         strstr-simple: document new module
30355         * MODULES.html.sh: Document new module.
30356
30357         strstr, strcasestr: replace on platforms with broken memchr
30358         * modules/strstr: Split into...
30359         * modules/strstr-simple: ...new module that does not care about
30360         performance, but does care about glibc bug.
30361         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30362         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30363         if platform memchr is broken, per Debian bug 521737.
30364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30365         memchr.
30366         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30367         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30368         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30369         * modules/mountlist (Depends-on): Add strstr-simple.
30370         * modules/gen-uni-tables (Depends-on): Likewise.
30371         * modules/argz (Depends-on): Add strstr.
30372
30373 2009-06-17  Bruno Haible  <bruno@clisp.org>
30374
30375         * modules/posix_spawn-internal (Depends-on): Add errno.
30376
30377 2009-06-17  Bruno Haible  <bruno@clisp.org>
30378
30379         Define missing ESTALE on Interix 3.5.
30380         * lib/errno.in.h (ESTALE): Assign a value if missing.
30381         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30382         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30383         missing.
30384         * doc/posix-headers/errno.texi: Mention the Interix bug.
30385         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30386
30387 2009-06-15  Eric Blake  <ebb9@byu.net>
30388
30389         memchr, memchr2: add valgrind exception
30390         * lib/memchr.valgrind: New file.
30391         * lib/memchr2.valgrind: New file.
30392         * modules/memchr (Files): Distribute valgrind file.
30393         * modules/memchr2 (Files): Likewise.
30394
30395         docs: memchr is no longer obsolete
30396         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30397         * lib/string.in.h (memchr): Simplify logic.
30398
30399 2009-06-14  Jim Meyering  <meyering@redhat.com>
30400
30401         link-follow: fix the "checking..." message to not mention trailing slash
30402         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30403         never considered trailing slashes.
30404
30405 2009-06-14  Bruno Haible  <bruno@clisp.org>
30406
30407         * m4/memchr.m4: Mention also the bug on IA-64.
30408         * doc/posix-functions/memchr.texi: Likewise.
30409
30410 2009-06-12  Eric Blake  <ebb9@byu.net>
30411
30412         memchr: detect broken x86_64 and alpha implementations
30413         * modules/memchr-tests (Depends-on): Move mmap detection...
30414         * modules/memchr (Depends-on): ...here.
30415         (configure.ac): Set indicator.
30416         * lib/string.in.h (memchr): Declare replacement.
30417         * modules/string (Makefile.am): Trigger replacement.
30418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30419         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30420         bugs.
30421         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30422         * modules/getpagesize (License): Relax license.
30423
30424 2009-06-11  Bruno Haible  <bruno@clisp.org>
30425
30426         * lib/idpriv.h: Add more references.
30427
30428 2009-06-08  Bruno Haible  <bruno@clisp.org>
30429
30430         Tests for module 'idpriv-droptemp'.
30431         * modules/idpriv-droptemp-tests: New file.
30432         * tests/test-idpriv-droptemp.sh: New file.
30433         * tests/test-idpriv-droptemp.su.sh: New file.
30434         * tests/test-idpriv-droptemp.c: New file.
30435
30436         New module 'idpriv-droptemp'.
30437         * lib/idpriv-droptemp.c: New file.
30438         * modules/idpriv-droptemp: New file.
30439
30440 2009-06-08  Bruno Haible  <bruno@clisp.org>
30441
30442         Tests for module 'idpriv-drop'.
30443         * modules/idpriv-drop-tests: New file.
30444         * tests/test-idpriv-drop.sh: New file.
30445         * tests/test-idpriv-drop.su.sh: New file.
30446         * tests/test-idpriv-drop.c: New file.
30447
30448         New module 'idpriv-drop'.
30449         * lib/idpriv.h: New file.
30450         * lib-idpriv-drop.c: New file.
30451         * m4/idpriv.m4: New file.
30452         * modules/idpriv-drop: New file.
30453
30454 2009-06-08  Bruno Haible  <bruno@clisp.org>
30455
30456         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30457         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30458         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30459         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30460         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30461         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30462         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30463
30464 2009-06-08  Eric Blake  <ebb9@byu.net>
30465
30466         test-strstr: use memory fence, when possible
30467         * tests/test-strstr.c (main): Use memory fence, in order to be
30468         more likely to trigger Debian bug 521737.
30469         * modules/strstr-tests (Files): Pull in additional files.
30470
30471         memchr: no longer obsolete, for wider field testing
30472         * modules/memchr (Status, Notice): Delete, this module is no
30473         longer obsolete.
30474         * modules/vasnprintf (Depends-on): Add memchr.
30475
30476 2009-06-07  Jim Meyering  <meyering@redhat.com>
30477
30478         hash: declare some functions with the warn_unused_result attribute
30479         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30480
30481 2009-06-07  Bruno Haible  <bruno@clisp.org>
30482
30483         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30484         Reported by Eric Blake.
30485
30486 2009-06-06  Eric Blake  <ebb9@byu.net>
30487
30488         test-alignof: fix typo with long double
30489         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30490         compiler error.
30491
30492 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30493
30494         Escape non-texinfo { and }s.
30495         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30496         markup error.
30497
30498 2009-06-04  Jim Meyering  <meyering@redhat.com>
30499
30500         gitlog-to-changelog: don't infloop on an empty commit log
30501         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30502         Reported by Boris Petersen <transacid@centerim.org>.
30503
30504 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30505
30506         version-etc: extend for packagers
30507         Add three new configure options, intended for packagers:
30508           --with-packager="packager name"
30509           --with-packager-version="packager-specific version"
30510           --with-packager-bug-reports="packager bug reporting"
30511         An example with coreutils:
30512           $ ./configure \
30513             --with-packager=Gentoo \
30514             --with-packager-bug-report=http://bugs.gentoo.org/ \
30515             --with-packager-version="patchset 1.6"
30516           $ ./src/ls --version | head -n2
30517           ls (GNU coreutils) 7.1-dirty
30518           Packaged by Gentoo (patchset 1.6)
30519         Note that the bug reporting info via --help doesn't show up because
30520         coreutils uses its own custom emit_bug_reporting_address() implementation
30521         in src/system.h.  If it didn't, it'd look like:
30522           $ ./src/ls --help | tail -n4
30523           Report bugs to <bug-coreutils@gnu.org>.
30524           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30525           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30526           General help using GNU software: <http://www.gnu.org/gethelp/>.
30527         * lib/version-etc.c: Print new information, if provided.
30528         * m4/version-etc.m4: New file.
30529         * modules/version-etc (Files): Add m4/version-etc.m4.
30530         (configure.ac): Add gl_VERSION_ETC.
30531
30532 2009-05-31  Bruno Haible  <bruno@clisp.org>
30533
30534         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30535         and 'int64_t'.
30536         * modules/alignof-tests (Dependencies): Add stdint.
30537         Reported by Eric Blake.
30538
30539 2009-05-31  Bruno Haible  <bruno@clisp.org>
30540
30541         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30542         restriction due to compiler bugs.
30543         Reported by Eric Blake.
30544
30545 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30546             Bruno Haible  <bruno@clisp.org>
30547
30548         Fix test-alignof failure.
30549         * lib/alignof.h (alignof_slot): New macro.
30550         (alignof_type): New macro, with the same semantics as the previous
30551         'alignof'.
30552         (alignof): Alias to alignof_slot.
30553         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30554         check that the results are usable as constant expressions.
30555
30556 2009-05-31  Bruno Haible  <bruno@clisp.org>
30557
30558         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30559         * tests/test-memchr.c (main): Check that memchr does not read past the
30560         first occurrence of the byte.
30561         * tests/test-strstr.c (main): Update comment.
30562         Suggested by Eric Blake.
30563
30564 2009-05-30  Bruno Haible  <bruno@clisp.org>
30565
30566         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30567         detail how to use dumpbin.
30568         Reported by David Byron <dbyron@dbyron.com>.
30569
30570 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30571
30572         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30573
30574 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30575
30576         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30577
30578 2009-05-28  Bruno Haible  <bruno@clisp.org>
30579
30580         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30581         build-aux/ files.
30582
30583 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30584
30585         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30586
30587 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30588
30589         * gnulib-tool (sed_transform_main_lib_file)
30590         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30591         regexps.
30592
30593 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30594
30595         * tests/test-strstr.c: Add another self-test.
30596         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30597         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30598
30599 2009-05-23  Bruno Haible  <bruno@clisp.org>
30600
30601         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30602         change.
30603
30604 2009-05-21  Bruno Haible  <bruno@clisp.org>
30605
30606         Simplify use of mode_t varargs.
30607         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30608         uses 'mode_t' or 'int'.
30609         * lib/openat.c (openat): Likewise.
30610         * lib/open-safer.c (open_safer): Likewise.
30611         * m4/mode_t.m4: New file.
30612         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30613         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30615         * modules/open (Files): Add m4/mode_t.m4.
30616         * modules/openat (Files): Likewise.
30617         * modules/fcntl-safer (Files): Likewise.
30618         Suggested by Eric Blake.
30619
30620 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30621
30622         * doc/glibc-functions/fallocate.texi: New file.
30623         * doc/gnulib.texi: Include it.
30624
30625 2009-05-21  Eric Blake  <ebb9@byu.net>
30626             Bruno Haible  <bruno@clisp.org>
30627
30628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30629         invocations.
30630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30631
30632 2009-05-21  Eric Blake  <ebb9@byu.net>
30633             Bruno Haible  <bruno@clisp.org>
30634
30635         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30636         include_next. Fix of 2008-11-20 commit.
30637         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30638         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30639         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30640         NEXT_MATH_H.
30641         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30642         instead of NEXT_MATH_H.
30643
30644 2009-05-21  Bruno Haible  <bruno@clisp.org>
30645
30646         Avoid redefinition warnings for SIZE_MAX.
30647         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30648         Reported by Simon Josefsson.
30649
30650 2009-05-21  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30653         AC_CACHE_VAL.
30654
30655 2009-05-20  Bruno Haible  <bruno@clisp.org>
30656
30657         Make zeroptr.h work on mingw.
30658         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30659         mprotect.
30660         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30661         * modules/memchr2-tests (configure.ac): Likewise.
30662         * modules/memcmp-tests (configure.ac): Likewise.
30663         * modules/memmem-tests (configure.ac): Likewise.
30664         * modules/memrchr-tests (configure.ac): Likewise.
30665         Reported by Simon Josefsson.
30666
30667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30668
30669         * tests/test-glob.c: Include string.h for strcmp prototype.
30670
30671 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30672
30673         * modules/getdelim (Depends-on): Add explicit stdint, although it
30674         was implicitly already pulled in via realloc-posix.
30675         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30676
30677 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30678
30679         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30680         G. Christensen" <tgc@jupiterrise.com>.
30681         * m4/sys_socket_h.m4: Check for sa_family_t.
30682         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30683         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30684         * tests/test-sys_socket.c: Check that sa_family_t works.
30685
30686 2009-05-18  Eric Blake  <ebb9@byu.net>
30687
30688         maint.mk: allow gnulib_dir in VPATH build
30689         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30690
30691 2009-05-15  Jim Meyering  <meyering@redhat.com>
30692
30693         maint.mk: Give gnulib_dir a default definition.
30694         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30695         Thus, most packages no longer need to specify this variable in cfg.mk
30696
30697 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30698
30699         rename.m4: fix typos that would make non-mingw cross-configure fail
30700         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30701
30702 2009-05-13  Eric Blake  <ebb9@byu.net>
30703
30704         mmap-anon: avoid out-of-order autoconf expansion
30705         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30706         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30707         * modules/memchr-tests (Depends-on): Add extensions.
30708         * modules/memchr2-tests (Depends-on): Add extensions.
30709         * modules/memcmp-tests (Depends-on): Add extensions.
30710         * modules/memmem-tests (Depends-on): Add extensions.
30711         * modules/memrchr-tests (Depends-on): Add extensions.
30712
30713 2009-05-13  Bruno Haible  <bruno@clisp.org>
30714
30715         Make some tests ISO C 99 compliant.
30716         * tests/zerosize-ptr.h: New file.
30717         * tests/test-memchr.c: Include zerosize-ptr.h.
30718         (main): Use a zero-size object pointer instead of NULL.
30719         * tests/test-memchr2.c: Include zerosize-ptr.h.
30720         (main): Use a zero-size object pointer instead of NULL.
30721         * tests/test-memcmp.c: Include zerosize-ptr.h.
30722         (main): Use a zero-size object pointer instead of NULL.
30723         * tests/test-memmem.c: Include zerosize-ptr.h.
30724         (main): Use a zero-size object pointer instead of NULL.
30725         * tests/test-memrchr.c: Include zerosize-ptr.h.
30726         (main): Use a zero-size object pointer instead of NULL.
30727         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30728         m4/mmap-anon.m4.
30729         (Depends-on): Add getpagesize.
30730         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30731         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30732         m4/mmap-anon.m4.
30733         (Depends-on): Add getpagesize.
30734         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30735         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30736         m4/mmap-anon.m4.
30737         (Depends-on): Add getpagesize.
30738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30739         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30740         m4/mmap-anon.m4.
30741         (Depends-on): Add getpagesize.
30742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30743         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30744         m4/mmap-anon.m4.
30745         (Depends-on): Add getpagesize.
30746         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30747
30748 2009-05-12  Bruno Haible  <bruno@clisp.org>
30749
30750         Tests for module 'alignof'.
30751         * modules/alignof-tests: New file.
30752         * tests/test-alignof.c: New file.
30753
30754 2009-05-12  Bruno Haible  <bruno@clisp.org>
30755
30756         Fix alignof macro.
30757         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30758         vendor compilers that are always correct.
30759
30760 2009-05-12  Bruno Haible  <bruno@clisp.org>
30761
30762         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30763         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30764         not whether its fully works.
30765
30766 2009-05-12  Bruno Haible  <bruno@clisp.org>
30767
30768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30769
30770 2009-05-12  Jim Meyering  <meyering@redhat.com>
30771
30772         * top/maint.mk: Adjust backslash alignment.
30773
30774 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30775
30776         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30777
30778 2009-05-11  Eric Blake  <ebb9@byu.net>
30779
30780         argp: avoid undefined behavior
30781         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30782         macros.
30783
30784 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30785
30786         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30787         user.name to prevent git commit from complaining.
30788
30789 2009-05-10  Bruno Haible  <bruno@clisp.org>
30790
30791         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30792         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30793         it rewrites every file name only once.
30794         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30795
30796 2009-05-08  Bruno Haible  <bruno@clisp.org>
30797
30798         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30799         instead of 'max'.
30800
30801 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30802
30803         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30804         sockaddr_storage test.
30805
30806 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30807
30808         * modules/sys_socket (Makefile.am): Substitute
30809         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30810         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30811         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30812         * tests/test-sys_socket.c: Check sockaddr_storage.
30813
30814 2009-05-08  Bruno Haible  <bruno@clisp.org>
30815
30816         New module 'alignof'.
30817         * lib/alignof.h: New file.
30818         * modules/alignof: New file.
30819
30820 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30821             Bruno Haible  <bruno@clisp.org>
30822
30823         Fix test-file-has-acl on FreeBSD.
30824         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30825         mask is implicitly added.
30826         * tests/test-file-has-acl.c: Include <signal.h>.
30827         (main): Terminate the test after 5 seconds.
30828         * modules/acl-tests (configure.ac): Check for alarm function.
30829
30830 2009-05-04  Bruno Haible  <bruno@clisp.org>
30831
30832         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30834         * modules/errno (configure.ac): Drop AC_REQUIRE.
30835         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30836         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30837
30838 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30839
30840         * modules/glob-tests: New module.
30841         * tests/test-glob.c: Add.
30842
30843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30844
30845         * modules/fnmatch-tests: New module.
30846         * tests/test-fnmatch.c: Add.
30847
30848 2009-05-04  Eric Blake  <ebb9@byu.net>
30849
30850         maint: make the new no-submodule-changes rule VPATH-safe
30851         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30852
30853 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30854             Bruno Haible  <bruno@clisp.org>
30855
30856         acl: Fix infinite loop on FreeBSD.
30857         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30858         of return value from acl_get_entry.
30859         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30860         Likewise.
30861
30862 2009-05-03  Bruno Haible  <bruno@clisp.org>
30863
30864         * lib/acl-internal.h (acl_entries): Clarify return value.
30865         * lib/acl_entries.c (acl_entries): Likewise.
30866
30867 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30868
30869         Bug fix in acl module.
30870         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30871
30872 2009-05-03  Bruno Haible  <bruno@clisp.org>
30873
30874         Create gperf-generated file in the source dir, not in the build dir.
30875         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30876         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30877         * modules/unicase/locale-language (unicase/locale-languages.h):
30878         Likewise.
30879         * modules/unicase/special-casing (unicase/special-casing-table.h):
30880         Likewise.
30881         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30882         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30883         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30884         Reported by Ralf Wildenhues.
30885
30886 2009-05-03  Bruno Haible  <bruno@clisp.org>
30887
30888         * modules/fnmatch (Description, configure.ac): Taken from
30889         fnmatch-posix.
30890         * modules/fnmatch-posix: Turn into a symbolic reference to the
30891         'fnmatch' module, and deprecate.
30892         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30893
30894 2009-05-03  Bruno Haible  <bruno@clisp.org>
30895
30896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30897         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30898         Reported by Ralf Wildenhues.
30899
30900 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30901
30902         * m4/fnmatch.m4: Fix fnmatch re-define.
30903
30904 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30905
30906         priv-set: new module and tests; adapt write-any-file
30907         * lib/priv-set.c: New file.
30908         * lib/priv-set.h: New file.
30909         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30910         * lib/write-any-file.c: Simplify by using priv-set module.
30911         * m4/priv-set.m4: New file.
30912         * modules/priv-set: New file.
30913         * modules/unlinkdir: Add dependency on priv-set module.
30914         * modules/write-any-file: Likewise.
30915
30916         Tests for module 'priv-set'.
30917         * modules/priv-set-tests: New file.
30918         * tests/test-priv-set.c: New file.
30919
30920 2009-05-03  Jim Meyering  <meyering@redhat.com>
30921             Bruno Haible  <bruno@clisp.org>
30922
30923         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30924         use the converted UTF-8 variant of the name instead.
30925
30926 2009-05-03  Jim Meyering  <meyering@redhat.com>
30927
30928         tests: tighten some getdate tests
30929         * tests/test-getdate.c (main): Tighten tests: require equality,
30930         not just greater than.  Set TZ envvar to UTC0.
30931
30932 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30933
30934         getdate: correctly interpret "next monday" when run on a Monday
30935         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30936         that e.g., "next tues" (when run on a tuesday) results in a date
30937         that is one week in the future, and not today's date.
30938         I.e., add a week when the wday is the same as the current one.
30939         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30940         and earlier by Martin Bernreuther and Jan Minář.
30941         * tests/test-getdate.c (main): Check that "next DAY" is always in
30942         the future and that "last DAY" is always in the past.
30943
30944 2009-05-02  Jim Meyering  <meyering@redhat.com>
30945
30946         build: ensure that a release build fails when a submodule is unclean
30947         * top/maint.mk (no-submodule-changes): New rule.
30948         (alpha beta major): Depend on it.
30949
30950 2009-05-02  Bruno Haible  <bruno@clisp.org>
30951
30952         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30953         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30954         shell variable gl_fnmatch_required to detect which variant is
30955         requested.
30956         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30957         gl_FUNC_FNMATCH_POSIX.
30958         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30959         exclude fnmatch-posix.
30960
30961 2009-05-02  Bruno Haible  <bruno@clisp.org>
30962
30963         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30964         * modules/mbsrtowcs (License): Change to LGPLv2+.
30965         * modules/strnlen1 (License): Likewise.
30966         Reported by Simon Josefsson.
30967
30968 2009-05-02  Bruno Haible  <bruno@clisp.org>
30969
30970         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30971         "cross".
30972         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30973         gnulib-tool was called with option --source-base=lib.
30974
30975 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30976
30977         Use automake *-local hooks without commands, for extensibility.
30978         * modules/localcharset (Makefile.am): Rename install-exec-local
30979         rule to install-exec-localcharset, and make it a prerequisite of
30980         install-exec-local.  Likewise, rename the uninstall-local rule to
30981         uninstall-localcharset, and make it a prerequisite of the former.
30982
30983 2009-05-01  Bruno Haible  <bruno@clisp.org>
30984
30985         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30986         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30987         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30989         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30990         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30991         m4/locale-zh.m4, m4/codeset.m4.
30992
30993         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30994         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30995         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30996         m4/locale-zh.m4.
30997
30998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30999         REPLACE_WCRTOMB if mbstate_t must be replaced.
31000         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31001         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31002
31003 2009-05-01  Bruno Haible  <bruno@clisp.org>
31004
31005         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31006         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31007         dngettext, dcngettext, textdomain, bindtextdomain,
31008         bind_textdomain_codeset): Undefine before redefining.
31009
31010 2009-04-30  Bruno Haible  <bruno@clisp.org>
31011
31012         Fix bug introduced on 2009-04-25.
31013         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31014         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31015         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31016         is defined.
31017         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31018         is defined.
31019         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31020         is defined.
31021         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31022
31023 2009-04-28  Bruno Haible  <bruno@clisp.org>
31024
31025         Comment tweaks.
31026         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31027         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31028         * lib/unicase.h (u*_casexfrm): Likewise.
31029         Reported by Paolo Bonzini.
31030
31031 2009-04-28  Bruno Haible  <bruno@clisp.org>
31032
31033         Fix a compilation error.
31034         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31035         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31036         Reported by Jim Meyering.
31037
31038 2009-04-27  Bruno Haible  <bruno@clisp.org>
31039
31040         New module 'libunistring'.
31041         * modules/libunistring: New file.
31042         * m4/libunistring.m4: New file.
31043         * MODULES.html.sh (Unicode string functions): Add it.
31044
31045 2009-04-27  Eric Blake  <ebb9@byu.net>
31046
31047         maint.mk: allow package-specific header to provide <config.h>
31048         * top/maint.mk (sc_require_config_h): New variable.
31049         (sc_require_config_h, sc_require_config_h_first): Use it.
31050
31051 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31052
31053         * top/maint.mk (sc_avoid_if_before_free): Except
31054         useless-if-before-free script.
31055
31056 2009-04-27  Eric Blake  <ebb9@byu.net>
31057
31058         maintainer-makefile: depend on all required helper scripts
31059         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31060         useless-if-before-free.
31061         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31062         version, rather than assuming gnulib checkout is available.
31063         Reported by Simen Josefsson.
31064
31065 2009-04-26  Bruno Haible  <bruno@clisp.org>
31066
31067         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31068         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31069         "../" or "..".
31070
31071 2009-04-26  Bruno Haible  <bruno@clisp.org>
31072
31073         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31074         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31075         AC_LIB_HAVE_LINKFLAGS.
31076
31077 2009-04-26  Bruno Haible  <bruno@clisp.org>
31078
31079         Simplify calling convention of u*_conv_from_encoding.
31080         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31081         u32_conv_from_encoding): Expect a resultbuf argument and return the
31082         result directly as a pointer.
31083         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31084         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31085         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31086         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31087         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31088         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31089         Update.
31090         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31091         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31092         * lib/vasnprintf.c (VASNPRINTF): Update.
31093         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31094         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31095         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31096         * NEWS: Mention the change.
31097
31098 2009-04-26  Bruno Haible  <bruno@clisp.org>
31099
31100         Simplify calling convention of u*_conv_to_encoding.
31101         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31102         u32_conv_to_encoding): Expect a resultbuf argument and return the
31103         result directly as a pointer.
31104         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31105         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31106         freeing scaled_offsets if mem_iconveha failed.
31107         * lib/unicase/u-casexfrm.h (FUNC): Update.
31108         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31109         * lib/vasnprintf.c (VASNPRINTF): Update.
31110         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31111         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31112         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31113         * NEWS: Mention the change.
31114
31115 2009-04-26  Bruno Haible  <bruno@clisp.org>
31116
31117         Avoid test failures on AIX and OSF/1.
31118         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31119         malloc(0).
31120         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31121         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31122         Likewise.
31123         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31124         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31125         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31126         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31127         * doc/posix-functions/malloc.texi: Document the portability problem
31128         related to malloc(0).
31129
31130 2009-04-26  Bruno Haible  <bruno@clisp.org>
31131
31132         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31133         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31134         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31135
31136 2009-04-25  Bruno Haible  <bruno@clisp.org>
31137
31138         Avoid link error when creating a namespace clean library.
31139         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31140         as macro with arguments if already defined as an alias.
31141         * lib/signbitf.c (gl_signbitf): Don't undefine.
31142         * lib/signbitd.c (gl_signbitd): Don't undefine.
31143         * lib/signbitl.c (gl_signbitl): Don't undefine.
31144
31145 2009-04-25  Jim Meyering  <meyering@redhat.com>
31146
31147         vc-list-files: fix another quoting bug
31148         * build-aux/vc-list-files: Avoid sed backslash expansion
31149         of pathological directory names.
31150
31151 2009-04-25  Eric Blake  <ebb9@byu.net>
31152
31153         vc-list-files: fix shell quoting error
31154         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31155         timestamp.
31156
31157 2009-04-25  Jim Meyering  <meyering@redhat.com>
31158
31159         vc-list-files: restore lost functionality with subdir argument
31160         * build-aux/vc-list-files: When given a non-"." sub-directory
31161         argument, substitute the $dir/ prefix back onto each resulting name.
31162         Otherwise, coreutils' root_tests check would fail.
31163
31164 2009-04-24  Eric Blake  <ebb9@byu.net>
31165
31166         vc-list-files: ignore git symlinks
31167         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31168         than ls-files, to ignore git symlinks.
31169
31170         maint.mk: import improvements from m4
31171         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31172         (move_if_change): Delete unused macro.
31173         (news-date-check, vc-diff-check): Support VPATH builds.
31174         (announcement): Likewise.  Split --bootstrap-tools list...
31175         (boostrap-tools): ...into separate list, which can be overridden
31176         in cfg.mk.
31177         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31178         requiring dependency on useless-if-before-free module.
31179         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31180         Support VPATH builds.
31181
31182 2009-04-24  Jim Meyering  <meyering@redhat.com>
31183
31184         maint.mk: remove coreutils-specific rules and variables
31185         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31186         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31187         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31188
31189         maint.mk: remove obsolete rule
31190         * top/maint.mk (rel-check): Remove rule.
31191         (WGET, WGETFLAGS): Remove now-unused variables.
31192
31193 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31194
31195         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31196         consistency.
31197
31198         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31199         '$(PATH_SEPARATOR)' instead of ':'.
31200
31201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31202
31203         * lib/getopt1.c (main): Use 'const' for static array.
31204
31205 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31206
31207         * top/maint.mk: Sync with coreutils.
31208         * NEWS: Explain incompatibilities.
31209
31210 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31211             Bruno Haible  <bruno@clisp.org>
31212
31213         Fix cross-compilation results.
31214         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31215         statement, as third argument of AC_TRY_RUN.
31216         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31218         Likewise.
31219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31220         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31221         Likewise.
31222         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31223         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31224         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31225
31226 2009-04-20  Bruno Haible  <bruno@clisp.org>
31227
31228         Avoid test failure on mingw.
31229         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31230
31231 2009-04-20  Bruno Haible  <bruno@clisp.org>
31232
31233         Avoid compilation error on mingw.
31234         * modules/localename-tests (Depends-on): Add locale.
31235
31236 2009-04-19  Bruno Haible  <bruno@clisp.org>
31237
31238         Support for building a shared library on Windows platforms.
31239         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31240         (main): Test the presence of UNINORM_NFC here.
31241         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31242         (main): Test the presence of UNINORM_NFD here.
31243         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31244         (main): Test the presence of UNINORM_NFKC here.
31245         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31246         (main): Test the presence of UNINORM_NFKD here.
31247
31248 2009-04-19  Bruno Haible  <bruno@clisp.org>
31249
31250         Avoid a compiler warning.
31251         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31252         Change type of variable 'sequence'.
31253
31254 2009-04-19  Bruno Haible  <bruno@clisp.org>
31255
31256         * modules/configmake (Makefile.am): When the contents of configmake.h
31257         does not change, arrange to preserve its modification time.
31258
31259 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31260
31261         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31262         gettext domain.
31263
31264 2009-04-16  Jim Meyering  <meyering@redhat.com>
31265
31266         useless-if-before-free: improve conversion code
31267         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31268         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31269
31270 2009-04-14  Bruno Haible  <bruno@clisp.org>
31271
31272         * modules/fcntl (Depends-on): Add extensions.
31273         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31274
31275 2009-04-12  Ben Pfaff  <blp@gnu.org>
31276
31277         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31278         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31279
31280 2009-03-20  Ben Pfaff  <blp@gnu.org>
31281
31282         Make rename replace existing destinations on Windows.
31283         * m4/rename.m4: Add test for Mingw.
31284         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31285         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31286         * doc/posix-functions/rename.texi: Document.
31287
31288 2009-04-10  Bruno Haible  <bruno@clisp.org>
31289
31290         New include file "iconveh.h".
31291         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31292         * lib/striconveh.h: Include it.
31293         (enum iconv_ilseq_handler): Remove definition.
31294         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31295         striconveh.h.
31296         * lib/striconveha.c: Include striconveh.h.
31297         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31298         * modules/striconveh (Files): Add lib/iconveh.h.
31299         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31300         lib/striconveh.h.
31301
31302 2009-04-10  Bruno Haible  <bruno@clisp.org>
31303
31304         * lib/uniconv.h: Update comment.
31305
31306 2009-04-10  Bruno Haible  <bruno@clisp.org>
31307
31308         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31309         always.
31310         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31311         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31312         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31313         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31314         "unistring-notinline.h", so that the function gets defined always.
31315         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31316         * lib/unistr/u8-uctomb.c: Likewise.
31317         * lib/unistr/u16-mbtouc.c: Likewise.
31318         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31319         * lib/unistr/u16-uctomb.c: Likewise.
31320         * lib/unistr/u32-mbtouc.c: Likewise.
31321         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31322         * lib/unistr/u32-uctomb.c: Likewise.
31323
31324 2009-04-10  Bruno Haible  <bruno@clisp.org>
31325
31326         Mark 'utime' obsolete.
31327         * modules/utime (Status, Notice): New sections.
31328         Suggested by Jim Meyering.
31329
31330         Fix cross-compile guess for utime test.
31331         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31332         autoconf.
31333         * doc/posix-functions/utime.texi: Give more precisions.
31334         Reported by Jan <ipif@ymail.com>.
31335
31336 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31337
31338         filevercmp: correct today's change
31339         * lib/filevercmp.c: Also handle coreutils' test inputs.
31340         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31341
31342         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31343         for reporting it.
31344         * lib/filevercmp.c: Special handle for "", "." and "..".
31345         * tests/test-filevercmp.c: Enlarge the set suite.
31346
31347 2009-04-07  Jim Meyering  <meyering@redhat.com>
31348
31349         useless-if-before-free: show how to remove braced useless free, too
31350         * build-aux/useless-if-before-free: still only in a comment, though.
31351
31352 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31353
31354         maint.mk: import changes to syntax-check macros from coreutils
31355         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31356         Use them in the relevant macros.
31357
31358 2009-04-06  Bruno Haible  <bruno@clisp.org>
31359
31360         Fix unportable use of bit-fields.
31361         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31362         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31363         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31364
31365 2009-04-06  Bruno Haible  <bruno@clisp.org>
31366
31367         Avoid test failures on AIX and OSF/1.
31368         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31369         that malloc(0) = NULL.
31370         * tests/unicase/test-u8-tolower.c (check): Likewise.
31371         * tests/unicase/test-u8-totitle.c (check): Likewise.
31372         * tests/unicase/test-u8-toupper.c (check): Likewise.
31373         * tests/unicase/test-u16-casefold.c (check): Likewise.
31374         * tests/unicase/test-u16-tolower.c (check): Likewise.
31375         * tests/unicase/test-u16-totitle.c (check): Likewise.
31376         * tests/unicase/test-u16-toupper.c (check): Likewise.
31377         * tests/unicase/test-u32-casefold.c (check): Likewise.
31378         * tests/unicase/test-u32-tolower.c (check): Likewise.
31379         * tests/unicase/test-u32-totitle.c (check): Likewise.
31380         * tests/unicase/test-u32-toupper.c (check): Likewise.
31381         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31382         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31383         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31384         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31385         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31386         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31387         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31388         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31389         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31390         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31391         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31392         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31393
31394 2009-04-05  Bruno Haible  <bruno@clisp.org>
31395
31396         Work around an autoconf limitation.
31397         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31398         comment line if it would be longer than 3 KB.
31399
31400 2009-04-05  Bruno Haible  <bruno@clisp.org>
31401
31402         Avoid test failure with libiconv-1.13.
31403         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31404         of the expected test results.
31405
31406 2009-04-05  Bruno Haible  <bruno@clisp.org>
31407
31408         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31409         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31410         that it should be installed.
31411
31412 2009-04-05  Bruno Haible  <bruno@clisp.org>
31413
31414         * gnulib-tool: New option --copy-file.
31415         (func_usage): Document it.
31416         (func_dest_tmpfilename): Moved out of func_import.
31417         (func_add_file, func_update_file): New functions, extracted from
31418         func_import.
31419         (func_import): Update.
31420
31421 2009-04-05  Karl Berry  <karl@gnu.org>
31422
31423         * README: prominently mention gnulib-tool.
31424         Rearrange sections so getting the code is near the top.
31425
31426 2009-04-05  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/unicase.h: Mention u*_cmp2.
31429         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31430         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31431         * lib/unicase/ulc-casecmp.c: Likewise.
31432         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31433         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31434         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31435         unistr/u8-cmp.
31436         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31437         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31438         unistr/u16-cmp.
31439         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31440         unistr/u32-cmp.
31441
31442         * lib/uninorm.h: Mention u*_cmp2.
31443         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31444         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31445         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31446         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31447         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31448         unistr/u8-cmp.
31449         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31450         unistr/u16-cmp.
31451         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31452         unistr/u32-cmp.
31453
31454         New module 'unistr/u32-cmp2'.
31455         * lib/unistr/u32-cmp2.c: New file.
31456         * modules/unistr/u32-cmp2: New file.
31457
31458         New module 'unistr/u16-cmp2'.
31459         * lib/unistr/u16-cmp2.c: New file.
31460         * modules/unistr/u16-cmp2: New file.
31461
31462         New module 'unistr/u8-cmp2'.
31463         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31464         * lib/unistr/u8-cmp2.c: New file.
31465         * lib/unistr/u-cmp2.h: New file.
31466         * modules/unistr/u8-cmp2: New file.
31467
31468 2009-04-05  Bruno Haible  <bruno@clisp.org>
31469
31470         * lib/unictype.h (uc_property_is_valid): New macro.
31471         * tests/unictype/test-pr_byname.c (main): Use it.
31472
31473         * lib/unistr.h: Doc fixes.
31474         * lib/uniconv.h: Doc fixes.
31475         * lib/unictype.h: Doc fixes.
31476
31477 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31478
31479         Port coreutils 7.2 to Solaris 8.
31480
31481         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31482         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31483         for Solaris 8.  This is a bit of a hack, as it means it's the
31484         caller's responsibility to add -lnsl if needed, but most likely it
31485         won't be needed since only getaddrinfo uses this and getaddrinfo
31486         isn't needed on Solaris 8.
31487
31488         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31489         problem to Solaris 8 encountered with coreutils 7.2, which
31490         resulted in a message "fnmatch.c:292: warning: passing argument 4
31491         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31492         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31493
31494 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31495
31496         * m4/ld-version-script.m4: Add FIXME comment.
31497
31498 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31499
31500         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31501         SOVERSION variable.
31502
31503 2009-04-02  Bruno Haible  <bruno@clisp.org>
31504
31505         * Makefile (info, html, dvi, pdf): Combine the rules.
31506         Suggested by Jim Meyering.
31507
31508 2009-04-01  Bruno Haible  <bruno@clisp.org>
31509
31510         * Makefile (info, html, dvi, pdf): New targets.
31511         Reported by Reuben Thomas <rrt@sc3d.org>.
31512
31513 2009-04-01  Bruno Haible  <bruno@clisp.org>
31514
31515         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31516         can be put into PATH.
31517         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31518
31519 2009-04-01  Bruno Haible  <bruno@clisp.org>
31520
31521         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31522
31523 2009-04-01  Bruno Haible  <bruno@clisp.org>
31524
31525         Rename module 'visibility'.
31526         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31527         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31528         * doc/gnulib.texi: Update.
31529         * MODULES.html.sh (Misc): Update.
31530         * NEWS: Mention the change.
31531
31532 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31533
31534         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31535         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31536         Eric Blake <ebb9@byu.net> for review.
31537         * MODULES.html.sh: Add lib-msvc-compat.
31538         * doc/gnulib.texi: Link to new section.
31539         * m4/ld-output-def.m4: New file.
31540         * doc/ld-output-def.texi: New file.
31541
31542 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31543
31544         Rename ld-version-script to lib-symbol-versions.  Suggested by
31545         Bruno Haible <bruno@clisp.org>.
31546         * modules/ld-version-script: Renamed to lib-symbol-versions.
31547         * doc/ld-version-script.texi: Fix module name.
31548         * MODULES.html.sh: Add lib-symbol-versions.
31549
31550 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31551
31552         * modules/u64-tests: New file.
31553         * tests/test-u64.c: New file.
31554
31555 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31556
31557         * MODULES.html.sh: Mention u64.
31558         * modules/u64: New module.
31559         * modules/crypto/sha512: Depend on u64 module instead of providing
31560         u64.h.
31561
31562 2009-03-27  Eric Blake  <ebb9@byu.net>
31563
31564         test-strerror: make debugging EAI_SYSTEM easier
31565         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31566         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31567         failure was EAI_SYSTEM.
31568
31569 2009-03-25  Bruno Haible  <bruno@clisp.org>
31570
31571         Fix a problem with --enable-relocatable on Solaris 7.
31572         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31573         since 2008-02-24.
31574
31575 2009-03-25  Eric Blake  <ebb9@byu.net>
31576
31577         test-sockets: avoid gcc warning
31578         * tests/test-sockets.c (main): Silence compiler warning.
31579
31580 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31581
31582         New modules nproc, pthread, contributed by Glen Lenker.
31583
31584         * MODULES.html.sh: Add pthread, nproc.
31585         * lib/nproc.c: New file.
31586         * lib/nproc.h: New file.
31587         * lib/pthread.in.h: New file.
31588         * m4/pthread.m4: New file.
31589         * modules/nproc: New file.
31590         * modules/pthread: New file.
31591
31592 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31593
31594         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31595         New variable.
31596
31597 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31598
31599         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31600         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31601         * tests/test-filevercmp.c: Add tests for backup suffixes.
31602
31603 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31604
31605         * modules/stdlib (Depends-on): Add stdint, needed when defining
31606         struct random_data on, for example, HP-UX 10.20.  Reported by
31607         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31608
31609 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31610
31611         * lib/readline.c (readline): Call fflush on stdout after printing
31612         prompt.
31613
31614 2009-03-20  Bruno Haible  <bruno@clisp.org>
31615
31616         Remove dependency from 'close' module to -lws2_32 on native Windows.
31617         * lib/close-hook.h: New file.
31618         * lib/close-hook.c: New file.
31619         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31620         w32sock.h.
31621         (_gl_close_fd_maybe_socket): Remove function.
31622         (rpl_close): Invoke execute_all_close_hooks instead of
31623         _gl_close_fd_maybe_socket.
31624         * lib/sockets.c: Include close-hook.h, w32sock.h.
31625         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31626         (close_sockets_hook): New variable.
31627         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31628         (gl_sockets_cleanup): Unregister it.
31629         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31630         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31631         * modules/close-hook: New file.
31632         * modules/close (Files): Remove lib/w32sock.h.
31633         (Depends-on): Add close-hook.
31634         (Link): Remove section.
31635         * modules/sockets (Files): Add lib/w32sock.h.
31636         (Depends-on): Add close-hook.
31637         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31638         invocation.
31639         * NEWS: Mention that LIB_CLOSE is gone.
31640
31641 2009-03-23  Eric Blake  <ebb9@byu.net>
31642
31643         signal-tests: test previous patch
31644         * tests/test-signal.c: New file.
31645         * modules/signal-tests: Likewise.
31646
31647         signal.h: always support 'volatile sig_atomic_t'
31648         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31649         (gl_SIGNAL_H_DEFAULTS): Add a default.
31650         * modules/signal (Makefile.am): Substitute if needed.
31651         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31652         users can blindly add volatile.
31653         * doc/posix-headers/signal.texi (signal.h): Document it.
31654         Reported by Matthew Woehlke.
31655
31656 2009-03-23  Jim Meyering  <meyering@redhat.com>
31657
31658         pathmax: PATH_MAX: use pathconf only when available
31659         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31660         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31661         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31662         This avoids a link failure in a PSP cross-compilation environment
31663         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31664
31665         * lib/vasnprintf.c (divide): Fix typo in comment.
31666
31667 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31668
31669         * gnulib-tool (func_filter_filelist): Fix comment.
31670
31671 2009-03-20  Bruno Haible  <bruno@clisp.org>
31672
31673         Make sockets.h self-contained.
31674         * lib/sockets.c: Include sockets.h first.
31675         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31676
31677 2009-03-19  Eric Blake  <ebb9@byu.net>
31678
31679         doc: mention more functions added in cygwin 1.7.0
31680         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31681         addition.
31682         * doc/posix-functions/log2f.texi: Likewise.
31683
31684 2009-03-19  Jim Meyering  <meyering@redhat.com>
31685
31686         fsusage: avoid syntax error due to statement-before-declaration
31687         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31688         after all declarations.  Reported by Matthew Woehlke in
31689         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31690
31691 2009-03-18  Eric Blake  <ebb9@byu.net>
31692
31693         build-aux/compile: sync from automake
31694         * build-aux/compile: New file, from automake.
31695         * config/srclist.txt: Mention build-aux/compile.
31696
31697 2009-03-17  Bruno Haible  <bruno@clisp.org>
31698
31699         * lib/git-merge-changelog.c: Fix typo in comment.
31700         Reported by Reuben Thomas <rrt@sc3d.org>.
31701
31702 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31703
31704         * m4/regex.m4: update and improve help for
31705         --without-included-regex.
31706
31707 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31708
31709         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31710         failure on missing include files.
31711
31712 2009-03-17  Eric Blake  <ebb9@byu.net>
31713
31714         doc: mention more functions added in cygwin 1.7.0
31715         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31716         addition.
31717         * doc/posix-functions/fwscanf.texi: Likewise.
31718         * doc/posix-functions/swprintf.texi: Likewise.
31719         * doc/posix-functions/swscanf.texi: Likewise.
31720         * doc/posix-functions/vfwprintf.texi: Likewise.
31721         * doc/posix-functions/vfwscanf.texi: Likewise.
31722         * doc/posix-functions/vswprintf.texi: Likewise.
31723         * doc/posix-functions/vswscanf.texi: Likewise.
31724         * doc/posix-functions/vwprintf.texi: Likewise.
31725         * doc/posix-functions/vwscanf.texi: Likewise.
31726         * doc/posix-functions/wcscasecmp.texi: Likewise.
31727         * doc/posix-functions/wcsdup.texi: Likewise.
31728         * doc/posix-functions/wcsftime.texi: Likewise.
31729         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31730         * doc/posix-functions/wprintf.texi: Likewise.
31731         * doc/posix-functions/wscanf.texi: Likewise.
31732         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31733
31734 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31735
31736         maint.mk: really add $(AM_MAKEFLAGS)
31737         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31738         was inadvertently omitted in the last commit.
31739         Spotted by Bruno Haible.
31740
31741         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31742         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31743         $(AM_MAKEFLAGS)' rather than plain `make'.
31744
31745         gnulib-tool: execute $MAKE not make
31746         * gnulib-tool: Default $MAKE to 'make'.
31747         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31748         than make.  Initialize $MAKE in the do-autobuild script.
31749
31750         gnulib-tool: use $MAKE not make in generated files
31751         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31752         make, in generated files.  Initialize $MAKE in the do-autobuild
31753         script.
31754
31755         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31756
31757         GNUmakefile: disable parallelism only for multiple, recursive targets
31758         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31759         additions in the Makefile.
31760         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31761         by Automake.
31762         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31763         are listed on the command line and at least one of them is
31764         listed in $(ALL_RECURSIVE_TARGETS).
31765
31766 2009-03-14  Bruno Haible  <bruno@clisp.org>
31767
31768         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31769         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31770         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31771         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31772         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31773         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31774         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31775         unistr/u8-uctomb.
31776         * modules/unistr/u8-strchr (Depends-on): Likewise.
31777         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31778         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31779         unistr/u16-uctomb.
31780         * modules/unistr/u16-strchr (Depends-on): Likewise.
31781         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31782
31783 2009-03-12  Bruno Haible  <bruno@clisp.org>
31784
31785         Work around select() bug on Interix 3.5.
31786         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31787         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31788         * m4/select.m4: New file.
31789         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31790         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31791         * modules/select (Files): Add m4/select.m4.
31792         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31793         * modules/nanosleep (Depends-on): Add select.
31794         * modules/poll (Depends-on): Likewise.
31795         * doc/posix-functions/select.texi: Mention the Interix bug.
31796         Reported by Markus Duft <mduft@gentoo.org>.
31797
31798         * lib/select.c: Renamed from lib/winsock-select.c.
31799         * modules/select (Files): Add lib/select.c, remove
31800         lib/winsock-select.c.
31801         (configure.ac): Update.
31802
31803 2009-03-12  Jim Meyering  <meyering@redhat.com>
31804
31805         avoid gcc warnings about unused macro definitions
31806         * lib/readtokens.c (STREQ): Remove unused definition.
31807         * lib/xmalloc.c (SIZE_MAX): Likewise.
31808         * lib/openat-die.c (N_): Likewise.
31809         * lib/mountlist.c (SIZE_MAX): Remove definition.
31810         Instead, include <stdint.h>.
31811         * lib/readutmp.c: Likewise.
31812         * modules/readutmp (Depends-on): Add stdint.
31813         * modules/mountlist (Depends-on): Add stdint.
31814         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31815
31816 2009-03-10  Bruno Haible  <bruno@clisp.org>
31817
31818         Tests for module 'mbmemcasecoll'.
31819         * modules/mbmemcasecoll-tests: New file.
31820         * tests/test-mbmemcasecoll1.sh: New file.
31821         * tests/test-mbmemcasecoll2.sh: New file.
31822         * tests/test-mbmemcasecoll3.sh: New file.
31823         * tests/test-mbmemcasecoll.c: New file.
31824
31825         New module 'mbmemcasecoll'.
31826         * lib/mbmemcasecoll.h: New file.
31827         * lib/mbmemcasecoll.c: New file.
31828         * modules/mbmemcasecoll: New file.
31829
31830         * tests/test-mbmemcasecmp.h: New file, extracted from
31831         tests/test-mbmemcasecmp.c.
31832         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31833         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31834         (main): Update.
31835         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31836
31837 2009-03-09  Bruno Haible  <bruno@clisp.org>
31838
31839         Tests for module 'mbmemcasecmp'.
31840         * modules/mbmemcasecmp-tests: New file.
31841         * tests/test-mbmemcasecmp1.sh: New file.
31842         * tests/test-mbmemcasecmp2.sh: New file.
31843         * tests/test-mbmemcasecmp3.sh: New file.
31844         * tests/test-mbmemcasecmp.c: New file.
31845
31846         New module 'mbmemcasecmp'.
31847         * lib/mbmemcasecmp.h: New file.
31848         * lib/mbmemcasecmp.c: New file.
31849         * modules/mbmemcasecmp: New file.
31850
31851 2009-03-09  Bruno Haible  <bruno@clisp.org>
31852
31853         Tests for module 'unicase/ulc-casecoll'.
31854         * modules/unicase/ulc-casecoll-tests: New file.
31855         * tests/unicase/test-ulc-casecoll1.sh: New file.
31856         * tests/unicase/test-ulc-casecoll2.sh: New file.
31857         * tests/unicase/test-ulc-casecoll.c: New file.
31858
31859         New module 'unicase/ulc-casecoll'.
31860         * lib/unicase.h (ulc_casecoll): New declaration.
31861         * lib/unicase/ulc-casecoll.c: New file.
31862         * modules/unicase/ulc-casecoll: New file.
31863
31864         New module 'unicase/ulc-casexfrm'.
31865         * lib/unicase.h (ulc_casexfrm): New declaration.
31866         * lib/unicase/ulc-casexfrm.c: New file.
31867         * modules/unicase/ulc-casexfrm: New file.
31868
31869 2009-03-09  Bruno Haible  <bruno@clisp.org>
31870
31871         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31872         invocations.
31873
31874         * m4/mbscasecmp.m4: Remove file.
31875         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31876         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31877
31878         * m4/mbscasestr.m4: Remove file.
31879         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31880         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31881
31882         * m4/mbschr.m4: Remove file.
31883         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31884         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31885
31886         * m4/mbscspn.m4: Remove file.
31887         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31888         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31889
31890         * m4/mbslen.m4: Remove file.
31891         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31892         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31893
31894         * m4/mbsncasecmp.m4: Remove file.
31895         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31896         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31897
31898         * m4/mbsnlen.m4: Remove file.
31899         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31900         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31901
31902         * m4/mbspbrk.m4: Remove file.
31903         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31904         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31905
31906         * m4/mbspcasecmp.m4: Remove file.
31907         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31908         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31909
31910         * m4/mbsrchr.m4: Remove file.
31911         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31912         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31913
31914         * m4/mbssep.m4: Remove file.
31915         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31916         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31917
31918         * m4/mbsspn.m4: Remove file.
31919         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31920         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31921
31922         * m4/mbsstr.m4: Remove file.
31923         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31924         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31925
31926         * m4/mbstok_r.m4: Remove file.
31927         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31928         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31929
31930         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31931
31932         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31933         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31934
31935         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31936
31937 2009-03-08  Bruno Haible  <bruno@clisp.org>
31938
31939         Tests for module 'unicase/ulc-casecmp'.
31940         * modules/unicase/ulc-casecmp-tests: New file.
31941         * tests/unicase/test-ulc-casecmp1.sh: New file.
31942         * tests/unicase/test-ulc-casecmp2.sh: New file.
31943         * tests/unicase/test-ulc-casecmp.c: New file.
31944
31945         New module 'unicase/ulc-casecmp'.
31946         * lib/unicase.h (ulc_casecmp): New declaration.
31947         * lib/unicase/ulc-casecmp.c: New file.
31948         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31949         'const SRC_UNIT *'.
31950         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31951         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31952         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31953         * modules/unicase/ulc-casecmp: New file.
31954
31955         Tests for module 'unicase/u32-is-cased'.
31956         * modules/unicase/u32-is-cased-tests: New file.
31957         * tests/unicase/test-u32-is-cased.c: New file.
31958
31959         Tests for module 'unicase/u16-is-cased'.
31960         * modules/unicase/u16-is-cased-tests: New file.
31961         * tests/unicase/test-u16-is-cased.c: New file.
31962
31963         Tests for module 'unicase/u8-is-cased'.
31964         * modules/unicase/u8-is-cased-tests: New file.
31965         * tests/unicase/test-u8-is-cased.c: New file.
31966         * tests/unicase/test-is-cased.h: New file.
31967
31968         New module 'unicase/u32-is-cased'.
31969         * lib/unicase/u32-is-cased.c: New file.
31970         * modules/unicase/u32-is-cased: New file.
31971
31972         New module 'unicase/u16-is-cased'.
31973         * lib/unicase/u16-is-cased.c: New file.
31974         * modules/unicase/u16-is-cased: New file.
31975
31976         New module 'unicase/u8-is-cased'.
31977         * lib/unicase/u8-is-cased.c: New file.
31978         * lib/unicase/u-is-cased.h: New file.
31979         * modules/unicase/u8-is-cased: New file.
31980
31981         Tests for module 'unicase/u32-is-casefolded'.
31982         * modules/unicase/u32-is-casefolded-tests: New file.
31983         * tests/unicase/test-u32-is-casefolded.c: New file.
31984
31985         Tests for module 'unicase/u16-is-casefolded'.
31986         * modules/unicase/u16-is-casefolded-tests: New file.
31987         * tests/unicase/test-u16-is-casefolded.c: New file.
31988
31989         Tests for module 'unicase/u8-is-casefolded'.
31990         * modules/unicase/u8-is-casefolded-tests: New file.
31991         * tests/unicase/test-u8-is-casefolded.c: New file.
31992         * tests/unicase/test-is-casefolded.h: New file.
31993
31994         New module 'unicase/u32-is-casefolded'.
31995         * lib/unicase/u32-is-casefolded.c: New file.
31996         * modules/unicase/u32-is-casefolded: New file.
31997
31998         New module 'unicase/u16-is-casefolded'.
31999         * lib/unicase/u16-is-casefolded.c: New file.
32000         * modules/unicase/u16-is-casefolded: New file.
32001
32002         New module 'unicase/u8-is-casefolded'.
32003         * lib/unicase/u8-is-casefolded.c: New file.
32004         * modules/unicase/u8-is-casefolded: New file.
32005
32006         Tests for module 'unicase/u32-is-titlecase'.
32007         * modules/unicase/u32-is-titlecase-tests: New file.
32008         * tests/unicase/test-u32-is-titlecase.c: New file.
32009
32010         Tests for module 'unicase/u16-is-titlecase'.
32011         * modules/unicase/u16-is-titlecase-tests: New file.
32012         * tests/unicase/test-u16-is-titlecase.c: New file.
32013
32014         Tests for module 'unicase/u8-is-titlecase'.
32015         * modules/unicase/u8-is-titlecase-tests: New file.
32016         * tests/unicase/test-u8-is-titlecase.c: New file.
32017         * tests/unicase/test-is-titlecase.h: New file.
32018
32019         New module 'unicase/u32-is-titlecase'.
32020         * lib/unicase/u32-is-titlecase.c: New file.
32021         * modules/unicase/u32-is-titlecase: New file.
32022
32023         New module 'unicase/u16-is-titlecase'.
32024         * lib/unicase/u16-is-titlecase.c: New file.
32025         * modules/unicase/u16-is-titlecase: New file.
32026
32027         New module 'unicase/u8-is-titlecase'.
32028         * lib/unicase/u8-is-titlecase.c: New file.
32029         * modules/unicase/u8-is-titlecase: New file.
32030
32031         Tests for module 'unicase/u32-is-lowercase'.
32032         * modules/unicase/u32-is-lowercase-tests: New file.
32033         * tests/unicase/test-u32-is-lowercase.c: New file.
32034
32035         Tests for module 'unicase/u16-is-lowercase'.
32036         * modules/unicase/u16-is-lowercase-tests: New file.
32037         * tests/unicase/test-u16-is-lowercase.c: New file.
32038
32039         Tests for module 'unicase/u8-is-lowercase'.
32040         * modules/unicase/u8-is-lowercase-tests: New file.
32041         * tests/unicase/test-u8-is-lowercase.c: New file.
32042         * tests/unicase/test-is-lowercase.h: New file.
32043
32044         New module 'unicase/u32-is-lowercase'.
32045         * lib/unicase/u32-is-lowercase.c: New file.
32046         * modules/unicase/u32-is-lowercase: New file.
32047
32048         New module 'unicase/u16-is-lowercase'.
32049         * lib/unicase/u16-is-lowercase.c: New file.
32050         * modules/unicase/u16-is-lowercase: New file.
32051
32052         New module 'unicase/u8-is-lowercase'.
32053         * lib/unicase/u8-is-lowercase.c: New file.
32054         * modules/unicase/u8-is-lowercase: New file.
32055
32056         Tests for module 'unicase/u32-is-uppercase'.
32057         * modules/unicase/u32-is-uppercase-tests: New file.
32058         * tests/unicase/test-u32-is-uppercase.c: New file.
32059
32060         Tests for module 'unicase/u16-is-uppercase'.
32061         * modules/unicase/u16-is-uppercase-tests: New file.
32062         * tests/unicase/test-u16-is-uppercase.c: New file.
32063
32064         Tests for module 'unicase/u8-is-uppercase'.
32065         * modules/unicase/u8-is-uppercase-tests: New file.
32066         * tests/unicase/test-u8-is-uppercase.c: New file.
32067         * tests/unicase/test-is-uppercase.h: New file.
32068
32069         New module 'unicase/u32-is-uppercase'.
32070         * lib/unicase/u32-is-uppercase.c: New file.
32071         * modules/unicase/u32-is-uppercase: New file.
32072
32073         New module 'unicase/u16-is-uppercase'.
32074         * lib/unicase/u16-is-uppercase.c: New file.
32075         * modules/unicase/u16-is-uppercase: New file.
32076
32077         New module 'unicase/u8-is-uppercase'.
32078         * lib/unicase/u8-is-uppercase.c: New file.
32079         * modules/unicase/u8-is-uppercase: New file.
32080
32081         New module 'unicase/u32-is-invariant'.
32082         * lib/unicase/u32-is-invariant.c: New file.
32083         * modules/unicase/u32-is-invariant: New file.
32084
32085         New module 'unicase/u16-is-invariant'.
32086         * lib/unicase/u16-is-invariant.c: New file.
32087         * modules/unicase/u16-is-invariant: New file.
32088
32089         New module 'unicase/u8-is-invariant'.
32090         * lib/unicase/u8-is-invariant.c: New file.
32091         * lib/unicase/invariant.h: New file.
32092         * lib/unicase/u-is-invariant.h: New file.
32093         * modules/unicase/u8-is-invariant: New file.
32094
32095         Tests for module 'unicase/u32-casecoll'.
32096         * modules/unicase/u32-casecoll-tests: New file.
32097         * tests/unicase/test-u32-casecoll.c: New file.
32098
32099         Tests for module 'unicase/u16-casecoll'.
32100         * modules/unicase/u16-casecoll-tests: New file.
32101         * tests/unicase/test-u16-casecoll.c: New file.
32102
32103         Tests for module 'unicase/u8-casecoll'.
32104         * modules/unicase/u8-casecoll-tests: New file.
32105         * tests/unicase/test-u8-casecoll.c: New file.
32106
32107         New module 'unicase/u32-casecoll'.
32108         * lib/unicase/u32-casecoll.c: New file.
32109         * modules/unicase/u32-casecoll: New file.
32110
32111         New module 'unicase/u16-casecoll'.
32112         * lib/unicase/u16-casecoll.c: New file.
32113         * modules/unicase/u16-casecoll: New file.
32114
32115         New module 'unicase/u8-casecoll'.
32116         * lib/unicase/u8-casecoll.c: New file.
32117         * lib/unicase/u-casecoll.h: New file.
32118         * modules/unicase/u8-casecoll: New file.
32119
32120         New module 'unicase/u32-casexfrm'.
32121         * lib/unicase/u32-casexfrm.c: New file.
32122         * modules/unicase/u32-casexfrm: New file.
32123
32124         New module 'unicase/u16-casexfrm'.
32125         * lib/unicase/u16-casexfrm.c: New file.
32126         * modules/unicase/u16-casexfrm: New file.
32127
32128         New module 'unicase/u8-casexfrm'.
32129         * lib/unicase/u8-casexfrm.c: New file.
32130         * lib/unicase/u-casexfrm.h: New file.
32131         * modules/unicase/u8-casexfrm: New file.
32132
32133         Tests for module 'unicase/u32-casecmp'.
32134         * modules/unicase/u32-casecmp-tests: New file.
32135         * tests/unicase/test-u32-casecmp.c: New file.
32136
32137         Tests for module 'unicase/u16-casecmp'.
32138         * modules/unicase/u16-casecmp-tests: New file.
32139         * tests/unicase/test-u16-casecmp.c: New file.
32140
32141         Tests for module 'unicase/u8-casecmp'.
32142         * modules/unicase/u8-casecmp-tests: New file.
32143         * tests/unicase/test-u8-casecmp.c: New file.
32144         * tests/unicase/test-casecmp.h: New file.
32145
32146         New module 'unicase/u32-casecmp'.
32147         * lib/unicase/u32-casecmp.c: New file.
32148         * modules/unicase/u32-casecmp: New file.
32149
32150         New module 'unicase/u16-casecmp'.
32151         * lib/unicase/u16-casecmp.c: New file.
32152         * modules/unicase/u16-casecmp: New file.
32153
32154         New module 'unicase/u8-casecmp'.
32155         * lib/unicase/u8-casecmp.c: New file.
32156         * lib/unicase/u-casecmp.h: New file.
32157         * modules/unicase/u8-casecmp: New file.
32158
32159         Tests for module 'unicase/u32-casefold'.
32160         * modules/unicase/u32-casefold-tests: New file.
32161         * tests/unicase/test-u32-casefold.c: New file.
32162
32163         Tests for module 'unicase/u16-casefold'.
32164         * modules/unicase/u16-casefold-tests: New file.
32165         * tests/unicase/test-u16-casefold.c: New file.
32166
32167         Tests for module 'unicase/u8-casefold'.
32168         * modules/unicase/u8-casefold-tests: New file.
32169         * tests/unicase/test-u8-casefold.c: New file.
32170
32171         New module 'unicase/u32-casefold'.
32172         * lib/unicase/u32-casefold.c: New file.
32173         * modules/unicase/u32-casefold: New file.
32174
32175         New module 'unicase/u16-casefold'.
32176         * lib/unicase/u16-casefold.c: New file.
32177         * modules/unicase/u16-casefold: New file.
32178
32179         New module 'unicase/u8-casefold'.
32180         * lib/unicase/u8-casefold.c: New file.
32181         * lib/unicase/u-casefold.h: New file.
32182         * modules/unicase/u8-casefold: New file.
32183
32184         New module 'unicase/tocasefold'.
32185         * lib/unicase/casefold.h: New file.
32186         * lib/unicase/tocasefold.c: New file.
32187         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32188         * modules/unicase/tocasefold: New file.
32189
32190         Tests for module 'unicase/u32-totitle'.
32191         * modules/unicase/u32-totitle-tests: New file.
32192         * tests/unicase/test-u32-totitle.c: New file.
32193
32194         Tests for module 'unicase/u16-totitle'.
32195         * modules/unicase/u16-totitle-tests: New file.
32196         * tests/unicase/test-u16-totitle.c: New file.
32197
32198         Tests for module 'unicase/u8-totitle'.
32199         * modules/unicase/u8-totitle-tests: New file.
32200         * tests/unicase/test-u8-totitle.c: New file.
32201
32202         New module 'unicase/u32-totitle'.
32203         * lib/unicase/u32-totitle.c: New file.
32204         * modules/unicase/u32-totitle: New file.
32205
32206         New module 'unicase/u16-totitle'.
32207         * lib/unicase/u16-totitle.c: New file.
32208         * modules/unicase/u16-totitle: New file.
32209
32210         New module 'unicase/u8-totitle'.
32211         * lib/unicase/u8-totitle.c: New file.
32212         * lib/unicase/u-totitle.h: New file.
32213         * modules/unicase/u8-totitle: New file.
32214
32215         Tests for module 'unicase/u32-tolower'.
32216         * modules/unicase/u32-tolower-tests: New file.
32217         * tests/unicase/test-u32-tolower.c: New file.
32218
32219         Tests for module 'unicase/u16-tolower'.
32220         * modules/unicase/u16-tolower-tests: New file.
32221         * tests/unicase/test-u16-tolower.c: New file.
32222
32223         Tests for module 'unicase/u8-tolower'.
32224         * modules/unicase/u8-tolower-tests: New file.
32225         * tests/unicase/test-u8-tolower.c: New file.
32226
32227         New module 'unicase/u32-tolower'.
32228         * lib/unicase/u32-tolower.c: New file.
32229         * modules/unicase/u32-tolower: New file.
32230
32231         New module 'unicase/u16-tolower'.
32232         * lib/unicase/u16-tolower.c: New file.
32233         * modules/unicase/u16-tolower: New file.
32234
32235         New module 'unicase/u8-tolower'.
32236         * lib/unicase/u8-tolower.c: New file.
32237         * modules/unicase/u8-tolower: New file.
32238
32239         Tests for module 'unicase/u32-toupper'.
32240         * modules/unicase/u32-toupper-tests: New file.
32241         * tests/unicase/test-u32-toupper.c: New file.
32242
32243         Tests for module 'unicase/u16-toupper'.
32244         * modules/unicase/u16-toupper-tests: New file.
32245         * tests/unicase/test-u16-toupper.c: New file.
32246
32247         Tests for module 'unicase/u8-toupper'.
32248         * modules/unicase/u8-toupper-tests: New file.
32249         * tests/unicase/test-u8-toupper.c: New file.
32250
32251         New module 'unicase/u32-toupper'.
32252         * lib/unicase/u32-toupper.c: New file.
32253         * modules/unicase/u32-toupper: New file.
32254
32255         New module 'unicase/u16-toupper'.
32256         * lib/unicase/u16-toupper.c: New file.
32257         * modules/unicase/u16-toupper: New file.
32258
32259         New module 'unicase/u8-toupper'.
32260         * lib/unicase/u8-toupper.c: New file.
32261         * modules/unicase/u8-toupper: New file.
32262
32263         New module 'unicase/u32-casemap'.
32264         * lib/unicase/u32-casemap.c: New file.
32265         * modules/unicase/u32-casemap: New file.
32266
32267         New module 'unicase/u16-casemap'.
32268         * lib/unicase/u16-casemap.c: New file.
32269         * modules/unicase/u16-casemap: New file.
32270
32271         New module 'unicase/u8-casemap'.
32272         * lib/unicase/unicasemap.h: New file.
32273         * lib/unicase/u8-casemap.c: New file.
32274         * lib/unicase/u-casemap.h: New file.
32275         * modules/unicase/u8-casemap: New file.
32276
32277         New module 'unicase/special-casing'.
32278         * lib/unicase/special-casing.h: New file.
32279         * lib/unicase/special-casing.c: New file.
32280         * lib/unicase/special-casing-table.gperf: New file, generated by
32281         gen-uni-tables.c.
32282         * modules/unicase/special-casing: New file.
32283
32284         Tests for module 'unicase/locale-language'.
32285         * modules/unicase/locale-language-tests: New file.
32286         * tests/unicase/test-locale-language.sh: New file.
32287         * tests/unicase/test-locale-language.c: New file.
32288
32289         New module 'unicase/locale-language'.
32290         * lib/unicase/locale-language.c: New file.
32291         * lib/unicase/locale-languages.gperf: New file.
32292         * modules/unicase/locale-language: New file.
32293
32294         Generate more tables for case conversion and case folding.
32295         * lib/gen-uni-tables.c (SCC_*): New enum items.
32296         (struct special_casing_rule): New type.
32297         (casing_rules, num_casing_rules, allocated_casing_rules): New
32298         variables.
32299         (add_casing_rule, fill_casing_rules): New functions.
32300         (struct casefold_rule): New type.
32301         (casefolding_rules, num_casefolding_rules,
32302         allocated_casefolding_rules): New variables.
32303         (fill_casefolding_rules): New function.
32304         (unicode_casefold): New variable.
32305         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32306         sort_casing_rules, output_casing_rules): New functions.
32307         (main): Accept to more arguments: SpecialCasing.txt and
32308         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32309         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32310         Output mapping for casefolding.
32311
32312         * lib/unicase.h: Include stdbool.h, uninorm.h.
32313         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32314         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32315         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32316         arguments.
32317         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32318         resultp arguments.
32319         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32320         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32321         resultp arguments.
32322         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32323         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32324         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32325         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32326         declarations.
32327         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32328
32329 2009-03-08  Bruno Haible  <bruno@clisp.org>
32330
32331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32332         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32333         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32334         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32335
32336 2009-03-07  Bruno Haible  <bruno@clisp.org>
32337
32338         Adjust u*_normcmp, u*_normcoll API.
32339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32340         u16_normcoll, u32_normcoll): Change failure conventions.
32341         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32342         errno and return -1.
32343         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32344
32345 2009-03-07  Bruno Haible  <bruno@clisp.org>
32346
32347         Tests for module 'uninorm/u32-normcoll'.
32348         * modules/uninorm/u32-normcoll-tests: New file.
32349         * tests/uninorm/test-u32-normcoll.c: New file.
32350
32351         Tests for module 'uninorm/u16-normcoll'.
32352         * modules/uninorm/u16-normcoll-tests: New file.
32353         * tests/uninorm/test-u16-normcoll.c: New file.
32354
32355         Tests for module 'uninorm/u8-normcoll'.
32356         * modules/uninorm/u8-normcoll-tests: New file.
32357         * tests/uninorm/test-u8-normcoll.c: New file.
32358
32359 2009-03-07  Bruno Haible  <bruno@clisp.org>
32360
32361         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32362         tests/uninorm/test-u32-normcmp.c.
32363         * tests/uninorm/test-u32-normcmp.c: Include it.
32364         (test_nonascii): New function, extracted from main. Add some more
32365         tests.
32366         (main): Invoke test_ascii and test_nonascii.
32367         * modules/uninorm/u32-normcmp-tests (Files): Add
32368         tests/uninorm/test-u32-normcmp.h.
32369         (Depends-on): Remove uninorm/u32-normcmp.
32370
32371         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32372         tests/uninorm/test-u16-normcmp.c.
32373         * tests/uninorm/test-u16-normcmp.c: Include it.
32374         (test_nonascii): New function, extracted from main. Add some more
32375         tests.
32376         (main): Invoke test_ascii and test_nonascii.
32377         * modules/uninorm/u16-normcmp-tests (Files): Add
32378         tests/uninorm/test-u16-normcmp.h.
32379         (Depends-on): Remove uninorm/u16-normcmp.
32380
32381         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32382         tests/uninorm/test-u8-normcmp.c.
32383         * tests/uninorm/test-u8-normcmp.c: Include it.
32384         (test_nonascii): New function, extracted from main. Add some more
32385         tests.
32386         (main): Invoke test_ascii and test_nonascii.
32387         * modules/uninorm/u8-normcmp-tests (Files): Add
32388         tests/uninorm/test-u8-normcmp.h.
32389         (Depends-on): Remove uninorm/u8-normcmp.
32390
32391 2009-03-07  Bruno Haible  <bruno@clisp.org>
32392
32393         New module 'uninorm/u32-normcoll'.
32394         * lib/uninorm/u32-normcoll.c: New file.
32395         * modules/uninorm/u32-normcoll: New file.
32396
32397         New module 'uninorm/u16-normcoll'.
32398         * lib/uninorm/u16-normcoll.c: New file.
32399         * modules/uninorm/u16-normcoll: New file.
32400
32401         New module 'uninorm/u8-normcoll'.
32402         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32403         declarations.
32404         * lib/uninorm/u8-normcoll.c: New file.
32405         * lib/uninorm/u-normcoll.h: New file.
32406         * modules/uninorm/u8-normcoll: New file.
32407
32408         New module 'uninorm/u32-normxfrm'.
32409         * lib/uninorm/u32-normxfrm.c: New file.
32410         * modules/uninorm/u32-normxfrm: New file.
32411
32412         New module 'uninorm/u16-normxfrm'.
32413         * lib/uninorm/u16-normxfrm.c: New file.
32414         * modules/uninorm/u16-normxfrm: New file.
32415
32416         New module 'uninorm/u8-normxfrm'.
32417         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32418         declarations.
32419         * lib/uninorm/u8-normxfrm.c: New file.
32420         * lib/uninorm/u-normxfrm.h: New file.
32421         * modules/uninorm/u8-normxfrm: New file.
32422
32423 2009-03-07  Bruno Haible  <bruno@clisp.org>
32424
32425         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32426         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32427         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32428
32429 2009-03-07  Bruno Haible  <bruno@clisp.org>
32430
32431         New module 'memxfrm'.
32432         * lib/memxfrm.h: New file.
32433         * lib/memxfrm.c: New file.
32434         * modules/memxfrm: New file.
32435
32436 2009-03-07  Bruno Haible  <bruno@clisp.org>
32437
32438         New module 'memcmp2'.
32439         * lib/memcmp2.h: New file.
32440         * lib/memcmp2.c: New file.
32441         * modules/memcmp2: New file.
32442
32443 2009-03-07  Bruno Haible  <bruno@clisp.org>
32444
32445         Tests for module 'uninorm/decomposing-form'.
32446         * modules/uninorm/decomposing-form-tests: New file.
32447         * tests/uninorm/test-decomposing-form.c: New file.
32448
32449         New module 'uninorm/decomposing-form'.
32450         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32451         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32452         Add 'decomposing_variant' field.
32453         * lib/uninorm/decomposing-form.c: New file.
32454         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32455         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32456         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32457         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32458         * modules/uninorm/decomposing-form: New file.
32459         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32460         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32461
32462 2009-03-07  Bruno Haible  <bruno@clisp.org>
32463
32464         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32465         strings.
32466
32467 2009-03-06  Bruno Haible  <bruno@clisp.org>
32468
32469         Tests for module 'uninorm/u32-normcmp'.
32470         * tests/uninorm/test-u32-normcmp.c: New file.
32471         * modules/uninorm/u32-normcmp-tests: New file.
32472
32473         Tests for module 'uninorm/u16-normcmp'.
32474         * tests/uninorm/test-u16-normcmp.c: New file.
32475         * modules/uninorm/u16-normcmp-tests: New file.
32476
32477         Tests for module 'uninorm/u8-normcmp'.
32478         * tests/uninorm/test-u8-normcmp.c: New file.
32479         * modules/uninorm/u8-normcmp-tests: New file.
32480
32481         New module 'uninorm/u32-normcmp'.
32482         * lib/uninorm/u32-normcmp.c: New file.
32483         * modules/uninorm/u32-normcmp: New file.
32484
32485         New module 'uninorm/u16-normcmp'.
32486         * lib/uninorm/u16-normcmp.c: New file.
32487         * modules/uninorm/u16-normcmp: New file.
32488
32489         New module 'uninorm/u8-normcmp'.
32490         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32491         declarations.
32492         * lib/uninorm/u8-normcmp.c: New file.
32493         * lib/uninorm/u-normcmp.h: New file.
32494         * modules/uninorm/u8-normcmp: New file.
32495
32496 2009-03-06  Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32499         Reported by Eric Blake.
32500
32501 2009-03-06  Eric Blake  <ebb9@byu.net>
32502             Bruno Haible  <bruno@clisp.org>
32503
32504         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32505         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32506         condition.
32507         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32508         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32509         condition.
32510         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32511
32512 2009-03-06  Eric Blake  <ebb9@byu.net>
32513
32514         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32515         to avoid compiler warnings.
32516         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32517
32518 2009-03-05  Bruno Haible  <bruno@clisp.org>
32519
32520         * tests/test-ftell.c (main): Disable test beyond end of file on
32521         FreeMiNT.
32522         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32523
32524 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32525
32526         * lib/filevercmp.c: Move hidden files up in ordering.
32527         * tests/test-filevercmp.c: Add tests for hidden files.
32528
32529 2009-03-04  Bruno Haible  <bruno@clisp.org>
32530
32531         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32532         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32533         AM_CFLAGS.
32534         Reported by Simon Josefsson.
32535
32536 2009-03-03  Bruno Haible  <bruno@clisp.org>
32537
32538         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32539         Reported by Simon Josefsson.
32540
32541         * doc/ld-version-script.texi: Update node reference.
32542
32543 2009-03-03  Bruno Haible  <bruno@clisp.org>
32544
32545         * modules/visibility (License): Change to 'unlimited'.
32546         Suggested by Simon Josefsson.
32547
32548 2009-03-03  Jim Meyering  <meyering@redhat.com>
32549
32550         unlinkdir: cannot_unlink_dir may modify process state
32551         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32552         it's neither thread-safe nor appropriate for use in a library.
32553
32554 2009-03-03  Eric Blake  <ebb9@byu.net>
32555
32556         test-closein: silence test under Darwin
32557         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32558         care if it dies from EPIPE or EBADF.
32559
32560 2009-03-03  Bruno Haible  <bruno@clisp.org>
32561
32562         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32563         earlier.
32564         * doc/visibility.texi: Fix @node and @section.
32565
32566 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32567
32568         * doc/gnulib.texi: Link to sections for ld version script and
32569         visibility.
32570         * doc/visibility.texi: Add @node and @section.
32571         * modules/ld-version-script: New module.
32572         * m4/ld-version-script.m4: New file.
32573         * doc/ld-version-script.texi: New file.
32574
32575 2009-03-02  David Lutterkort  <lutter@redhat.com>
32576
32577         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32579
32580 2009-03-02  Bruno Haible  <bruno@clisp.org>
32581
32582         * doc/visibility.texi: Mention libtool's -export-symbols option.
32583
32584 2009-03-02  Jim Meyering  <meyering@redhat.com>
32585
32586         announce-gen: new option: --no-print-checksums
32587         * build-aux/announce-gen (usage): Describe it.
32588         (print_checksums): Print a newline here, not in the [*] footnote.
32589         (main): Honor it.
32590
32591 2009-03-01  Bruno Haible  <bruno@clisp.org>
32592
32593         Use socklen_t in the native Windows replacements prototypes.
32594         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32595         instead of 'int'.
32596         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32597         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32598         * modules/getsockopt (Depends-on): Add socklen.
32599         * modules/setsockopt (Depends-on): Add socklen.
32600
32601 2009-03-01  Bruno Haible  <bruno@clisp.org>
32602
32603         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32604         least 4.2.
32605
32606 2009-03-01  Eric Blake  <ebb9@byu.net>
32607             Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32610         error messages.
32611         * lib/wait-process.c (wait_subprocess): Omit error message about
32612         deadly signal sent to the child of termsigp != NULL.
32613
32614 2009-03-01  Eric Blake  <ebb9@byu.net>
32615
32616         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32617
32618 2009-03-01  Bruno Haible  <bruno@clisp.org>
32619
32620         Avoid a gcc warning.
32621         * tests/test-sched.c (b): Make global.
32622         Reported by Eric Blake.
32623
32624 2009-01-19  Martin Lambers  <marlam@marlam.de>
32625
32626         Provide POSIX semantics for socket timeout options on W32.
32627         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32628         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32629         * modules/setsockopt: Depend on sys_time module for struct timeval.
32630         * modules/getsockopt: Depend on sys_time module for struct timeval.
32631
32632 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32633
32634         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32635         __USE_GNU, for consistency with netdb.in.h.
32636         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32637
32638 2009-03-01  Bruno Haible  <bruno@clisp.org>
32639
32640         More support for FreeMiNT.
32641         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32642         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32643
32644 2009-03-01  Bruno Haible  <bruno@clisp.org>
32645
32646         More support for FreeMiNT.
32647         * lib/fpurge.c (fpurge): Correct last commit.
32648         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32649
32650 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32651
32652         Fix unportable awk script in vc-list-files.
32653         * build-aux/vc-list-files: In the replacement awk script, use
32654         substr with a second argument of 1, not zero.
32655         Report by Simon Josefsson.
32656
32657 2009-02-28  Bruno Haible  <bruno@clisp.org>
32658
32659         More support for FreeMiNT.
32660         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32661         to FreeMiNT today.
32662         * lib/fwriting.c (fwriting): Likewise.
32663         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32664
32665 2009-02-28  Bruno Haible  <bruno@clisp.org>
32666
32667         * tests/test-freadseek.c (main): Disable test beyond end of file on
32668         FreeMiNT.
32669         * tests/test-ftello.c (main): Likewise.
32670         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32671
32672 2009-02-28  Bruno Haible  <bruno@clisp.org>
32673
32674         Add tentative support for FreeMiNT.
32675         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32676         * lib/fpurge.c (fpurge): Likewise.
32677         * lib/freadable.c (freadable): Likewise.
32678         * lib/freading.c (freading): Likewise.
32679         * lib/freadptr.c (freadptr): Likewise.
32680         * lib/freadseek.c (freadptrinc): Likewise.
32681         * lib/fseeko.c (rpl_fseeko): Likewise.
32682         * lib/fseterr.c (fseterr): Likewise.
32683         * lib/fwritable.c (fwritable): Likewise.
32684         * lib/fwriting.c (fwriting): Likewise.
32685         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32686         Hourihane.
32687         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32688
32689 2009-02-28  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32692         SIGCHLD.
32693         Reported by Jim Meyering.
32694
32695 2009-02-28  Bruno Haible  <bruno@clisp.org>
32696
32697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32698         Mention the results of these tests on various platforms.
32699         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32700         order.
32701         * doc/posix-functions/printf.texi: Likewise.
32702         * doc/posix-functions/snprintf.texi: Likewise.
32703         * doc/posix-functions/sprintf.texi: Likewise.
32704         * doc/posix-functions/vfprintf.texi: Likewise.
32705         * doc/posix-functions/vprintf.texi: Likewise.
32706         * doc/posix-functions/vsnprintf.texi: Likewise.
32707         * doc/posix-functions/vsprintf.texi: Likewise.
32708         * doc/glibc-functions/obstack_printf.texi: Likewise.
32709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32710
32711 2009-02-28  Bruno Haible  <bruno@clisp.org>
32712
32713         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32714         Reported by Loïc Minier <lool@dooz.org>.
32715
32716 2009-02-27  Bruno Haible  <bruno@clisp.org>
32717
32718         * gnulib-tool (func_import): Make the sed expression used to create the
32719         sed script for updating the .gitignore file POSIX compliant.
32720         Reported by Eric Blake.
32721
32722 2009-02-27  Bruno Haible  <bruno@clisp.org>
32723
32724         * gnulib-tool (sed): Don't alias as "sed --posix".
32725         Reported by Eric Blake.
32726
32727 2009-02-27  Bruno Haible  <bruno@clisp.org>
32728
32729         Avoid test link errors.
32730         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32731         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32732         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32733         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32735
32736 2009-02-27  Bruno Haible  <bruno@clisp.org>
32737
32738         Avoid spurious "(cached)" in configure output.
32739         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32740         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32742         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32743         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32744         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32746         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32747         Reported by Eric Blake.
32748
32749 2009-02-27  Eric Blake  <ebb9@byu.net>
32750
32751         printf: fix regression in previous patch
32752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32753
32754 2009-02-27  Bruno Haible  <bruno@clisp.org>
32755
32756         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32757         value.
32758         * lib/stdint.in.h: Likewise.
32759         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32760
32761 2009-02-27  Eric Blake  <ebb9@byu.net>
32762
32763         doc: mention more functions added in cygwin 1.7.0
32764         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32765         addition.
32766         * doc/posix-functions/open_wmemstream.texi: Likewise.
32767         * doc/posix-functions/wcsnlen.texi: Likewise.
32768         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32769         * doc/posix-functions/wcstod.texi: Likewise.
32770         * doc/posix-functions/wcstof.texi: Likewise.
32771         * doc/posix-functions/wcstoimax.texi: Likewise.
32772         * doc/posix-functions/wcstok.texi: Likewise.
32773         * doc/posix-functions/wcstoumax.texi: Likewise.
32774
32775         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32777         * doc/posix-functions/fprintf.texi: Update.
32778         * doc/posix-functions/printf.texi: Update.
32779         * doc/posix-functions/snprintf.texi: Update.
32780         * doc/posix-functions/sprintf.texi: Update.
32781         * doc/posix-functions/vfprintf.texi: Update.
32782         * doc/posix-functions/vprintf.texi: Update.
32783         * doc/posix-functions/vsnprintf.texi: Update.
32784         * doc/posix-functions/vsprintf.texi: Update.
32785         * doc/glibc-functions/obstack_printf.texi: Update.
32786         * doc/glibc-functions/obstack_vprintf.texi: Update.
32787
32788 2009-02-26  Eric Blake  <ebb9@byu.net>
32789
32790         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32791         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32792         compilation bug by using runtime conversion.
32793         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32794         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32795         * modules/ceill-tests (Files): Use nan.h.
32796         * modules/floorl-tests (Files): Likewise.
32797         * modules/frexpl-tests (Files): Likewise.
32798         * modules/isnanl-tests (Files): Likewise.
32799         * modules/ldexpl-tests (Files): Likewise.
32800         * modules/roundl-tests (Files): Likewise.
32801         * modules/truncl-tests (Files): Likewise.
32802         * tests/test-ceill.c (main): Use a working NaN.
32803         * tests/test-floorl.c (main): Likewise.
32804         * tests/test-frexpl.c (main): Likewise.
32805         * tests/test-isnan.c (test_long_double): Likewise.
32806         * tests/test-isnanl.h (main): Likewise.
32807         * tests/test-ldexpl.h (main): Likewise.
32808         * tests/test-roundl.h (main): Likewise.
32809         * tests/test-truncl.h (main): Likewise.
32810         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32811
32812 2009-02-26  Eric Blake  <ebb9@byu.net>
32813             Bruno Haible  <bruno@clisp.org>
32814
32815         Work around a *printf bug with %ls on Solaris.
32816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32817         precision is specified, sprintf stops converting the wide string
32818         argument when the number of bytes that have been produced by this
32819         conversion equals or exceeds the precision.
32820         * doc/posix-functions/fprintf.texi: Update.
32821         * doc/posix-functions/printf.texi: Update.
32822         * doc/posix-functions/snprintf.texi: Update.
32823         * doc/posix-functions/sprintf.texi: Update.
32824         * doc/posix-functions/vfprintf.texi: Update.
32825         * doc/posix-functions/vprintf.texi: Update.
32826         * doc/posix-functions/vsnprintf.texi: Update.
32827         * doc/posix-functions/vsprintf.texi: Update.
32828         * doc/glibc-functions/obstack_printf.texi: Update.
32829         * doc/glibc-functions/obstack_vprintf.texi: Update.
32830
32831 2009-02-26  Eric Blake  <ebb9@byu.net>
32832
32833         stdlib: favor compiler check of random.h
32834         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32835         to avoid an ObjC random.h installed by Swarm.
32836
32837 2009-02-26  Bruno Haible  <bruno@clisp.org>
32838
32839         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32840         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32841         Reported by Gary V. Vaughan <gary@gnu.org>.
32842
32843 2009-02-26  Bruno Haible  <bruno@clisp.org>
32844
32845         Fix *printf behaviour regarding the %ls directive.
32846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32847         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32848         NEED_PRINTF_DIRECTIVE_LS.
32849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32850         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32852         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32853         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32854         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32855         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32860         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32864         * doc/posix-functions/fprintf.texi: Update.
32865         * doc/posix-functions/printf.texi: Update.
32866         * doc/posix-functions/snprintf.texi: Update.
32867         * doc/posix-functions/sprintf.texi: Update.
32868         * doc/posix-functions/vfprintf.texi: Update.
32869         * doc/posix-functions/vprintf.texi: Update.
32870         * doc/posix-functions/vsnprintf.texi: Update.
32871         * doc/posix-functions/vsprintf.texi: Update.
32872         * doc/glibc-functions/obstack_printf.texi: Update.
32873         * doc/glibc-functions/obstack_vprintf.texi: Update.
32874         Reported by Eric Blake.
32875
32876 2009-02-25  Bruno Haible  <bruno@clisp.org>
32877
32878         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32879         with known value.
32880         Reported by Gary V. Vaughan <gary@gnu.org>.
32881
32882 2009-02-25  Bruno Haible  <bruno@clisp.org>
32883
32884         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32885         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32886         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32887         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32888         Reported by Gary V. Vaughan <gary@gnu.org>.
32889
32890 2009-02-25  Bruno Haible  <bruno@clisp.org>
32891
32892         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32893         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32894         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32895         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32896         Reported by Gary V. Vaughan <gary@gnu.org>.
32897
32898 2009-02-25  Eric Blake  <ebb9@byu.net>
32899
32900         tests: skip fseek/ftell tests if ungetc is broken
32901         * m4/ungetc.m4: New file.
32902         * modules/fseek-tests: Split test, so ungetc dependency is
32903         separate from rest of test.
32904         * modules/fseeko-tests: Likewise.
32905         * modules/ftell-tests: Likewise.
32906         * modules/ftello-tests: Likewise.
32907         * tests/test-fseek.c (main): Isolate ungetc dependency.
32908         * tests/test-fseeko.c (main): Likewise.
32909         * tests/test-ftell.c (main): Likewise.
32910         * tests/test-ftello.c (main): Likewise.
32911         * tests/test-fseek2.sh: New file.
32912         * tests/test-fseeko2.sh: Likewise.
32913         * tests/test-ftell2.sh: Likewise.
32914         * tests/test-ftello2.sh: Likewise.
32915
32916 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32917
32918         test-getaddrinfo: fix usage of skip return code 77
32919         * tests/test-gettaddrinfo.c: Return skip code 77 only
32920         for first occurance of skip (4x77 is not 77)
32921
32922 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32923
32924         strtod: avoid C99 decl-after-statement
32925         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32926
32927 2009-02-24  Eric Blake  <ebb9@byu.net>
32928
32929         strtod: detect HP-UX 11.31 bug
32930         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32931         Reported by Gary V. Vaughan.
32932
32933 2009-02-23  Bruno Haible  <bruno@clisp.org>
32934
32935         Fix invalid read past end of memory block.
32936         * lib/vasnprintf.c (DCHAR_SET): Define.
32937         (local_wcslen): Define only when needed.
32938         (local_strnlen, local_wcsnlen): New functions.
32939         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32940         directives that involve a conversion ourselves.
32941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32942         wcsnlen, mbrtowc, wcrtomb.
32943         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32944         * tests/test-vasprintf-posix.c (test_function): Likewise.
32945         * tests/test-snprintf-posix.h (test_function): Likewise.
32946         * tests/test-sprintf-posix.h (test_function): Likewise.
32947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32948
32949 2009-02-22  Bruno Haible  <bruno@clisp.org>
32950
32951         Implement new clarified decomposition of Hangul syllables.
32952         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32953         of type LTV, return only a pairwise decomposition.
32954         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32955         Likewise.
32956         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32957         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32958         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32959
32960 2009-02-22  Bruno Haible  <bruno@clisp.org>
32961
32962         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32963         zero-length results and shrink excess allocated memory.
32964         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32965         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32966         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32967         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32968         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32969         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32970         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32971         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32972         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32973         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32974         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32975         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32976
32977 2009-02-21  Bruno Haible  <bruno@clisp.org>
32978
32979         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32980         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32981         spaces after a period. Put a space between a macro name and its
32982         argument list. Trivial rewordings.
32983         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32984         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32985         (main): Return 0 explicitly.
32986
32987 2009-02-21  Bruno Haible  <bruno@clisp.org>
32988
32989         Tests for module 'uninorm/filter'.
32990         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32991         * modules/uninorm/filter-tests: New file.
32992
32993         New module 'uninorm/filter'.
32994         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32995         uninorm_filter_flush, uninorm_filter_free): New declarations.
32996         * lib/uninorm/uninorm-filter.c: New file.
32997         * modules/uninorm/filter: New file.
32998
32999 2009-02-21  Bruno Haible  <bruno@clisp.org>
33000
33001         Tests for module 'uninorm/nfkc'.
33002         * tests/uninorm/test-nfkc.c: New file.
33003         * tests/uninorm/test-u8-nfkc.c: New file.
33004         * tests/uninorm/test-u16-nfkc.c: New file.
33005         * tests/uninorm/test-u32-nfkc.c: New file.
33006         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33007         * tests/uninorm/test-u32-nfkc-big.c: New file.
33008         * modules/uninorm/nfkc-tests: New file.
33009
33010         New module 'uninorm/nfkc'.
33011         * lib/uninorm/nfkc.c: New file.
33012         * modules/uninorm/nfkc: New file.
33013
33014         Tests for module 'uninorm/nfkd'.
33015         * tests/uninorm/test-nfkd.c: New file.
33016         * tests/uninorm/test-u8-nfkd.c: New file.
33017         * tests/uninorm/test-u16-nfkd.c: New file.
33018         * tests/uninorm/test-u32-nfkd.c: New file.
33019         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33020         * tests/uninorm/test-u32-nfkd-big.c: New file.
33021         * modules/uninorm/nfkd-tests: New file.
33022
33023         New module 'uninorm/nfkd'.
33024         * lib/uninorm/nfkd.c: New file.
33025         * modules/uninorm/nfkd: New file.
33026
33027         Tests for module 'uninorm/nfc'.
33028         * tests/uninorm/test-nfc.c: New file.
33029         * tests/uninorm/test-u8-nfc.c: New file.
33030         * tests/uninorm/test-u16-nfc.c: New file.
33031         * tests/uninorm/test-u32-nfc.c: New file.
33032         * tests/uninorm/test-u32-nfc-big.sh: New file.
33033         * tests/uninorm/test-u32-nfc-big.c: New file.
33034         * modules/uninorm/nfc-tests: New file.
33035
33036         New module 'uninorm/nfc'.
33037         * lib/uninorm/nfc.c: New file.
33038         * modules/uninorm/nfc: New file.
33039
33040         Tests for module 'uninorm/nfd'.
33041         * tests/uninorm/test-nfd.c: New file.
33042         * tests/uninorm/test-u8-nfd.c: New file.
33043         * tests/uninorm/test-u16-nfd.c: New file.
33044         * tests/uninorm/test-u32-nfd.c: New file.
33045         * tests/uninorm/test-u32-nfd-big.sh: New file.
33046         * tests/uninorm/test-u32-nfd-big.c: New file.
33047         * tests/uninorm/test-u32-normalize-big.h: New file.
33048         * tests/uninorm/test-u32-normalize-big.c: New file.
33049         * tests/uninorm/NormalizationTest.txt: New file, created from
33050         Unicode 5.1.0 NormalizationTest.txt.
33051         * modules/uninorm/nfd-tests: New file.
33052
33053         New module 'uninorm/nfd'.
33054         * lib/uninorm/nfd.c: New file.
33055         * modules/uninorm/nfd: New file.
33056
33057         New module 'uninorm/u32-normalize'.
33058         * lib/uninorm/u32-normalize.c: New file.
33059         * modules/uninorm/u32-normalize: New file.
33060
33061         New module 'uninorm/u16-normalize'.
33062         * lib/uninorm/u16-normalize.c: New file.
33063         * modules/uninorm/u16-normalize: New file.
33064
33065         New module 'uninorm/u8-normalize'.
33066         * lib/uninorm/u8-normalize.c: New file.
33067         * lib/uninorm/normalize-internal.h: New file.
33068         * lib/uninorm/u-normalize-internal.h: New file.
33069         * modules/uninorm/u8-normalize: New file.
33070
33071         New module 'uninorm/decompose-internal'.
33072         * lib/uninorm/decompose-internal.c: New file.
33073         * modules/uninorm/decompose-internal: New file.
33074
33075         Tests for module 'uninorm/composition'.
33076         * tests/uninorm/test-composition.c: New file.
33077         * modules/uninorm/composition-tests: New file.
33078
33079         New module 'uninorm/composition'.
33080         * lib/uninorm/composition.c: New file.
33081         * lib/uninorm/composition-table.gperf: New file, generated by
33082         gen-uni-tables.
33083         * modules/uninorm/composition: New file.
33084
33085         Tests for module 'uninorm/compat-decomposition'.
33086         * tests/uninorm/test-compat-decomposition.c: New file.
33087         * modules/uninorm/compat-decomposition-tests: New file.
33088
33089         New module 'uninorm/compat-decomposition'.
33090         * lib/uninorm/decompose-internal.h: New file.
33091         * lib/uninorm/compat-decomposition.c: New file.
33092         * modules/uninorm/compat-decomposition: New file.
33093
33094         Tests for module 'uninorm/canonical-decomposition'.
33095         * tests/uninorm/test-canonical-decomposition.c: New file.
33096         * modules/uninorm/canonical-decomposition-tests: New file.
33097
33098         New module 'uninorm/canonical-decomposition'.
33099         * lib/uninorm/canonical-decomposition.c: New file.
33100         * modules/uninorm/canonical-decomposition: New file.
33101
33102         Tests for module 'uninorm/decomposition'.
33103         * tests/uninorm/test-decomposition.c: New file.
33104         * modules/uninorm/decomposition-tests: New file.
33105
33106         New module 'uninorm/decomposition'.
33107         * lib/uninorm/decomposition.c: New file.
33108         * modules/uninorm/decomposition: New file.
33109
33110         New module 'uninorm/decomposition-table'.
33111         * lib/uninorm/decomposition-table.h: New file.
33112         * lib/uninorm/decomposition-table.c: New file.
33113         * lib/uninorm/decomposition-table1.h: New file, generated by
33114         gen-uni-tables.
33115         * lib/uninorm/decomposition-table2.h: New file, generated by
33116         gen-uni-tables.
33117         * modules/uninorm/decomposition-table: New file.
33118
33119         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33120         (UC_DECOMP_*): New enumeration items.
33121         (get_decomposition): New function.
33122         (struct decomp_table): New type.
33123         (output_decomposition, output_decomposition_tables): New functions.
33124         (unicode_composition_exclusions): New variable.
33125         (fill_composition_exclusions, debug_output_composition_tables): New
33126         functions.
33127         (main): Accept one more argument. Invoke fill_composition_exclusions.
33128         Output decomposition and composition tables.
33129
33130         New module 'uninorm/base'.
33131         * lib/uninorm.h: New file.
33132         * lib/unictype.h: Update comment.
33133         * modules/uninorm/base: New file.
33134
33135 2009-02-21  David Lutterkort  <lutter@redhat.com>
33136
33137         Tests for module 'safe-alloc'.
33138         * tests/test-safe-alloc.c: New file.
33139         * modules/safe-alloc-tests: New file.
33140
33141         New module 'safe-alloc'.
33142         * lib/safe-alloc.h: New file.
33143         * lib/safe-alloc.c: New file.
33144         * m4/safe-alloc.m4: New file.
33145         * modules/safe-alloc: New file.
33146         * doc/safe-alloc.texi: New file.
33147         * doc/gnulib.texi: Include it.
33148         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33149         safe-alloc.
33150
33151 2009-02-18  Bruno Haible  <bruno@clisp.org>
33152
33153         Fix link error on non-glibc systems.
33154         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33155         variable.
33156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33157
33158 2009-02-18  Jim Meyering  <meyering@redhat.com>
33159
33160         fts: avoid used-uninitialized error due to recent change
33161         * lib/fts.c (fts_read): Guard uses of the new member,
33162         parent->fts_n_dirs_remaining, since it's not relevant for
33163         the parent of a directory specified on the command-line.
33164
33165 2009-02-17  James Youngman  <jay@gnu.org>
33166             Bruno Haible  <bruno@clisp.org>
33167
33168         * m4/include_next.m4: Reformulate comment.
33169
33170 2009-02-16  Jim Meyering  <meyering@redhat.com>
33171
33172         fts: add #if guards so that the fts_lgpl module still builds
33173         * lib/fts.c: Guard just-added hash-table-using parts with
33174         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33175         Reported by Simon Josefsson.
33176
33177 2009-02-15  Bruno Haible  <bruno@clisp.org>
33178
33179         * modules/array-mergesort-tests: New file.
33180         * tests/test-array-mergesort.c: New file.
33181
33182         New module 'array-mergesort'.
33183         * modules/array-mergesort: New file.
33184         * lib/array-mergesort.h: New file.
33185
33186 2009-02-15  Bruno Haible  <bruno@clisp.org>
33187
33188         Fix 2009-02-07 commit.
33189         * lib/gen-uni-tables.c (output_predicate, output_category,
33190         output_combclass, output_bidi_category, output_decimal_digit,
33191         output_digit, output_numeric, output_mirror, output_scripts,
33192         output_ident_category, output_simple_mapping): Fix format directives.
33193         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33194
33195 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33196
33197         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33198         fixes are available from IBM.
33199
33200 2009-02-13  Jim Meyering  <meyering@redhat.com>
33201
33202         fts: arrange not to stat non-directories in more cases
33203         This makes GNU find (when it doesn't need to stat each file)
33204         *much* more efficient at traversing reiserfs file systems.
33205         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33206         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33207         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33208         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33209         (leaf_optimization_applies): New function.
33210         (LCO_hash, LCO_compare): New helper functions.
33211         (link_count_optimize_ok): New function.
33212         (fts_stat): Initialize new member (if dir).
33213         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33214         we've just stat'ed a directory.  Skip the stat call when possible.
33215         ---
33216         Note this AFS-related exchange:
33217         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33218         and note find's pioctl call in find/fstype.c.
33219         But that is necessary only if you want to enable the
33220         optimization for AFS, and for now, I don't.
33221
33222         fts: move a function definition "up" (no semantic change)
33223         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33224         "up" to precede upcoming use of a related function.
33225
33226 2009-02-11  Jim Meyering  <meyering@redhat.com>
33227
33228         fts: correct internal computation of nlinks (optimization-related)
33229         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33230         whether the current entry is a directory, so don't test it.
33231
33232 2009-02-10  Bruno Haible  <bruno@clisp.org>
33233
33234         Tests for module 'uniwbrk/ulc-wordbreaks'.
33235         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33236         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33237         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33238
33239         Tests for module 'uniwbrk/u32-wordbreaks'.
33240         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33241         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33242
33243         Tests for module 'uniwbrk/u16-wordbreaks'.
33244         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33245         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33246
33247         Tests for module 'uniwbrk/u8-wordbreaks'.
33248         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33249         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33250
33251 2009-02-10  Bruno Haible  <bruno@clisp.org>
33252
33253         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33254         property.
33255         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33256         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33257         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33258
33259 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33260
33261         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33262         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33263
33264 2009-02-10  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33267         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33268         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33269         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33270         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33271         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33272
33273 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33274
33275         * lib/sockets.h (gl_fd_to_handle): New function.
33276
33277         * tests/test-sockets.c: Call gl_fd_to_handle.
33278
33279 2009-02-09  Bruno Haible  <bruno@clisp.org>
33280
33281         * doc/havelib.texi: Document the conventions on bi-arch systems.
33282
33283 2009-02-08  Bruno Haible  <bruno@clisp.org>
33284
33285         Document the AC_LIB_LINKFLAGS macro.
33286         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33287         * doc/gnulib.texi: Include it.
33288
33289 2009-02-08  Bruno Haible  <bruno@clisp.org>
33290
33291         Fix wrong order of sections, compared to TOC.
33292         * doc/gnulib.texi: Include relocatable-maint.texi after the
33293         "Regular expressions" node, not before.
33294
33295 2009-02-08  Bruno Haible  <bruno@clisp.org>
33296
33297         Tests for module 'unicase/totitle'.
33298         * modules/unicase/totitle-tests: New file.
33299
33300         Tests for module 'unicase/tolower'.
33301         * modules/unicase/tolower-tests: New file.
33302
33303         Tests for module 'unicase/toupper'.
33304         * modules/unicase/toupper-tests: New file.
33305         * tests/unicase/test-mapping-part1.h: New file.
33306         * tests/unicase/test-mapping-part2.h: New file.
33307
33308         New module 'unicase/totitle'.
33309         * modules/unicase/totitle: New file.
33310         * lib/unicase/totitle.c: New file.
33311
33312         New module 'unicase/tolower'.
33313         * modules/unicase/tolower: New file.
33314         * lib/unicase/tolower.c: New file.
33315
33316         New module 'unicase/toupper'.
33317         * modules/unicase/toupper: New file.
33318         * lib/unicase/toupper.c: New file.
33319         * lib/unicase/simple-mapping.h: New file.
33320
33321         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33322         (mapping_table): New structure.
33323         (output_simple_mapping): New function.
33324         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33325         * modules/gen-uni-tables (Description): Update.
33326         * lib/unicase/toupper.h: New file, automatically generated by
33327         gen-uni-tables.
33328         * lib/unicase/tolower.h: New file, automatically generated by
33329         gen-uni-tables.
33330         * lib/unicase/totitle.h: New file, automatically generated by
33331         gen-uni-tables.
33332         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33333         gen-uni-tables.
33334         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33335         gen-uni-tables.
33336         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33337         gen-uni-tables.
33338
33339         New module 'unicase/base'.
33340         * modules/unicase/base: New file.
33341         * lib/unicase.h: New file.
33342
33343 2009-02-08  Bruno Haible  <bruno@clisp.org>
33344
33345         New module 'uniwbrk/ulc-wordbreaks'.
33346         * modules/uniwbrk/ulc-wordbreaks: New file.
33347         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33348
33349         New module 'uniwbrk/u32-wordbreaks'.
33350         * modules/uniwbrk/u32-wordbreaks: New file.
33351         * lib/uniwbrk/u32-wordbreaks.c: New file.
33352
33353         New module 'uniwbrk/u16-wordbreaks'.
33354         * modules/uniwbrk/u16-wordbreaks: New file.
33355         * lib/uniwbrk/u16-wordbreaks.c: New file.
33356
33357         New module 'uniwbrk/u8-wordbreaks'.
33358         * modules/uniwbrk/u8-wordbreaks: New file.
33359         * lib/uniwbrk/u8-wordbreaks.c: New file.
33360         * lib/uniwbrk/u-wordbreaks.h: New file.
33361
33362         New module 'uniwbrk/table'.
33363         * modules/uniwbrk/table: New file.
33364         * lib/uniwbrk/wbrktable.h: New file.
33365         * lib/uniwbrk/wbrktable.c: New file.
33366
33367         New module 'uniwbrk/wordbreak-property'.
33368         * modules/uniwbrk/wordbreak-property: New file.
33369         * lib/uniwbrk/wordbreak-property.c: New file.
33370
33371         * lib/gen-uni-tables.c (WBP_*): New enum items.
33372         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33373         (unicode_org_wbp): New variable.
33374         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33375         New functions.
33376         (wbp_table): New structure.
33377         (output_wbp, output_wbrk_tables): New functions.
33378         (main): Accept additional argument. Invoke fill_org_wbp,
33379         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33380         output_wbrk_tables.
33381         * modules/gen-uni-tables (Description): Update.
33382         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33383         gen-uni-tables.
33384
33385         New module 'uniwbrk/base'.
33386         * modules/uniwbrk/base: New file.
33387         * lib/uniwbrk.h: New file.
33388
33389 2009-02-08  Bruno Haible  <bruno@clisp.org>
33390
33391         Update to Unicode 5.1.0.
33392         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33393         U+2185..U+2188.
33394         (is_property_default_ignorable_code_point): Don't include characters
33395         of category Cc or Cs and not-a-characters.
33396         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33397         U+0D79, U+109E, U+109F, U+A60C.
33398         * lib/unictype/bidi_of.h: Regenerated.
33399         * lib/unictype/blocks.h: Regenerated.
33400         * lib/unictype/categ_C.h: Regenerated.
33401         * lib/unictype/categ_Cf.h: Regenerated.
33402         * lib/unictype/categ_Cn.h: Regenerated.
33403         * lib/unictype/categ_L.h: Regenerated.
33404         * lib/unictype/categ_Ll.h: Regenerated.
33405         * lib/unictype/categ_Lm.h: Regenerated.
33406         * lib/unictype/categ_Lo.h: Regenerated.
33407         * lib/unictype/categ_Lu.h: Regenerated.
33408         * lib/unictype/categ_M.h: Regenerated.
33409         * lib/unictype/categ_Mc.h: Regenerated.
33410         * lib/unictype/categ_Me.h: Regenerated.
33411         * lib/unictype/categ_Mn.h: Regenerated.
33412         * lib/unictype/categ_N.h: Regenerated.
33413         * lib/unictype/categ_Nd.h: Regenerated.
33414         * lib/unictype/categ_Nl.h: Regenerated.
33415         * lib/unictype/categ_No.h: Regenerated.
33416         * lib/unictype/categ_P.h: Regenerated.
33417         * lib/unictype/categ_Pd.h: Regenerated.
33418         * lib/unictype/categ_Pe.h: Regenerated.
33419         * lib/unictype/categ_Pf.h: Regenerated.
33420         * lib/unictype/categ_Pi.h: Regenerated.
33421         * lib/unictype/categ_Po.h: Regenerated.
33422         * lib/unictype/categ_Ps.h: Regenerated.
33423         * lib/unictype/categ_S.h: Regenerated.
33424         * lib/unictype/categ_Sk.h: Regenerated.
33425         * lib/unictype/categ_Sm.h: Regenerated.
33426         * lib/unictype/categ_So.h: Regenerated.
33427         * lib/unictype/categ_of.h: Regenerated.
33428         * lib/unictype/combining.h: Regenerated.
33429         * lib/unictype/ctype_alnum.h: Regenerated.
33430         * lib/unictype/ctype_alpha.h: Regenerated.
33431         * lib/unictype/ctype_graph.h: Regenerated.
33432         * lib/unictype/ctype_lower.h: Regenerated.
33433         * lib/unictype/ctype_print.h: Regenerated.
33434         * lib/unictype/ctype_punct.h: Regenerated.
33435         * lib/unictype/ctype_upper.h: Regenerated.
33436         * lib/unictype/decdigit.h: Regenerated.
33437         * lib/unictype/digit.h: Regenerated.
33438         * lib/unictype/mirror.h: Regenerated.
33439         * lib/unictype/numeric.h: Regenerated.
33440         * lib/unictype/pr_alphabetic.h: Regenerated.
33441         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33442         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33443         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33444         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33445         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33446         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33447         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33448         * lib/unictype/pr_combining.h: Regenerated.
33449         * lib/unictype/pr_dash.h: Regenerated.
33450         * lib/unictype/pr_decimal_digit.h: Regenerated.
33451         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33452         * lib/unictype/pr_deprecated.h: Regenerated.
33453         * lib/unictype/pr_diacritic.h: Regenerated.
33454         * lib/unictype/pr_extender.h: Regenerated.
33455         * lib/unictype/pr_format_control.h: Regenerated.
33456         * lib/unictype/pr_grapheme_base.h: Regenerated.
33457         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33458         * lib/unictype/pr_grapheme_link.h: Regenerated.
33459         * lib/unictype/pr_id_continue.h: Regenerated.
33460         * lib/unictype/pr_id_start.h: Regenerated.
33461         * lib/unictype/pr_ideographic.h: Regenerated.
33462         * lib/unictype/pr_ignorable_control.h: Regenerated.
33463         * lib/unictype/pr_lowercase.h: Regenerated.
33464         * lib/unictype/pr_math.h: Regenerated.
33465         * lib/unictype/pr_numeric.h: Regenerated.
33466         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33467         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33468         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33469         * lib/unictype/pr_other_id_continue.h: Regenerated.
33470         * lib/unictype/pr_other_lowercase.h: Regenerated.
33471         * lib/unictype/pr_other_math.h: Regenerated.
33472         * lib/unictype/pr_punctuation.h: Regenerated.
33473         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33474         * lib/unictype/pr_soft_dotted.h: Regenerated.
33475         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33476         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33477         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33478         * lib/unictype/pr_uppercase.h: Regenerated.
33479         * lib/unictype/pr_xid_continue.h: Regenerated.
33480         * lib/unictype/pr_xid_start.h: Regenerated.
33481         * lib/unictype/pr_zero_width.h: Regenerated.
33482         * lib/unictype/scripts.h: Regenerated.
33483         * lib/unictype/scripts_byname.gperf: Regenerated.
33484         * lib/unictype/sy_java_ident.h: Regenerated.
33485         * lib/unilbrk/lbrkprop1.h: Regenerated.
33486         * lib/unilbrk/lbrkprop2.h: Regenerated.
33487         * tests/unictype/test-categ_C.c: Regenerated.
33488         * tests/unictype/test-categ_Cf.c: Regenerated.
33489         * tests/unictype/test-categ_Cn.c: Regenerated.
33490         * tests/unictype/test-categ_L.c: Regenerated.
33491         * tests/unictype/test-categ_Ll.c: Regenerated.
33492         * tests/unictype/test-categ_Lm.c: Regenerated.
33493         * tests/unictype/test-categ_Lo.c: Regenerated.
33494         * tests/unictype/test-categ_Lu.c: Regenerated.
33495         * tests/unictype/test-categ_M.c: Regenerated.
33496         * tests/unictype/test-categ_Mc.c: Regenerated.
33497         * tests/unictype/test-categ_Me.c: Regenerated.
33498         * tests/unictype/test-categ_Mn.c: Regenerated.
33499         * tests/unictype/test-categ_N.c: Regenerated.
33500         * tests/unictype/test-categ_Nd.c: Regenerated.
33501         * tests/unictype/test-categ_Nl.c: Regenerated.
33502         * tests/unictype/test-categ_No.c: Regenerated.
33503         * tests/unictype/test-categ_P.c: Regenerated.
33504         * tests/unictype/test-categ_Pd.c: Regenerated.
33505         * tests/unictype/test-categ_Pe.c: Regenerated.
33506         * tests/unictype/test-categ_Pf.c: Regenerated.
33507         * tests/unictype/test-categ_Pi.c: Regenerated.
33508         * tests/unictype/test-categ_Po.c: Regenerated.
33509         * tests/unictype/test-categ_Ps.c: Regenerated.
33510         * tests/unictype/test-categ_S.c: Regenerated.
33511         * tests/unictype/test-categ_Sk.c: Regenerated.
33512         * tests/unictype/test-categ_Sm.c: Regenerated.
33513         * tests/unictype/test-categ_So.c: Regenerated.
33514         * tests/unictype/test-ctype_alnum.c: Regenerated.
33515         * tests/unictype/test-ctype_alpha.c: Regenerated.
33516         * tests/unictype/test-ctype_graph.c: Regenerated.
33517         * tests/unictype/test-ctype_lower.c: Regenerated.
33518         * tests/unictype/test-ctype_print.c: Regenerated.
33519         * tests/unictype/test-ctype_punct.c: Regenerated.
33520         * tests/unictype/test-ctype_upper.c: Regenerated.
33521         * tests/unictype/test-decdigit.h: Regenerated.
33522         * tests/unictype/test-digit.h: Regenerated.
33523         * tests/unictype/test-numeric.h: Regenerated.
33524         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33525         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33526         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33527         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33528         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33529         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33530         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33531         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33532         * tests/unictype/test-pr_combining.c: Regenerated.
33533         * tests/unictype/test-pr_dash.c: Regenerated.
33534         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33535         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33536         * tests/unictype/test-pr_deprecated.c: Regenerated.
33537         * tests/unictype/test-pr_diacritic.c: Regenerated.
33538         * tests/unictype/test-pr_extender.c: Regenerated.
33539         * tests/unictype/test-pr_format_control.c: Regenerated.
33540         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33541         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33542         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33543         * tests/unictype/test-pr_id_continue.c: Regenerated.
33544         * tests/unictype/test-pr_id_start.c: Regenerated.
33545         * tests/unictype/test-pr_ideographic.c: Regenerated.
33546         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33547         * tests/unictype/test-pr_lowercase.c: Regenerated.
33548         * tests/unictype/test-pr_math.c: Regenerated.
33549         * tests/unictype/test-pr_numeric.c: Regenerated.
33550         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33551         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33552         Regenerated.
33553         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33554         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33555         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33556         * tests/unictype/test-pr_other_math.c: Regenerated.
33557         * tests/unictype/test-pr_punctuation.c: Regenerated.
33558         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33559         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33560         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33561         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33562         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33563         * tests/unictype/test-pr_uppercase.c: Regenerated.
33564         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33565         * tests/unictype/test-pr_xid_start.c: Regenerated.
33566         * tests/unictype/test-pr_zero_width.c: Regenerated.
33567
33568         Update to Unicode 5.1.0.
33569         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33570         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33571         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33572         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33573         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33574         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33575         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33576         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33577         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33578         (nonspacing_table_ind): Update.
33579         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33580
33581         Update to Unicode 5.1.0.
33582         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33583         code transform.
33584         * lib/uniname/uniname.c (unicode_character_name,
33585         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33586         * lib/uniname/uninames.h: Regenerated.
33587         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33588
33589 2009-02-07  Bruno Haible  <bruno@clisp.org>
33590
33591         Merge gen-ctype and gen-lbrk into a single program.
33592         * lib/gen-uni-tables.c: New file, incorporating
33593         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33594         Add directory prefixes to the names of the generated files.
33595         * lib/unictype/gen-ctype.c: Remove file.
33596         * lib/unilbrk/gen-lbrk.c: Remove file.
33597         * modules/gen-uni-tables: New file.
33598         * modules/unictype/gen-ctype: Remove file.
33599         * modules/unilbrk/gen-lbrk: Remove file.
33600
33601 2009-02-07  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33604
33605         New module 'unistr/u32-strcoll'.
33606         * modules/unistr/u32-strcoll: New file.
33607         * lib/unistr/u32-strcoll.c: New file.
33608
33609         New module 'unistr/u16-strcoll'.
33610         * modules/unistr/u16-strcoll: New file.
33611         * lib/unistr/u16-strcoll.c: New file.
33612
33613         New module 'unistr/u8-strcoll'.
33614         * modules/unistr/u8-strcoll: New file.
33615         * lib/unistr/u8-strcoll.c: New file.
33616         * lib/unistr/u-strcoll.h: New file.
33617
33618 2009-02-07  Bruno Haible  <bruno@clisp.org>
33619
33620         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33621         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33622         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33623         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33624         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33625         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33626
33627 2009-02-07  Bruno Haible  <bruno@clisp.org>
33628
33629         Make 64-bit clean.
33630         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33631         output_combclass, output_bidi_category, output_decimal_digit,
33632         output_digit, output_numeric, output_mirror, output_scripts,
33633         output_ident_category): Use proper width specifier in format strings.
33634
33635 2009-02-07  Bruno Haible  <bruno@clisp.org>
33636
33637         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33638         failure behaviour.
33639
33640 2009-02-07  Jim Meyering  <meyering@redhat.com>
33641
33642         regex: avoid compilation failure with upcoming gcc-4.4
33643         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33644         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33645         "... error: integer overflow in preprocessor expression".
33646
33647 2009-02-05  Ben Pfaff  <blp@gnu.org>
33648
33649         Fix link errors on Windows when close module is used.
33650         * modules/close: Add $(LIB_CLOSE) to Link section.
33651         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33652         $(LIB_CLOSE) on Windows.
33653
33654 2009-02-05  Jim Meyering  <meyering@redhat.com>
33655
33656         still avoid unused-parameter warnings, but do it cleanly
33657         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33658         (get_fs_usage): Cast to void instead.
33659         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33660         (dev_from_mount_options, read_file_system_list): Cast to void.
33661         Prompted by Bruno Haible.
33662
33663 2009-02-04  Jim Meyering  <meyering@redhat.com>
33664
33665         fsusage.c: correct copyright year
33666         * lib/fsusage.c: Reflect year in which the change is pushed into
33667
33668         avoid misc. warnings
33669         * lib/fsusage.c (UNUSED_PARAM): Define.
33670         (get_fs_usage): Mark parameter "disk" as unused.
33671         * lib/getugroups.c (getgrent): Use "void" in prototype.
33672         * lib/mountlist.c: Mark unused parameters.
33673         (read_file_system_list): Declare a local with "const".
33674         * lib/nanosleep.c (getnow): Declare static.
33675         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33676
33677         dirfd: set errno upon failure
33678         * lib/dirfd.c: Include <errno.h>.
33679         Set errno to ENOTSUP when returning -1.
33680         * modules/dirfd (Depends-on): Add errno.
33681         Suggested by John Kodis <kodis@comcast.net>.
33682
33683 2009-02-01  Bruno Haible  <bruno@clisp.org>
33684
33685         Don't assume sizeof (long) >= sizeof (void *).
33686         * lib/memcmp.c: Include stdint.h.
33687         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33688         srcp2 to 'const byte *'.
33689         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33690         types to uintptr_t.
33691         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33692         * modules/memcmp (Depends-on): Add stdint.
33693         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33694
33695 2009-01-30  Eric Blake  <ebb9@byu.net>
33696
33697         fix more require-before-expand issues
33698         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33699         expand, AC_PROG_AWK.
33700         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33701
33702 2009-01-28  Eric Blake  <ebb9@byu.net>
33703
33704         version-etc: use consistent URL formatting
33705         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33706         Improve formatting.  Use fputs for string without %.
33707
33708 2009-01-28  Jim Meyering  <meyering@redhat.com>
33709
33710         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33711         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33712         "underquoted definition of NAME" from autoconf-2.59.
33713
33714 2009-01-28  Bruno Haible  <bruno@clisp.org>
33715
33716         * doc/gnulib.texi: Add "Obsolete modules" to index.
33717
33718 2009-01-28  Jim Meyering  <meyering@redhat.com>
33719
33720         useless-if-before-free: recognize more variants
33721         * build-aux/useless-if-before-free: Also recognize e.g.,
33722         if (NULL != p) free (p);
33723
33724 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33725
33726         test-getaddrinfo: skip (don't fail) this test when there's no network
33727         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33728         on the presumption that it means you lack network access.
33729
33730 2009-01-26  Jim Meyering  <meyering@redhat.com>
33731
33732         fflush: avoid warnings on modern systems
33733         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33734         pos and result, into scopes where they're used.
33735
33736 2009-01-26  Eric Blake  <ebb9@byu.net>
33737
33738         Silence warning reintroduced by recent extensions patch.
33739         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33740         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33741         autoconf.
33742
33743         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33744         * m4/00gnulib.m4: New file.
33745         * gnulib-tool (func_get_filelist): Always use it.
33746         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33747         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33748
33749 2009-01-25  Bruno Haible  <bruno@clisp.org>
33750
33751         Make test-quotearg work on MacOS X and AIX.
33752         * tests/test-quotearg.sh: New file.
33753         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33754         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33755         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33756         include <libintl.h>.
33757         (fake_locale): Remove variable.
33758         (gettext, dgettext, dcgettext): Remove functions.
33759         (main): Instead of setting a fake locale, set a real locale. Call
33760         textdomain and bindtextdomain.
33761         * modules/quotearg-tests (Files): Add the new files.
33762         (Depends-on): Add gettext, setenv, unsetenv.
33763         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33764         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33765         Augment TESTS_ENVIRONMENT.
33766
33767 2009-01-25  Bruno Haible  <bruno@clisp.org>
33768
33769         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33770         fr_FR.ISO8859-1 locale on MacOS X.
33771         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33772         ja_JP.eucJP locale on MacOS X.
33773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33774         zh_CN.GB18030 locale on MacOS X.
33775
33776 2009-01-25  Bruno Haible  <bruno@clisp.org>
33777
33778         Avoid link errors on MacOS X 10.3.
33779         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33780         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33781
33782 2009-01-25  Bruno Haible  <bruno@clisp.org>
33783
33784         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33785         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33786         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33787         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33788         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33789         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33790         posix_spawnattr_init, posix_spawnattr_setsigmask,
33791         posix_spawnattr_setflags, posix_spawnattr_destroy.
33792
33793         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33794         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33795         * modules/execute (Files): Remove m4/posix_spawn.m4.
33796         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33797         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33798         posix_spawnattr_init, posix_spawnattr_setsigmask,
33799         posix_spawnattr_setflags, posix_spawnattr_destroy.
33800
33801 2009-01-25  Bruno Haible  <bruno@clisp.org>
33802
33803         * lib/glthread/threadlib.c: Include <stdlib.h>.
33804
33805 2009-01-25  Bruno Haible  <bruno@clisp.org>
33806
33807         * lib/glthread/threadlib.c (dummy): New declaration.
33808
33809 2009-01-25  Bruno Haible  <bruno@clisp.org>
33810
33811         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33812         multibyte characters also for the GB18030 encoding. Don't crash when
33813         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33814
33815 2009-01-25  Bruno Haible  <bruno@clisp.org>
33816
33817         Avoid redefining 'struct random_data' on OSF/1 5.1.
33818         * lib/stdlib.in.h: Include <random.h> if it exists.
33819         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33820         HAVE_RANDOM_H. Include <random.h> when testing whether
33821         'struct random_data' exists.
33822         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33823
33824 2009-01-25  Bruno Haible  <bruno@clisp.org>
33825
33826         Don't install charset.alias on MacOS X >= 10.3.
33827         * lib/localcharset.c (DARWIN7): New macro.
33828         (get_charset_aliases): Hardcode the result for Darwin7.
33829         * modules/localcharset (install-exec-local): Don't install
33830         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33831
33832 2009-01-25  Bruno Haible  <bruno@clisp.org>
33833
33834         Don't install charset.alias on mingw and Cygwin.
33835         * modules/localcharset (install-exec-local): Don't install
33836         charset.alias on mingw and Cygwin, if the file does not yet exist.
33837         The result for these platforms is hardcoded in localcharset.c.
33838
33839 2009-01-25  Bruno Haible  <bruno@clisp.org>
33840
33841         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33843         before requiring AC_USE_SYSTEM_EXTENSIONS.
33844
33845 2009-01-25  Jim Meyering  <meyering@redhat.com>
33846
33847         c-strtod: avoid warnings
33848         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33849         "assignment discards qualifiers from pointer target type" warnings.
33850
33851 2009-01-24  Bruno Haible  <bruno@clisp.org>
33852
33853         Add support for non-UTF-8 locales on MacOS X.
33854         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33855         canonical encodings. For Darwin 7 and newer, don't map traditional
33856         encodings to UTF-8.
33857         Reported by Vincent Lefevre <vincent@vinc17.org>
33858         at <http://savannah.gnu.org/bugs/?25235>.
33859
33860 2009-01-24  Bruno Haible  <bruno@clisp.org>
33861
33862         * doc/gnulib.texi (Obsolete modules): New section.
33863         Reported by Mike Frysinger <vapier@gentoo.org>.
33864
33865 2009-01-24  Bruno Haible  <bruno@clisp.org>
33866
33867         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33868         (%.dvi): New rule.
33869
33870 2009-01-24  Bruno Haible  <bruno@clisp.org>
33871
33872         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33873         Reported by Eric Blake.
33874
33875 2009-01-24  Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33878         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33879         Reported by Gary V. Vaughan <gary@gnu.org>.
33880
33881 2009-01-24  Bruno Haible  <bruno@clisp.org>
33882
33883         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33884
33885 2009-01-23  Bruno Haible  <bruno@clisp.org>
33886
33887         Make c-strtod, c-strtold usable in libraries.
33888         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33889         (C_STRTOD): Call strdup instead of xstrdup.
33890         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33891         * modules/c-strtold (Depends-on): Likewise.
33892         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33893         * NEWS: Mention the change.
33894         Reported by Michael Gold <mgold@ncf.ca>.
33895
33896 2009-01-23  Jim Meyering  <meyering@redhat.com>
33897
33898         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33899         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33900         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33901
33902 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33903
33904         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33905         GNU CoreUtils.
33906         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33907         * modules/version-etc (Description): Update.
33908
33909 2009-01-22  Bruno Haible  <bruno@clisp.org>
33910
33911         Cache the C locale object.
33912         * lib/c-strtod.c (c_locale_cache): New variable.
33913         (c_locale): New function.
33914         (C_STRTOD): Use it, and don't call freelocale.
33915         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33916         Suggested by Paolo Bonzini.
33917
33918 2009-01-21  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33921         conditions other than overflow.
33922
33923 2009-01-21  Bruno Haible  <bruno@clisp.org>
33924
33925         * lib/c-strtod.c: Include errno.h.
33926         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33927         value from STRTOD_L and STRTOD.
33928
33929 2009-01-21  Bruno Haible  <bruno@clisp.org>
33930         and Jim Meyering  <meyering@redhat.com>
33931
33932         nanosleep: skip configure test (fail it) for apple universal builds
33933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33934         universal builds, assume that nanosleep does not work.
33935         * modules/nanosleep (Depends-on): Add multiarch.
33936
33937         mktime: skip configure test (fail it) for apple universal builds
33938         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33939         universal builds, assume that mktime does not work.
33940         * modules/mktime (Depends-on): Add multiarch.
33941
33942 2009-01-21  Eric Blake  <ebb9@byu.net>
33943
33944         multiarch: avoid expand-before-require warning
33945         * modules/multiarch (configure.ac): Require, rather than expand,
33946         gl_MULTIARCH.
33947         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33948         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33949         enforce that all clients require it.  Partial reversion of
33950         2008-12-29 patch.
33951
33952         error: avoid expand-before-require warning
33953         * modules/errno (configure.ac): Require, rather than expand,
33954         gl_HEADER_ERRNO_H.
33955         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33956         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33957         enforce that all clients require it.
33958
33959         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33960         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33961         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33962         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33963
33964 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33965
33966         Revert:
33967         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33968
33969         regex: do not depend on obsolete modules.
33970         * modules/regex: Remove memcmp and memmove.
33971
33972 2009-01-20  Bruno Haible  <bruno@clisp.org>
33973
33974         Make the 'link' module link on Windows NT 4.
33975         * lib/link.c (_WIN32_WINNT): Don't define.
33976         (CreateHardLinkFuncType): New type.
33977         (CreateHardLinkFunc, initialized): New variables.
33978         (initialize): New function.
33979         (link): Invoke CreateHardLink indirectly through the function pointer.
33980
33981 2009-01-20  Bruno Haible  <bruno@clisp.org>
33982
33983         Fix compilation failure on mingw.
33984         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33985
33986 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33987
33988         * doc/c-strtod.texi: Mention a couple of restrictions.
33989
33990 2009-01-20  Jim Meyering  <meyering@redhat.com>
33991
33992         gettimeofday: move more declarations out of functions
33993         * lib/gettimeofday.c: Move extern declarations of tzset and
33994         gmtime out of containing functions.  Prompted by Bruno Haible.
33995
33996 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33997
33998         regex: do not depend on obsolete modules.
33999         * modules/regex: Remove memcmp and memmove.
34000
34001 2009-01-19  Bruno Haible  <bruno@clisp.org>
34002
34003         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34004         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34005         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34006         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34007         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34008
34009 2009-01-19  Bruno Haible  <bruno@clisp.org>
34010
34011         * tests/test-link.c: Include <errno.h>.
34012         (main): Exit with code 77 when a hard link cannot be created due to
34013         the file system.
34014         * tests/test-link.sh: Skip test when a hard link cannot be created due
34015         to the file system.
34016         Suggested by Eric Blake.
34017
34018 2009-01-19  Martin Lambers  <marlam@marlam.de>
34019
34020         * modules/link-tests: New file.
34021         * tests/test-link.sh: New file.
34022         * tests/test-link.c: New file.
34023
34024 2009-01-19  Eric Blake  <ebb9@byu.net>
34025
34026         doc: mention another function added in cygwin 1.7.0
34027         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34028         Another new function in cygwin 1.7.
34029
34030 2009-01-19  Bruno Haible  <bruno@clisp.org>
34031
34032         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34033         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34034         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34035         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34036         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34037         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34039         * m4/md4.m4 (gl_MD4): Likewise.
34040         * m4/md5.m4 (gl_MD5): Likewise.
34041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34042         * m4/sha1.m4 (gl_SHA1): Likewise.
34043         * m4/sha256.m4 (gl_SHA256): Likewise.
34044         * m4/sha512.m4 (gl_SHA512): Likewise.
34045
34046 2009-01-19  Bruno Haible  <bruno@clisp.org>
34047
34048         * modules/uniname/uniname-tests (Depends-on): Add progname.
34049         * tests/uniname/test-uninames.c: Include progname.h.
34050         (main): Call set_program_name.
34051
34052         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34053         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34054         (main): Call set_program_name.
34055
34056         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34057         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34058         (main): Call set_program_name.
34059
34060         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34061         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34062         (main): Call set_program_name.
34063
34064         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34065         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34066         (main): Call set_program_name.
34067
34068         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34069         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34070         (main): Call set_program_name.
34071
34072         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34073         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34074         (main): Call set_program_name.
34075
34076         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34077         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34078         (main): Call set_program_name.
34079
34080         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34081         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34082         (main): Call set_program_name.
34083
34084 2009-01-19  Eric Blake  <ebb9@byu.net>
34085
34086         test-unistd: test previous patch
34087         * tests/test-unistd.c: Test *_FILENO macros.
34088
34089         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34090         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34091         Guarantee a definition.
34092         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34093         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34094         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34095         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34096         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34097         Likewise.
34098         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34099         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34100         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34101         Likewise.
34102         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34103         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34104         (STDERR_FILENO): Likewise.
34105         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34106         (STDERR_FILENO): Likewise.
34107         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34108         (STDERR_FILENO): Likewise.
34109         Reported by Elbert Pol.
34110
34111 2009-01-19  Eric Blake  <ebb9@byu.net>
34112
34113         doc: mention more functions added in cygwin 1.7.0
34114         * doc/posix-functions/abort.texi (abort): Update wording related
34115         to cygwin.
34116         * doc/posix-functions/daylight.texi (daylight): Likewise.
34117         * doc/posix-functions/optarg.texi (optarg): Likewise.
34118         * doc/posix-functions/optarg.texi (opterr): Likewise.
34119         * doc/posix-functions/optarg.texi (optind): Likewise.
34120         * doc/posix-functions/optarg.texi (optopt): Likewise.
34121         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34122         worked in 1.5.x, and was withdrawn in 1.7.
34123         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34124         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34125         cygwin versions.
34126         * doc/posix-functions/perror.texi (perror): Likewise.
34127         * doc/posix-functions/printf.texi (printf): Likewise.
34128         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34129         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34130         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34131         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34132         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34133         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34134         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34135         Likewise.
34136         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34137         Likewise.
34138         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34139         this function.
34140         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34141         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34142         Likewise.
34143         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34144         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34145         * doc/posix-functions/confstr.texi (confstr): Likewise.
34146         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34147         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34148         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34149         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34150         * doc/posix-functions/fputws.texi (fputws): Likewise.
34151         * doc/posix-functions/fwide.texi (fwide): Likewise.
34152         * doc/posix-functions/getwc.texi (getwc): Likewise.
34153         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34154         * doc/posix-functions/putwc.texi (putwc): Likewise.
34155         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34156         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34157         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34158         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34159         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34160         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34161         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34162         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34163         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34164         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34165         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34166
34167 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34168
34169         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34170         * lib/ioctl.c: Include <sys/ioctl.h>.
34171
34172 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34173
34174         * modules/getdate-tests (Depends-on): Add progname.
34175         * tests/test-getdate.c: Use progname module, to avoid link errors
34176         on non-glibc systems.
34177
34178 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34179
34180         * modules/filenamecat-tests (Depends-on): Add progname.
34181         * modules/fstrcmp-tests (Depends-on): Likewise.
34182
34183         * tests/test-filenamecat.c: Use progname module, to avoid link
34184         errors on non-glibc systems.
34185         * tests/test-fstrcmp.c: Likewise.
34186
34187 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34188
34189         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34190         * lib/gettimeofday.c: Move extern declaration out of function.
34191
34192 2009-01-18  Bruno Haible  <bruno@clisp.org>
34193
34194         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34195         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34196         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34197
34198 2009-01-18  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/strftime.c (MEMPCPY): Remove unused macro.
34201         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34202
34203 2009-01-18  Martin Lambers  <marlam@marlam.de>
34204
34205         New module 'link'.
34206         * lib/unistd.in.h (link): New declaration.
34207         * lib/link.c: New file.
34208         * m4/link.m4: New file.
34209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34210         HAVE_LINK.
34211         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34212         * modules/link: New file.
34213         * doc/posix-functions/link.texi: Mention the new module.
34214
34215 2009-01-18  Bruno Haible  <bruno@clisp.org>
34216
34217         * tests/test-avltree_list.c (main): Call set_program_name.
34218         * tests/test-avltree_oset.c (main): Likewise.
34219         * tests/test-obstack-printf.c: Include progname.h.
34220         (main): Call set_program_name.
34221         * tests/test-quotearg.c: Include progname.h.
34222         (main): Call set_program_name.
34223         * tests/test-xmemdup0.c: Include progname.h.
34224         (main): Call set_program_name.
34225
34226 2009-01-18  Bruno Haible  <bruno@clisp.org>
34227
34228         New module 'alphasort'.
34229         * lib/dirent.in.h (alphasort): New declaration.
34230         * lib/alphasort.c: New file, from glibc with modifications.
34231         * m4/alphasort.m4: New file.
34232         * modules/alphasort: New file.
34233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34234         HAVE_ALPHASORT.
34235         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34236         HAVE_ALPHASORT.
34237         * doc/posix-functions/alphasort.texi: Mention the new module and the
34238         portability problems.
34239
34240 2009-01-18  Bruno Haible  <bruno@clisp.org>
34241
34242         New module 'scandir'.
34243         * lib/dirent.in.h (scandir): New declaration.
34244         * lib/scandir.c: New file, from glibc with modifications.
34245         * m4/scandir.m4: New file.
34246         * modules/scandir: New file.
34247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34248         HAVE_SCANDIR.
34249         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34250         HAVE_SCANDIR.
34251         * doc/posix-functions/scandir.texi: Mention the new module and the
34252         portability problems.
34253
34254 2009-01-17  Bruno Haible  <bruno@clisp.org>
34255
34256         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34257         Update documentation.
34258         (func_remove_suffix): Escape all dots in the suffix. Update
34259         documentation.
34260         (func_filter_filelist): Update documentation.
34261         Reported by Ralf Wildenhues.
34262
34263 2009-01-17  Bruno Haible  <bruno@clisp.org>
34264
34265         * modules/dprintf-posix-tests: New file.
34266         * tests/test-dprintf-posix.sh: New file.
34267         * tests/test-dprintf-posix.c: New file.
34268
34269         New modules 'dprintf', 'dprintf-posix'.
34270         * lib/stdio.in.h (dprintf): New declaration.
34271         * lib/dprintf.c: New file.
34272         * m4/dprintf.m4: New file.
34273         * m4/dprintf-posix.m4: New file.
34274         * modules/dprintf: New file.
34275         * modules/dprintf-posix: New file.
34276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34277         HAVE_DPRINTF, REPLACE_DPRINTF.
34278         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34279         HAVE_DPRINTF, REPLACE_DPRINTF.
34280         * doc/posix-functions/dprintf.texi: Mention the new modules.
34281
34282 2009-01-17  Bruno Haible  <bruno@clisp.org>
34283
34284         * modules/vdprintf-posix-tests: New file.
34285         * tests/test-vdprintf-posix.sh: New file.
34286         * tests/test-vdprintf-posix.c: New file.
34287
34288         New modules 'vdprintf', 'vdprintf-posix'.
34289         * lib/stdio.in.h (vdprintf): New declaration.
34290         * lib/vdprintf.c: New file.
34291         * m4/vdprintf.m4: New file.
34292         * m4/vdprintf-posix.m4: New file.
34293         * modules/vdprintf: New file.
34294         * modules/vdprintf-posix: New file.
34295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34296         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34297         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34298         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34299         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34300
34301 2009-01-17  Bruno Haible  <bruno@clisp.org>
34302
34303         Fix replacement of fopen on mingw.
34304         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34305         mingw.
34306
34307 2009-01-17  Bruno Haible  <bruno@clisp.org>
34308
34309         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34310         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34311
34312 2009-01-17  Bruno Haible  <bruno@clisp.org>
34313
34314         Avoid test-fflush2.sh failure on mingw.
34315         * tests/test-fflush2.c: Include binary-io.h.
34316         (main): Put standard input into binary mode.
34317         * modules/fflush-tests (Depends-on): Add binary-io.
34318
34319 2009-01-17  Bruno Haible  <bruno@clisp.org>
34320
34321         * lib/wchar.in.h: In another particular situation, include only the
34322         system's <wchar.h> file.
34323         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34324         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34325         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34326
34327 2009-01-17  Bruno Haible  <bruno@clisp.org>
34328
34329         Support for stripping executables in --enable-relocatable.
34330         * build-aux/install-reloc: Expect one more argument, or an environment
34331         variable RELOC_STRIP_PROG. If set, strip the destination program and
34332         its wrapper.
34333         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34334         RELOC_STRIP_PROG.
34335         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34336         to set RELOCATABLE_STRIP.
34337         * NEWS: Mention the new Makefile requirement.
34338
34339 2009-01-17  Bruno Haible  <bruno@clisp.org>
34340
34341         * build-aux/install-reloc: Remove debugging information left over by
34342         C compiler on MacOS X.
34343
34344 2009-01-17  Bruno Haible  <bruno@clisp.org>
34345
34346         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34347         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34348         _NSGetExecutablePath.
34349
34350 2009-01-16  Jim Meyering  <meyering@redhat.com>
34351
34352         strerror: avoid warnings about discarding "const"
34353         * lib/strerror.c (rpl_strerror): Instead of returning a const
34354         string from each and every "case", use a variable, and add a single
34355         cast after the switch.
34356
34357 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34358
34359         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34360
34361 2009-01-16  Bruno Haible  <bruno@clisp.org>
34362
34363         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34364         array initializer syntax that also works in C++ mode.
34365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34366
34367 2009-01-16  Jim Meyering  <meyering@redhat.com>
34368
34369         poll: suppress a warning
34370         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34371         to ignore "...unsigned expression < 0 is always false" warnings.
34372
34373 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34374
34375         poll: remove declarations of unused variables
34376         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34377         sockbuf and optlen.
34378
34379 2009-01-15  Bruno Haible  <bruno@clisp.org>
34380
34381         Make fflush-after-ungetc POSIX compliant on BSD systems.
34382         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34383         (clear_ungetc_buffer): Implement also for other systems.
34384         (rpl_fflush): On glibc systems, invoke
34385         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34386         clear_ungetc_buffer after fetching the stream's position, not before.
34387
34388 2009-01-15  Bruno Haible  <bruno@clisp.org>
34389
34390         Make fflush-after-ungetc POSIX compliant on glibc systems.
34391         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34392         after ungetc.
34393         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34394         (rpl_fflush): On glibc systems, simply call the system's fflush
34395         function after clearing the ungetc buffer.
34396         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34397         Instead, lseek only to the end of file, then use the system's fseeko
34398         for the rest. On glibc systems, reset the EOF indicator bit.
34399
34400 2009-01-15  Jim Meyering  <meyering@redhat.com>
34401
34402         openmp.m4: revert quote-adding change, for portability to older autoconf
34403         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34404         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34405         Simon Josefsson noticed the problem when using autoconf-2.61.
34406
34407 2009-01-15  Bruno Haible  <bruno@clisp.org>
34408
34409         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34410         * tests/test-fflush2.c (ASSERT): Always fail.
34411         (main): Add two tests for fflush() after ungetc(), taking into account
34412         the Austin Group's clarification.
34413         Suggested by Eric Blake.
34414
34415 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34416
34417         mktime.m4: remove K&R-style function prototypes
34418         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34419         for the Sun C++ compiler.
34420
34421 2009-01-14  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34424         while including <wchar.h>.
34425         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34426         the system's <wchar.h> file.
34427         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34428
34429 2009-01-14  Bruno Haible  <bruno@clisp.org>
34430
34431         * m4/csharp.m4: Don't mention gettext on the serial number line.
34432         * m4/csharpexec.m4: Likewise.
34433         * m4/eaccess.m4: Likewise.
34434         * m4/javaexec.m4: Likewise.
34435         * m4/sig_atomic_t.m4: Likewise.
34436         * m4/tmpdir.m4: Likewise.
34437         * m4/intldir.m4: Bump gettext version.
34438         * m4/lib-ld.m4: Likewise.
34439
34440 2009-01-14  Bruno Haible  <bruno@clisp.org>
34441
34442         * lib/progname.c (set_program_name): Add more comments.
34443         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34444
34445 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34446
34447         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34448         were sys/stat.h does not define it.
34449
34450 2009-01-14  Jim Meyering  <meyering@redhat.com>
34451
34452         many *.m4 files: improve m4 quoting
34453         99% of this change was performed by running the following commands:
34454         git ls-files | grep '\.m4$' | xargs perl -pi \
34455           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34456           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34457           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34458           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34459         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34460         The remainder were to add Copyright dates, increment serial numbers,
34461         undo some changes in comments, exclude m4/intl.m4, and add quotes
34462         around the "1" in ",1" where the unusual spacing prohibited the
34463         above regexps from doing the job.  For more details, see
34464         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34465         * m4/acl.m4: Modified.
34466         * m4/afs.m4: Likewise.
34467         * m4/alloca.m4: Likewise.
34468         * m4/argp.m4: Likewise.
34469         * m4/argz.m4: Likewise.
34470         * m4/atexit.m4: Likewise.
34471         * m4/bison-i18n.m4: Likewise.
34472         * m4/bison.m4: Likewise.
34473         * m4/byteswap.m4: Likewise.
34474         * m4/c-stack.m4: Likewise.
34475         * m4/c-strtod.m4: Likewise.
34476         * m4/calloc.m4: Likewise.
34477         * m4/canonicalize-lgpl.m4: Likewise.
34478         * m4/chown.m4: Likewise.
34479         * m4/clock_time.m4: Likewise.
34480         * m4/codeset.m4: Likewise.
34481         * m4/copy-file.m4: Likewise.
34482         * m4/csharp.m4: Likewise.
34483         * m4/csharpcomp.m4: Likewise.
34484         * m4/csharpexec.m4: Likewise.
34485         * m4/d-ino.m4: Likewise.
34486         * m4/d-type.m4: Likewise.
34487         * m4/dirfd.m4: Likewise.
34488         * m4/double-slash-root.m4: Likewise.
34489         * m4/eaccess.m4: Likewise.
34490         * m4/eealloc.m4: Likewise.
34491         * m4/environ.m4: Likewise.
34492         * m4/errno_h.m4: Likewise.
34493         * m4/euidaccess.m4: Likewise.
34494         * m4/execute.m4: Likewise.
34495         * m4/fatal-signal.m4: Likewise.
34496         * m4/fchdir.m4: Likewise.
34497         * m4/fcntl_h.m4: Likewise.
34498         * m4/fileblocks.m4: Likewise.
34499         * m4/filenamecat.m4: Likewise.
34500         * m4/findprog.m4: Likewise.
34501         * m4/flexmember.m4: Likewise.
34502         * m4/fnmatch.m4: Likewise.
34503         * m4/fopen.m4: Likewise.
34504         * m4/fpending.m4: Likewise.
34505         * m4/fprintf-posix.m4: Likewise.
34506         * m4/free.m4: Likewise.
34507         * m4/frexp.m4: Likewise.
34508         * m4/frexpl.m4: Likewise.
34509         * m4/fsusage.m4: Likewise.
34510         * m4/ftruncate.m4: Likewise.
34511         * m4/gc-camellia.m4: Likewise.
34512         * m4/gc-random.m4: Likewise.
34513         * m4/gc.m4: Likewise.
34514         * m4/getaddrinfo.m4: Likewise.
34515         * m4/getcwd-abort-bug.m4: Likewise.
34516         * m4/getcwd-path-max.m4: Likewise.
34517         * m4/getdate.m4: Likewise.
34518         * m4/getdomainname.m4: Likewise.
34519         * m4/getgroups.m4: Likewise.
34520         * m4/gethostname.m4: Likewise.
34521         * m4/gethrxtime.m4: Likewise.
34522         * m4/getline.m4: Likewise.
34523         * m4/getloadavg.m4: Likewise.
34524         * m4/getndelim2.m4: Likewise.
34525         * m4/getpass.m4: Likewise.
34526         * m4/gettext.m4: Likewise.
34527         * m4/gettime.m4: Likewise.
34528         * m4/gettimeofday.m4: Likewise.
34529         * m4/gnulib-common.m4: Likewise.
34530         * m4/group-member.m4: Likewise.
34531         * m4/host-os.m4: Likewise.
34532         * m4/iconv.m4: Likewise.
34533         * m4/iconv_open.m4: Likewise.
34534         * m4/inet_ntop.m4: Likewise.
34535         * m4/inet_pton.m4: Likewise.
34536         * m4/inline.m4: Likewise.
34537         * m4/intldir.m4: Likewise.
34538         * m4/intlmacosx.m4: Likewise.
34539         * m4/intmax.m4: Likewise.
34540         * m4/intmax_t.m4: Likewise.
34541         * m4/inttypes.m4: Likewise.
34542         * m4/inttypes_h.m4: Likewise.
34543         * m4/inttypes-pri.m4: Likewise.
34544         * m4/isapipe.m4: Likewise.
34545         * m4/isnand.m4: Likewise.
34546         * m4/isnanf.m4: Likewise.
34547         * m4/isnanl.m4: Likewise.
34548         * m4/javacomp.m4: Likewise.
34549         * m4/javaexec.m4: Likewise.
34550         * m4/jm-winsz1.m4: Likewise.
34551         * m4/jm-winsz2.m4: Likewise.
34552         * m4/lchown.m4: Likewise.
34553         * m4/lcmessage.m4: Likewise.
34554         * m4/ldexpl.m4: Likewise.
34555         * m4/lib-ld.m4: Likewise.
34556         * m4/lib-link.m4: Likewise.
34557         * m4/libsigsegv.m4: Likewise.
34558         * m4/link-follow.m4: Likewise.
34559         * m4/localcharset.m4: Likewise.
34560         * m4/locale-fr.m4: Likewise.
34561         * m4/locale-ja.m4: Likewise.
34562         * m4/locale-tr.m4: Likewise.
34563         * m4/locale-zh.m4: Likewise.
34564         * m4/lock.m4: Likewise.
34565         * m4/longlong.m4: Likewise.
34566         * m4/ls-mntd-fs.m4: Likewise.
34567         * m4/lstat.m4: Likewise.
34568         * m4/malloc.m4: Likewise.
34569         * m4/mathl.m4: Likewise.
34570         * m4/mbrtowc.m4: Likewise.
34571         * m4/mbstate_t.m4: Likewise.
34572         * m4/mbswidth.m4: Likewise.
34573         * m4/memchr.m4: Likewise.
34574         * m4/memcmp.m4: Likewise.
34575         * m4/memcpy.m4: Likewise.
34576         * m4/memmem.m4: Likewise.
34577         * m4/memmove.m4: Likewise.
34578         * m4/mempcpy.m4: Likewise.
34579         * m4/memrchr.m4: Likewise.
34580         * m4/memset.m4: Likewise.
34581         * m4/minmax.m4: Likewise.
34582         * m4/mkdir-slash.m4: Likewise.
34583         * m4/mkdtemp.m4: Likewise.
34584         * m4/mktime.m4: Likewise.
34585         * m4/mmap-anon.m4: Likewise.
34586         * m4/mountlist.m4: Likewise.
34587         * m4/nanosleep.m4: Likewise.
34588         * m4/nls.m4: Likewise.
34589         * m4/nocrash.m4: Likewise.
34590         * m4/open.m4: Likewise.
34591         * m4/openat.m4: Likewise.
34592         * m4/openmp.m4: Likewise.
34593         * m4/pathmax.m4: Likewise.
34594         * m4/perl.m4: Likewise.
34595         * m4/physmem.m4: Likewise.
34596         * m4/pipe.m4: Likewise.
34597         * m4/po.m4: Likewise.
34598         * m4/poll.m4: Likewise.
34599         * m4/posixtm.m4: Likewise.
34600         * m4/posixver.m4: Likewise.
34601         * m4/printf-frexp.m4: Likewise.
34602         * m4/printf-frexpl.m4: Likewise.
34603         * m4/printf-posix.m4: Likewise.
34604         * m4/printf-posix-rpl.m4: Likewise.
34605         * m4/printf.m4: Likewise.
34606         * m4/progtest.m4: Likewise.
34607         * m4/putenv.m4: Likewise.
34608         * m4/readline.m4: Likewise.
34609         * m4/readlink.m4: Likewise.
34610         * m4/readutmp.m4: Likewise.
34611         * m4/realloc.m4: Likewise.
34612         * m4/regex.m4: Likewise.
34613         * m4/relocatable.m4: Likewise.
34614         * m4/relocatable-lib.m4: Likewise.
34615         * m4/rename-dest-slash.m4: Likewise.
34616         * m4/rename.m4: Likewise.
34617         * m4/rmdir-errno.m4: Likewise.
34618         * m4/rmdir.m4: Likewise.
34619         * m4/roundf.m4: Likewise.
34620         * m4/roundl.m4: Likewise.
34621         * m4/rpmatch.m4: Likewise.
34622         * m4/save-cwd.m4: Likewise.
34623         * m4/selinux-selinux-h.m4: Likewise.
34624         * m4/setenv.m4: Likewise.
34625         * m4/settime.m4: Likewise.
34626         * m4/sig2str.m4: Likewise.
34627         * m4/sig_atomic_t.m4: Likewise.
34628         * m4/signalblocking.m4: Likewise.
34629         * m4/signbit.m4: Likewise.
34630         * m4/sigpipe.m4: Likewise.
34631         * m4/sockets.m4: Likewise.
34632         * m4/sockpfaf.m4: Likewise.
34633         * m4/st_dm_mode.m4: Likewise.
34634         * m4/stat-time.m4: Likewise.
34635         * m4/stdbool.m4: Likewise.
34636         * m4/stdint.m4: Likewise.
34637         * m4/stdint_h.m4: Likewise.
34638         * m4/stpcpy.m4: Likewise.
34639         * m4/stpncpy.m4: Likewise.
34640         * m4/strcase.m4: Likewise.
34641         * m4/strchrnul.m4: Likewise.
34642         * m4/strcspn.m4: Likewise.
34643         * m4/strdup.m4: Likewise.
34644         * m4/strftime.m4: Likewise.
34645         * m4/strndup.m4: Likewise.
34646         * m4/strnlen.m4: Likewise.
34647         * m4/strpbrk.m4: Likewise.
34648         * m4/strptime.m4: Likewise.
34649         * m4/strsep.m4: Likewise.
34650         * m4/strtod.m4: Likewise.
34651         * m4/strtoimax.m4: Likewise.
34652         * m4/strtok_r.m4: Likewise.
34653         * m4/strtol.m4: Likewise.
34654         * m4/strtoll.m4: Likewise.
34655         * m4/strtoul.m4: Likewise.
34656         * m4/strtoull.m4: Likewise.
34657         * m4/strtoumax.m4: Likewise.
34658         * m4/strverscmp.m4: Likewise.
34659         * m4/threadlib.m4: Likewise.
34660         * m4/timegm.m4: Likewise.
34661         * m4/tm_gmtoff.m4: Likewise.
34662         * m4/tmpdir.m4: Likewise.
34663         * m4/tmpfile.m4: Likewise.
34664         * m4/tzset.m4: Likewise.
34665         * m4/uintmax_t.m4: Likewise.
34666         * m4/unlinkdir.m4: Likewise.
34667         * m4/unlocked-io.m4: Likewise.
34668         * m4/uptime.m4: Likewise.
34669         * m4/userspec.m4: Likewise.
34670         * m4/utimbuf.m4: Likewise.
34671         * m4/utime.m4: Likewise.
34672         * m4/utimes-null.m4: Likewise.
34673         * m4/utimes.m4: Likewise.
34674         * m4/vararrays.m4: Likewise.
34675         * m4/vasnprintf.m4: Likewise.
34676         * m4/vfprintf-posix.m4: Likewise.
34677         * m4/vprintf-posix.m4: Likewise.
34678         * m4/wait-process.m4: Likewise.
34679         * m4/wchar_t.m4: Likewise.
34680         * m4/wint_t.m4: Likewise.
34681         * m4/write-any-file.m4: Likewise.
34682         * m4/yield.m4: Likewise.
34683
34684 2009-01-13  Bruno Haible  <bruno@clisp.org>
34685
34686         Avoid test-copy-file.sh failures when ACL support insufficient.
34687         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34688         TESTS_ENVIRONMENT.
34689         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34690         Reported by Jim Meyering.
34691
34692 2009-01-13  Bruno Haible  <bruno@clisp.org>
34693
34694         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34695         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34696         * modules/unistdio/u8-printf-parse (Files): Likewise.
34697         * modules/unistdio/u32-printf-parse (Files): Likewise.
34698         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34699
34700 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34701
34702         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34703         and m4/inttypes_h.m4 too.
34704
34705 2009-01-12  Eric Blake  <ebb9@byu.net>
34706
34707         tests: IRIX 6.2 cc can't compile -0.0 into .data
34708         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34709         rather than at compile-time.
34710         * tests/test-floorl.c (minus_zero): Likewise.
34711         * tests/test-frexpl.c (minus_zero): Likewise.
34712         * tests/test-isnan.c (minus_zerol): Likewise.
34713         * tests/test-isnanl.h (minus_zero): Likewise.
34714         * tests/test-ldexpl.c (minus_zero): Likewise.
34715         * tests/test-roundl.c (minus_zero): Likewise.
34716         * tests/test-signbit.c (minus_zerol): Likewise.
34717         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34718         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34719         * tests/test-truncl.c (minus_zero): Likewise.
34720         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34721         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34722         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34723
34724 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34725
34726         regex: fix glibc bug 9697
34727         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34728         handling.
34729
34730 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34731
34732         regex: fix glibc bug 697
34733         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34734         being NULL also if there are no backreferences.
34735
34736 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34737
34738         regex: merge glibc changes
34739         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34740         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34741         re_string_skip_chars, re_string_reconstruct): Likewise.
34742         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34743
34744 2009-01-07  Jim Meyering  <meyering@redhat.com>
34745
34746         poll: filter through cppi
34747         * lib/poll.c: Indent cpp directives to reflect nesting.
34748
34749 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34750
34751         poll: don't return uninitialized
34752         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34753
34754 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34755
34756         avoid compile failure on AIX 6.1
34757         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34758         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34759
34760 2009-01-04  Jim Meyering  <meyering@redhat.com>
34761
34762         remove duplicate inclusion of <stdio.h>
34763         * tests/test-fprintf-posix.c: Likewise.
34764         * tests/test-printf-posix.c: Likewise.
34765         * tests/test-snprintf-posix.c: Likewise.
34766         * tests/test-sprintf-posix.c: Likewise.
34767         * tests/test-vasprintf-posix.c: Likewise.
34768         * tests/test-vfprintf-posix.c: Likewise.
34769         * tests/test-vprintf-posix.c: Likewise.
34770         * tests/test-vsnprintf-posix.c: Likewise.
34771         * tests/test-vsprintf-posix.c: Likewise.
34772
34773 2009-01-03  Jim Meyering  <meyering@redhat.com>
34774
34775         gnulib-tool: fix sed-based filtering
34776         * gnulib-tool (func_filter_filelist): Remove extra backslash
34777         in sed_fff_filter definition.
34778
34779 2009-01-02  Jim Meyering  <meyering@redhat.com>
34780
34781         strftime: avoid compilation failure on Solaris 2.6
34782         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34783         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34784         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34785         be available.  Reported by Tom G. Christensen.  Details in
34786         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34787
34788 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34789             Bruno Haible  <bruno@clisp.org>
34790
34791         Speed up gnulib-tool by doing more string processing through shell
34792         built-ins.
34793         * gnulib-tool (fast_func_append): New variable.
34794         (func_remove_prefix, func_remove_suffix): New functions.
34795         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34796         (func_filter_filelist): New function.
34797         (func_get_dependencies): Use func_remove_suffix instead of sed.
34798         (func_get_automake_snippet): Use func_filter_filelist instead of a
34799         subshell and sed invocation.
34800
34801 2009-01-01  Bruno Haible  <bruno@clisp.org>
34802
34803         Fix a security bug.
34804         * gnulib-tool (func_import, import, update): Don't allow the characters
34805         '"', '$', '`', '\' in macro arguments that become part of commands that
34806         are evaluated.
34807
34808 2009-01-01  Bruno Haible  <bruno@clisp.org>
34809
34810         * gnulib-tool (func_reset_sigpipe): Add more comments.
34811
34812 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34813
34814         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34815         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34816         already know the answer.
34817
34818 2009-01-01  Jim Meyering  <meyering@redhat.com>
34819
34820         * lib/version-etc.c (version_etc_va): Update copyright year.
34821
34822 2008-12-30  Bruno Haible  <bruno@clisp.org>
34823
34824         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34825         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34826         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34827
34828 2008-12-29  Eric Blake  <ebb9@byu.net>
34829
34830         multiarch: avoid autoconf AC_REQUIRE bug
34831         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34832         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34833         2.63 and older.
34834         Reported by Bruno Haible, and analyzed in
34835         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34836
34837 2008-12-29  Bruno Haible  <bruno@clisp.org>
34838
34839         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34840         files in subdirectories correctly.
34841         Reported by Ralf Wildenhues.
34842
34843 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34844
34845         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34846         rather than 'join FILE -', for Solaris join.
34847
34848 2008-12-29  Bruno Haible  <bruno@clisp.org>
34849
34850         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34851         quoting.
34852         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34853         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34854         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34855         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34856         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34857         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34858         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34859         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34860         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34861         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34862         * m4/nls.m4 (AM_NLS): Likewise.
34863         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34864         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34865         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34866         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34867         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34868         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34869         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34870         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34871         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34872         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34873         * m4/xsize.m4 (gl_XSIZE): Likewise.
34874         Suggested by Jim Meyering.
34875
34876 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34877
34878         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34879         * lib/parse-duration.c: use a switch instead of cascading if's.
34880
34881 2008-12-29  Eric Blake  <ebb9@byu.net>
34882
34883         wchar.h: supply WEOF on Irix 5.3
34884         * lib/wchar.in.h (wint_t): Also supply WEOF.
34885         * lib/wctype.in.h (wint_t): Likewise.
34886         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34887         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34888         Reported by Tom G. Christensen.
34889
34890 2008-12-26  Bruno Haible  <bruno@clisp.org>
34891
34892         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34893         i486, i586, i686.
34894
34895 2008-12-26  Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34898
34899 2008-12-26  Bruno Haible  <bruno@clisp.org>
34900
34901         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34902         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34903         not __STDC_CONSTANT_MACROS.
34904         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34905
34906 2008-12-25  Bruno Haible  <bruno@clisp.org>
34907
34908         Add support for universal builds to vasnprintf.
34909         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34910         universal builds, guess no.
34911         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34912         * modules/vasprintf-posix (Depends-on): Likewise.
34913         * modules/fprintf-posix (Depends-on): Likewise.
34914         * modules/vfprintf-posix (Depends-on): Likewise.
34915         * modules/snprintf-posix (Depends-on): Likewise.
34916         * modules/vsnprintf-posix (Depends-on): Likewise.
34917         * modules/sprintf-posix (Depends-on): Likewise.
34918         * modules/vsprintf-posix (Depends-on): Likewise.
34919         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34920         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34921         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34922         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34923         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34924         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34925         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34926
34927         Add support for universal builds to <inttypes.h>.
34928         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34929         _SCNu64_PREFIX): In Apple
34930         universal builds, define directly, using _LP64.
34931         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34932         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34933         * modules/inttypes (Depends-on): Add multiarch.
34934         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34935
34936         Add support for universal builds to <stdint.h>.
34937         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34938         universal builds, define directly, using _LP64.
34939         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34940         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34941         and size_t.
34942         * modules/stdint (Depends-on): Add multiarch.
34943         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34944
34945         New module 'multiarch'.
34946         * modules/multiarch: New file.
34947         * m4/multiarch.m4: New file.
34948
34949 2008-12-25  Bruno Haible  <bruno@clisp.org>
34950
34951         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34952
34953 2008-12-25  Bruno Haible  <bruno@clisp.org>
34954
34955         * modules/btowc (License): Relicense under LGPLv2+.
34956         * modules/mbsinit (License): Likewise.
34957         * modules/mbrtowc (License): Likewise.
34958         * modules/wcrtomb (License): Likewise.
34959         * modules/streq (License): Likewise.
34960         Reported by David Lutterkort <lutter@redhat.com>.
34961
34962 2008-12-23  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34965
34966 2008-12-23  Bruno Haible  <bruno@clisp.org>
34967
34968         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34970         GETADDRINFO_LIB, not in LIBS.
34971         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34972         * modules/canon-host (Link): Likewise.
34973         * NEWS: Mention the change.
34974         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34975         GETADDRINFO_LIB.
34976
34977 2008-12-22  Bruno Haible  <bruno@clisp.org>
34978
34979         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34980         * doc/posix-functions/iswalpha_l.texi: Likewise.
34981         * doc/posix-functions/iswblank_l.texi: Likewise.
34982         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34983         * doc/posix-functions/iswctype_l.texi: Likewise.
34984         * doc/posix-functions/iswdigit_l.texi: Likewise.
34985         * doc/posix-functions/iswgraph_l.texi: Likewise.
34986         * doc/posix-functions/iswlower_l.texi: Likewise.
34987         * doc/posix-functions/iswprint_l.texi: Likewise.
34988         * doc/posix-functions/iswpunct_l.texi: Likewise.
34989         * doc/posix-functions/iswspace_l.texi: Likewise.
34990         * doc/posix-functions/iswupper_l.texi: Likewise.
34991         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34992         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34993         * doc/posix-functions/open_wmemstream.texi: Likewise.
34994         * doc/posix-functions/swscanf.texi: Likewise.
34995         * doc/posix-functions/towctrans_l.texi: Likewise.
34996         * doc/posix-functions/towlower.texi: Likewise.
34997         * doc/posix-functions/towlower_l.texi: Likewise.
34998         * doc/posix-functions/towupper.texi: Likewise.
34999         * doc/posix-functions/towupper_l.texi: Likewise.
35000         * doc/posix-functions/vfwprintf.texi: Likewise.
35001         * doc/posix-functions/vfwscanf.texi: Likewise.
35002         * doc/posix-functions/vswscanf.texi: Likewise.
35003         * doc/posix-functions/vwprintf.texi: Likewise.
35004         * doc/posix-functions/vwscanf.texi: Likewise.
35005         * doc/posix-functions/wcpcpy.texi: Likewise.
35006         * doc/posix-functions/wcpncpy.texi: Likewise.
35007         * doc/posix-functions/wcscasecmp.texi: Likewise.
35008         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35009         * doc/posix-functions/wcscoll_l.texi: Likewise.
35010         * doc/posix-functions/wcsdup.texi: Likewise.
35011         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35012         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35013         * doc/posix-functions/wcsnlen.texi: Likewise.
35014         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35015         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35016         * doc/posix-functions/wctrans_l.texi: Likewise.
35017         * doc/posix-functions/wctype_l.texi: Likewise.
35018         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35019         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35020         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35021         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35022         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35023         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35024         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35025         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35026         * doc/glibc-functions/wcschrnul.texi: Likewise.
35027         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35028         * doc/glibc-functions/wcstod_l.texi: Likewise.
35029         * doc/glibc-functions/wcstof_l.texi: Likewise.
35030         * doc/glibc-functions/wcstol_l.texi: Likewise.
35031         * doc/glibc-functions/wcstold_l.texi: Likewise.
35032         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35033         * doc/glibc-functions/wcstoq.texi: Likewise.
35034         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35035         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35036         * doc/glibc-functions/wcstouq.texi: Likewise.
35037         * doc/glibc-functions/wmempcpy.texi: Likewise.
35038
35039 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35040             Eric Blake  <ebb9@byu.net>
35041             Paolo Bonzini  <bonzini@gnu.org>
35042             Bruno Haible  <bruno@clisp.org>
35043
35044         Make c-stack work on Haiku.
35045         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35046         (c_stack_action): Use SA_ONSTACK flag.
35047
35048 2008-12-22  Bruno Haible  <bruno@clisp.org>
35049
35050         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35051
35052 2008-12-22  Bruno Haible  <bruno@clisp.org>
35053
35054         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35055         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35056         being overridden.
35057         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35058         New macros.
35059         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35061         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35062         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35063
35064 2008-12-22  Bruno Haible  <bruno@clisp.org>
35065
35066         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35067         from test code.
35068
35069 2008-12-22  Eric Blake  <ebb9@byu.net>
35070
35071         Avoid gcc warnings on cygwin.
35072         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35073         Avoid unused variable.
35074         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35075         Likewise.
35076
35077 2008-12-22  Bruno Haible  <bruno@clisp.org>
35078
35079         Remove HAVE_MBRTOWC conditionals.
35080         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35081         (mbscasecmp): Assume mbrtowc function.
35082         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35083         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35084         * lib/mbschr.c: Include mbuiter.h unconditionally.
35085         (mbschr): Assume mbrtowc function.
35086         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35087         (mbscspn): Assume mbrtowc function.
35088         * lib/mbslen.c: Include mbuiter.h unconditionally.
35089         (mbslen): Assume mbrtowc function.
35090         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35091         (mbsncasecmp): Assume mbrtowc function.
35092         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35093         (mbsnlen): Assume mbrtowc function.
35094         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35095         (mbspbrk): Assume mbrtowc function.
35096         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35097         (mbspcasecmp): Assume mbrtowc function.
35098         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35099         (mbsrchr): Assume mbrtowc function.
35100         * lib/mbssep.c: Include mbuiter.h unconditionally.
35101         (mbssep): Assume mbrtowc function.
35102         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35103         (mbsspn): Assume mbrtowc function.
35104         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35105         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35106         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35107         (mbstok_r): Assume mbrtowc function.
35108         * lib/propername.c: Include mbuiter.h unconditionally.
35109         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35110         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35111         (trim2): Assume mbrtowc function.
35112         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35113         (mbsnwidth): Assume mbrtowc function.
35114         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35115         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35116         fallback definitions.
35117         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35118
35119 2008-12-22  Bruno Haible  <bruno@clisp.org>
35120
35121         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35122
35123 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35124
35125         * modules/regex: Request emulations for the mb*/wc* functions we need.
35126         * m4/regex.m4: Don't look for those functions here.
35127         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35128
35129 2008-12-22  Bruno Haible  <bruno@clisp.org>
35130
35131         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35132
35133 2008-12-21  Bruno Haible  <bruno@clisp.org>
35134
35135         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35136         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35137         (Include): Remove conditionalization.
35138         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35139         (Include): Remove conditionalization.
35140         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35141         (Include): Remove conditionalization.
35142         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35143         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35144         * NEWS: Mention the change.
35145         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35146         via Sergey Poznyakoff <gray@gnu.org.ua>.
35147
35148 2008-12-21  Bruno Haible  <bruno@clisp.org>
35149
35150         * MODULES.html.sh (Extended multibyte and wide character utilities
35151         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35152         wcrtomb, wcsrtombs.
35153         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35154         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35155         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35156         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35157
35158 2008-12-21  Bruno Haible  <bruno@clisp.org>
35159
35160         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35161
35162 2008-12-21  Bruno Haible  <bruno@clisp.org>
35163
35164         * modules/wcsnrtombs-tests: New file.
35165         * tests/test-wcsnrtombs1.sh: New file.
35166         * tests/test-wcsnrtombs2.sh: New file.
35167         * tests/test-wcsnrtombs3.sh: New file.
35168         * tests/test-wcsnrtombs4.sh: New file.
35169         * tests/test-wcsnrtombs.c: New file.
35170
35171         New module 'wcsnrtombs'.
35172         * lib/wchar.in.h (wcsnrtombs): New declaration.
35173         * lib/wcsnrtombs.c: New file.
35174         * lib/wcsrtombs-state.c: New file.
35175         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35176         (internal_state): Remove variable.
35177         * m4/wcsnrtombs.m4: New file.
35178         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35179         compilation units.
35180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35181         HAVE_WCSNRTOMBS.
35182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35183         HAVE_WCSNRTOMBS.
35184         * modules/wcsnrtombs: New file.
35185         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35186         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35187
35188 2008-12-21  Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/wcsrtombs-tests: New file.
35191         * tests/test-wcsrtombs1.sh: New file.
35192         * tests/test-wcsrtombs2.sh: New file.
35193         * tests/test-wcsrtombs3.sh: New file.
35194         * tests/test-wcsrtombs4.sh: New file.
35195         * tests/test-wcsrtombs.c: New file.
35196
35197         New module 'wcsrtombs'.
35198         * lib/wchar.in.h (wcsrtombs): New declaration.
35199         * lib/wcsrtombs.c: New file.
35200         * m4/wcsrtombs.m4: New file.
35201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35202         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35204         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35205         * modules/wcsrtombs: New file.
35206         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35207         bugs.
35208
35209 2008-12-21  Bruno Haible  <bruno@clisp.org>
35210
35211         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35212         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35214         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35215         if not correct.
35216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35217         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35218         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35219         m4/locale-zh.m4, m4/codeset.m4.
35220         * doc/posix-functions/wcrtomb.texi: Document the bug.
35221
35222 2008-12-21  Bruno Haible  <bruno@clisp.org>
35223
35224         Work around a btowc() bug on IRIX 6.5.
35225         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35226         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35227         REPLACE_WTOBC if not.
35228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35229         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35230         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35231
35232 2008-12-21  Bruno Haible  <bruno@clisp.org>
35233
35234         * modules/wcrtomb-tests: New file.
35235         * tests/test-wcrtomb.sh: New file.
35236         * tests/test-wcrtomb.c: New file.
35237
35238         New module 'wcrtomb'.
35239         * lib/wchar.in.h (wcrtomb): New declaration.
35240         * lib/wcrtomb.c: New file.
35241         * m4/wcrtomb.m4: New file.
35242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35243         HAVE_WCRTOMB.
35244         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35245         HAVE_WCRTOMB.
35246         * modules/wcrtomb: New file.
35247         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35248
35249 2008-12-21  Bruno Haible  <bruno@clisp.org>
35250
35251         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35252         * modules/mbsrtowcs (Files): Likewise.
35253         * modules/wctob (Files): Likewise.
35254         * modules/c-strcase-tests (Files): Likewise.
35255         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35256         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35257         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35258         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35259         * modules/vasnprintf-posix-tests (Files): Likewise.
35260
35261 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35262
35263         gitlog-to-changelog: pass all command-line arguments to git-log
35264         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35265         it is sometimes convenient to filter the commits in various ways.
35266         gitlog-to-changelog only allows --since to specify a start date,
35267         but git-log itself supports many other filtering mechanisms.
35268         At the moment, I want to filter by branch name.  Rather than
35269         adding a --branch option to gitlog-to-changelog, it seems more
35270         flexible to simply pass all options directly to git-log and let
35271         git do the work.  Notice that this effectively makes --since a
35272         redundant option for gitlog-to-changelog, but removing it would
35273         require current usage to change since calls would then require
35274         an additional '--'.
35275
35276 2008-12-21  Bruno Haible  <bruno@clisp.org>
35277
35278         * modules/mbsnrtowcs-tests: New file.
35279         * tests/test-mbsnrtowcs1.sh: New file.
35280         * tests/test-mbsnrtowcs2.sh: New file.
35281         * tests/test-mbsnrtowcs3.sh: New file.
35282         * tests/test-mbsnrtowcs4.sh: New file.
35283         * tests/test-mbsnrtowcs.c: New file.
35284
35285         New module 'mbsnrtowcs'.
35286         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35287         * lib/mbsnrtowcs.c: New file.
35288         * lib/mbsrtowcs-state.c: New file.
35289         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35290         (internal_state): Remove variable.
35291         * m4/mbsnrtowcs.m4: New file.
35292         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35293         compilation units.
35294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35295         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35296         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35297         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35298         * modules/mbsnrtowcs: New file.
35299         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35300         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35301         portability problem.
35302
35303 2008-12-21  Bruno Haible  <bruno@clisp.org>
35304
35305         Work around mbsrtowcs bug.
35306         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35307         (gl_FUNC_MBSRTOWCS): Invoke it.
35308         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35309         m4/locale-zh.m4.
35310         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35311
35312 2008-12-21  Bruno Haible  <bruno@clisp.org>
35313
35314         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35315
35316 2008-12-21  Bruno Haible  <bruno@clisp.org>
35317
35318         Update doc for AIX.
35319         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35320         16-bit wchar_t type.
35321         * doc/posix-functions/btowc.texi: Likewise.
35322         * doc/posix-functions/fgetwc.texi: Likewise.
35323         * doc/posix-functions/fgetws.texi: Likewise.
35324         * doc/posix-functions/fputwc.texi: Likewise.
35325         * doc/posix-functions/fputws.texi: Likewise.
35326         * doc/posix-functions/fwide.texi: Likewise.
35327         * doc/posix-functions/fwprintf.texi: Likewise.
35328         * doc/posix-functions/fwscanf.texi: Likewise.
35329         * doc/posix-functions/getwchar.texi: Likewise.
35330         * doc/posix-functions/getwc.texi: Likewise.
35331         * doc/posix-functions/iswalnum.texi: Likewise.
35332         * doc/posix-functions/iswalpha.texi: Likewise.
35333         * doc/posix-functions/iswblank.texi: Likewise.
35334         * doc/posix-functions/iswcntrl.texi: Likewise.
35335         * doc/posix-functions/iswctype.texi: Likewise.
35336         * doc/posix-functions/iswdigit.texi: Likewise.
35337         * doc/posix-functions/iswgraph.texi: Likewise.
35338         * doc/posix-functions/iswlower.texi: Likewise.
35339         * doc/posix-functions/iswprint.texi: Likewise.
35340         * doc/posix-functions/iswpunct.texi: Likewise.
35341         * doc/posix-functions/iswspace.texi: Likewise.
35342         * doc/posix-functions/iswupper.texi: Likewise.
35343         * doc/posix-functions/iswxdigit.texi: Likewise.
35344         * doc/posix-functions/mbrtowc.texi: Likewise.
35345         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35346         * doc/posix-functions/mbstowcs.texi: Likewise.
35347         * doc/posix-functions/mbtowc.texi: Likewise.
35348         * doc/posix-functions/putwchar.texi: Likewise.
35349         * doc/posix-functions/putwc.texi: Likewise.
35350         * doc/posix-functions/swprintf.texi: Likewise.
35351         * doc/posix-functions/tolower.texi: Likewise.
35352         * doc/posix-functions/toupper.texi: Likewise.
35353         * doc/posix-functions/towctrans.texi: Likewise.
35354         * doc/posix-functions/ungetwc.texi: Likewise.
35355         * doc/posix-functions/vswprintf.texi: Likewise.
35356         * doc/posix-functions/wcrtomb.texi: Likewise.
35357         * doc/posix-functions/wcscat.texi: Likewise.
35358         * doc/posix-functions/wcschr.texi: Likewise.
35359         * doc/posix-functions/wcscmp.texi: Likewise.
35360         * doc/posix-functions/wcscoll.texi: Likewise.
35361         * doc/posix-functions/wcscpy.texi: Likewise.
35362         * doc/posix-functions/wcscspn.texi: Likewise.
35363         * doc/posix-functions/wcsftime.texi: Likewise.
35364         * doc/posix-functions/wcslen.texi: Likewise.
35365         * doc/posix-functions/wcsncat.texi: Likewise.
35366         * doc/posix-functions/wcsncmp.texi: Likewise.
35367         * doc/posix-functions/wcsncpy.texi: Likewise.
35368         * doc/posix-functions/wcspbrk.texi: Likewise.
35369         * doc/posix-functions/wcsrchr.texi: Likewise.
35370         * doc/posix-functions/wcsrtombs.texi: Likewise.
35371         * doc/posix-functions/wcsspn.texi: Likewise.
35372         * doc/posix-functions/wcsstr.texi: Likewise.
35373         * doc/posix-functions/wcstod.texi: Likewise.
35374         * doc/posix-functions/wcstof.texi: Likewise.
35375         * doc/posix-functions/wcstoimax.texi: Likewise.
35376         * doc/posix-functions/wcstok.texi: Likewise.
35377         * doc/posix-functions/wcstold.texi: Likewise.
35378         * doc/posix-functions/wcstoll.texi: Likewise.
35379         * doc/posix-functions/wcstol.texi: Likewise.
35380         * doc/posix-functions/wcstombs.texi: Likewise.
35381         * doc/posix-functions/wcstoull.texi: Likewise.
35382         * doc/posix-functions/wcstoul.texi: Likewise.
35383         * doc/posix-functions/wcstoumax.texi: Likewise.
35384         * doc/posix-functions/wcswidth.texi: Likewise.
35385         * doc/posix-functions/wcsxfrm.texi: Likewise.
35386         * doc/posix-functions/wctob.texi: Likewise.
35387         * doc/posix-functions/wctomb.texi: Likewise.
35388         * doc/posix-functions/wctrans.texi: Likewise.
35389         * doc/posix-functions/wctype.texi: Likewise.
35390         * doc/posix-functions/wcwidth.texi: Likewise.
35391         * doc/posix-functions/wmemchr.texi: Likewise.
35392         * doc/posix-functions/wmemcmp.texi: Likewise.
35393         * doc/posix-functions/wmemcpy.texi: Likewise.
35394         * doc/posix-functions/wmemmove.texi: Likewise.
35395         * doc/posix-functions/wmemset.texi: Likewise.
35396         * doc/posix-functions/wprintf.texi: Likewise.
35397         * doc/posix-functions/wscanf.texi: Likewise.
35398
35399 2008-12-21  Bruno Haible  <bruno@clisp.org>
35400
35401         Update doc for HP-UX 11.11.
35402         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35403         in HP-UX version 11.00, not in all versions of HP-UX 11.
35404         * doc/posix-functions/fwide.texi: Likewise.
35405         * doc/posix-functions/fwprintf.texi: Likewise.
35406         * doc/posix-functions/fwscanf.texi: Likewise.
35407         * doc/posix-functions/inet_ntop.texi: Likewise.
35408         * doc/posix-functions/inet_pton.texi: Likewise.
35409         * doc/posix-functions/mbrlen.texi: Likewise.
35410         * doc/posix-functions/mbrtowc.texi: Likewise.
35411         * doc/posix-functions/mbsinit.texi: Likewise.
35412         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35413         * doc/posix-functions/swprintf.texi: Likewise.
35414         * doc/posix-functions/swscanf.texi: Likewise.
35415         * doc/posix-functions/towctrans.texi: Likewise.
35416         * doc/posix-functions/vfwprintf.texi: Likewise.
35417         * doc/posix-functions/vswprintf.texi: Likewise.
35418         * doc/posix-functions/vwprintf.texi: Likewise.
35419         * doc/posix-functions/wcrtomb.texi: Likewise.
35420         * doc/posix-functions/wcsrtombs.texi: Likewise.
35421         * doc/posix-functions/wcsstr.texi: Likewise.
35422         * doc/posix-functions/wctob.texi: Likewise.
35423         * doc/posix-functions/wctrans.texi: Likewise.
35424         * doc/posix-functions/wmemchr.texi: Likewise.
35425         * doc/posix-functions/wmemcmp.texi: Likewise.
35426         * doc/posix-functions/wmemcpy.texi: Likewise.
35427         * doc/posix-functions/wmemmove.texi: Likewise.
35428         * doc/posix-functions/wmemset.texi: Likewise.
35429         * doc/posix-functions/wprintf.texi: Likewise.
35430         * doc/posix-functions/wscanf.texi: Likewise.
35431
35432 2008-12-21  Bruno Haible  <bruno@clisp.org>
35433
35434         Work around a portability problem.
35435         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35436         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35437
35438 2008-12-20  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35441         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35442         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35444         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35445
35446         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35447         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35448         set.
35449         (GNULIB_defined_mbstate_t): New macro.
35450         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35451         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35452         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35453         reuses the system's mbrtowc function but works around the bugs.
35454         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35455         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35456         macros.
35457         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35458         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35459         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35460         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35461         REPLACE_MBSINIT if mbsinit needs to be overridden.
35462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35463         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35464         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35465         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35466         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35467         m4/locale-zh.m4.
35468         (Depends): Add mbsinit.
35469         * modules/mbsinit (Depends): Add mbrtowc.
35470         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35471
35472 2008-12-20  Bruno Haible  <bruno@clisp.org>
35473
35474         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35475         so that there are no conversion errors on AIX.
35476         * tests/test-mbsrtowcs.c (main): LIkewise.
35477
35478 2008-12-20  Bruno Haible  <bruno@clisp.org>
35479
35480         Work around wctob bug on Solaris <= 9.
35481         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35482         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35484         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35485         * modules/wctob (Files): Add m4/locale-fr.m4.
35486         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35487
35488 2008-12-20  Bruno Haible  <bruno@clisp.org>
35489
35490         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35491         /dev/null.
35492         * tests/test-select-in.sh: Likewise.
35493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35494
35495 2008-12-20  Bruno Haible  <bruno@clisp.org>
35496
35497         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35498         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35499         Cygwin 1.5.x.
35500
35501 2008-12-20  Bruno Haible  <bruno@clisp.org>
35502
35503         Ensure mbstate_t is defined on HP-UX 11.11.
35504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35505         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35506         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35507         AC_USE_SYSTEM_EXTENSIONS.
35508         * modules/fnmatch (Depends-on): Add extensions.
35509         * modules/mbrlen (Depends-on): Likewise.
35510         * modules/mbrtowc (Depends-on): Likewise.
35511         * modules/mbsinit (Depends-on): Likewise.
35512         * modules/mbsrtowcs (Depends-on): Likewise.
35513         * modules/mbswidth (Depends-on): Likewise.
35514         * modules/quotearg (Depends-on): Likewise.
35515         * modules/strftime (Depends-on): Likewise.
35516
35517 2008-12-20  Bruno Haible  <bruno@clisp.org>
35518
35519         Ensure wctob is declared on IRIX 6.5.
35520         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35521         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35522         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35524         of HAVE_WCTOB.
35525         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35526         HAVE_WCTOB.
35527         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35528
35529 2008-12-19  Bruno Haible  <bruno@clisp.org>
35530
35531         * modules/mbsrtowcs-tests: New file.
35532         * tests/test-mbsrtowcs1.sh: New file.
35533         * tests/test-mbsrtowcs2.sh: New file.
35534         * tests/test-mbsrtowcs3.sh: New file.
35535         * tests/test-mbsrtowcs4.sh: New file.
35536         * tests/test-mbsrtowcs.c: New file.
35537
35538         New module 'mbsrtowcs'.
35539         * lib/wchar.in.h (mbsrtowcs): New declaration.
35540         * lib/mbsrtowcs.c: New file.
35541         * m4/mbsrtowcs.m4: New file.
35542         * modules/mbsrtowcs: New file.
35543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35544         HAVE_MBSRTOWCS.
35545         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35546         HAVE_MBSRTOWCS.
35547         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35548
35549 2008-12-19  Bruno Haible  <bruno@clisp.org>
35550
35551         New module 'mbrlen'.
35552         * lib/wchar.in.h (mbrlen): New declaration.
35553         * lib/mbrlen.c: New file.
35554         * m4/mbrlen.m4: New file.
35555         * modules/mbrlen: New file.
35556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35557         HAVE_MBRLEN.
35558         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35559         HAVE_MBRLEN.
35560         * doc/posix-functions/mbrlen.texi: Document the new module.
35561
35562 2008-12-19  Bruno Haible  <bruno@clisp.org>
35563
35564         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35565         * modules/mbrtowc (Depends-on): Add verify.
35566         Suggested by Paul Eggert.
35567
35568 2008-12-18  Bruno Haible  <bruno@clisp.org>
35569
35570         * modules/mbsinit-tests: New file.
35571         * tests/test-mbsinit.sh: New file.
35572         * tests/test-mbsinit.c: New file.
35573
35574 2008-12-18  Bruno Haible  <bruno@clisp.org>
35575
35576         * modules/mbrtowc-tests: New file.
35577         * tests/test-mbrtowc1.sh: New file.
35578         * tests/test-mbrtowc2.sh: New file.
35579         * tests/test-mbrtowc3.sh: New file.
35580         * tests/test-mbrtowc4.sh: New file.
35581         * tests/test-mbrtowc.c: New file.
35582
35583         New module 'mbrtowc'.
35584         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35585         mbsinit and mbrtowc.
35586         (mbrtowc): New declaration.
35587         * lib/mbrtowc.c: New file.
35588         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35589         * modules/mbrtowc: New file.
35590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35591         HAVE_MBRTOWC.
35592         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35593         HAVE_MBRTOWC.
35594         * doc/posix-functions/mbrtowc.texi: Document the new module.
35595
35596 2008-12-18  Bruno Haible  <bruno@clisp.org>
35597
35598         New module 'wctob'.
35599         * lib/wchar.in.h (wctob): New declaration.
35600         * lib/wctob.c: New file.
35601         * m4/wctob.m4: New file.
35602         * modules/wctob: New file.
35603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35604         HAVE_WCTOB.
35605         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35606         * doc/posix-functions/wctob.texi: Document the new module.
35607
35608 2008-12-18  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35611         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35612
35613 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35614
35615         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35616         G. Christensen" <tgc@jupiterrise.com>.
35617
35618         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35619         G. Christensen" <tgc@jupiterrise.com>.
35620
35621         * lib/flock.c: Need to include string.h.  Reported by "Tom
35622         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35623         <ebb9@byu.net>.
35624
35625 2008-12-18  Bruno Haible  <bruno@clisp.org>
35626
35627         * m4/locale-ja.m4: New file, from GNU gettext.
35628
35629 2008-12-17  Bruno Haible  <bruno@clisp.org>
35630
35631         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35632         Suggested by Eric Blake.
35633
35634 2008-12-17  Bruno Haible  <bruno@clisp.org>
35635
35636         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35637
35638 2008-12-17  Bruno Haible  <bruno@clisp.org>
35639
35640         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35641         * modules/mbsinit (Depends-on): Add verify.
35642         Suggested by Paul Eggert.
35643
35644 2008-12-17  Bruno Haible  <bruno@clisp.org>
35645
35646         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35647         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35648         gl_FUNC_MBRTOWC.
35649         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35650         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35651         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35652         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35653         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35654         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35655         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35656         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35657         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35658         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35659         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35660         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35661         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35662         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35663         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35664         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35665         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35666         * modules/trim (configure.ac): Likewise.
35667
35668 2008-12-17  Bruno Haible  <bruno@clisp.org>
35669
35670         * modules/btowc-tests: New file.
35671         * tests/test-btowc1.sh: New file.
35672         * tests/test-btowc2.sh: New file.
35673         * tests/test-btowc.c: New file.
35674
35675         New module 'btowc'.
35676         * lib/wchar.in.h (btowc): New declaration.
35677         * lib/btowc.c: New file.
35678         * m4/btowc.m4: New file.
35679         * modules/btowc: New file.
35680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35681         HAVE_BTOWC.
35682         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35683         * doc/posix-functions/btowc.texi: Document the new module.
35684
35685 2008-12-17  Bruno Haible  <bruno@clisp.org>
35686
35687         New module 'mbsinit'.
35688         * lib/wchar.in.h (mbsinit): New declaration.
35689         * lib/mbsinit.c: New file.
35690         * m4/mbsinit.m4: New file.
35691         * modules/mbsinit: New file.
35692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35693         HAVE_MBSINIT.
35694         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35695         HAVE_MBSINIT.
35696         * doc/posix-functions/mbsinit.texi: Document the new module.
35697
35698 2008-12-16  Bruno Haible  <bruno@clisp.org>
35699
35700         * lib/unistd.in.h: Add comment.
35701         * tests/test-environ.c: Don't include <stdlib.h>.
35702
35703 2008-12-16  Bruno Haible  <bruno@clisp.org>
35704
35705         * lib/parse-duration.h (parse_duration): Document return value
35706         convention.
35707         * lib/parse-duration.c: Include specification header first. Add
35708         comments.
35709         (_): Remove macro.
35710         (parse_year_month_day, parse_hour_minute_second): Move side effects
35711         outside of strchr call.
35712         (parse_non_iso8601): Move side effects outside of isspace call.
35713         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35714         call.
35715
35716 2008-12-16  Bruno Haible  <bruno@clisp.org>
35717
35718         * tests/test-parse-duration.sh: Produce no output when the test
35719         succeeds.
35720
35721 2008-12-16  Bruno Haible  <bruno@clisp.org>
35722
35723         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35724         expressions.
35725
35726 2008-12-15  Bruno Haible  <bruno@clisp.org>
35727
35728         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35729         * doc/glibc-functions/flistxattr.texi: Likewise.
35730         * doc/glibc-functions/fopencookie.texi: Likewise.
35731         * doc/glibc-functions/fremovexattr.texi: Likewise.
35732         * doc/glibc-functions/fsetxattr.texi: Likewise.
35733         * doc/glibc-functions/getxattr.texi: Likewise.
35734         * doc/glibc-functions/lgetxattr.texi: Likewise.
35735         * doc/glibc-functions/listxattr.texi: Likewise.
35736         * doc/glibc-functions/llistxattr.texi: Likewise.
35737         * doc/glibc-functions/lremovexattr.texi: Likewise.
35738         * doc/glibc-functions/lsetxattr.texi: Likewise.
35739         * doc/glibc-functions/removexattr.texi: Likewise.
35740         * doc/glibc-functions/setxattr.texi: Likewise.
35741         * doc/posix-functions/open_memstream.texi: Likewise.
35742
35743 2008-12-15  Eric Blake  <ebb9@byu.net>
35744
35745         Update doc for cygwin 1.7.
35746         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35747         functions.
35748         * doc/posix-functions/fchmodat.texi: Likewise.
35749         * doc/posix-functions/fchownat.texi: Likewise.
35750         * doc/posix-functions/fdopendir.texi: Likewise.
35751         * doc/posix-functions/fmemopen.texi: Likewise.
35752         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35753         * doc/posix-functions/fstatat.texi: Likewise.
35754         * doc/posix-functions/futimens.texi: Likewise.
35755         * doc/posix-functions/gai_strerror.texi: Likewise.
35756         * doc/posix-functions/getaddrinfo.texi: Likewise.
35757         * doc/posix-functions/getnameinfo.texi: Likewise.
35758         * doc/posix-functions/if_freenameindex.texi: Likewise.
35759         * doc/posix-functions/if_indextoname.texi: Likewise.
35760         * doc/posix-functions/if_nameindex.texi: Likewise.
35761         * doc/posix-functions/if_nametoindex.texi: Likewise.
35762         * doc/posix-functions/insque.texi: Likewise.
35763         * doc/posix-functions/linkat.texi: Likewise.
35764         * doc/posix-functions/llrint.texi: Likewise.
35765         * doc/posix-functions/llrintf.texi: Likewise.
35766         * doc/posix-functions/llrintl.texi: Likewise.
35767         * doc/posix-functions/lockf.texi: Likewise.
35768         * doc/posix-functions/lrintl.texi: Likewise.
35769         * doc/posix-functions/mkdirat.texi: Likewise.
35770         * doc/posix-functions/mkfifoat.texi: Likewise.
35771         * doc/posix-functions/mknodat.texi: Likewise.
35772         * doc/posix-functions/mq_close.texi: Likewise.
35773         * doc/posix-functions/mq_getattr.texi: Likewise.
35774         * doc/posix-functions/mq_notify.texi: Likewise.
35775         * doc/posix-functions/mq_open.texi: Likewise.
35776         * doc/posix-functions/mq_receive.texi: Likewise.
35777         * doc/posix-functions/mq_send.texi: Likewise.
35778         * doc/posix-functions/mq_setattr.texi: Likewise.
35779         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35780         * doc/posix-functions/mq_timedsend.texi: Likewise.
35781         * doc/posix-functions/mq_unlink.texi: Likewise.
35782         * doc/posix-functions/open_memstream.texi: Likewise.
35783         * doc/posix-functions/openat.texi: Likewise.
35784         * doc/posix-functions/posix_fadvise.texi: Likewise.
35785         * doc/posix-functions/posix_fallocate.texi: Likewise.
35786         * doc/posix-functions/posix_madvise.texi: Likewise.
35787         * doc/posix-functions/posix_memalign.texi: Likewise.
35788         * doc/posix-functions/posix_openpt.texi: Likewise.
35789         * doc/posix-functions/readlinkat.texi: Likewise.
35790         * doc/posix-functions/remque.texi: Likewise.
35791         * doc/posix-functions/renameat.texi: Likewise.
35792         * doc/posix-functions/rintl.texi: Likewise.
35793         * doc/posix-functions/sem_unlink.texi: Likewise.
35794         * doc/posix-functions/shm_open.texi: Likewise.
35795         * doc/posix-functions/shm_unlink.texi: Likewise.
35796         * doc/posix-functions/signgam.texi: Likewise.
35797         * doc/posix-functions/sigset.texi: Likewise.
35798         * doc/posix-functions/stpcpy.texi: Likewise.
35799         * doc/posix-functions/stpncpy.texi: Likewise.
35800         * doc/posix-functions/strerror.texi: Likewise.
35801         * doc/posix-functions/strtod.texi: Likewise.
35802         * doc/posix-functions/symlinkat.texi: Likewise.
35803         * doc/posix-functions/unlinkat.texi: Likewise.
35804         * doc/posix-functions/utimensat.texi: Likewise.
35805         * doc/glibc-functions/bindresvport.texi: Likewise.
35806         * doc/glibc-functions/dn_expand.texi: Likewise.
35807         * doc/glibc-functions/exp10.texi: Likewise.
35808         * doc/glibc-functions/exp10f.texi: Likewise.
35809         * doc/glibc-functions/fgetxattr.texi: Likewise.
35810         * doc/glibc-functions/flistxattr.texi: Likewise.
35811         * doc/glibc-functions/fopencookie.texi: Likewise.
35812         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35813         * doc/glibc-functions/fremovexattr.texi: Likewise.
35814         * doc/glibc-functions/fsetxattr.texi: Likewise.
35815         * doc/glibc-functions/getifaddrs.texi: Likewise.
35816         * doc/glibc-functions/getxattr.texi: Likewise.
35817         * doc/glibc-functions/lgetxattr.texi: Likewise.
35818         * doc/glibc-functions/listxattr.texi: Likewise.
35819         * doc/glibc-functions/llistxattr.texi: Likewise.
35820         * doc/glibc-functions/lremovexattr.texi: Likewise.
35821         * doc/glibc-functions/lsetxattr.texi: Likewise.
35822         * doc/glibc-functions/pow10.texi: Likewise.
35823         * doc/glibc-functions/pow10f.texi: Likewise.
35824         * doc/glibc-functions/rcmd_af.texi: Likewise.
35825         * doc/glibc-functions/removexattr.texi: Likewise.
35826         * doc/glibc-functions/res_init.texi: Likewise.
35827         * doc/glibc-functions/res_mkquery.texi: Likewise.
35828         * doc/glibc-functions/res_query.texi: Likewise.
35829         * doc/glibc-functions/res_querydomain.texi: Likewise.
35830         * doc/glibc-functions/res_send.texi: Likewise.
35831         * doc/glibc-functions/rresvport_af.texi: Likewise.
35832         * doc/glibc-functions/setxattr.texi: Likewise.
35833         * doc/glibc-functions/strcasestr.texi: Likewise.
35834
35835 2008-12-15  Bruno Haible  <bruno@clisp.org>
35836
35837         Fix compilation error on OSF/1 4.0.
35838         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35839         <sys/time.h>, simply delegate to the system header.
35840         Reported by Daniel Richard G. <oss@teragram.com>.
35841
35842 2008-12-15  Bruno Haible  <bruno@clisp.org>
35843
35844         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35845         * doc/posix-functions/fchmodat.texi: Likewise.
35846         * doc/posix-functions/fchownat.texi: Likewise.
35847         * doc/posix-functions/fdopendir.texi: Likewise.
35848         * doc/posix-functions/fstatat.texi: Likewise.
35849         * doc/posix-functions/mkdirat.texi: Likewise.
35850         * doc/posix-functions/unlinkat.texi: Likewise.
35851
35852 2008-12-14  Bruno Haible  <bruno@clisp.org>
35853
35854         Update doc for POSIX:2008.
35855         * doc/posix-functions/faccessat.texi: New file.
35856         * doc/posix-functions/fchmodat.texi: New file.
35857         * doc/posix-functions/fchownat.texi: New file.
35858         * doc/posix-functions/fdopendir.texi: New file.
35859         * doc/posix-functions/fstatat.texi: New file.
35860         * doc/posix-functions/futimens.texi: New file.
35861         * doc/posix-functions/linkat.texi: New file.
35862         * doc/posix-functions/mkdirat.texi: New file.
35863         * doc/posix-functions/mkfifoat.texi: New file.
35864         * doc/posix-functions/mknodat.texi: New file.
35865         * doc/posix-functions/open_wmemstream.texi: New file.
35866         * doc/posix-functions/openat.texi: New file.
35867         * doc/posix-functions/psiginfo.texi: New file.
35868         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35869         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35870         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35871         * doc/posix-functions/readlinkat.texi: New file.
35872         * doc/posix-functions/renameat.texi: New file.
35873         * doc/posix-functions/strerror_l.texi: New file.
35874         * doc/posix-functions/symlinkat.texi: New file.
35875         * doc/posix-functions/unlinkat.texi: New file.
35876         * doc/posix-functions/utimensat.texi: New file.
35877         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35878
35879 2008-12-14  Bruno Haible  <bruno@clisp.org>
35880
35881         Update doc for POSIX:2008.
35882         * doc/posix-functions/alphasort.texi: Renamed from
35883         doc/glibc-functions/alphasort.texi.
35884         * doc/posix-functions/dirfd.texi: Renamed from
35885         doc/glibc-functions/dirfd.texi.
35886         * doc/posix-functions/dprintf.texi: Renamed from
35887         doc/glibc-functions/dprintf.texi.
35888         * doc/posix-functions/duplocale.texi: Renamed from
35889         doc/glibc-functions/duplocale.texi.
35890         * doc/posix-functions/fexecve.texi: Renamed from
35891         doc/glibc-functions/fexecve.texi.
35892         * doc/posix-functions/fmemopen.texi: Renamed from
35893         doc/glibc-functions/fmemopen.texi.
35894         * doc/posix-functions/freelocale.texi: Renamed from
35895         doc/glibc-functions/freelocale.texi.
35896         * doc/posix-functions/getdate_err.texi: Renamed from
35897         doc/glibc-functions/getdate_err.texi.
35898         * doc/posix-functions/isalnum_l.texi: Renamed from
35899         doc/glibc-functions/isalnum_l.texi.
35900         * doc/posix-functions/isalpha_l.texi: Renamed from
35901         doc/glibc-functions/isalpha_l.texi.
35902         * doc/posix-functions/isblank_l.texi: Renamed from
35903         doc/glibc-functions/isblank_l.texi.
35904         * doc/posix-functions/iscntrl_l.texi: Renamed from
35905         doc/glibc-functions/iscntrl_l.texi.
35906         * doc/posix-functions/isdigit_l.texi: Renamed from
35907         doc/glibc-functions/isdigit_l.texi.
35908         * doc/posix-functions/isgraph_l.texi: Renamed from
35909         doc/glibc-functions/isgraph_l.texi.
35910         * doc/posix-functions/islower_l.texi: Renamed from
35911         doc/glibc-functions/islower_l.texi.
35912         * doc/posix-functions/isprint_l.texi: Renamed from
35913         doc/glibc-functions/isprint_l.texi.
35914         * doc/posix-functions/ispunct_l.texi: Renamed from
35915         doc/glibc-functions/ispunct_l.texi.
35916         * doc/posix-functions/isspace_l.texi: Renamed from
35917         doc/glibc-functions/isspace_l.texi.
35918         * doc/posix-functions/isupper_l.texi: Renamed from
35919         doc/glibc-functions/isupper_l.texi.
35920         * doc/posix-functions/iswalnum_l.texi: Renamed from
35921         doc/glibc-functions/iswalnum_l.texi.
35922         * doc/posix-functions/iswalpha_l.texi: Renamed from
35923         doc/glibc-functions/iswalpha_l.texi.
35924         * doc/posix-functions/iswblank_l.texi: Renamed from
35925         doc/glibc-functions/iswblank_l.texi.
35926         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35927         doc/glibc-functions/iswcntrl_l.texi.
35928         * doc/posix-functions/iswctype_l.texi: Renamed from
35929         doc/glibc-functions/iswctype_l.texi.
35930         * doc/posix-functions/iswdigit_l.texi: Renamed from
35931         doc/glibc-functions/iswdigit_l.texi.
35932         * doc/posix-functions/iswgraph_l.texi: Renamed from
35933         doc/glibc-functions/iswgraph_l.texi.
35934         * doc/posix-functions/iswlower_l.texi: Renamed from
35935         doc/glibc-functions/iswlower_l.texi.
35936         * doc/posix-functions/iswprint_l.texi: Renamed from
35937         doc/glibc-functions/iswprint_l.texi.
35938         * doc/posix-functions/iswpunct_l.texi: Renamed from
35939         doc/glibc-functions/iswpunct_l.texi.
35940         * doc/posix-functions/iswspace_l.texi: Renamed from
35941         doc/glibc-functions/iswspace_l.texi.
35942         * doc/posix-functions/iswupper_l.texi: Renamed from
35943         doc/glibc-functions/iswupper_l.texi.
35944         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35945         doc/glibc-functions/iswxdigit_l.texi.
35946         * doc/posix-functions/isxdigit_l.texi: Renamed from
35947         doc/glibc-functions/isxdigit_l.texi.
35948         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35949         doc/glibc-functions/mbsnrtowcs.texi.
35950         * doc/posix-functions/mkdtemp.texi: Renamed from
35951         doc/glibc-functions/mkdtemp.texi.
35952         * doc/posix-functions/newlocale.texi: Renamed from
35953         doc/glibc-functions/newlocale.texi.
35954         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35955         doc/glibc-functions/nl_langinfo_l.texi.
35956         * doc/posix-functions/open_memstream.texi: Renamed from
35957         doc/glibc-functions/open_memstream.texi.
35958         * doc/posix-functions/opterr.texi: Renamed from
35959         doc/glibc-functions/opterr.texi.
35960         * doc/posix-functions/optind.texi: Renamed from
35961         doc/glibc-functions/optind.texi.
35962         * doc/posix-functions/optopt.texi: Renamed from
35963         doc/glibc-functions/optopt.texi.
35964         * doc/posix-functions/psignal.texi: Renamed from
35965         doc/glibc-functions/psignal.texi.
35966         * doc/posix-functions/scandir.texi: Renamed from
35967         doc/glibc-functions/scandir.texi.
35968         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35969         doc/glibc-functions/sched_get_priority_min.texi.
35970         * doc/posix-functions/signgam.texi: Renamed from
35971         doc/glibc-functions/signgam.texi.
35972         * doc/posix-functions/stpcpy.texi: Renamed from
35973         doc/glibc-functions/stpcpy.texi.
35974         * doc/posix-functions/stpncpy.texi: Renamed from
35975         doc/glibc-functions/stpncpy.texi.
35976         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35977         doc/glibc-functions/strcasecmp_l.texi.
35978         * doc/posix-functions/strcoll_l.texi: Renamed from
35979         doc/glibc-functions/strcoll_l.texi.
35980         * doc/posix-functions/strfmon_l.texi: Renamed from
35981         doc/glibc-functions/strfmon_l.texi.
35982         * doc/posix-functions/strftime_l.texi: Renamed from
35983         doc/glibc-functions/strftime_l.texi.
35984         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35985         doc/glibc-functions/strncasecmp_l.texi.
35986         * doc/posix-functions/strndup.texi: Renamed from
35987         doc/glibc-functions/strndup.texi.
35988         * doc/posix-functions/strnlen.texi: Renamed from
35989         doc/glibc-functions/strnlen.texi.
35990         * doc/posix-functions/strsignal.texi: Renamed from
35991         doc/glibc-functions/strsignal.texi.
35992         * doc/posix-functions/strxfrm_l.texi: Renamed from
35993         doc/glibc-functions/strxfrm_l.texi.
35994         * doc/posix-functions/timer_gettime.texi: Renamed from
35995         doc/glibc-functions/timer_gettime.texi.
35996         * doc/posix-functions/tolower_l.texi: Renamed from
35997         doc/glibc-functions/tolower_l.texi.
35998         * doc/posix-functions/toupper_l.texi: Renamed from
35999         doc/glibc-functions/toupper_l.texi.
36000         * doc/posix-functions/towctrans_l.texi: Renamed from
36001         doc/glibc-functions/towctrans_l.texi.
36002         * doc/posix-functions/towlower_l.texi: Renamed from
36003         doc/glibc-functions/towlower_l.texi.
36004         * doc/posix-functions/towupper_l.texi: Renamed from
36005         doc/glibc-functions/towupper_l.texi.
36006         * doc/posix-functions/uselocale.texi: Renamed from
36007         doc/glibc-functions/uselocale.texi.
36008         * doc/posix-functions/vdprintf.texi: Renamed from
36009         doc/glibc-functions/vdprintf.texi.
36010         * doc/posix-functions/wcpcpy.texi:
36011         Renamed from doc/glibc-functions/wcpcpy.texi.
36012         * doc/posix-functions/wcpncpy.texi: Renamed from
36013         doc/glibc-functions/wcpncpy.texi.
36014         * doc/posix-functions/wcscasecmp.texi: Renamed from
36015         doc/glibc-functions/wcscasecmp.texi.
36016         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36017         doc/glibc-functions/wcscasecmp_l.texi.
36018         * doc/posix-functions/wcscoll_l.texi: Renamed from
36019         doc/glibc-functions/wcscoll_l.texi.
36020         * doc/posix-functions/wcsdup.texi: Renamed from
36021         doc/glibc-functions/wcsdup.texi.
36022         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36023         doc/glibc-functions/wcsncasecmp.texi.
36024         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36025         doc/glibc-functions/wcsncasecmp_l.texi.
36026         * doc/posix-functions/wcsnlen.texi: Renamed from
36027         doc/glibc-functions/wcsnlen.texi.
36028         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36029         doc/glibc-functions/wcsnrtombs.texi.
36030         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36031         doc/glibc-functions/wcsxfrm_l.texi.
36032         * doc/posix-functions/wctrans_l.texi: Renamed from
36033         doc/glibc-functions/wctrans_l.texi.
36034         * doc/posix-functions/wctype_l.texi: Renamed from
36035         doc/glibc-functions/wctype_l.texi.
36036         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36037         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36038         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36039         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36040         these subsections.
36041         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36042         Remove sections.
36043
36044 2008-12-14  Bruno Haible  <bruno@clisp.org>
36045
36046         Update doc for POSIX:2008.
36047         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36048
36049 2008-12-14  Bruno Haible  <bruno@clisp.org>
36050
36051         Update doc for POSIX:2008.
36052         * doc/pastposix-functions/bcmp.texi: Renamed from
36053         doc/posix-functions/bcmp.texi.
36054         * doc/pastposix-functions/bcopy.texi: Renamed from
36055         doc/posix-functions/bcopy.texi.
36056         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36057         doc/posix-functions/bsd_signal.texi.
36058         * doc/pastposix-functions/bzero.texi: Renamed from
36059         doc/posix-functions/bzero.texi.
36060         * doc/pastposix-functions/ecvt.texi: Renamed from
36061         doc/posix-functions/ecvt.texi.
36062         * doc/pastposix-functions/fcvt.texi: Renamed from
36063         doc/posix-functions/fcvt.texi.
36064         * doc/pastposix-functions/ftime.texi: Renamed from
36065         doc/posix-functions/ftime.texi.
36066         * doc/pastposix-functions/gcvt.texi: Renamed from
36067         doc/posix-functions/gcvt.texi.
36068         * doc/pastposix-functions/getcontext.texi: Renamed from
36069         doc/posix-functions/getcontext.texi.
36070         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36071         doc/posix-functions/gethostbyaddr.texi.
36072         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36073         doc/posix-functions/gethostbyname.texi.
36074         * doc/pastposix-functions/getwd.texi: Renamed from
36075         doc/posix-functions/getwd.texi.
36076         * doc/pastposix-functions/h_errno.texi: Renamed from
36077         doc/posix-functions/h_errno.texi.
36078         * doc/pastposix-functions/index.texi: Renamed from
36079         doc/posix-functions/index.texi.
36080         * doc/pastposix-functions/makecontext.texi: Renamed from
36081         doc/posix-functions/makecontext.texi.
36082         * doc/pastposix-functions/mktemp.texi: Renamed from
36083         doc/posix-functions/mktemp.texi.
36084         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36085         doc/posix-functions/pthread_attr_getstackaddr.texi.
36086         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36087         doc/posix-functions/pthread_attr_setstackaddr.texi.
36088         * doc/pastposix-functions/rindex.texi: Renamed from
36089         doc/posix-functions/rindex.texi.
36090         * doc/pastposix-functions/scalb.texi: Renamed from
36091         doc/posix-functions/scalb.texi.
36092         * doc/pastposix-functions/setcontext.texi: Renamed from
36093         doc/posix-functions/setcontext.texi.
36094         * doc/pastposix-functions/swapcontext.texi: Renamed from
36095         doc/posix-functions/swapcontext.texi.
36096         * doc/pastposix-functions/ualarm.texi: Renamed from
36097         doc/posix-functions/ualarm.texi.
36098         * doc/pastposix-functions/usleep.texi: Renamed from
36099         doc/posix-functions/usleep.texi.
36100         * doc/pastposix-functions/vfork.texi: Renamed from
36101         doc/posix-functions/vfork.texi.
36102         * doc/pastposix-functions/wcswcs.texi: Renamed from
36103         doc/posix-functions/wcswcs.texi.
36104         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36105         (Function Substitutes): Update.
36106
36107 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36108
36109         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36110         m4/strerror.m4.
36111
36112 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36113             Bruno Haible  <bruno@clisp.org>
36114
36115         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36116
36117 2008-12-13  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/strtoull (Depends-on): Remove unistd.
36120
36121 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36122
36123         * modules/strtoull (Depends-on): Add stdlib.
36124
36125 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36126
36127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36128
36129 2008-12-10  Jim Meyering  <meyering@redhat.com>
36130
36131         gl_ASSERT: don't say assertions are disabled when they're not
36132         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36133         "checking whether to enable assertions... no", when they are in
36134         fact enabled.  This is solely a bug in the output of configure.
36135         In spite of saying "no", NDEBUG was not defined in that case.
36136         Also, as noted by Eric Blake, leave assertions enabled upon
36137         --enable-assert=INVALID.
36138
36139 2008-12-10  Bruno Haible  <bruno@clisp.org>
36140
36141         Change MODULES.html to refer to POSIX:2008 where possible.
36142         * MODULES.html.sh (POSIX2008_URL): New variable.
36143         (posix_headers): Remove sys/timeb, ucontext.
36144         (posix2001_headers): New variable.
36145         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36146         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36147         index, makecontext, mktemp, pthread_attr_getstackaddr,
36148         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36149         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36150         (posix2001_functions): New variable.
36151         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36152         otherwise.
36153
36154 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36155
36156         add missing include to parse-duration.c
36157         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36158         * modules/parse-duration (Depends-on): Add xalloc.
36159
36160         fix sed script reading maint.mk
36161         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36162         (syntax-check-rules): Use it.
36163
36164 2008-12-09  Bruno Haible  <bruno@clisp.org>
36165
36166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36167         MacOS X 10.4/PowerPC.
36168         Reported by Simon Josefsson.
36169
36170 2008-12-08  Jim Meyering  <meyering@redhat.com>
36171
36172         work around mingw's lack of some S_IF definitions
36173         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36174         Reported by Simon Josefsson.
36175
36176 2008-12-08  Bruno Haible  <bruno@clisp.org>
36177
36178         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36179         applied to variables. Needed on MacOS X 10.4/PowerPC.
36180         Reported by Simon Josefsson.
36181
36182 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36183         and Eric Blake  <ebb9@byu.net>
36184
36185         assert: honor --enable-assert
36186         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36187         order to honor --enable-assert, rather than treating it as a
36188         synonym for --disable-assert.
36189
36190 2008-12-08  Jim Meyering  <meyering@redhat.com>
36191
36192         * lib/posixtm.c: Remove now-useless declaration of mktime.
36193
36194         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36195
36196 2008-12-07  Bruno Haible  <bruno@clisp.org>
36197
36198         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36199         test_once): Mark functions as static.
36200         * tests/test-tls.c (test_tls): Likewise.
36201
36202 2008-12-07  Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36205         iconv_register_autodetect.
36206
36207 2008-12-07  Jim Meyering  <meyering@redhat.com>
36208
36209         posixtm.c: avoid a warning
36210         * lib/posixtm.c (posixtime): Don't initialize tm0.
36211         It's no longer needed to placate gcc4's -Wuninitialized,
36212         and the attempt to placate would elicit a new warning.
36213
36214         unicodeio.c: mark unused parameters
36215         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36216         (fallback_failure_callback): Likewise.
36217
36218 2008-12-07  Bruno Haible  <bruno@clisp.org>
36219
36220         * gnulib-tool (func_create_testdir): When building the tests
36221         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36222         Reported by Simon Josefsson.
36223
36224 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36225
36226         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36227
36228 2008-12-06  Bruno Haible  <bruno@clisp.org>
36229
36230         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36231         Suggested by Eric Blake.
36232
36233 2008-12-06  Bruno Haible  <bruno@clisp.org>
36234
36235         Fix a c-stack test failure on MacOS X.
36236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36237         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36238         handler for SIGBUS as well.
36239         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36240         install a signal handler for SIGBUS as well.
36241         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36242
36243 2008-12-06  Bruno Haible  <bruno@clisp.org>
36244
36245         Advocacy documentation.
36246         * doc/gnulib-intro.texi (Benefits): New section.
36247         * doc/gnulib.texi: Update.
36248
36249 2008-12-06  Bruno Haible  <bruno@clisp.org>
36250
36251         Document the 'manywarnings' module.
36252         * doc/manywarnings.texi: New file.
36253         * doc/gnulib.texi: Include it.
36254
36255 2008-12-05  Eric Blake  <ebb9@byu.net>
36256
36257         tests: silence some gcc warnings
36258         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36259         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36260         type mismatches.
36261
36262 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36263             Bruno Haible  <bruno@clisp.org>
36264
36265         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36266
36267 2008-11-29  Jim Meyering  <meyering@redhat.com>
36268
36269         unicodeio.c: mark unused parameters
36270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36271         (fallback_failure_callback): Likewise.
36272
36273         fts: fix a thinko
36274         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36275         (set_stat_type): Return S_IF*-valued "type" directly.
36276         Prompted by James Youngman's spotting a related bug.
36277         Confirmed by further testing through find.
36278
36279         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36280         * lib/fts.c (D_TYPE): Define.
36281         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36282         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36283         (s_ifmt_shift_bits): New function.
36284         (set_stat_type): New function.
36285         (fts_build): When not calling fts_stat, call set_stat_type
36286         to propagate dirent.d_type info to fts_read caller.
36287         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36288         fts_statp->st_mode type information may be valid.
36289
36290 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36291
36292         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36293         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36294         <sds@gnu.org>.
36295
36296 2008-11-20  Bruno Haible  <bruno@clisp.org>
36297
36298         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36299         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36300         INCLUDE_NEXT.
36301         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36302         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36303         * modules/math (Makefile.am): Substitute
36304         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36306
36307 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36308             Bruno Haible  <bruno@clisp.org>
36309
36310         * lib/stdint.in.h: Define all type macros so that their expansion is
36311         a single typedef'ed token. Fixes a compilation failure in Boost which
36312         does "using ::int8_t;".
36313
36314 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36315
36316         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36317         gl_MANYWARN_ALL_GCC.
36318         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36319         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36320         * modules/manywarnings: New file.
36321         * MODULES.html.sh: Mention manywarnings module.
36322
36323 2008-11-18  Bruno Haible  <bruno@clisp.org>
36324
36325         * doc/gnulib-tool.texi (Unit tests): New section.
36326
36327 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36328
36329         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36330         paths like 'lib/po/foo.po'.
36331
36332 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36333
36334         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36335         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36336
36337 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36338
36339         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36340         parameter works.
36341
36342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36343
36344         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36345
36346 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36347
36348         * modules/parse-duration-tests: New file.
36349         * tests/test-parse-duration.sh: New file.
36350         * tests/test-parse-duration.c: New file.
36351
36352         New module 'parse-duration'.
36353         * lib/parse-duration.h: New file.
36354         * lib/parse-duration.c: New file.
36355         * modules/parse-duration: New file.
36356
36357 2008-11-17  Bruno Haible  <bruno@clisp.org>
36358
36359         * tests/test-select-out.sh: Comment out the first pipe test.
36360         Reported by Simon Josefsson.
36361
36362 2008-11-17  Bruno Haible  <bruno@clisp.org>
36363
36364         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36366         gl_HOSTENT.
36367
36368 2008-11-17  Bruno Haible  <bruno@clisp.org>
36369
36370         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36371         -lnetwork and -lnet. Needed for Haiku and BeOS.
36372
36373 2008-11-16  Bruno Haible  <bruno@clisp.org>
36374
36375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36376
36377 2008-11-16  Bruno Haible  <bruno@clisp.org>
36378
36379         Avoid test failure on Haiku.
36380         * tests/test-fsync.c: Include <errno.h>.
36381         (main): Don't require that fsync (0) fails.
36382
36383 2008-11-15  Bruno Haible  <bruno@clisp.org>
36384
36385         New module 'hostent'.
36386         * modules/hostent: New file.
36387         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36388
36389 2008-11-15  Bruno Haible  <bruno@clisp.org>
36390
36391         New module 'servent'.
36392         * modules/servent: New file.
36393         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36394
36395 2008-11-15  Bruno Haible  <bruno@clisp.org>
36396
36397         Avoid generating same test program with two different rules.
36398         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36399         test-frexp to test-frexp-nolibm.
36400         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36401         test-frexpl to test-frexpl-nolibm.
36402
36403 2008-11-15  Bruno Haible  <bruno@clisp.org>
36404
36405         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36406         $(FREXPL_LIBM).
36407
36408 2008-11-15  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/netdb.in.h: Activate the definitions also when the system's
36411         <netdb.h> has 'struct addrinfo'.
36412         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36413         EAI_OVERFLOW or AI_NUMERICSERV.
36414         * doc/posix-headers/netdb.texi: Document the problem.
36415
36416 2008-11-15  Bruno Haible  <bruno@clisp.org>
36417
36418         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36419
36420         Make the 'sched' module work on platforms where <sched.h> exists but
36421         is incomplete (such as Haiku).
36422         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36423         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36424         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36425         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36426         HAVE_STRUCT_SCHED_PARAM.
36427         * modules/sched (Depends-on): Add include_next.
36428         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36429         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36430         * doc/posix-headers/sched.texi: Document the issue.
36431
36432 2008-11-13  Jim Meyering  <meyering@redhat.com>
36433
36434         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36435         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36436         test would fail due to the difference in the Report bugs to ...
36437         line.  The expected address is empty, "<>", while the actual
36438         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36439
36440 2008-11-12  Bruno Haible  <bruno@clisp.org>
36441
36442         lstat: don't compile lstat.c on systems lacking lstat
36443         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36444         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36445         Reported by Daniel P. Berrange via Jim Meyering.
36446
36447 2008-11-12  Jim Meyering  <meyering@redhat.com>
36448
36449         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36450
36451 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36452
36453         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36454         instead.
36455
36456 2008-11-12  Bruno Haible  <bruno@clisp.org>
36457
36458         * lib/unicodeio.c: Include unistr.h.
36459         (utf8_wctomb): Remove function.
36460         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36461
36462 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36463
36464         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36465         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36466         <bruno@clisp.org>.
36467         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36468
36469 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36470
36471         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36472         * doc/gnulib.texi: Add section for warnings.
36473
36474 2008-11-11  Bruno Haible  <bruno@clisp.org>
36475
36476         * lib/sockets.h: Add a comment.
36477
36478 2008-11-11  Karl Berry  <karl@gnu.org>
36479
36480         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36481
36482 2008-11-11  Eric Blake  <ebb9@byu.net>
36483
36484         fdl.texi: avoid git symlinks
36485         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36486
36487 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36488
36489         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36490
36491 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36492
36493         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36494         (gl_WARN_ADD): Substitute $2 if literal.
36495
36496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36497
36498         * m4/warning.m4: Remove.
36499
36500 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36501
36502         * m4/warnings.m4: Almost complete rewrite. :-)
36503
36504 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36505
36506         * modules/warnings: New module.
36507         * m4/warnings.m4: New file.
36508         * MODULES.html.sh: Mention warnings module.
36509         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36510         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36511
36512 2008-11-10  Eric Blake  <ebb9@byu.net>
36513
36514         fdl.texi: make a symlink to the latest version
36515         * doc/standards.texi: Revert today's earlier change.
36516         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36517         * doc/fdl.texi: ...and replace this with a symlink to the newer
36518         fdl-1.3.texi.
36519
36520 2008-11-10  Bruno Haible  <bruno@clisp.org>
36521
36522         * tests/test-select-fd.c (main): Accept the result file name as fourth
36523         argument.
36524         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36525         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36526
36527 2008-11-10  Bruno Haible  <bruno@clisp.org>
36528
36529         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36530         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36531         as autoconf-substituted macros.
36532         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36534         gl_NETDB_H_DEFAULTS. Set these variables.
36535         * modules/netdb (Makefile.am): Substitute these variables.
36536
36537 2008-11-10  Eric Blake  <ebb9@byu.net>
36538
36539         standards.texi: include correct file for FDL 1.3
36540         * doc/standards.texi (GNU Free Documentation License): Change
36541         include file to pull in FDL 1.3, not 1.2.
36542
36543         fdl.texi: revert accidental change to license
36544         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36545
36546 2008-11-10  Bruno Haible  <bruno@clisp.org>
36547
36548         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36549         cross-compiling guesses also when the native compile gives no result.
36550
36551 2008-11-10  Bruno Haible  <bruno@clisp.org>
36552
36553         * lib/spawni.c (__spawni): Force variable into the stack.
36554
36555 2008-11-10  Bruno Haible  <bruno@clisp.org>
36556
36557         Add support for Haiku.
36558         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36559         glibc and BeOS, but also on Haiku.
36560         * lib/fpurge.c (fpurge): Likewise.
36561         * lib/freadable.c (freadable): Likewise.
36562         * lib/freadahead.c (freadahead): Likewise.
36563         * lib/freading.c (freading): Likewise.
36564         * lib/freadptr.c (freadptr): Likewise.
36565         * lib/freadseek.c (freadptrinc): Likewise.
36566         * lib/fseeko.c (rpl_fseeko): Likewise.
36567         * lib/fseterr.c (fseterr): Likewise.
36568         * lib/fwritable.c (fwritable): Likewise.
36569         * lib/fwriting.c (fwriting): Likewise.
36570         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36571
36572 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36573
36574         * lib/config.charset: Treat Haiku like BeOS.
36575
36576 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36577
36578         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36579         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36580
36581 2008-11-08  Bruno Haible  <bruno@clisp.org>
36582
36583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36584         AC_CACHE_CHECK.
36585
36586 2008-11-08  Bruno Haible  <bruno@clisp.org>
36587
36588         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36589
36590 2008-11-08  Bruno Haible  <bruno@clisp.org>
36591
36592         * tests/test-select-fd.c: New file.
36593         * tests/test-select-in.sh: New file.
36594         * tests/test-select-out.sh: New file.
36595         * tests/test-select-stdin.c: New file.
36596         * modules/select-tests (Files): Add the new files.
36597         (Depends-on): Add gettimeofday.
36598         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36599         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36600         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36601
36602 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36603             Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36606
36607 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36608
36609         * build-aux/pmccabe2html: Added support for C++ source files.
36610
36611 2008-11-05  Ben Pfaff  <blp@gnu.org>
36612
36613         Fix lib/close.c build on Windows.
36614         * modules/close (Files): Add lib/w32sock.h.
36615
36616 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36617
36618         Accept Bison's NEWS format.
36619         * build-aux/announce-gen (print_news_deltas): Tweak
36620         $re_prefix.
36621
36622 2008-11-04  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/random_r (Maintainer): Add glibc.
36625
36626 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36627
36628         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36629         by karl@freefriends.org (Karl Berry).
36630         * doc/alloca.texi: Likewise.
36631         * doc/c-ctype.texi: Likewise.
36632         * doc/c-strcase.texi: Likewise.
36633         * doc/c-strcaseeq.texi: Likewise.
36634         * doc/c-strcasestr.texi: Likewise.
36635         * doc/c-strstr.texi: Likewise.
36636         * doc/c-strtod.texi: Likewise.
36637         * doc/c-strtold.texi: Likewise.
36638         * doc/ctime.texi: Likewise.
36639         * doc/error.texi: Likewise.
36640         * doc/fdl.texi: Likewise.
36641         * doc/gcd.texi: Likewise.
36642         * doc/getdate.texi: Likewise.
36643         * doc/gnulib-intro.texi: Likewise.
36644         * doc/gnulib-tool.texi: Likewise.
36645         * doc/gnulib.texi: Likewise.
36646         * doc/inet_ntoa.texi: Likewise.
36647         * doc/maintain.texi: Likewise.
36648         * doc/make-stds.texi: Likewise.
36649         * doc/quote.texi: Likewise.
36650         * doc/regexprops-generic.texi: Likewise.
36651         * doc/standards.texi: Likewise.
36652         * doc/verify.texi: Likewise.
36653         * doc/visibility.texi: Likewise.
36654         * doc/gnulib.texi (GNU Free Documentation License): Include
36655         fdl-1.3.texi instead of fdl.texi.
36656
36657 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36658
36659         * doc/fdl-1.3.texi: New file, from
36660         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36661         * modules/fdl-1.3: Add.
36662         * MODULES.html.sh: Add fdl-1.3.
36663
36664 2008-11-03  Bruno Haible  <bruno@clisp.org>
36665
36666         Make determination of absolute name of header file work with AIX xlc.
36667         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36668         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36669         preprocessing.
36670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36671         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36672
36673 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36674
36675         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36676         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36677         <ludo@gnu.org>.
36678
36679 2008-11-02  Bruno Haible  <bruno@clisp.org>
36680
36681         Mark 'strpbrk' obsolete.
36682         * modules/strpbrk (Status, Notice): New sections.
36683         * modules/strtok_r (Depends-on): Add strpbrk.
36684
36685 2008-11-02  Bruno Haible  <bruno@clisp.org>
36686
36687         Mark 'strdup' obsolete.
36688         * modules/strdup (Status, Notice): New sections.
36689         * modules/findprog (Depends-on): Add strdup.
36690         * modules/getaddrinfo (Depends-on): Likewise.
36691         * modules/localename (Depends-on): Likewise.
36692         * modules/relocatable-lib (Depends-on): Likewise.
36693         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36694         * modules/relocatable-prog (Depends-on): Likewise.
36695         * modules/trim (Depends-on): Likewise.
36696         * modules/unictype/gen-ctype (Depends-on): Likewise.
36697         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36698
36699 2008-11-02  Bruno Haible  <bruno@clisp.org>
36700
36701         Mark 'strcspn' obsolete.
36702         * modules/strcspn (Status, Notice): New sections.
36703
36704 2008-11-02  Bruno Haible  <bruno@clisp.org>
36705
36706         Mark 'rmdir' obsolete.
36707         * modules/rmdir (Status, Notice): New sections.
36708         * modules/clean-temp (Depends-on): Add rmdir.
36709         * modules/openat (Depends-on): Likewise.
36710
36711 2008-11-02  Bruno Haible  <bruno@clisp.org>
36712
36713         Mark 'raise' obsolete.
36714         * modules/raise (Status, Notice): New sections.
36715         (Include): Specify <signal.h>.
36716         * modules/stdio (Depends-on): Add raise.
36717         * modules/write (Depends-on): Likewise.
36718
36719 2008-11-02  Bruno Haible  <bruno@clisp.org>
36720
36721         Mark 'memset' obsolete.
36722         * modules/memset (Status, Notice): New sections.
36723
36724 2008-11-02  Bruno Haible  <bruno@clisp.org>
36725
36726         Mark 'memmove' obsolete.
36727         * modules/memmove (Status, Notice): New sections.
36728         * modules/argp (Depends-on): Add memmove.
36729         * modules/argz (Depends-on): Likewise.
36730         * modules/canonicalize (Depends-on): Likewise.
36731         * modules/canonicalize-lgpl (Depends-on): Likewise.
36732         * modules/fts (Depends-on): Likewise.
36733         * modules/getcwd (Depends-on): Likewise.
36734         * modules/human (Depends-on): Likewise.
36735         * modules/regex (Depends-on): Likewise.
36736         * modules/striconveh (Depends-on): Likewise.
36737         * modules/trim (Depends-on): Likewise.
36738         * modules/unistr/u8-move (Depends-on): Likewise.
36739         * modules/unistr/u16-move (Depends-on): Likewise.
36740         * modules/unistr/u32-move (Depends-on): Likewise.
36741
36742 2008-11-02  Bruno Haible  <bruno@clisp.org>
36743
36744         Mark 'memcpy' obsolete.
36745         * modules/memcpy (Status, Notice): New sections.
36746
36747 2008-11-02  Bruno Haible  <bruno@clisp.org>
36748
36749         Mark 'memcmp' obsolete.
36750         * modules/memcmp (Status, Notice): New sections.
36751         * modules/argmatch (Depends-on): Add memchr.
36752         * modules/backupfile (Depends-on): Likewise.
36753         * modules/c-strcasestr (Depends-on): Likewise.
36754         * modules/crypto/des (Depends-on): Likewise.
36755         * modules/csharpcomp (Depends-on): Likewise.
36756         * modules/fnmatch (Depends-on): Likewise.
36757         * modules/git-merge-changelog (Depends-on): Likewise.
36758         * modules/isnand (Depends-on): Likewise.
36759         * modules/isnand-nolibm (Depends-on): Likewise.
36760         * modules/isnanf (Depends-on): Likewise.
36761         * modules/isnanf-nolibm (Depends-on): Likewise.
36762         * modules/isnanl (Depends-on): Likewise.
36763         * modules/isnanl-nolibm (Depends-on): Likewise.
36764         * modules/mbchar (Depends-on): Likewise.
36765         * modules/memcoll (Depends-on): Likewise.
36766         * modules/quotearg (Depends-on): Likewise.
36767         * modules/regex (Depends-on): Likewise.
36768         * modules/relocatable-prog (Depends-on): Likewise.
36769         * modules/same (Depends-on): Likewise.
36770         * modules/signbit (Depends-on): Likewise.
36771         * modules/strcasestr-simple (Depends-on): Likewise.
36772         * modules/unictype/gen-ctype (Depends-on): Likewise.
36773         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36774         * modules/uniname/uniname (Depends-on): Likewise.
36775         * modules/unistr/u8-cmp (Depends-on): Likewise.
36776
36777 2008-11-02  Bruno Haible  <bruno@clisp.org>
36778
36779         Mark 'memchr' obsolete.
36780         * modules/memchr (Status, Notice): New sections.
36781         * modules/argp (Depends-on): Add memchr.
36782         * modules/base64 (Depends-on): Likewise.
36783         * modules/c-strcasestr (Depends-on): Likewise.
36784         * modules/chdir-long (Depends-on): Likewise.
36785         * modules/fnmatch (Depends-on): Likewise.
36786         * modules/getsubopt (Depends-on): Likewise.
36787         * modules/git-merge-changelog (Depends-on): Likewise.
36788         * modules/glob (Depends-on): Likewise.
36789         * modules/strcasestr-simple (Depends-on): Likewise.
36790         * modules/strnlen (Depends-on): Likewise.
36791
36792 2008-11-02  Bruno Haible  <bruno@clisp.org>
36793
36794         Mark 'atexit' obsolete.
36795         * modules/atexit (Status, Notice): New sections.
36796         * modules/chdir-long (Depends-on): Add atexit.
36797         * modules/wait-process (Depends-on): Likewise.
36798
36799 2008-11-02  Bruno Haible  <bruno@clisp.org>
36800
36801         * gnulib-tool: New option --with-obsolete.
36802         (func_usage): Document it.
36803         (func_modules_transitive_closure): Drop obsolete dependencies if
36804         incobsolete is not true.
36805         (func_import): Read and save the incobsolete variable to the cache.
36806
36807 2008-11-02  Bruno Haible  <bruno@clisp.org>
36808
36809         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36810         * gnulib-tool: New option --extract-status.
36811         (func_usage): Document it.
36812         (sed_extract_prog): Recognize it.
36813         (func_get_status): New function.
36814
36815 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36816
36817         * modules/sockets (License): Change from LGPL to LGPLv2+.
36818
36819 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36820
36821         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36822
36823 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36824
36825         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36826         Mention times and sys_times.
36827         * modules/sys_times, modules/sys_times-tests: New modules.
36828         * modules/times, modules/times-tests: Likewise
36829         * m4/sys_times_h.m4: New file.
36830         * lib/sys_times.in.h: Likewise
36831         * lib/times.c: Likewise.
36832         * tests/test-sys_times.c: Likewise.
36833         * tests/test-times.c: Likewise.
36834         * doc/posix-headers/sys_times.texi: Update.
36835         * doc/posix-functions/times.texi: Update.
36836
36837 2008-10-28  Jim Meyering  <meyering@redhat.com>
36838
36839         * modules/tempname (Depends-on): Add lstat.
36840
36841         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36842
36843 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36844
36845         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36846         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36847         using idiom used elsewhere in gnulib.
36848
36849 2008-10-27  Jim Meyering  <meyering@redhat.com>
36850
36851         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36852
36853 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36854
36855         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36856         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36857         programs.
36858         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36859
36860 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36861
36862         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36863
36864 2008-10-27  Bruno Haible  <bruno@clisp.org>
36865
36866         * tests/test-lstat.c: Include <stdio.h>.
36867
36868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36869
36870         * modules/lstat-tests: New module.
36871         * tests/test-lstat.c: New file.
36872
36873 2008-10-26  Jim Meyering  <meyering@redhat.com>
36874
36875         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36876
36877 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36878             Bruno Haible  <bruno@clisp.org>
36879
36880         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36881         * modules/configmake (Include): Add a note that the include must come
36882         after all system headers.
36883         * lib/javaversion.c: Include configmake.h after all other includes.
36884
36885 2008-10-26  Bruno Haible  <bruno@clisp.org>
36886
36887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36888         HAVE_STRUCT_RANDOM_DATA to 1.
36889         (gl_STDLIB_H): Simplify.
36890
36891 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36892
36893         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36894         substitute HAVE_STRUCT_RANDOM_DATA.
36895         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36896         random_data.
36897         * modules/stdlib (Makefile.am): Substitute
36898         HAVE_STRUCT_RANDOM_DATA.
36899
36900 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36901
36902         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36903         * doc/gnulib-intro.texi (Copyright): Likewise.
36904
36905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36906
36907         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36908         findings.
36909
36910 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36911             Bruno Haible  <bruno@clisp.org>
36912
36913         * lib/unistd.in.h: Include <winsock2.h>.
36914         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36915         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36916         Provide dummy declarations.
36917         (gethostname): Override.
36918         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36919         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36920         gl_PREREQ_SYS_H_WINSOCK2.
36921         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36922         * doc/posix-functions/gethostname.texi: More details.
36923
36924 2008-10-25  Bruno Haible  <bruno@clisp.org>
36925
36926         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36927         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36928         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36929
36930         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36931         here ...
36932         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36933         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36934         gl_UNISTD_H_DEFAULTS.
36935
36936 2008-10-25  Eric Blake  <ebb9@byu.net>
36937
36938         signbit: avoid spurious compiler failure
36939         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36940         declarations inside function.
36941
36942 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36943             Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36946         * modules/random_r (Depends-on): Add stdint.
36947
36948 2008-10-24  Bruno Haible  <bruno@clisp.org>
36949
36950         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36951         Eggert.
36952         * modules/strerror (License): Likewise.
36953
36954 2008-10-24  Jim Meyering  <meyering@redhat.com>
36955
36956         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36957         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36958
36959 2008-10-24  Eric Blake  <ebb9@byu.net>
36960
36961         getgroups: fix compilation when getgroups is available
36962         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36963         but with <config.h> override of getgroups disabled.
36964
36965 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36966
36967         * doc/gnulib.texi (Header files): Add note about C++ problems.
36968         Explained by Bruno Haible <bruno@clisp.org>.
36969
36970 2008-10-23  Bruno Haible  <bruno@clisp.org>
36971
36972         Define a dummy SA_NODEFER macro on Interix.
36973         * lib/signal.in.h (SA_NODEFER): Define fallback.
36974         Reported by Aleksey Cheusov <cheusov@tut.by> via
36975         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36976
36977 2008-10-23  Bruno Haible  <bruno@clisp.org>
36978
36979         * modules/freadahead (License): Change to LGPLv2+.
36980         Suggested by Simon Josefsson.
36981
36982 2008-10-23  Jim Meyering  <meyering@redhat.com>
36983
36984         random_r: new module
36985         * modules/random_r: New file.
36986         * m4/random_r.m4: New file.
36987         * lib/random_r.c: New file, from glibc.
36988         * modules/random_r-tests: New file.
36989         * tests/test-random_r.c: New file.
36990         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36991          Declare.
36992         (RAND_MAX): Define.
36993         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36994         * modules/stdlib: Substitute them, too.
36995         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36996         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36997         * doc/glibc-functions/random_r.texi: Likewise.
36998         * doc/glibc-functions/setstate_r.texi: Likewise.
36999         * doc/glibc-functions/srandom_r.texi: Likewise.
37000         * config/srclist.txt: Mention it.
37001
37002 2008-10-23  David Lutterkort  <lutter@redhat.com>
37003
37004         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37005         link requirement
37006
37007 2008-10-23  Jim Meyering  <meyering@redhat.com>
37008
37009         selinux-h: mark parameters of stub functions as intentionally unused
37010         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37011         * lib/se-context.in.h: Likewise.
37012
37013 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37014
37015         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37016
37017 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37018
37019         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37020
37021 2008-10-22  Eric Blake  <ebb9@byu.net>
37022
37023         glthread/thread: avoid compiler warning
37024         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37025         Add unreachable abort to silence compiler.
37026
37027 2008-10-22  Eric Blake  <ebb9@byu.net>
37028
37029         netdb: also supply struct addrinfo for cygwin 1.5.x
37030         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37031         older cygwin.
37032         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37033         cygwin.
37034         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37035
37036 2008-10-22  Bruno Haible  <bruno@clisp.org>
37037
37038         * users.txt: Update entry about pspp.
37039
37040 2008-10-21  Bruno Haible  <bruno@clisp.org>
37041
37042         Simplification.
37043         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37044         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37045
37046         Simplification.
37047         * lib/ioctl.c (ioctl): Don't undefine.
37048         * lib/socket.c (socket): Don't undefine.
37049
37050         Remove unused module indicator macros.
37051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37052         GNULIB_$1 as a C macro.
37053
37054         * doc/posix-functions/close.texi: Undo last change.
37055         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37056         Windows platforms.
37057
37058 2008-10-21  Bruno Haible  <bruno@clisp.org>
37059
37060         Add gethostname() declaration to <unistd.h>.
37061         * lib/unistd.in.h (gethostname): New declaration.
37062         * lib/gethostname.c: Include <unistd.h>.
37063         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37064         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37066         and HAVE_GETHOSTNAME.
37067         * modules/gethostname (Depends-on): Add unistd.
37068         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37069         (Include): Specify <unistd.h>.
37070         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37071         HAVE_GETHOSTNAME.
37072         * tests/test-gethostname.c: Include <unistd.h> first.
37073
37074 2008-10-21  Bruno Haible  <bruno@clisp.org>
37075
37076         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37077         * modules/select-tests (Depends-on): Likewise.
37078         Reported by Simon Josefsson.
37079
37080 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37081
37082         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37083         * lib/accept.c: New file, based on winsock.c.
37084         * lib/bind.c: New file, based on winsock.c.
37085         * lib/connect.c: New file, based on winsock.c.
37086         * lib/getpeername.c: New file, based on winsock.c.
37087         * lib/getsockname.c: New file, based on winsock.c.
37088         * lib/getsockopt.c: New file, based on winsock.c.
37089         * lib/ioctl.c: New file, based on winsock.c.
37090         * lib/listen.c: New file, based on winsock.c.
37091         * lib/recv.c: New file, based on winsock.c.
37092         * lib/recvfrom.c: New file, based on winsock.c.
37093         * lib/send.c: New file, based on winsock.c.
37094         * lib/sendto.c: New file, based on winsock.c.
37095         * lib/setsockopt.c: New file, based on winsock.c.
37096         * lib/shutdown.c: New file, based on winsock.c.
37097         * lib/socket.c: New file, based on winsock.c.
37098         * lib/w32sock.h: New file, based on winsock.c.
37099         * lib/winsock.c: Remove file.
37100         * modules/accept: Likewise.
37101         * modules/bind: Likewise.
37102         * modules/connect: Likewise.
37103         * modules/getpeername: Likewise.
37104         * modules/getsockname: Likewise.
37105         * modules/getsockopt: Likewise.
37106         * modules/ioctl: Likewise.
37107         * modules/listen: Likewise.
37108         * modules/recv: Likewise.
37109         * modules/recvfrom: Likewise.
37110         * modules/send: Likewise.
37111         * modules/sendto: Likewise.
37112         * modules/setsockopt: Likewise.
37113         * modules/shutdown: Likewise.
37114         * modules/socket: Use socket.c instead of winsock.c.
37115         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37116         * doc/posix-functions/accept.texi: Doc fix.
37117         * doc/posix-functions/bind.texi: Doc fix.
37118         * doc/posix-functions/close.texi: Doc fix.
37119         * doc/posix-functions/connect.texi: Doc fix.
37120         * doc/posix-functions/getpeername.texi: Doc fix.
37121         * doc/posix-functions/getsockname.texi: Doc fix.
37122         * doc/posix-functions/getsockopt.texi: Doc fix.
37123         * doc/posix-functions/ioctl.texi: Doc fix.
37124         * doc/posix-functions/listen.texi: Doc fix.
37125         * doc/posix-functions/recv.texi: Doc fix.
37126         * doc/posix-functions/recvfrom.texi: Doc fix.
37127         * doc/posix-functions/send.texi: Doc fix.
37128         * doc/posix-functions/sendto.texi: Doc fix.
37129         * doc/posix-functions/setsockopt.texi: Doc fix.
37130         * doc/posix-functions/shutdown.texi: Doc fix.
37131         * doc/posix-functions/socket.texi: Doc fix.
37132
37133 2008-10-20  Bruno Haible  <bruno@clisp.org>
37134
37135         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37136         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37137         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37138         as an alias for SIGABRT.
37139         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37140         (sigaction): Map it to SIGABRT.
37141         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37142
37143 2008-10-20  Bruno Haible  <bruno@clisp.org>
37144
37145         * lib/fts.c: Don't include lstat.h.
37146         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37147
37148         Move the lstat() declaration to <sys/stat.h>.
37149         * lib/lstat.h: Remove file.
37150         * lib/sys_stat.in.h: Add special invocation convention.
37151         (lstat): New declaration.
37152         * lib/lstat.c (orig_lstat): New function.
37153         (rpl_lstat): Use orig_lstat instead of lstat.
37154         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37155         AC_C_INLINE. Set REPLACE_LSTAT.
37156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37157         and REPLACE_LSTAT.
37158         * modules/lstat (Files): Remove lib/lstat.h.
37159         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37160         (Include): Specify <sys/stat.h> instead of lstat.h.
37161         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37162         REPLACE_LSTAT.
37163         * NEWS: Mention the change.
37164
37165 2008-10-20  Bruno Haible  <bruno@clisp.org>
37166
37167         * modules/posix_spawn-tests: New file.
37168         * tests/test-posix_spawn3.c: New file.
37169
37170 2008-10-20  Bruno Haible  <bruno@clisp.org>
37171
37172         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37173         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37174         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37175         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37176         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37177
37178 2008-10-20  Bruno Haible  <bruno@clisp.org>
37179
37180         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37181         of posix_spawn on AIX 5.3.
37182
37183 2008-10-20  Bruno Haible  <bruno@clisp.org>
37184
37185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37186
37187 2008-10-20  Bruno Haible  <bruno@clisp.org>
37188
37189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37190         of AC_LANG_PROGRAM.
37191
37192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37193
37194         * lib/netdb.in.h: Don't define GNU specific constants until they
37195         are supported or needed.  Reported by Bruno Haible
37196         <bruno@clisp.org>.
37197
37198 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37199
37200         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37201
37202 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37203
37204         * lib/getaddrinfo.h: Remove file.
37205         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37206         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37207         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37208         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37209         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37210         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37211         * tests/test-getaddrinfo.c: Likewise.
37212         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37213         * NEWS: Mention change.
37214
37215 2008-10-19  Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37218
37219 2008-10-19  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/wait-process.c: Include simply <sys/wait.h>.
37222         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37223         WIFSTOPPED): Remove fallback definitions.
37224         * modules/wait-process (Depends-on): Add sys_wait.
37225
37226         New module 'sys_wait'.
37227         * modules/sys_wait: New file.
37228         * lib/sys_wait.in.h: New file, partially copied from
37229         lib/wait-process.c.
37230         * m4/sys_wait_h.m4: New file.
37231         * doc/posix-headers/sys_wait.texi: Mention the new module.
37232
37233 2008-10-19  Bruno Haible  <bruno@clisp.org>
37234
37235         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37236
37237 2008-10-19  Bruno Haible  <bruno@clisp.org>
37238
37239         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37240         * lib/wait-process.c (WAIT_T): Remove type.
37241         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37242         (wait_subprocess): Update.
37243
37244 2008-10-19  Bruno Haible  <bruno@clisp.org>
37245
37246         New module 'atoll'.
37247         * modules/atoll: New file.
37248         * lib/stdlib.in.h (atoll): New declaration.
37249         * lib/atoll.c: New file, from glibc with modifications.
37250         * m4/atoll.m4: New file.
37251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37252         HAVE_ATOLL.
37253         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37254         * doc/posix-functions/atoll.texi: Mention the new module.
37255
37256 2008-10-19  Bruno Haible  <bruno@clisp.org>
37257
37258         Add strtoull() declaration to <stdlib.h>.
37259         * lib/stdlib.in.h (strtoull): New declaration.
37260         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37261         Set HAVE_STRTOULL.
37262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37263         HAVE_STRTOULL.
37264         * modules/strtoull (Depends-on): Add stdlib.
37265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37266         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37267         HAVE_STRTOULL.
37268
37269 2008-10-19  Bruno Haible  <bruno@clisp.org>
37270
37271         Add strtoll() declaration to <stdlib.h>.
37272         * lib/stdlib.in.h (strtoll): New declaration.
37273         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37274         Set HAVE_STRTOLL.
37275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37276         HAVE_STRTOLL.
37277         * modules/strtoll (Depends-on): Add stdlib.
37278         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37279         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37280
37281 2008-10-19  Bruno Haible  <bruno@clisp.org>
37282
37283         * modules/bcopy (Depends-on): Add strings.
37284         (Include): Specify <strings.h>.
37285
37286 2008-10-19  Bruno Haible  <bruno@clisp.org>
37287
37288         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37289
37290 2008-10-19  Bruno Haible  <bruno@clisp.org>
37291
37292         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37293         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37294         mingw.
37295
37296 2008-10-19  Bruno Haible  <bruno@clisp.org>
37297
37298         * lib/atanl.c: Don't include isnanl.h.
37299         * lib/cosl.c: Likewise.
37300         * lib/ldexpl.c: Likewise.
37301         * lib/logl.c: Likewise.
37302         * lib/sinl.c: Likewise.
37303         * lib/sqrtl.c: Likewise.
37304         * lib/tanl.c: Likewise.
37305
37306         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37307         * lib/isnanf.h: Remove file.
37308         * lib/isnand.h: Remove file.
37309         * lib/isnanl.h: Remove file.
37310         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37311         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37312         macros.
37313         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37314         HAVE_ISNANF, don't define it as a C macro.
37315         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37316         HAVE_ISNAND, don't define it as a C macro.
37317         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37318         HAVE_ISNANL, don't define it as a C macro.
37319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37320         HAVE_ISNAN[FDL].
37321         * modules/isnanf (Files): Remove lib/isnanf.h.
37322         (Depends-on): Add math.
37323         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37324         (Include): Specify <math.h> instead of isnanf.h.
37325         * modules/isnand (Files): Remove lib/isnand.h.
37326         (Depends-on): Add math.
37327         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37328         (Include): Specify <math.h> instead of isnand.h.
37329         * modules/isnanl (Files): Remove lib/isnanl.h.
37330         (Depends-on): Add math.
37331         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37332         (Include): Specify <math.h> instead of isnanl.h.
37333         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37334         HAVE_ISNAN[FDL].
37335         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37336         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37337         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37338         * NEWS: Mention the change.
37339
37340 2008-10-18  Bruno Haible  <bruno@clisp.org>
37341
37342         Add getusershell(), setusershell(), endusershell() declarations to
37343         <unistd.h>.
37344         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37345         declarations.
37346         * lib/getusershell.c: Include unistd.h.
37347         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37348         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37349         HAVE_GETUSERSHELL.
37350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37351         and HAVE_GETUSERSHELL.
37352         * modules/getusershell (Depends-on): Add unistd, extensions.
37353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37354         (Include): Specify <unistd.h>.
37355         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37356         HAVE_GETUSERSHELL.
37357
37358 2008-10-18  Bruno Haible  <bruno@clisp.org>
37359
37360         Add a getloadavg() declaration to <stdlib.h>.
37361         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37362         getloadavg declaration.
37363         (getloadavg): New declaration.
37364         * lib/getloadavg.c: Include <stdlib.h> first.
37365         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37366         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37367         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37369         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37370         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37371         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37372         (Include): Specify <stdlib.h>.
37373         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37374         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37375
37376 2008-10-18  Bruno Haible  <bruno@clisp.org>
37377
37378         * lib/dirchownmod.c: Don't include lchmod.h.
37379
37380         Move the lchmod() declaration to <sys/stat.h>.
37381         * lib/lchmod.h: Remove file.
37382         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37383         (lchmod): New declaration, moved here from lib/lchown.h.
37384         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37385         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37387         and HAVE_LCHMOD.
37388         * modules/lchmod (Files): Remove lib/lchmod.h.
37389         (Depends-on): Add sys_stat, extensions.
37390         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37391         (Include): Specify <sys/stat.h> instead of lchmod.h.
37392         * modules/sys_stat (Depends-on): Add link-warning.
37393         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37394         definition of GL_LINK_WARNING.
37395         * NEWS: Mention the change.
37396
37397 2008-10-18  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/fchdir.c: Don't include dirfd.h.
37400         * lib/fts.c: Likewise.
37401         * lib/getcwd.c: Likewise.
37402         * lib/glob.c: Likewise.
37403
37404         Move the dirfd() declaration to <dirent.h>.
37405         * lib/dirfd.h: Remove file.
37406         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37407         (dirfd): New declaration.
37408         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37409         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37410         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37411         HAVE_DECL_DIRFD.
37412         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37413         HAVE_DECL_DIRFD.
37414         * modules/dirfd (Files): Remove lib/dirfd.h.
37415         (Depends-on): Add dirent, extensions.
37416         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37417         (Include): Specify <dirent.h> instead of dirfd.h.
37418         * modules/dirent (Depends-on): Add link-warning.
37419         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37420         definition of GL_LINK_WARNING.
37421         * NEWS: Mention the change.
37422
37423 2008-10-18  Bruno Haible  <bruno@clisp.org>
37424
37425         Move the euidaccess() declaration to <unistd.h>.
37426         * lib/euidaccess.h: Remove file.
37427         * lib/unistd.in.h (euidaccess): New declaration.
37428         * lib/euidaccess.c: Don't include euidaccess.h.
37429         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37430         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37432         and HAVE_EUIDACCESS.
37433         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37434         (Depends-on): Add unistd.
37435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37436         (Include): Specify <unistd.h> instead of euidaccess.h.
37437         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37438         HAVE_EUIDACCESS.
37439         * NEWS: Mention the change.
37440
37441 2008-10-18  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37444
37445         Move the getdomainname() declaration to <unistd.h>.
37446         * lib/getdomainname.h: Remove file.
37447         * lib/unistd.in.h (getdomainname): New declaration.
37448         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37449         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37450         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37451         HAVE_GETDOMAINNAME.
37452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37453         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37454         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37455         (Depends-on): Add unistd, extensions.
37456         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37457         (Includes): Specify <unistd.h> instead of getdomainname.h.
37458         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37459         HAVE_GETDOMAINNAME.
37460         * NEWS: Mention the change.
37461
37462 2008-10-18  Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/dirent: New file.
37465         * m4/dirent_h.m4: New file.
37466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37467         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37468         * modules/fchdir (Files): Remove lib/dirent.in.h.
37469         (Depends-on): Add dirent.
37470         (Makefile.am): Move rules to modules/dirent.
37471         * doc/posix-headers/dirent.texi: Mention the new module.
37472
37473 2008-10-18  Bruno Haible  <bruno@clisp.org>
37474
37475         Avoid -Wunused-parameter warnings in public gnulib header files.
37476         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37477         macro.
37478         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37479
37480 2008-10-18  Bruno Haible  <bruno@clisp.org>
37481
37482         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37483         * doc/glibc-functions/error.texi: Mention the module 'error'.
37484         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37485         * doc/glibc-functions/getdomainname.texi: Mention the module
37486         'getdomainname'.
37487         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37488         * doc/glibc-functions/getpagesize.texi: Mention the module
37489         'getpagesize'.
37490         * doc/glibc-functions/getusershell.texi: Mention the module
37491         'getusershell'.
37492         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37493         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37494         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37495         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37496         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37497         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37498         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37499         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37500         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37501         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37502         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37503         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37504         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37505         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37506
37507 2008-10-17  Bruno Haible  <bruno@clisp.org>
37508
37509         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37510         HP-UX and IRIX, use -0.0L.
37511         * tests/test-ceill.c (minus_zero): Likewise.
37512         * tests/test-floorl.c (minus_zero): Likewise.
37513         * tests/test-frexpl.c (minus_zero): Likewise.
37514         * tests/test-isnan.c (minus_zerol): Likewise.
37515         * tests/test-isnanl.h (minus_zero): Likewise.
37516         * tests/test-ldexpl.c (minus_zero): Likewise.
37517         * tests/test-roundl.c (minus_zero): Likewise.
37518         * tests/test-signbit.c (minus_zerol): Likewise.
37519         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37520         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37521         * tests/test-truncl.c (minus_zero): Likewise.
37522         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37523         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37524         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37525         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37526
37527 2008-10-17  Bruno Haible  <bruno@clisp.org>
37528
37529         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37530         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37531         that it gets activated only for gcc >= 3.0.
37532         * lib/dirent.in.h: Likewise.
37533         * lib/errno.in.h: Likewise.
37534         * lib/fcntl.in.h: Likewise.
37535         * lib/float.in.h: Likewise.
37536         * lib/iconv.in.h: Likewise.
37537         * lib/inttypes.in.h: Likewise.
37538         * lib/locale.in.h: Likewise.
37539         * lib/math.in.h: Likewise.
37540         * lib/netdb.in.h: Likewise.
37541         * lib/netinet_in.in.h: Likewise.
37542         * lib/search.in.h: Likewise.
37543         * lib/signal.in.h: Likewise.
37544         * lib/spawn.in.h: Likewise.
37545         * lib/stdarg.in.h: Likewise.
37546         * lib/stdint.in.h: Likewise.
37547         * lib/stdio.in.h: Likewise.
37548         * lib/stdlib.in.h: Likewise.
37549         * lib/string.in.h: Likewise.
37550         * lib/strings.in.h: Likewise.
37551         * lib/sys_file.in.h: Likewise.
37552         * lib/sys_ioctl.in.h: Likewise.
37553         * lib/sys_select.in.h: Likewise.
37554         * lib/sys_socket.in.h: Likewise.
37555         * lib/sys_stat.in.h: Likewise.
37556         * lib/sys_time.in.h: Likewise.
37557         * lib/sysexits.in.h: Likewise.
37558         * lib/time.in.h: Likewise.
37559         * lib/unistd.in.h: Likewise.
37560         * lib/wchar.in.h: Likewise.
37561         * lib/wctype.in.h: Likewise.
37562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37563
37564 2008-10-17  Jim Meyering  <meyering@redhat.com>
37565
37566         ignore-value: don't depend on inline module
37567         * modules/ignore-value (Depends-on): Remove 'inline'.
37568         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37569         Suggestion from Bruno Haible.
37570
37571 2008-10-17  Bruno Haible  <bruno@clisp.org>
37572
37573         New implementation of condition variables for Win32.
37574         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37575         (gl_linked_waitqueue_t): New type.
37576         (gl_cond_t): Use it.
37577         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37578         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37579         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37580         (glthread_cond_init_func, glthread_cond_wait_func,
37581         glthread_cond_timedwait_func, glthread_cond_signal_func,
37582         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37583         Reimplemented on the basis of gl_linked_waitqueue_t.
37584         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37585         gl_waitqueue_t.
37586         (gl_rwlock_t): Update.
37587         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37588
37589 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37590
37591         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37592         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37593
37594 2008-10-17  Jim Meyering  <meyering@redhat.com>
37595
37596         ignore-value: new module
37597         * modules/ignore-value: New file.
37598         * lib/ignore-value.h: New file.
37599         * MODULES.html.sh (Compiler warning management): New section,
37600         just for this module.  More to come.
37601
37602 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37603
37604         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37605         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37606         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37607
37608 2008-10-16  Jim Meyering  <meyering@redhat.com>
37609
37610         openat-die.c: avoid 'no previous prototype' warning
37611         * lib/openat-die.c: Include "openat.h".
37612         Reported by Reuben Thomas <rrt@sc3d.org>.
37613
37614 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37615
37616         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37617         * lib/netdb.in.h: Fix typo.
37618         Reported by Bruno Haible  <bruno@clisp.org>
37619
37620         * lib/netdb.in.h: Include sys/socket.h for platforms without
37621         netdb.h, to get structures like hostent on MinGW.
37622         * modules/netdb (Depends-on): Add sys_socket.
37623
37624 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37625
37626         * modules/netdb, modules/netdb-tests: New file.
37627         * m4/netdb_h.m4: New file.
37628         * lib/netdb.in.h: Add, currently just an empty file pending
37629         definitions.
37630         * tests/test-netdb.c: New file.
37631         * doc/posix-headers/netdb.texi: Mention that we replace it if
37632         needed.
37633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37634         netdb.
37635
37636 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37637
37638         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37639         with code.
37640
37641 2008-10-13  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/glthread/cond.c (glthread_cond_wait_func,
37644         glthread_cond_timedwait_func): Add a comment.
37645
37646 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37647
37648         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37649         * tests/test-select.c: Likewise,
37650
37651 2008-10-13  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/glthread/cond.c (glthread_cond_wait_func,
37654         glthread_cond_timedwait_func): Fix variable name.
37655         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37656
37657 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37658
37659         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37661         struct sockaddr.sa_len.
37662         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37663
37664 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37665
37666         * build-aux/pmccabe2html: Add css and css_url parameters.
37667
37668 2008-10-12  Bruno Haible  <bruno@clisp.org>
37669
37670         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37671         calling aclx_get.
37672         Reported by Rainer Tammer <tammer@tammer.net>.
37673
37674 2008-10-12  Bruno Haible  <bruno@clisp.org>
37675
37676         Use msvcrt aware primitives for creation/termination of Win32 threads.
37677         * lib/glthread/thread.c: Include <process.h>.
37678         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37679         (wrapper_func): Update signature.
37680         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37681
37682 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37683             Bruno Haible  <bruno@clisp.org>
37684
37685         Provide a Win32 implementation of the 'cond' module.
37686         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37687         * lib/glthread/cond.c (glthread_cond_init_func,
37688         glthread_cond_wait_func, glthread_cond_timedwait_func,
37689         glthread_cond_signal_func, glthread_cond_broadcast_func,
37690         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37691         * modules/cond (Dependencies): Add gettimeofday.
37692
37693 2008-10-11  Bruno Haible  <bruno@clisp.org>
37694
37695         Make sleep work on older versions of mingw.
37696         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37697         only whether it exists.
37698         * doc/posix-functions/sleep.texi: Mention the problem with older
37699         versions of mingw.
37700
37701 2008-10-11  Bruno Haible  <bruno@clisp.org>
37702
37703         New module 'shutdown'.
37704         * modules/shutdown: New file.
37705         * lib/sys_socket.in.h (shutdown): New declaration.
37706         * lib/winsock.c (shutdown): New function.
37707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37708         GNULIB_SHUTDOWN.
37709         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37710         * doc/posix-functions/shutdown.texi: Document the new module.
37711
37712 2008-10-11  Jim Meyering  <meyering@redhat.com>
37713
37714         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37715
37716 2008-10-11  Bruno Haible  <bruno@clisp.org>
37717
37718         New module 'fclose'.
37719         * modules/fclose: New file.
37720         * lib/stdio.in.h (fclose): New declaration.
37721         * lib/fclose.c: New file.
37722         * m4/fclose.m4: New file.
37723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37724         REPLACE_FCLOSE.
37725         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37726         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37727         REPLACE_FCLOSE.
37728         * modules/close (Depends-on): fclose.
37729         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37730
37731 2008-10-11  Bruno Haible  <bruno@clisp.org>
37732
37733         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37734         set errno and don't call _close.
37735
37736 2008-10-10  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37739         ACL, not afterwards. Fixes test failure on Cygwin.
37740
37741 2008-10-09  Ben Pfaff  <blp@gnu.org>
37742
37743         * build-aux/announce-gen: Fix gnulib version related part of usage
37744         message.  Die with a useful error message if no tarballs are
37745         found.
37746
37747 2008-10-10  Jim Meyering  <meyering@redhat.com>
37748
37749         bootstrap: use git's --depth=N option only if it's supported
37750         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37751         recognize the --depth option.  Reported by Pádraig Brady.
37752
37753 2008-10-09  Bruno Haible  <bruno@clisp.org>
37754
37755         New module 'ioctl'.
37756         * modules/ioctl: New file.
37757         * lib/sys_socket.in.h (ioctl): Remove declaration.
37758         * lib/winsock.c: Include <sys/ioctl.h>.
37759         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37760         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37761         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37762         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37763         * doc/posix-functions/ioctl.texi: Mention the new module.
37764
37765 2008-10-09  Bruno Haible  <bruno@clisp.org>
37766
37767         New module 'sys_ioctl'.
37768         * lib/sys_ioctl.in.h: New file.
37769         * m4/sys_ioctl_h.m4: New file.
37770         * modules/sys_ioctl: New file.
37771         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37772
37773 2008-10-09  Bruno Haible  <bruno@clisp.org>
37774
37775         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37776         * lib/winsock.c: Include <stdarg.h>.
37777         (rpl_ioctl): Change to second argument 'int' and then varargs.
37778
37779 2008-10-09  Bruno Haible  <bruno@clisp.org>
37780
37781         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37782         when the sys_socket module is present and the system has <winsock2.h>.
37783
37784 2008-10-09  Bruno Haible  <bruno@clisp.org>
37785
37786         * doc/posix-functions/close.texi: Mention module 'close' instead of
37787         module 'sys_socket'.
37788
37789 2008-10-09  Bruno Haible  <bruno@clisp.org>
37790
37791         * doc/glibc-headers/sys_ioctl.texi: New file.
37792         * doc/gnulib.texi: Include it.
37793
37794 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37795             Bruno Haible  <bruno@clisp.org>
37796
37797         Combine the two replacements of 'close'.
37798         * lib/sys_socket.in.h (close): Define to a reminder to include
37799         <unistd.h>.
37800         (_gl_close_fd_maybe_socket): New declaration.
37801         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37802         * lib/winsock.c (close): Remove undefinition.
37803         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37804         needed for the gnulib module 'close'.
37805         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37806         define to an error symbol or to a warning, if suitable.
37807         * lib/close.c: Include <sys/socket.h>.
37808         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37809         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37810         UNISTD_H_HAVE_WINSOCK2_H.
37811         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37813         UNISTD_H_HAVE_WINSOCK2_H.
37814         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37815         (configure.ac): Set a module indicator.
37816         (Makefile.am): Substitute GNULIB_CLOSE.
37817         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37818         * modules/poll-tests (Depends-on): Add close.
37819         * modules/select-tests (Depends-on): Likewise.
37820
37821 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37822             Bruno Haible  <bruno@clisp.org>
37823
37824         New module 'close'.
37825         * modules/close: New file.
37826         * lib/unistd.in.h (close): Move declaration out of the
37827         FCHDIR_REPLACEMENT scope.
37828         (_gl_unregister_fd): New declaration.
37829         * lib/close.c: New file.
37830         * lib/fchdir.c (rpl_close): Remove function.
37831         * m4/close.m4: New file.
37832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37833         close.
37834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37835         REPLACE_CLOSE.
37836         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37837         REPLACE_CLOSE.
37838         * modules/fchdir (Depends-on): Add close.
37839
37840 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37841             Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/fcntl.in.h (open): Simplify conditionals.
37844         (_gl_register_fd): New declaration.
37845         * lib/fchdir.c (rpl_open): Remove function.
37846         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37847         also.
37848         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37850         open.
37851
37852 2008-10-09  Jim Meyering  <meyering@redhat.com>
37853
37854         GNUmakefile: use the more name-space-friendly "_version"
37855         * top/GNUmakefile (_dummy): Update.
37856         (_version): Rename from "version".
37857
37858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37859             Bruno Haible  <bruno@clisp.org>
37860
37861         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37862         rpl_close.
37863         (_gl_register_fd): New function, extracted from rpl_open.
37864         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37865         (rpl_open, rpl_opendir): Use _gl_register_fd.
37866
37867 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37868
37869         Fix organization of 'open' replacement.
37870         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37871         (gl_FUNC_OPEN): Use it.
37872         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37873
37874 2008-10-08  Bruno Haible  <bruno@clisp.org>
37875
37876         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37877
37878 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37879
37880         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37881         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37882         listen).
37883
37884 2008-10-08  Eric Blake  <ebb9@byu.net>
37885
37886         GNUmakefile: add 'make version' target
37887         * top/GNUmakefile (_curr-ver): Split version update rules...
37888         (version): ...into a target.
37889
37890 2008-10-07  Bruno Haible  <bruno@clisp.org>
37891
37892         Use a more portable replacement expression for -0.0L.
37893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37894         instead of -0.0L. Fix m4 quotation.
37895
37896         * tests/test-signbit.c: Include <float.h>.
37897         (minus_zero): New variable.
37898         (test_signbitl): Use minus_zero instead of -zero.
37899         * modules/signbit-tests (Depends-on): Add float.
37900
37901         * tests/test-ceill.c: Include <float.h>.
37902         (zero): Remove variable.
37903         (minus_zero): New variable.
37904         (main): Use minus_zero instead of -zero.
37905         * modules/ceill-tests (Depends-on): Add float.
37906
37907         * tests/test-floorl.c: Include <float.h>.
37908         (zero): Remove variable.
37909         (minus_zero): New variable.
37910         (main): Use minus_zero instead of -zero.
37911         * modules/floorl-tests (Depends-on): Add float.
37912
37913         * tests/test-roundl.c: Include <float.h>.
37914         (zero): Remove variable.
37915         (minus_zero): New variable.
37916         (main): Use minus_zero instead of -zero.
37917         * modules/roundl-tests (Depends-on): Add float.
37918
37919         * tests/test-truncl.c: Include <float.h>.
37920         (zero): Remove variable.
37921         (minus_zero): New variable.
37922         (main): Use minus_zero instead of -zero.
37923         * modules/truncl-tests (Depends-on): Add float.
37924
37925         * tests/test-frexpl.c (zero): Remove variable.
37926         (minus_zero): New variable.
37927         (main): Use minus_zero instead of -zero.
37928         * modules/frexpl-tests (Depends-on): Add float.
37929
37930         * tests/test-isnan.c (zerol): Remove variable.
37931         (minus_zerol): New variable.
37932         (test_long_double): Use minus_zerol instead of -zerol.
37933         * modules/isnan-tests (Depends-on): Add float.
37934
37935         * tests/test-isnanl.h (zero): Remove variable.
37936         (minus_zero): New variable.
37937         (main): Use minus_zero instead of -zero.
37938         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37939         * modules/isnanl-tests (Depends-on): Add float.
37940
37941         * tests/test-ldexpl.c (zero): Remove variable.
37942         (minus_zero): New variable.
37943         (main): Use minus_zero instead of -zero.
37944         * modules/ldexpl-tests (Depends-on): Add float.
37945
37946         * tests/test-snprintf-posix.h (zerol): Remove variable.
37947         (minus_zerol): New variable.
37948         (test_function): Use minus_zerol instead of -zerol.
37949         * modules/snprintf-posix-tests (Depends-on): Add float.
37950         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37951
37952         * tests/test-sprintf-posix.h (zerol): Remove variable.
37953         (minus_zerol): New variable.
37954         (test_function): Use minus_zerol instead of -zerol.
37955         * modules/sprintf-posix-tests (Depends-on): Add float.
37956         * modules/vsprintf-posix-tests (Depends-on): Add float.
37957
37958         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37959         (minus_zerol): New variable.
37960         (test_function): Use minus_zerol instead of -zerol.
37961         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37962
37963         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37964         (minus_zerol): New variable.
37965         (test_function): Use minus_zerol instead of -zerol.
37966         * modules/vasprintf-posix-tests (Depends-on): Add float.
37967
37968 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37969
37970         * MODULES.html.sh (Support for building documentation): Mention
37971         pmccabe2html.  Sort entries.
37972
37973         Add pmccabe2html module, from gnupdf.
37974         * build-aux/pmccabe.css: New file.
37975         * build-aux/pmccabe2html: New file.
37976         * m4/pmccabe2html.m4: New file.
37977         * modules/pmccabe2html: New file.
37978
37979 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37980
37981         flock: new module
37982         * MODULES.html.sh: Add to list of modules.
37983         * lib/flock.c: flock implementation for Windows and Unix systems
37984         which have fcntl.
37985         * doc/glibc-functions/flock.texi: Update documentation.
37986         * lib/sys_file.in.h: <sys/file.h> header file.
37987         * m4/flock.m4: M4 macros.
37988         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37989         * modules/flock: flock module.
37990         * modules/flock-tests: flock tests module.
37991         * modules/sys_file: sys/file.h module.
37992         * tests/test-flock.c: test suite for flock.
37993
37994 2008-10-06  Jim Meyering  <meyering@redhat.com>
37995
37996         bootstrap: check for LT_INIT more portably still ;-)
37997         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37998         Spotted by Bruno Haible.
37999
38000 2008-10-06  Eric Blake  <ebb9@byu.net>
38001
38002         test-signbit: avoid tripping Irix cc bug on -0.0L
38003         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38004         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38005         entire testsuite consistent and avoids an Irix 6.2 bug.
38006
38007 2008-10-05  Bruno Haible  <bruno@clisp.org>
38008             Jim Meyering  <jim@meyering.net>
38009
38010         Add an option for ignoring EPIPE during close_stdout.
38011         * lib/closeout.h: Include <stdbool.h>.
38012         (close_stdout_set_ignore_EPIPE): New declaration.
38013         * lib/closeout.c: Include <stdbool.h>.
38014         (ignore_EPIPE): New variable.
38015         (close_stdout_set_ignore_EPIPE): New function.
38016         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38017         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38018         failure.
38019         * modules/closeout (Depends-on): Add stdbool.
38020
38021 2008-10-05  Bruno Haible  <bruno@clisp.org>
38022
38023         * modules/accept: New file.
38024         * modules/bind: New file.
38025         * modules/connect: New file.
38026         * modules/getpeername: New file.
38027         * modules/getsockname: New file.
38028         * modules/getsockopt: New file.
38029         * modules/listen: New file.
38030         * modules/recv: New file.
38031         * modules/recvfrom: New file.
38032         * modules/send: New file.
38033         * modules/sendto: New file.
38034         * modules/setsockopt: New file.
38035         * modules/socket: New file.
38036         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38037         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38038         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38039         the particular module is requested. Add a link warning when the
38040         particular module is not requested.
38041         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38042         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38043         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38044         the particular module is requested.
38045         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38046         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38047         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38048         * modules/sys_socket (Depends-on): Add link-warning.
38049         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38050         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38051         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38052         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38053         GL_LINK_WARNING.
38054         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38055         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38056         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38057         * doc/posix-functions/getpeername.texi: Mention the new module
38058         'getpeername'.
38059         * doc/posix-functions/getsockname.texi: Mention the new module
38060         'getsockname'.
38061         * doc/posix-functions/getsockopt.texi: Mention the new module
38062         'getsockopt'.
38063         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38064         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38065         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38066         * doc/posix-functions/send.texi: Mention the new module 'send'.
38067         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38068         * doc/posix-functions/setsockopt.texi: Mention the new module
38069         'setsockopt'.
38070         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38071         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38072         listen, connect, accept.
38073         * modules/select-tests (Depends-on): Likewise.
38074
38075 2008-10-05  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/winsock.c (strerror): Remove unused #undef.
38078         (rpl_close): Remove unused local variable.
38079
38080         * modules/sys_socket (Depends-on); Add errno.
38081
38082 2008-10-05  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38085         (select): Add a link warning when the 'select' module is not used.
38086         * modules/sys_select (Depends-on): Add link-warning.
38087         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38088         Suggested by Paolo Bonzini.
38089
38090 2008-10-05  Jim Meyering  <meyering@redhat.com>
38091
38092         bootstrap: check for LT_INIT more portably
38093         * build-aux/bootstrap: Avoid using grep -E, since it's not
38094         portable enough.  Suggestion from Bruno Haible.
38095
38096 2008-10-05  Bruno Haible  <bruno@clisp.org>
38097
38098         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38099         as being fixed by gnulib.
38100
38101 2008-10-05  Bruno Haible  <bruno@clisp.org>
38102
38103         * modules/select-tests: New file, mostly copied from
38104         modules/sys_select-tests.
38105         * tests/test-select.c: New file, mostly copied from
38106         tests/test-sys_select.c.
38107         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38108         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38109         (Makefile.am): Remove test_sys_select_LDADD.
38110
38111         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38112         to an undefined symbol, for an error message.
38113         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38114         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38115         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38116         winsock-select.c here.
38117         * modules/sys_select (Files): Remove lib/winsock-select.c.
38118         (Depends-on): Remove alloca.
38119         (Makefile.am): Substitute GNULIB_SELECT.
38120         * modules/select: New file.
38121         * doc/posix-functions/select.texi: Update.
38122
38123 2008-10-05  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38126         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38127         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38128         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38129         getdtablesize.
38130         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38131         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38132
38133 2008-10-05  Bruno Haible  <bruno@clisp.org>
38134
38135         * modules/getdtablesize-tests: New file.
38136         * tests/test-getdtablesize.c: New file.
38137
38138         New module 'getdtablesize'.
38139         * lib/unistd.in.h (getdtablesize): New declaration.
38140         * lib/getdtablesize.c: New file.
38141         * m4/getdtablesize.m4: New file.
38142         * modules/getdtablesize: New file.
38143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38144         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38145         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38146         HAVE_GETDTABLESIZE.
38147         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38148
38149 2008-10-05  Bruno Haible  <bruno@clisp.org>
38150
38151         * modules/sched (Makefile.am): Fix typo.
38152         Reported by Simon Josefsson.
38153
38154 2008-10-05  Jim Meyering  <meyering@redhat.com>
38155
38156         bootstrap: check for LT_INIT, too
38157         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38158         are deprecated.  Suggestion from Ralf Wildenhues.
38159
38160 2008-10-05  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38163         overriding them by ours.
38164         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38165
38166 2008-10-05  Jim Meyering  <meyering@redhat.com>
38167
38168         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38169         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38170         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38171
38172 2008-10-04  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/dup2 (License): Change to LGPLv2+.
38175         * modules/sleep (License): Likewise.
38176         * modules/perror (License): Likewise.
38177         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38178         Blake.
38179         * modules/signal (License): Likewise.
38180         * modules/sigprocmask (License): Likewise.
38181         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38182         Meyering.
38183
38184 2008-10-04  Bruno Haible  <bruno@clisp.org>
38185
38186         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38187         Reported by Rainer Tammer <tammer@tammer.net>.
38188
38189 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38190             Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38193         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38194         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38195
38196 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38197
38198         filevercmp: new module
38199         * lib/filevercmp.h: New function filevercmp comparing version strings.
38200         * lib/filevercmp.c: Implementation of filevercmp function.
38201         * modules/filevercmp: Module metadata.
38202         * tests/test-filevercmp.c: Unit test for new module.
38203         * modules/filevercmp-tests: Unit test metadata.
38204         * MODULES.html.sh: Add filevercmp module.
38205
38206 2008-10-03  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/c-ctype.h: Add comment.
38209         Reported by Jim Meyering.
38210
38211 2008-10-02  Bruno Haible  <bruno@clisp.org>
38212
38213         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38214
38215 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38216
38217         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38218         name of bootstrap.conf accordingly.
38219
38220 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38221
38222         * build-aux/bootstrap: Install git-merge-changelog configuration
38223         items into .gitconfig if needed.
38224
38225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38226
38227         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38228         git repository, and initialize/update it accordingly.
38229
38230 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38231
38232         * modules/fsync-tests: New file.
38233         * tests/test-fsync.c: New file.
38234
38235         New module 'fsync'.
38236         * lib/fsync.c: New file.
38237         * m4/fsync.m4: New file.
38238         * modules/fsync: New file.
38239         * lib/unistd.in.h (fsync): New declaration.
38240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38241         GNULIB_FSYNC and HAVE_FSYNC.
38242         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38243         * MODULES.html.sh (posix_functions): Add fsync.
38244         * doc/posix-functions/fsync.texi: Mention the new module.
38245
38246 2008-10-02  Jim Meyering  <meyering@redhat.com>
38247
38248         fts.c: sync with similar code from coreutils' remove.c
38249         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38250         Guard also with "#if defined __linux__", since for now at least,
38251         this code is Linux-kernel-specific.
38252
38253 2008-10-02  Jim Meyering  <meyering@redhat.com>
38254
38255         fts: bug fixes
38256         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38257         Include <sys/vfs.h>, not <sys/statfs.h>.
38258
38259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38260         Include <sys/vfs.h>, not <sys/statfs.h>.
38261
38262 2008-10-01  Bruno Haible  <bruno@clisp.org>
38263
38264         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38266         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38267         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38268         * doc/posix-functions/posix_spawnp.texi: Likewise.
38269         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38270         whether posix_spawn actually works.
38271         * m4/pipe.m4 (gl_PIPE): Likewise.
38272         * modules/execute (Files): Add m4/posix_spawn.m4.
38273         * modules/pipe (Files): Add m4/posix_spawn.m4.
38274         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38275
38276 2008-10-01  Jim Meyering  <meyering@redhat.com>
38277
38278         remove trailing spaces
38279         * NEWS: Likewise.
38280         * lib/poll.c (poll): Likewise.
38281         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38282         * lib/winsock.c (rpl_close): Likewise.
38283         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38284         * modules/yield: Likewise.
38285         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38286         * tests/test-sys_select.c (connect_to_socket): Likewise.
38287
38288         fts.c: adjust a new interface to be more generally useful
38289         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38290         (fts_build): Adjust caller.
38291
38292 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38293
38294         * modules/cond-tests: New file.
38295         * tests/test-cond.c: New file.
38296
38297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38298             Bruno Haible  <bruno@clisp.org>
38299
38300         * modules/cond (Dependencies): Add errno, time.
38301         * lib/glthread/cond.h: Include <time.h>.
38302         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38303         across platforms.
38304
38305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38306             Bruno Haible  <bruno@clisp.org>
38307
38308         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38309
38310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38311             Bruno Haible  <bruno@clisp.org>
38312
38313         * modules/tls-tests (Depends-on): Add thread, yield.
38314         (configure.ac): Remove all checks.
38315         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38316         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38317         gl_thread_self): Remove definitions. Include glthread/thread.h and
38318         glthread/yield.h instead.
38319         (test_tls): Pass an additional NULL argument to gl_thread_join.
38320
38321 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38322             Bruno Haible  <bruno@clisp.org>
38323
38324         * modules/lock-tests (Depends-on): Add thread, yield.
38325         (configure.ac): Remove all checks.
38326         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38327         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38328         gl_thread_self): Remove definitions. Include glthread/thread.h and
38329         glthread/yield.h instead.
38330         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38331         additional NULL argument to gl_thread_join.
38332
38333 2008-09-30  Bruno Haible  <bruno@clisp.org>
38334
38335         Fix the Win32 implementation of the 'thread' module.
38336         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38337         pointer type.
38338         (gl_thread_self): Invoke gl_thread_self_func.
38339         (gl_thread_self_func): New declaration.
38340         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38341         (do_init_self_key, init_self_key): New functions.
38342         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38343         Remove some fields.
38344         (running_threads, running_lock): Remove variables.
38345         (get_current_thread_handle): New function.
38346         (gl_thread_self_func, wrapper_func, glthread_create_func,
38347         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38348         simplified.
38349
38350 2008-09-30  Bruno Haible  <bruno@clisp.org>
38351
38352         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38353         files.
38354
38355 2008-09-30  Jim Meyering  <meyering@redhat.com>
38356
38357         fts.m4: correct the test for statfs.f_type
38358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38359         when checking for statfs.f_type.
38360
38361 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38362
38363         tests: avoid some compiler warnings
38364         * tests/test-memchr.c (main): Pass NULL indirectly.
38365         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38366
38367 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38368
38369         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38370         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38371         exactly specified dayshifts.
38372         (dayshift): New rule.
38373         (rel): Add dayshift.
38374         (relative_time_table) [tomorrow, yesterday, today, now]:
38375         Use tDAY_SHIFT in place of tDAY_UNIT.
38376         * tests/test-getdate.c: Add tests for now-disallowed countable
38377         dayshifts, e.g., "4 yesterday ago".
38378
38379 2008-09-29  Bruno Haible  <bruno@clisp.org>
38380
38381         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38382         * tests/test-posix_spawn1.in.sh: Renamed from
38383         tests/test-posix_spawn.in.sh.
38384         * tests/test-posix_spawn2.c: New file.
38385         * tests/test-posix_spawn2.in.sh: New file.
38386         * modules/posix_spawnp-tests (Files): Update.
38387         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38388
38389 2008-09-29  Bruno Haible  <bruno@clisp.org>
38390
38391         Propagate effects of putenv/setenv/unsetenv to child processes.
38392         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38393         * lib/pipe.c (create_pipe): Likewise.
38394
38395 2008-09-29  Bruno Haible  <bruno@clisp.org>
38396
38397         Enable use of shell scripts as executables in mingw.
38398         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38399         run the program as a shell script.
38400         * lib/pipe.c (create_pipe): Likewise.
38401         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38402         resulting array.
38403
38404 2008-09-29  Eric Blake  <ebb9@byu.net>
38405
38406         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38407
38408 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38409
38410         * doc/posix-functions/accept.texi: Update mingw problems.
38411         * doc/posix-functions/bind.texi: Update mingw problems.
38412         * doc/posix-functions/close.texi: Update mingw problems.
38413         * doc/posix-functions/connect.texi: Update mingw problems.
38414         * doc/posix-functions/getpeername.texi: Update mingw problems.
38415         * doc/posix-functions/getsockname.texi: Update mingw problems.
38416         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38417         * doc/posix-functions/ioctl.texi: Update mingw problems.
38418         * doc/posix-functions/listen.texi: Update mingw problems.
38419         * doc/posix-functions/recv.texi: Update mingw problems.
38420         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38421         * doc/posix-functions/select.texi: Update mingw problems.
38422         * doc/posix-functions/send.texi: Update mingw problems.
38423         * doc/posix-functions/sendto.texi: Update mingw problems.
38424         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38425         * doc/posix-functions/socket.texi: Update mingw problems.
38426
38427 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38428             Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/sys_select.in.h: Include sys/time.h.
38431         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38432         * modules/sys_select: Depend on sys_time.
38433         * tests/test-sys_select.c: Test that sys/select.h defines struct
38434         timeval fully.
38435
38436 2008-09-29  Bruno Haible  <bruno@clisp.org>
38437
38438         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38439         * lib/sys_select.in.h: Likewise.
38440
38441 2008-09-29  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38444
38445 2008-09-29  Bruno Haible  <bruno@clisp.org>
38446
38447         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38448         Set LIBSOCKET instead of augmenting LIBS.
38449         * modules/sockets (Link): New section.
38450         * modules/sockets-tests (test_sockets_LDADD): New variable.
38451         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38452         * modules/poll-tests (test_poll_LDADD): New variable.
38453         * NEWS: Document the change.
38454
38455 2008-09-29  Bruno Haible  <bruno@clisp.org>
38456
38457         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38458         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38459         ARPA_INET_H directly.
38460         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38461
38462 2008-09-28  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38465         from gl_HEADER_SYS_SOCKET.
38466         (gl_HEADER_SYS_SOCKET): Invoke it.
38467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38468
38469 2008-09-28  Bruno Haible  <bruno@clisp.org>
38470
38471         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38472         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38473         Needed on OSF/1 4.0.
38474
38475 2008-09-28  Bruno Haible  <bruno@clisp.org>
38476
38477         Override open more carefully.
38478         * lib/open.c (orig_open): New function.
38479         (rpl_open): Use orig_open instead of open.
38480         * lib/fcntl.in.h: Add special invocation convention.
38481         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38482         (gl_FUNC_OPEN): Invoke it.
38483
38484         Override freopen more carefully.
38485         * lib/freopen.c (orig_freopen): New function.
38486         (rpl_freopen): Use orig_freopen instead of freopen.
38487         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38488         (gl_FUNC_FREOPEN): Invoke it.
38489
38490         Override fopen more carefully.
38491         * lib/fopen.c (orig_fopen): New function.
38492         (rpl_fopen): Use orig_fopen instead of fopen.
38493         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38494         (gl_FUNC_FOPEN): Invoke it.
38495         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38496
38497 2008-09-28  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38500         SIGPIPE.
38501
38502 2008-09-28  Bruno Haible  <bruno@clisp.org>
38503
38504         * tests/test-sigaction.c (handler, main): Disable the check whether
38505         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38506         glibc systems with LinuxThreads.
38507
38508 2008-09-28  Bruno Haible  <bruno@clisp.org>
38509
38510         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38511
38512         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38513         with AIX xlc.
38514         * lib/fcntl.in.h (open): Likewise.
38515         Reported by Rainer Tammer <tammer@tammer.net>.
38516
38517 2008-09-28  Bruno Haible  <bruno@clisp.org>
38518
38519         * modules/posix_spawnp-tests: New file.
38520         * tests/test-posix_spawn.c: New file.
38521         * tests/test-posix_spawn.in.sh: New file.
38522
38523         New module 'posix_spawnp'.
38524         * modules/posix_spawnp: New file.
38525         * lib/spawnp.c: New file, from GNU libc with modifications.
38526         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38527
38528         New module 'posix_spawn'.
38529         * modules/posix_spawn: New file.
38530         * lib/spawn.c: New file, from GNU libc with modifications.
38531         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38532
38533         New module 'posix_spawnattr_destroy'.
38534         * modules/posix_spawnattr_destroy: New file.
38535         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38536         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38537         module.
38538
38539         New module 'posix_spawnattr_setsigmask'.
38540         * modules/posix_spawnattr_setsigmask: New file.
38541         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38542         modifications.
38543         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38544         new module.
38545
38546         New module 'posix_spawnattr_getsigmask'.
38547         * modules/posix_spawnattr_getsigmask: New file.
38548         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38549         modifications.
38550         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38551         new module.
38552
38553         New module 'posix_spawnattr_setsigdefault'.
38554         * modules/posix_spawnattr_setsigdefault: New file.
38555         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38556         modifications.
38557         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38558         new module.
38559
38560         New module 'posix_spawnattr_getsigdefault'.
38561         * modules/posix_spawnattr_getsigdefault: New file.
38562         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38563         modifications.
38564         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38565         new module.
38566
38567         New module 'posix_spawnattr_setschedpolicy'.
38568         * modules/posix_spawnattr_setschedpolicy: New file.
38569         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38570         modifications.
38571         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38572         new module.
38573
38574         New module 'posix_spawnattr_getschedpolicy'.
38575         * modules/posix_spawnattr_getschedpolicy: New file.
38576         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38577         modifications.
38578         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38579         new module.
38580
38581         New module 'posix_spawnattr_setschedparam'.
38582         * modules/posix_spawnattr_setschedparam: New file.
38583         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38584         modifications.
38585         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38586         new module.
38587
38588         New module 'posix_spawnattr_getschedparam'.
38589         * modules/posix_spawnattr_getschedparam: New file.
38590         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38591         modifications.
38592         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38593         new module.
38594
38595         New module 'posix_spawnattr_setpgroup'.
38596         * modules/posix_spawnattr_setpgroup: New file.
38597         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38598         modifications.
38599         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38600         module.
38601
38602         New module 'posix_spawnattr_getpgroup'.
38603         * modules/posix_spawnattr_getpgroup: New file.
38604         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38605         modifications.
38606         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38607         module.
38608
38609         New module 'posix_spawnattr_setflags'.
38610         * modules/posix_spawnattr_setflags: New file.
38611         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38612         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38613         module.
38614
38615         New module 'posix_spawnattr_getflags'.
38616         * modules/posix_spawnattr_getflags: New file.
38617         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38618         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38619         module.
38620
38621         New module 'posix_spawnattr_init'.
38622         * modules/posix_spawnattr_init: New file.
38623         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38624         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38625         module.
38626
38627         New module 'posix_spawn_file_actions_destroy'.
38628         * modules/posix_spawn_file_actions_destroy: New file.
38629         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38630         modifications.
38631         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38632         the new module.
38633
38634         New module 'posix_spawn_file_actions_addopen'.
38635         * modules/posix_spawn_file_actions_addopen: New file.
38636         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38637         modifications.
38638         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38639         the new module.
38640
38641         New module 'posix_spawn_file_actions_adddup2'.
38642         * modules/posix_spawn_file_actions_adddup2: New file.
38643         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38644         modifications.
38645         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38646         the new module.
38647
38648         New module 'posix_spawn_file_actions_addclose'.
38649         * modules/posix_spawn_file_actions_addclose: New file.
38650         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38651         modifications.
38652         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38653         the new module.
38654
38655         New module 'posix_spawn_file_actions_init'.
38656         * modules/posix_spawn_file_actions_init: New file.
38657         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38658         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38659         new module.
38660
38661         New module 'posix_spawn-internal'.
38662         * modules/posix_spawn-internal: New file.
38663         * lib/spawn_int.h: New file, from GNU libc with modifications.
38664         * lib/spawni.c: New file, from GNU libc with modifications.
38665         * m4/posix_spawn.m4: New file.
38666
38667         New module 'spawn'.
38668         * modules/spawn: New file.
38669         * lib/spawn.in.h: New file, from GNU libc with modifications.
38670         * m4/spawn_h.m4: New file.
38671         * doc/posix-headers/spawn.texi: Mention the new module.
38672
38673 2008-09-28  Bruno Haible  <bruno@clisp.org>
38674
38675         * modules/sched-tests: New file.
38676         * tests/test-sched.c: New file.
38677
38678         New module 'sched'.
38679         * modules/sched: New file.
38680         * lib/sched.in.h: New file.
38681         * m4/sched_h.m4: New file.
38682         * doc/posix-headers/sched.texi: Mention the new module.
38683
38684 2008-09-27  Eric Blake  <ebb9@byu.net>
38685
38686         Fix previous patch, and tweak references to $0.
38687         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38688         (func_version, func_gnulib_dir): Don't call this program
38689         gnulib-tool.
38690         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38691         with using $0 in function.
38692         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38693         (func_fatal_error): Reuse the name the user invoked us with.
38694
38695 2008-09-27  Bruno Haible  <bruno@clisp.org>
38696
38697         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38698         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38699         (gl_ICONV_H): Not here.
38700         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38701         instead of assigning ICONV_H directly.
38702
38703         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38705         WCHAR_H directly.
38706
38707 2008-09-27  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38710         * modules/arpa_inet (Depends-on): Add link-warning.
38711         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38712         * modules/unistd (Makefile.am): Likewise.
38713
38714 2008-09-26  Bruno Haible  <bruno@clisp.org>
38715
38716         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38717         variables.
38718         (func_version): Essentially copied from gnulib-tool.
38719         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38720         func_readlink): Copied from gnulib-tool.
38721
38722 2008-09-26  Bruno Haible  <bruno@clisp.org>
38723
38724         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38725         invoking git-version-gen.
38726
38727 2008-09-26  Bruno Haible  <bruno@clisp.org>
38728
38729         * posix-modules: Update to directory names changed on 2008-01-19.
38730         Remove commas in output before splitting into words. No more need to
38731         avoid 'ftruncate' since 2007-02-19.
38732
38733 2008-09-26  Bruno Haible  <bruno@clisp.org>
38734
38735         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38736
38737 2008-09-26  Bruno Haible  <bruno@clisp.org>
38738
38739         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38740         * modules/fwriteerror (Depends-on): Add errno.
38741
38742 2008-09-26  Bruno Haible  <bruno@clisp.org>
38743
38744         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38745         * tests/test-vc-list-files-cvs.sh: Likewise.
38746
38747 2008-09-26  Bruno Haible  <bruno@clisp.org>
38748
38749         * doc/posix-headers/sys_resource.texi: Reorder items.
38750
38751 2008-09-26  Jim Meyering  <meyering@redhat.com>
38752
38753         fts: tweak inode comparison function
38754         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38755         inode numbers, as documented.
38756
38757         fts: sort dirent entries on inode number before traversing
38758         This avoids a quadratic, seek-related performance penalty when
38759         operating on a directory containing many entries (measurable at 10k;
38760         3.5 hours at 2 million entries with a cold cache) on certain types
38761         of file systems, including ext3 and ext4, but not tmpfs.
38762         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38763         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38764         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38765         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38766         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38767         (fts_build): Set the stat.st_ino member from D_INO.
38768         If it is likely to be useful, sort dirent entries on inode number.
38769
38770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38771         and the struct statfs.f_type member.
38772         * modules/fts (Depends-on): Add d-ino.
38773
38774 2008-09-26  Bruno Haible  <bruno@clisp.org>
38775
38776         * modules/sigpipe-die (Depends-on): Add sigpipe.
38777
38778         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38779         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38780         and GNULIB_STDIO_H_SIGPIPE are set.
38781         * lib/stdio-write.c: New file.
38782         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38783         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38784         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38785         REPLACE_STDIO_WRITE_FUNCS.
38786         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38787         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38788         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38789         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38790         * modules/stdio (Files): Add lib/stdio-write.c.
38791         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38792         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38793         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38794         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38795         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38796         REPLACE_FPRINTF_POSIX.
38797         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38798         REPLACE_PRINTF_POSIX.
38799         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38800         REPLACE_VFPRINTF_POSIX.
38801         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38802         REPLACE_VPRINTF_POSIX.
38803         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38804         SIGPIPE issue.
38805         * doc/posix-functions/fputc.texi: Likewise.
38806         * doc/posix-functions/fputs.texi: Likewise.
38807         * doc/posix-functions/fwrite.texi: Likewise.
38808         * doc/posix-functions/printf.texi: Likewise.
38809         * doc/posix-functions/putc.texi: Likewise.
38810         * doc/posix-functions/putchar.texi: Likewise.
38811         * doc/posix-functions/puts.texi: Likewise.
38812         * doc/posix-functions/vfprintf.texi: Likewise.
38813         * doc/posix-functions/vprintf.texi: Likewise.
38814
38815         * modules/safe-write (Depends-on): Add write.
38816
38817         * modules/sigpipe-tests: New file.
38818         * tests/test-sigpipe.c: New file.
38819         * tests/test-sigpipe.sh: New file.
38820
38821         * modules/write: New file.
38822         * lib/unistd.in.h: Include <sys/types.h>.
38823         (write): New declaration.
38824         * lib/write.c: New file.
38825         * m4/write.m4: New file.
38826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38827         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38828         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38829         GNULIB_WRITE, REPLACE_WRITE.
38830         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38831         and the SIGPIPE issue.
38832
38833         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38834         (raise): New declaration.
38835         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38836         (ext_signal): New function.
38837         (rpl_raise): New function.
38838         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38839         GNULIB_SIGNAL_H_SIGPIPE.
38840         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38841         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38842
38843         * modules/sigpipe: New file.
38844         * m4/sigpipe.m4: New file.
38845
38846 2008-09-25  Derek Price  <derek@ximbiot.com>
38847             Bruno Haible  <bruno@clisp.org>
38848
38849         * gnulib-tool (func_import): Report all license incompatibilities, not
38850         just the first one.
38851
38852 2008-09-25  Bruno Haible  <bruno@clisp.org>
38853
38854         * gnulib-tool (func_import): When computing the edits, consider not
38855         only the Makefile.ams that exist but also those that will be generated.
38856
38857 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38858
38859         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38860         fixes gnulib-tool --test warning about duplicate dependency.
38861
38862 2008-09-25  Bruno Haible  <bruno@clisp.org>
38863
38864         * gnulib-tool: Don't ask the user to perform edits in the generated
38865         Makefile.ams.
38866         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38867         apply to the Makefile.am being generated.
38868         (func_emit_tests_Makefile_am): Execute edits that apply to the
38869         Makefile.am being generated.
38870         (func_import): Setup list of Makefile.am edits before emitting the
38871         Makefile.ams, not at the end.
38872         (func_create_testdir): Update.
38873         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38874
38875 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38876
38877         * gnulib-tool (func_import): Store the --tests-base option in the
38878         comment in gnulib-cache.m4.
38879
38880 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38881
38882         * NEWS: Document increased portability that sys_select now provides.
38883
38884         * lib/sys_select.in.h: Install select wrapper.
38885         * lib/sys_socket.in.h: Use more descriptive name when there is no
38886         select wrapper.
38887         * lib/winsock-select.c: New.
38888         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38889         Require gl_HEADER_SYS_SOCKET.
38890         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38891         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38892         * tests/test-sys_select.c: Add functional tests.
38893
38894 2008-09-24  Eric Blake  <ebb9@byu.net>
38895
38896         open, fopen: close fd leak in last patch
38897         * lib/open.c (rpl_open): Close fd before returning error.
38898         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38899         * doc/posix-functions/open.texi (open): Document that Irix also
38900         has the bug.
38901         * doc/posix-functions/fopen.texi (fopen): Likewise.
38902         Reported by Paolo Bonzini.
38903
38904 2008-09-24  Bruno Haible  <bruno@clisp.org>
38905
38906         Ensure that a filename ending in a slash cannot be used to access a
38907         non-directory.
38908         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38909         to check whether it's really a directory.
38910         * lib/fopen.c: Include fcntl.h, unistd.h.
38911         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38912         and fdopen().
38913         * modules/fopen (Depends-on): Add unistd.
38914         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38915         * tests/test-fopen.c (main): Likewise.
38916         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38917         * doc/posix-functions/fopen.texi: Likewise.
38918         Reported by Eric Blake.
38919
38920 2008-09-23  Eric Blake  <ebb9@byu.net>
38921
38922         c-stack: avoid compiler optimizations when provoking overflow
38923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38924         recursion harder to optimize, to ensure a stack overflow occurs.
38925         * tests/test-c-stack.c (recurse): Likewise.
38926         Borrowed from libsigsegv.
38927
38928         c-stack: work around Irix sigaltstack bug
38929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38930         whether sigaltstack uses wrong end of stack_t (copied in part from
38931         libsigsegv).
38932         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38933         Irix bug, without requiring an over-allocation.
38934         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38935         bug.
38936
38937         fopen: document mingw bug on directories
38938         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38939         not allowing a stream visiting a directory, even though reading
38940         from such a stream is not portable.
38941
38942 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38943
38944         * lib/poll.c: Rewrite.
38945         * modules/poll: Depend on alloca.
38946
38947 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38948
38949         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38950         instead define prototypes for a full set of wrappers.  Ensure
38951         that Cygwin does not use the compatibility code, which is only
38952         for MinGW.
38953         * lib/winsock.c: New.
38954         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38955         * modules/sys_socket: Add lib/winsock.c.
38956
38957         * modules/poll-tests: Add errno and perror.
38958         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38959
38960 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38961
38962         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38963
38964 2008-09-23  Bruno Haible  <bruno@clisp.org>
38965
38966         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38967         * doc/glibc-functions/*: Likewise.
38968
38969 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38970
38971         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38972         success.
38973
38974 2008-09-22  Eric Blake  <ebb9@byu.net>
38975             Bruno Haible  <bruno@clisp.org>
38976
38977         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38978         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38979         supply %A but mishandle pseudo-NaN.
38980         Reported by Simon Josefsson.
38981
38982 2008-09-21  Bruno Haible  <bruno@clisp.org>
38983
38984         * tests/test-lock.c (main): Tweak skip message.
38985         * tests/test-tls.c (main): Likewise.
38986
38987 2008-09-21  Bruno Haible  <bruno@clisp.org>
38988
38989         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38990         whether 'struct sigaction' has sa_sigaction here...
38991         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38992         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38993
38994 2008-09-21  Bruno Haible  <bruno@clisp.org>
38995
38996         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38997         section.
38998         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38999         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39000         the new section.
39001         (Support for obsolete systems lacking POSIX:2001): New section.
39002         (String handling <string.h>): Move strdup to the new section.
39003         Suggested by Simon Josefsson and Paolo Bonzini.
39004
39005 2008-09-21  Bruno Haible  <bruno@clisp.org>
39006
39007         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39008         exponents in %e and %g results on 'long double'. Needed for mingw's
39009         improved *printf functions.
39010         * tests/test-vasprintf-posix.c (test_function): Likewise.
39011         * tests/test-snprintf-posix.h (test_function): Likewise.
39012         * tests/test-sprintf-posix.h (test_function): Likewise.
39013         Reported by Eric Blake.
39014
39015 2008-09-21  Bruno Haible  <bruno@clisp.org>
39016
39017         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39018         * tests/test-sprintf-posix.h (test_function): Likewise.
39019
39020 2008-09-21  Bruno Haible  <bruno@clisp.org>
39021
39022         * modules/getpass (Depends-on): Add strdup-posix.
39023
39024         New module 'strdup-posix'.
39025         * modules/strdup-posix: New file.
39026         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39027         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39029         REPLACE_STRDUP.
39030         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39031         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39033         strdup-posix.
39034
39035         * modules/strdup (Depends-on): Remove malloc-posix.
39036
39037 2008-09-20  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39040         Wildenhues.
39041
39042 2008-09-20  Bruno Haible  <bruno@clisp.org>
39043
39044         Ensure that wint_t gets defined on IRIX 5.3.
39045         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39046         * lib/wctype.in.h (wint_t): Likewise.
39047         (__wctype_wint_t): Remove type.
39048         (isw*): Use wint_t instead of __wctype_wint_t.
39049         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39050         * modules/wchar (Files): Add m4/wint_t.m4.
39051         (Makefile.am): Substitute HAVE_WINT_T.
39052         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39053         * tests/test-wctype.c: Check that wint_t is defined.
39054         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39055         * doc/posix-headers/wctype.texi: Likewise.
39056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39057
39058 2008-09-18  Bruno Haible  <bruno@clisp.org>
39059
39060         * gnulib-tool (func_exit): Update comment.
39061
39062 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39063
39064         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39065         assumes strdup exists and does not depend on strdup to return
39066         ENOMEM on out of memory conditions.
39067
39068 2008-09-18  Bruno Haible  <bruno@clisp.org>
39069
39070         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39071         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39072         digits for the exponent.
39073
39074 2008-09-18  Jim Meyering  <meyering@redhat.com>
39075             Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/vasnprintf.c (decimal_point_char): Define also if
39078         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39079
39080 2008-09-16  Bruno Haible  <bruno@clisp.org>
39081         and Eric Blake  <ebb9@byu.net>
39082
39083         vasnprintf: support Irix 5.3
39084         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39085         that mishandle long double infinity.
39086         Reported by Tom G. Christensen.
39087
39088 2008-09-16  Bruno Haible  <bruno@clisp.org>
39089
39090         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39091         Solaris 9.
39092         * doc/glibc-functions/alphasort.texi: Likewise.
39093         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39094
39095 2008-09-16  Jim Meyering  <meyering@redhat.com>
39096
39097         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39098         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39099         a umask modification leak out of a subshell.  Otherwise, the
39100         opensolaris /bin/sh would be accepted and thus cause unwarranted
39101         failures in the coreutils test suite.
39102
39103 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39104
39105         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39106         to succeed.
39107
39108 2008-09-16  Jim Meyering  <meyering@redhat.com>
39109
39110         avoid spurious test failure when library is built without ACL support
39111         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39112         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39113         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39114         * tests/test-copy-acl.sh: Likewise.
39115
39116 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39117
39118         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39119         based on character occurrence counts.
39120
39121 2008-09-15  Eric Blake  <ebb9@byu.net>
39122
39123         tests: avoid some compiler warnings
39124         * tests/test-memchr.c (main): Pass NULL indirectly.
39125         * tests/test-closein.c (main): Avoid unused variable.
39126
39127 2008-09-15  Bruno Haible  <bruno@clisp.org>
39128
39129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39130         are missing on OpenBSD 4.0 individually.
39131         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39132
39133 2008-09-15  Bruno Haible  <bruno@clisp.org>
39134
39135         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39136         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39137         * doc/posix-functions/perror.texi: Likewise.
39138         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39139         is missing.
39140         Reported by Eric Blake.
39141
39142         * lib/errno.in.h: Use replacement values >= 2000.
39143         Reported by Eric Blake.
39144
39145 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39146
39147         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39148         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39149         limit.
39150         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39151         compareseq was aborted.
39152
39153 2008-09-14  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39156         yvec_edit_count.
39157         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39158         (fstrcmp_bounded): Simplify result computation accordingly.
39159
39160 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39161
39162         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39163         (fstrcmp): Define in terms of fstrcmp_bounded.
39164         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39165         lower_bound argument.
39166         Return quickly if the result is certainly < lower_bound.
39167         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39168
39169 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39170
39171         * lib/diffseq.h (EARLY_ABORT): New macro.
39172         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39173         evaluates to true.
39174
39175 2008-09-14  Bruno Haible  <bruno@clisp.org>
39176
39177         * modules/perror-tests: New file.
39178         * tests/test-perror.sh: New file.
39179         * tests/test-perror.c: New file.
39180
39181         New module 'perror'.
39182         * lib/stdio.in.h (perror): New declaration.
39183         * lib/perror.c: New file.
39184         * m4/perror.m4: New file.
39185         * modules/perror: New file.
39186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39187         * doc/posix-functions/perror.texi: Mention the perror module.
39188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39189         REPLACE_PERROR.
39190         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39191         REPLACE_PERROR.
39192
39193 2008-09-14  Bruno Haible  <bruno@clisp.org>
39194
39195         * modules/stdio (Makefile.am): Reorder to match the order in
39196         lib/stdio.in.h.
39197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39198
39199 2008-09-13  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39202
39203 2008-09-13  Bruno Haible  <bruno@clisp.org>
39204
39205         Extend strerror to cover the added errno values.
39206         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39207         (rpl_strerror): Provide error messages for the added errno values and
39208         for the WSA* values.
39209         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39210         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39211         strerror.
39212         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39213         * modules/strerror (Depends-on): Add errno.
39214         * doc/posix-functions/strerror.texi: Document the change.
39215         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39216         and EOVERFLOW.
39217
39218 2008-09-13  Bruno Haible  <bruno@clisp.org>
39219
39220         * modules/EOVERFLOW: Remove file.
39221         * m4/eoverflow.m4: Remove file.
39222         * modules/EOVERFLOW-tests: Remove file.
39223         * tests/test-EOVERFLOW.c: Remove file.
39224         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39225         * modules/ftell (Depends-on): Likewise.
39226         * modules/getdelim (Depends-on): Likewise.
39227         * modules/getugroups (Depends-on): Likewise.
39228         * modules/poll (Depends-on): Likewise.
39229         * modules/snprintf (Depends-on): Likewise.
39230         * modules/sprintf-posix (Depends-on): Likewise.
39231         * modules/vasnprintf (Depends-on): Likewise.
39232         * modules/vasprintf (Depends-on): Likewise.
39233         * modules/vfprintf-posix (Depends-on): Likewise.
39234         * modules/vsnprintf (Depends-on): Likewise.
39235         * modules/vsprintf-posix (Depends-on): Likewise.
39236         * modules/xvasprintf (Depends-on): Likewise.
39237         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39238         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39239         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39240         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39242         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39243         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39244         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39245         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39246         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39247         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39248         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39250         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39251         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39252         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39253         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39254         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39255         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39256         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39257         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39258         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39259         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39260         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39261         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39262         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39263         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39264         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39265         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39266         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39267         * MODULES.html.sh: Remove EOVERFLOW.
39268         * NEWS: Mention the change.
39269
39270 2008-09-13  Bruno Haible  <bruno@clisp.org>
39271
39272         * modules/errno-tests: New file.
39273         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39274
39275         * lib/errno.in.h: New file.
39276         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39277         * modules/errno: New file.
39278         * doc/posix-headers/errno.texi: Update documentation.
39279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39280
39281 2008-09-13  Bruno Haible  <bruno@clisp.org>
39282
39283         * tests/test-poll.c: Use #if for native Windows, rather than testing
39284         __MSVCRT__.
39285
39286 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39287             Bruno Haible  <bruno@clisp.org>
39288
39289         * lib/glob.c: Don't include <pwd.h> on native Windows.
39290         (WINDOWS32): New macro.
39291         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39292
39293 2008-09-13  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39296         (ETIMEDOUT): Remove macro.
39297         (glthread_cond_timedwait_multithreaded): New declaration.
39298         (glthread_cond_timedwait): Use it.
39299         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39300         (glthread_cond_timedwait_multithreaded): New function.
39301
39302 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39303
39304         * modules/poll-tests: Do not check for io.h.
39305         * tests/test-poll.c: Check for __MSVCRT__ instead.
39306
39307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39308
39309         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39310         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39311         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39312
39313 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39314
39315         * modules/poll-tests: New.
39316         * tests/test-poll.c: New.
39317
39318 2008-09-12  Eric Blake  <ebb9@byu.net>
39319
39320         frexp: test for NetBSD failure on -0.0
39321         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39322         not all, bugs from NetBSD 3.0 have been fixed.
39323         * doc/posix-functions/frexp.texi (frexp): Document bug.
39324         Reported by Thomas Klausner.
39325
39326         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39327         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39328         literal -0.0.
39329         Reported by Jonathan C. Patschke <jp@centtech.com>.
39330
39331 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39332
39333         * lib/glthread/cond.h: Use dummy implementation also if
39334         USE_WIN32_THREADS.
39335
39336 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39337
39338         * modules/fnmatch-posix (License): Change to LGPLv2+.
39339         * modules/fnmatch-gnu (License): Likewise.
39340
39341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39342
39343         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39344
39345 2008-09-11  Jim Meyering  <meyering@redhat.com>
39346
39347         * users.txt: Add gtk-vnc.
39348
39349 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39350
39351         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39352         rotate amounts.
39353
39354         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39355         required for 16-bit and 8-bit rotates.
39356         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39357         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39358         UINT8_MAX instead of hard-coded constants.
39359         Suggested by Paul Eggert.
39360
39361 2008-09-07  Bruno Haible  <bruno@clisp.org>
39362
39363         * tests/test-striconveh.c (main): Check behaviour when converting from
39364         UTF-7.
39365
39366         Make striconveh work better with stateful encodings.
39367         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39368         that iconv does not increment the inptr when returning -1/EINVAL.
39369
39370 2008-09-07  Bruno Haible  <bruno@clisp.org>
39371
39372         * build-aux/config.rpath: Update according to libtool-2.2.6.
39373         * build-aux/config.libpath: Likewise.
39374
39375 2008-09-06  Bruno Haible  <bruno@clisp.org>
39376
39377         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39378         * lib/freadptr.c (freadptr): Likewise.
39379         * lib/freadseek.c (freadptrinc): Likewise.
39380         Reported by Simon Josefsson.
39381
39382 2008-09-06  Bruno Haible  <bruno@clisp.org>
39383
39384         * modules/freadptr (License): Change to LGPLv2+.
39385         * modules/freadseek (License): Likewise.
39386         Suggested by Eric Blake.
39387
39388         * modules/memchr2 (License): Change to LGPLv2+.
39389         Approved by Eric Blake.
39390
39391 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39392             Bruno Haible  <bruno@clisp.org>
39393
39394         Make gnulib-tool work with native 'sed' on AIX.
39395         * gnulib-tool (sed_noop): New variable.
39396         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39397         func_add_or_update, func_create_testdir): Use it to initialize sed
39398         script variables.
39399         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39400
39401 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39402             Bruno Haible  <bruno@clisp.org>
39403
39404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39405         also works after #include directives.
39406
39407 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39408
39409         getdate.y: reject an out-of-range timezone value
39410         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39411         the range [-24...+24].  When specified with only one or two digits,
39412         * tests/test-getdate.c: Tests for the fix.
39413         * doc/getdate.texi: Document this change.
39414
39415 2008-09-03  Bruno Haible  <bruno@clisp.org>
39416
39417         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39418
39419 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39420
39421         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39422         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39423         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39424         Blake <ebb9@byu.net>.
39425
39426         * tests/test-bitrotate.c: Add more test vectors.
39427
39428 2008-09-02  Eric Blake  <ebb9@byu.net>
39429
39430         vasnprintf-posix: handle large precision via %.*d
39431         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39432         when handling it ourselves.
39433         * tests/test-vasnprintf-posix.c (test_function): Add test.
39434         * tests/test-snprintf-posix.h (test_function): Likewise.
39435         * tests/test-sprintf-posix.h (test_function): Likewise.
39436         * tests/test-vasprintf-posix.c (test_function): Likewise.
39437         Reported by Alain Guibert.
39438
39439 2008-09-01  Eric Blake  <ebb9@byu.net>
39440
39441         c-stack: make configure-time check more robust
39442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39443         successful sigaction call.
39444         Reported by Tom G. Christensen.
39445
39446 2008-09-01  Bruno Haible  <bruno@clisp.org>
39447
39448         New module 'findprog-lgpl'.
39449         * modules/findprog-lgpl: New file.
39450         * lib/findprog-lgpl.c: New file.
39451         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39452         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39453         to decide whether to use strdup or xstrdup, concatenated_filename or
39454         xconcatenated_filename.
39455
39456 2008-09-01  Bruno Haible  <bruno@clisp.org>
39457
39458         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39459         'xconcat-filename' (GPL).
39460         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39461         (License): Change to LGPLv2+.
39462         * modules/xconcat-filename: New file.
39463         * lib/concat-filename.h (concatenated_filename): Change specification.
39464         (xconcatenated_filename): New declaration.
39465         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39466         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39467         memory situations.
39468         * lib/xconcat-filename.c: New file.
39469         * NEWS: Mention the change.
39470         * lib/findprog.c: Include concat-filename.h, not filename.h.
39471         (find_in_path): Use xconcatenated_filename instead of
39472         concatenated_filename.
39473         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39474         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39475         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39476         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39477         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39478         instead of concatenated_filename.
39479         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39480         (execute_java_class): Use xconcatenated_filename instead of
39481         concatenated_filename.
39482         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39483         * modules/javacomp (Depends-on): Likewise.
39484         * modules/javaexec (Depends-on): Likewise.
39485
39486 2008-09-01  Bruno Haible  <bruno@clisp.org>
39487
39488         Split module 'filename' into 'filename' and 'concat-filename'.
39489         * modules/filename: Keep only lib/filename.h.
39490         (License): Change to LGPLv2+.
39491         * modules/concat-filename: New file, extracted from modules/filename.
39492         * lib/filename.h (concatenated_filename): Remove declaration.
39493         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39494         * lib/concat-filename.c: Include concat-filename.h.
39495         * NEWS: Mention the change.
39496
39497 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39498
39499         * lib/bitrotate.h (rotl8, rotr8): Add.
39500
39501         * modules/bitrotate (configure.ac): Need
39502         AC_REQUIRE([AC_C_INLINE]).
39503         (Description): Mention stdint.h.  Reported by Bruno Haible
39504         <bruno@clisp.org>.
39505
39506         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39507         Paolo Bonzini <bonzini@gnu.org>.
39508
39509 2008-08-31  Bruno Haible  <bruno@clisp.org>
39510
39511         Assume Solaris specific bi-arch conventions on Solaris systems.
39512         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39513         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39515         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39516         like acl_libdirstem.
39517         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39518         acl_libdirstem.
39519         * NEWS: Mention the change.
39520         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39521
39522 2008-08-31  Jim Meyering  <meyering@redhat.com>
39523
39524         * lib/strftime.h: Add comments describing the two added arguments.
39525
39526         remove duplicate #include directives
39527         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39528         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39529
39530 2008-08-31  Bruno Haible  <bruno@clisp.org>
39531
39532         New module 'sigpipe-die'.
39533         * modules/sigpipe-die: New file.
39534         * lib/sigpipe-die.h: New file.
39535         * lib/sigpipe-die.c: New file.
39536         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39537
39538 2008-08-31  Bruno Haible  <bruno@clisp.org>
39539
39540         Don't override previously installed signal handlers.
39541         * lib/fatal-signal.c (saved_sigactions): New variable.
39542         (uninstall_handlers): Reset the signal to the saved handler, not
39543         to SIG_DFL (except when ignored).
39544         (install_handlers): Save the previous handlers.
39545
39546 2008-08-30  Bruno Haible  <bruno@clisp.org>
39547
39548         * gnulib-tool (func_reset_sigpipe): New function.
39549         (func_get_automake_snippet, func_modules_transitive_closure,
39550         func_import): Invoke it before a join command that reads from stdin,
39551         to avoid "echo: write error: Broken pipe" error messages on stderr.
39552         Reported by Sam Steingold <sds@gnu.org>.
39553
39554 2008-08-30  Bruno Haible  <bruno@clisp.org>
39555
39556         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39557         Code copied from m4/open.m4.
39558         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39559         access and the filename ends in a slash. Code copied from lib/open.c.
39560         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39561         * tests/test-fopen.c (main): Check against bug with trailing slash.
39562
39563 2008-08-29  Bruno Haible  <bruno@clisp.org>
39564
39565         Avoid some "gcc -pedantic" warnings.
39566         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39567         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39568         * lib/dirent.in.h: Likewise.
39569         * lib/fcntl.in.h: Likewise.
39570         * lib/float.in.h: Likewise.
39571         * lib/iconv.in.h: Likewise.
39572         * lib/inttypes.in.h: Likewise.
39573         * lib/locale.in.h: Likewise.
39574         * lib/math.in.h: Likewise.
39575         * lib/netinet_in.in.h: Likewise.
39576         * lib/search.in.h: Likewise.
39577         * lib/signal.in.h: Likewise.
39578         * lib/stdarg.in.h: Likewise.
39579         * lib/stdint.in.h: Likewise.
39580         * lib/stdio.in.h: Likewise.
39581         * lib/stdlib.in.h: Likewise.
39582         * lib/string.in.h: Likewise.
39583         * lib/strings.in.h: Likewise.
39584         * lib/sys_select.in.h: Likewise.
39585         * lib/sys_socket.in.h: Likewise.
39586         * lib/sys_stat.in.h: Likewise.
39587         * lib/sys_time.in.h: Likewise.
39588         * lib/sysexits.in.h: Likewise.
39589         * lib/time.in.h: Likewise.
39590         * lib/unistd.in.h: Likewise.
39591         * lib/wchar.in.h: Likewise.
39592         * lib/wctype.in.h: Likewise.
39593         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39594         * modules/fchdir (Makefile.am): Likewise.
39595         * modules/fcntl (Makefile.am): Likewise.
39596         * modules/float (Makefile.am): Likewise.
39597         * modules/iconv_open (Makefile.am): Likewise.
39598         * modules/inttypes (Makefile.am): Likewise.
39599         * modules/locale (Makefile.am): Likewise.
39600         * modules/math (Makefile.am): Likewise.
39601         * modules/netinet_in (Makefile.am): Likewise.
39602         * modules/search (Makefile.am): Likewise.
39603         * modules/signal (Makefile.am): Likewise.
39604         * modules/stdarg (Makefile.am): Likewise.
39605         * modules/stdint (Makefile.am): Likewise.
39606         * modules/stdio (Makefile.am): Likewise.
39607         * modules/stdlib (Makefile.am): Likewise.
39608         * modules/string (Makefile.am): Likewise.
39609         * modules/strings (Makefile.am): Likewise.
39610         * modules/sys_select (Makefile.am): Likewise.
39611         * modules/sys_socket (Makefile.am): Likewise.
39612         * modules/sys_stat (Makefile.am): Likewise.
39613         * modules/sys_time (Makefile.am): Likewise.
39614         * modules/sysexits (Makefile.am): Likewise.
39615         * modules/time (Makefile.am): Likewise.
39616         * modules/unistd (Makefile.am): Likewise.
39617         * modules/wchar (Makefile.am): Likewise.
39618         * modules/wctype (Makefile.am): Likewise.
39619         Reported by Reuben Thomas <rrt@sc3d.org>.
39620
39621 2008-08-29  Bruno Haible  <bruno@clisp.org>
39622
39623         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39624         any more.
39625
39626 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39627
39628         * MODULES.html.sh (Misc): Add bitrotate.
39629
39630         * modules/bitrotate: New file.
39631
39632         * lib/bitrotate.h: New file.
39633
39634         * modules/bitrotate-tests: New file.
39635
39636         * tests/test-bitrotate.c: New file.
39637
39638         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39639         on the bitrotate module.
39640
39641         * lib/arctwo.c: Use new bitrotate module.
39642
39643 2008-08-29  Jim Meyering  <meyering@redhat.com>
39644
39645         bootstrap: merge changes from coreutils
39646         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39647         of copied files.  Remove a kludge, now that this is fixed.
39648         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39649         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39650         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39651
39652 2008-08-29  Bruno Haible  <bruno@clisp.org>
39653
39654         * MODULES.html.sh: Remove --cvs-urls option.
39655
39656 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39657
39658         maint.mk: adjust to file name change
39659         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39660
39661 2008-08-28  Jim Meyering  <meyering@redhat.com>
39662
39663         * modules/getndelim2 (License): Relicense to LGPLv2+.
39664         Approved by Richard Stallman for the version of 1995, and by
39665         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39666
39667 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39668
39669         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39670         dummy if one is not available.  Do not touch them if
39671         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39672         (getc_maybe_unlocked): New.
39673         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39674
39675 2008-08-26  Eric Blake  <ebb9@byu.net>
39676
39677         doc/INSTALL: resync from autoconf
39678         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39679         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39680         moving...
39681         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39682         * INSTALL: Regenerate.
39683         * INSTALL.ISO: New file.
39684         * INSTALL.UTF-8: Likewise.
39685
39686 2008-08-26  Jim Meyering  <meyering@redhat.com>
39687
39688         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39689         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39690         these definitions conditional, so that they may be overridden, too.
39691
39692 2008-08-26  Bruno Haible  <bruno@clisp.org>
39693
39694         Generate INSTALL file variants with prettier quotes.
39695         * doc/Makefile (INSTALL_PRELUDE): New macro.
39696         (INSTALL): Use it.
39697         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39698
39699 2008-08-26  Bruno Haible  <bruno@clisp.org>
39700
39701         Run makeinfo in an English locale.
39702         * doc/Makefile (MAKEINFO): New variable.
39703
39704 2008-08-26  Bruno Haible  <bruno@clisp.org>
39705
39706         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39707         Suggested by Eric Blake.
39708
39709 2008-08-25  Bruno Haible  <bruno@clisp.org>
39710
39711         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39712
39713 2008-08-25  Eric Blake  <ebb9@byu.net>
39714
39715         c-stack: test that stack overflow can be caught
39716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39717         that platform allows handling stack overflow; at least OS/2 EMX
39718         has sigaltstack, but crashes before transferring control to
39719         handler on stack overflow.
39720         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39721         check for HAVE_STACK_OVERFLOW_HANDLING.
39722         Reported by Elbert Pol.
39723
39724 2008-08-25  Bruno Haible  <bruno@clisp.org>
39725
39726         * doc/posix-functions/strftime.texi: Fix description of strftime
39727         module.
39728
39729 2008-08-24  Bruno Haible  <bruno@clisp.org>
39730
39731         * tests/uniwidth/test-uc_width2.c: New file.
39732         * tests/uniwidth/test-uc_width2.sh: New file.
39733         * modules/uniwidth/width-tests (Files): Add the new files.
39734         (TESTS): Add uniwidth/test-uc_width2.sh.
39735         (TESTS_ENVIRONMENT): New variable.
39736         (check_PROGRAMS): Add test-uc_width2.
39737         (test_uc_width2_SOURCES): New variable.
39738
39739         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39740         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39741         not 0x00AB.
39742         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39743
39744 2008-08-22  Eric Blake  <ebb9@byu.net>
39745
39746         test-lock, test-tls: mention why a test is skipped
39747         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39748         skipped.
39749         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39750
39751         count-one-bits: relax license
39752         * modules/count-one-bits (License): Relicense to LGPLv2+.
39753         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39754
39755 2008-08-22  Andreas Schwab  <schwab@suse.de>
39756
39757         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39758         Remove spurious space in assignment.
39759
39760 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39761
39762         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39763         Paul Eggert <eggert@CS.UCLA.EDU>.
39764
39765 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39766
39767         * modules/gettext: Add m4/threadlib.m4.
39768
39769 2008-08-19  Eric Blake  <ebb9@byu.net>
39770
39771         test-c-stack: fix compilation failure on FreeBSD 5.0
39772         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39773         headers before <sys/resource.h>.
39774         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39775         the bug.
39776         Reported by Nelson H. F. Beebe.
39777
39778         strverscmp: migrate from "strverscmp.h" to <string.h>
39779         * modules/string (Makefile.am): Add new hooks.
39780         * modules/strverscmp (Files): Remove strverscmp.h.
39781         (Depends-on): Add string.
39782         (configure.ac): Add indicator.
39783         (Include): Mention new header.
39784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39785         defaults.
39786         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39787         results.
39788         * lib/strverscmp.h: Delete.
39789         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39790         * tests/test-strverscmp.c (includes): Adjust client.
39791         * lib/check-version.c (includes): Likewise.
39792         * NEWS: Document the change.
39793
39794         strverscmp: add unit test
39795         * modules/strverscmp-tests: New file.
39796         * tests/test-strverscmp.c: Likewise.
39797
39798 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39799
39800         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39801         regarding Windows crypto stuff, from Mono.
39802
39803 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39804
39805         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39806         if present, for intel RND.  Return error on failures.
39807
39808 2008-08-18  Ben Pfaff  <blp@gnu.org>
39809
39810         gitlog-to-changelog: give better diagnostic for failed pipe-open
39811         * build-aux/gitlog-to-changelog: Improve error message: suggest
39812         that the version of Git may be too old.
39813
39814 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39815
39816         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39817         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39818
39819 2008-08-18  Bruno Haible  <bruno@clisp.org>
39820
39821         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39822         pthread_in_use().
39823
39824 2008-08-18  Bruno Haible  <bruno@clisp.org>
39825
39826         * lib/glthread/threadlib.c: Include <pthread.h>.
39827
39828 2008-08-18  Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39831         glthread_recursive_lock_* macros.
39832         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39833         Fix syntax error.
39834
39835 2008-08-18  Bruno Haible  <bruno@clisp.org>
39836
39837         * lib/glthread/thread.c: Avoid forcing a context switch right after
39838         thread creation.
39839
39840 2008-08-17  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39843         * lib/glthread/thread.h: Provide Win32 specific implementation.
39844         * modules/thread (Files): Add lib/glthread/thread.c.
39845         (Depends-on): Add lock.
39846         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39847
39848 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39849
39850         New module 'yield'.
39851         * modules/yield: New file.
39852         * lib/glthread/yield.h: New file.
39853         * m4/yield.m4: New file.
39854         * MODULES.html.sh (Multithreading): Add yield.
39855
39856 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39857
39858         New module 'thread'.
39859         * modules/thread: New file.
39860         * lib/glthread/thread.h: New file.
39861         * m4/thread.m4: New file.
39862         * MODULES.html.sh (Multithreading): Add thread.
39863
39864 2008-08-17  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/glthread/lock.h: Include <stdlib.h> always.
39867         * lib/glthread/tls.h: Likewise.
39868         * lib/glthread/cond.h: Likewise.
39869
39870 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39871
39872         New module 'cond'.
39873         * modules/cond: New file.
39874         * lib/glthread/cond.h: New file.
39875         * lib/glthread/cond.c: New file.
39876         * m4/cond.m4: New file.
39877         * MODULES.html.sh (Multithreading): Add cond.
39878
39879 2008-08-16  Eric Blake  <ebb9@byu.net>
39880
39881         c-stack: fix regression on Irix 5.3 from 2008-06-21
39882         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39883         sa_sigaction...
39884         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39885         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39886         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39887         * modules/signal (Makefile.am): Use the value.
39888         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39889         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39890         * doc/posix-headers/signal.texi (signal.h): Document this
39891         portability issue.
39892         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39893         Reported by Tom G. Christensen.
39894
39895 2008-08-17  Bruno Haible  <bruno@clisp.org>
39896
39897         New module 'threadlib'.
39898         * modules/threadlib: New file.
39899         * lib/glthread/threadlib.c: New file, extracted from
39900         lib/glthread/lock.c.
39901         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39902         functions.
39903         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39904         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39905         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39906         macros.
39907         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39908         (gl_DISABLE_THREADS): Remove macro.
39909         * modules/lock (Files): Remove build-aux/config.rpath.
39910         (Depends-on): Remove havelib. Add threadlib.
39911         (configure.ac-early): Remove section.
39912         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39913         * modules/tls (Depends-on): Remove lock. Add threadlib.
39914         (Link): New section, copied from threadlib.
39915         * MODULES.html.sh (Multithreading): Add threadlib.
39916
39917 2008-08-14  Bruno Haible  <bruno@clisp.org>
39918
39919         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39920         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39921         glthread_rwlock_unlock, glthread_rwlock_destroy,
39922         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39923         glthread_recursive_lock_destroy): Define as macros always.
39924         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39925         glthread_lock_lock.
39926         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39927         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39928         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39929         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39930         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39931         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39932         (glthread_recursive_lock_lock_func): Renamed from
39933         glthread_recursive_lock_lock.
39934         (glthread_recursive_lock_unlock_func): Renamed from
39935         glthread_recursive_lock_unlock.
39936         (glthread_recursive_lock_destroy_func): Renamed from
39937         glthread_recursive_lock_destroy.
39938
39939 2008-08-14  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/glthread/lock.h: Renamed from lib/lock.h.
39942         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39943         * lib/glthread/tls.h: Renamed from lib/tls.h.
39944         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39945         * lib/fstrcmp.c: Update includes.
39946         * lib/strsignal.c: Update includes.
39947         * modules/lock (Files, Makefile.am): Update.
39948         (Include): Change to "glthread/lock.h".
39949         * modules/tls (Files, Makefile.am): Update.
39950         (Include): Change to "glthread/tls.h".
39951         * tests/test-lock.c: Update includes.
39952         * tests/test-tls.c: Update includes.
39953         * NEWS: Mention the renamed header files.
39954
39955 2008-08-11  Jim Meyering  <meyering@redhat.com>
39956
39957         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39958
39959 2008-08-11  Eric Blake  <ebb9@byu.net>
39960
39961         test-c-stack: avoid C99-ism
39962         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39963         before statement.
39964         Reported by Alain Guibert.
39965
39966 2008-08-10  Jim Meyering  <meyering@redhat.com>
39967
39968         ensure that return value of uinttostr et al are not ignored
39969         * lib/inttostr.h (__GNUC_PREREQ): Define.
39970         (__attribute_warn_unused_result__): Define.
39971         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39972
39973 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39974
39975         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39976         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39977
39978 2008-08-07  Jim Meyering  <meyering@redhat.com>
39979
39980         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39981
39982         * modules/mkstemp (License): Relicense under LGPLv2+.
39983         * modules/tempname (License): Likewise.
39984
39985 2008-08-06  Bruno Haible  <bruno@clisp.org>
39986
39987         * lib/poll.c (poll): Further micro-optimization.
39988
39989 2008-08-06  Jim Meyering  <meyering@redhat.com>
39990
39991         inet_pton.c: use locale-independent tolower
39992         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39993         (inet_pton6): Use c_tolower rather than tolower.
39994         * modules/inet_pton (Depends-on): Add c-ctype.
39995
39996 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39997
39998         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39999         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40000
40001 2008-08-06  Jim Meyering  <meyering@redhat.com>
40002
40003         * modules/inet_pton (License): Relicense under LGPLv2+.
40004
40005 2008-08-03  Bruno Haible  <bruno@clisp.org>
40006
40007         Additional non-aborting API for lock and tls.
40008         * lib/lock.h: Include <errno.h>.
40009         (glthread_lock_init): New macro/function.
40010         (gl_lock_init): Define as wrapper around glthread_lock_init.
40011         (glthread_lock_lock): New macro/function.
40012         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40013         (glthread_lock_unlock): New macro/function.
40014         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40015         (glthread_lock_destroy): New macro/function.
40016         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40017         (glthread_rwlock_init): New macro/function.
40018         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40019         (glthread_rwlock_rdlock): New macro/function.
40020         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40021         (glthread_rwlock_wrlock): New macro/function.
40022         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40023         (glthread_rwlock_unlock): New macro/function.
40024         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40025         (glthread_rwlock_destroy): New macro/function.
40026         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40027         (glthread_recursive_lock_init): New macro/function.
40028         (gl_recursive_lock_init): Define as wrapper around
40029         glthread_recursive_lock_init.
40030         (glthread_recursive_lock_lock): New macro/function.
40031         (gl_recursive_lock_lock): Define as wrapper around
40032         glthread_recursive_lock_lock.
40033         (glthread_recursive_lock_unlock): New macro/function.
40034         (gl_recursive_lock_unlock): Define as wrapper around
40035         glthread_recursive_lock_unlock.
40036         (glthread_recursive_lock_destroy): New macro/function.
40037         (gl_recursive_lock_destroy): Define as wrapper around
40038         glthread_recursive_lock_destroy.
40039         (glthread_once): New macro/function.
40040         (gl_once): Define as wrapper around glthread_once.
40041         Update function declarations.
40042         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40043         glthread_rwlock_init. Return error code.
40044         (glthread_rwlock_rdlock_multithreaded): Renamed from
40045         glthread_rwlock_rdlock. Return error code.
40046         (glthread_rwlock_wrlock_multithreaded): Renamed from
40047         glthread_rwlock_wrlock. Return error code.
40048         (glthread_rwlock_unlock_multithreaded): Renamed from
40049         glthread_rwlock_unlock. Return error code.
40050         (glthread_rwlock_destroy_multithreaded): Renamed from
40051         glthread_rwlock_destroy. Return error code.
40052         (glthread_recursive_lock_init_multithreaded): Renamed from
40053         glthread_recursive_lock_init. Return error code.
40054         (glthread_recursive_lock_lock_multithreaded): Renamed from
40055         glthread_recursive_lock_lock. Return error code.
40056         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40057         glthread_recursive_lock_unlock. Return error code.
40058         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40059         glthread_recursive_lock_destroy. Return error code.
40060         (glthread_once_call): Make static.
40061         (glthread_once_multithreaded): Renamed from glthread_once.
40062         * lib/tls.h: Include <errno.h>.
40063         (glthread_tls_key_init): New macro/function.
40064         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40065         (glthread_tls_set): New macro/function.
40066         (gl_tls_set): Define as wrapper around glthread_tls_set.
40067         (glthread_tls_key_destroy): New macro/function.
40068         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40069         Update function declarations.
40070         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40071         glthread_tls_get.
40072         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40073
40074 2008-08-04  Eric Blake  <ebb9@byu.net>
40075
40076         gnumakefile: use space, not TAB, outside of targets
40077         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40078
40079 2008-08-02  Jim Meyering  <meyering@redhat.com>
40080
40081         getdate.y: avoid locale-dependent date parsing failure
40082         In Turkish locales, getdate would fail to recognize keywords
40083         containing a lowercase "i".  The solution is not to rely on
40084         locale-sensitive case-conversion.
40085         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40086         (lookup_word): Use c_toupper in place of toupper.
40087         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40088         Reported by Vefa Bicakci <bicave@superonline.com> in
40089         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40090         * modules/getdate (Depends-on): Add c-ctype.
40091
40092 2008-08-02  Bruno Haible  <bruno@clisp.org>
40093
40094         * gnulib-tool (func_import): When updating or creating a .gitignore
40095         file, prepend each added line with a slash, and ignore leading slashes
40096         from the existing lines.
40097         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40098
40099 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40100
40101         Portability fix for GNU make 3.79.1.
40102         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40103         versions do not understand.
40104
40105 2008-08-01  Bruno Haible  <bruno@clisp.org>
40106
40107         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40108         * tests/test-isnanf.h (zero): New variable.
40109         (main): Avoid literal -0.0f.
40110         * tests/test-isnand.h (zero): New variable.
40111         (main): Avoid literal -0.0.
40112         * tests/test-isnanl.h (zero): New variable.
40113         (main): Avoid literal -0.0L.
40114         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40115         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40116         -0.0, -0.0L.
40117         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40118         (test_signbitd): Avoid literal -0.0.
40119         (test_signbitl): Avoid literal -0.0L.
40120         * tests/test-ceilf1.c (zero): New variable.
40121         (main): Avoid literal -0.0f.
40122         * tests/test-ceill.c (zero): New variable.
40123         (main): Avoid literal -0.0L.
40124         * tests/test-floorf1.c (zero): New variable.
40125         (main): Avoid literal -0.0f.
40126         * tests/test-floorl.c (zero): New variable.
40127         (main): Avoid literal -0.0L.
40128         * tests/test-roundf1.c (zero): New variable.
40129         (main): Avoid literal -0.0f.
40130         * tests/test-round1.c (zero): New variable.
40131         (main): Avoid literal -0.0.
40132         * tests/test-roundl.c (zero): New variable.
40133         (main): Avoid literal -0.0L.
40134         * tests/test-truncf1.c (zero): New variable.
40135         (main): Avoid literal -0.0f.
40136         * tests/test-trunc1.c (zero): New variable.
40137         (main): Avoid literal -0.0.
40138         * tests/test-truncl.c (zero): New variable.
40139         (main): Avoid literal -0.0L.
40140         * tests/test-frexp.c (zero): New variable.
40141         (main): Avoid literal -0.0.
40142         * tests/test-frexpl.c (zero): New variable.
40143         (main): Avoid literal -0.0L.
40144         * tests/test-ldexpl.c (zero): New variable.
40145         (main): Avoid literal -0.0L.
40146         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40147         (zerod, zerol): New variables.
40148         (test_function): Avoid literals -0.0, -0.0L.
40149         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40150         (zerod, zerol): New variables.
40151         (test_function): Avoid literals -0.0, -0.0L.
40152         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40153         (zerod, zerol): New variables.
40154         (test_function): Avoid literals -0.0, -0.0L.
40155         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40156         (zerod, zerol): New variables.
40157         (test_function): Avoid literals -0.0, -0.0L.
40158         * tests/test-strtod.c (zero): New variable.
40159         (main): Avoid literal -0.0.
40160         Reported by Jonathan C. Patschke <jp@centtech.com>.
40161
40162 2008-07-31  Jim Meyering  <meyering@redhat.com>
40163
40164         sha256.h: correct definition of SHA224_DIGEST_SIZE
40165         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40166         Reported by Paulie Pena IV <paulie4@gmail.com>.
40167         Define as 224 / 8, rather than as a literal.
40168         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40169         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40170         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40171
40172 2008-07-31  Bruno Haible  <bruno@clisp.org>
40173
40174         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40175         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40176         Reported by Jonathan Patschke <jp@centtech.com>.
40177
40178 2008-07-31  Bruno Haible  <bruno@clisp.org>
40179
40180         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40181         Reported by Paolo Bonzini <bonzini@gnu.org>.
40182
40183 2008-07-30  Eric Blake  <ebb9@byu.net>
40184
40185         test-strtod: allow compilation without -lm
40186         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40187         Reported by Dennis Clarke <blastwave@gmail.com>.
40188
40189 2008-07-28  Jim Meyering  <meyering@redhat.com>
40190
40191         bootstrap: work also when there are no .po files in po/
40192         * build-aux/bootstrap (update_po_files): Complete the change
40193         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40194
40195 2008-07-27  Jim Meyering  <meyering@redhat.com>
40196
40197         * users.txt: Add zile.
40198
40199 2008-07-26  Ben Pfaff  <blp@gnu.org>
40200
40201         Add missing dependencies on new m4/exponent[fdl].m4 files.
40202         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40203         * modules/isnand-nolibm: Add m4/exponentd.m4.
40204         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40205         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40206         m4/isnan[fdl].m4, because the macros actually used moved.
40207         Reported by Jim Meyering.
40208
40209 2008-07-14  Ben Pfaff  <blp@gnu.org>
40210
40211         Add isinf module.
40212         * lib/isinf.c: New file.
40213         * lib/math.in.h: Define isinf macro if we have decided to replace
40214         it.
40215         * m4/isinf.m4: New file.
40216         * m4/math_h.m4: Initialize and substitute variables for isinf
40217         module.
40218         * modules/isinf: New file.
40219         * modules/isinf-tests: New file.
40220         * modules/math: Add substitutions for new module.
40221         * tests/test-isinf.c: New file.
40222         * doc/posix-functions/isinf.texi: Mention new module.
40223         * MODULES.html.sh: Mention new module.
40224
40225 2008-07-14  Ben Pfaff  <blp@gnu.org>
40226
40227         Factor out some macros for use by additional modules.
40228         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40229         exponentf.m4.
40230         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40231         exponentd.m4.
40232         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40233         file exponentl.m4.
40234         * m4/exponentf.m4: New file.
40235         * m4/exponentd.m4: New file.
40236         * m4/exponentl.m4: New file.
40237         * modules/isnanf: Use new file m4/exponentf.m4.
40238         * modules/isnand: Use new file m4/exponentd.m4.
40239         * modules/isnanl: Use new file m4/exponentl.m4.
40240
40241 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40242
40243         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40244         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40245         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40246         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40247
40248         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40249         readlink on platforms without PATH_MAX.
40250
40251 2008-07-21  Eric Blake  <ebb9@byu.net>
40252
40253         Warn, not fail, on stale version.
40254         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40255
40256         Don't allow installation with stale devel version number.
40257         * top/GNUmakefile (_is-install-target): New macro.
40258         (_curr-ver): Forbid installation with stale version number.
40259
40260 2008-07-20  Bruno Haible  <bruno@clisp.org>
40261
40262         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40263         TESTS_ENVIRONMENT.
40264         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40265
40266 2008-07-20  Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/c-stack.h (c_stack_action): Add documentation.
40269         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40270
40271 2008-07-20  Bruno Haible  <bruno@clisp.org>
40272
40273         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40274         * modules/readlink (License): Likewise.
40275
40276 2008-07-17  Eric Blake  <ebb9@byu.net>
40277
40278         * modules/c-stack (Link): Fix typo.
40279
40280         Make c-stack use libsigsegv, when available.
40281         * modules/c-stack (Depends-on): Add libsigsegv.
40282         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40283         needed.
40284         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40285         (segv_handler, overflow_handler, c_stack_action)
40286         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40287         implementation when libsigsegv is available, but only when using
40288         the library is necessary.
40289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40290         comment, explaining why XSI check fails on Linux.
40291         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40292         * tests/test-c-stack2.sh: Tweak skip message.
40293         * NEWS: Document new link-time requirements.
40294
40295 2008-07-16  Eric Blake  <ebb9@byu.net>
40296
40297         c-stack: Expose false positives when not using libsigsegv.
40298         * modules/c-stack-tests (Files): Expand test.
40299         * tests/test-c-stack.c (main): Add means to conditionally trigger
40300         non-overflow SIGSEGV.
40301         * tests/test-c-stack2.sh: New file.
40302
40303 2008-07-14  Bruno Haible  <bruno@clisp.org>
40304
40305         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40306         Reported by Eric Blake.
40307
40308 2008-07-14  Sam Steingold  <sds@gnu.org>
40309             Bruno Haible  <bruno@clisp.org>
40310
40311         New module libsigsegv.
40312         * modules/libsigsegv: New file.
40313         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40314         modifications.
40315         * MODULES.html.sh (Signal handling): New section.
40316
40317 2008-07-14  Bruno Haible  <bruno@clisp.org>
40318
40319         * modules/unictype/ctype-* (Description): Add the word "function".
40320         Improves the resulting doc in MODULES.html.
40321
40322 2008-07-12  Ben Pfaff  <blp@gnu.org>
40323
40324         Add longlong module.
40325         * modules/longlong: New file.
40326
40327 2008-07-12  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40330         to empty.
40331
40332 2008-07-10  Ben Pfaff  <blp@gnu.org>
40333
40334         Add isnan module.
40335         * doc/posix-functions/isnan.texi: Mention new module.
40336         * lib/math.in.h: Define isnan macro if we have decided to replace
40337         it.
40338         * m4/isnan.m4: New file.
40339         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40340         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40341         also.
40342         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40343         redundancy.
40344         * m4/math_h.m4: Initialize and substitute variables for isnan
40345         module.
40346         * modules/isnan: New file.
40347         * modules/isnan-tests: New file.
40348         * modules/math: Add substitutions for new module.
40349         * tests/test-isnan.c: New file.
40350         * MODULES.html.sh: Mention new module.
40351
40352 2008-07-10  Ben Pfaff  <blp@gnu.org>
40353
40354         Add isnanf module.
40355         * lib/isnanf.m4: New file.
40356         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40357         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40358         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40359         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40360         * modules/isnanf: New file.
40361         * modules/isnanf-tests: New file.
40362         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40363         files.
40364         * tests/test-isnanf-nolibm.c: factored most of its contents into
40365         new file tests/test-isnanf.h.
40366         * tests/test-isnanf.h: New file.
40367         * tests/test-isnanf.c: New file.
40368         * MODULES.html.sh: Mention new module.
40369         * doc/glibc-functions/isnanf.texi: Mention new module.
40370
40371 2008-07-10  Ben Pfaff  <blp@gnu.org>
40372
40373         Add isnand module.
40374         * lib/isnand.h: New file.
40375         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40376         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40377         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40378         functionality also.
40379         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40380         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40381         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40382         * modules/isnand: New file.
40383         * modules/isnand-tests: New file.
40384         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40385         files.
40386         * tests/test-isnand-nolibm.c: factored most of its contents into
40387         new file tests/test-isnand.h.
40388         * tests/test-isnand.h: New file.
40389         * tests/test-isnand.c: New file.
40390         * MODULES.html.sh: Mention new module.
40391
40392 2008-07-10  Ben Pfaff  <blp@gnu.org>
40393
40394         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40395         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40396         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40397         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40398         * modules/isnanf-nolibm: Update references to renamed files.
40399         * modules/isnand-nolibm: Likewise.
40400         * modules/isnanf-nolibm-tests: Likewise.
40401         * modules/isnand-nolibm-tests: Likewise.
40402         * lib/frexp.c: Likewise.
40403         * lib/isfinite.c: Likewise.
40404         * lib/signbitd.c: Likewise.
40405         * lib/signbitf.c: Likewise.
40406         * lib/vasnprintf.c: Likewise.
40407         * tests/test-ceilf1.c: Likewise.
40408         * tests/test-ceilf2.c: Likewise.
40409         * tests/test-floorf1.c: Likewise.
40410         * tests/test-floorf2.c: Likewise.
40411         * tests/test-frexp.c: Likewise.
40412         * tests/test-round1.c: Likewise.
40413         * tests/test-round2.c: Likewise.
40414         * tests/test-roundf1.c: Likewise.
40415         * tests/test-strtod.c: Likewise.
40416         * tests/test-trunc1.c: Likewise.
40417         * tests/test-trunc2.c: Likewise.
40418         * tests/test-truncf1.c: Likewise.
40419         * tests/test-truncf2.c: Likewise.
40420         * NEWS: Mention the renamed header files.
40421
40422 2008-07-11  Jim Meyering  <meyering@redhat.com>
40423
40424         vc-list-files: make the last-resort awk code more portable
40425         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40426         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40427         does not support it.
40428
40429 2008-07-10  Eric Blake  <ebb9@byu.net>
40430
40431         Work with tar's bootstrap.
40432         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40433         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40434         an m4 comment.
40435
40436 2008-07-09  Jim Meyering  <meyering@redhat.com>
40437
40438         posix-shell.m4: fix typo that made this test malfunction
40439         * m4/posix-shell.m4: Remove capitalization in variable name.
40440
40441 2008-07-08  Bruno Haible  <bruno@clisp.org>
40442
40443         * m4/onceonly.m4: Update comments.
40444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40445
40446 2008-07-04  Jim Meyering  <meyering@redhat.com>
40447
40448         * users.txt: Add vc-dwim.
40449         (bison, coreutils): Use the gitweb URL.
40450
40451 2008-07-03  Jim Meyering  <meyering@redhat.com>
40452
40453         * users.txt: Add libffcall.  From Sam Steingold.
40454
40455 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40456
40457         getdate.y: do not ignore TZ with relative day, month or year offset
40458         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40459         relative-date-handling, since otherwise, the latter would clobber the
40460         sole output (an updated Start value) of the tz-handling block.
40461         * tests/test-getdate.c: Tests for the fix
40462
40463 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40464
40465         Recognize 'foo_LIBRARIES += libgnu.a'.
40466         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40467         makefile snippet has already specified an installation location,
40468         also using '+='.
40469
40470 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40471
40472         getdate.y: factor out common actions
40473         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40474         Use them in place of open-coded actions.
40475
40476 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40477
40478         Add self-test for getdate module.
40479         * modules/getdate-tests: New file.
40480         * tests/test-getdate.c: New file.
40481
40482 2008-06-29  Bruno Haible  <bruno@clisp.org>
40483
40484         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40485         .gitignore.
40486         Reported by Sylvain Beucler <beuc@beuc.net>.
40487
40488 2008-06-29  Bruno Haible  <bruno@clisp.org>
40489
40490         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40491         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40492
40493 2008-06-29  Bruno Haible  <bruno@clisp.org>
40494
40495         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40496         EXTRA_DIST.
40497         Reported by Sylvain Beucler <beuc@beuc.net>.
40498
40499 2008-06-26  Jim Meyering  <meyering@redhat.com>
40500
40501         make several modules depend on the "open" module
40502         This provides slightly increased consistency when opening-for-write
40503         the name of a non-directory spelled with a trailing slash.
40504         * modules/chdir-safer: Likewise.
40505         * modules/chown: Likewise.
40506         * modules/clean-temp: Likewise.
40507         * modules/copy-file: Likewise.
40508         * modules/fchdir: Likewise.
40509         * modules/fcntl-safer: Likewise.
40510         * modules/pipe: Likewise.
40511         * modules/utime: Likewise.
40512         Prompted by Eric Blake and Bruno Haible.
40513
40514 2008-06-24  Andreas Schwab  <schwab@suse.de>
40515
40516         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40517         literals can be used as initializers for global variables.
40518
40519 2008-06-23  Eric Blake  <ebb9@byu.net>
40520
40521         Make gnulib-cache.m4 easier to diff.
40522         * gnulib-tool (func_import): Allow newlines when reading cached
40523         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40524
40525 2008-06-23  Bruno Haible  <bruno@clisp.org>
40526
40527         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40528         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40529         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40530         m4/signalblocking.m4.
40531         (gl_PREREQ_SIGACTION): Don't invoke it.
40532         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40533         gl_PREREQ_SIG_HANDLER_H.
40534         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40535         Don't check for sigaction here.
40536
40537 2008-06-23  Bruno Haible  <bruno@clisp.org>
40538
40539         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40540         (install_handlers): Don't set the SA_RESETHAND flag.
40541
40542 2008-06-23  Bruno Haible  <bruno@clisp.org>
40543
40544         * m4/sigaction.m4: Comment fixes.
40545         * lib/signal.in.h: Likewise.
40546
40547 2008-06-23  Eric Blake  <ebb9@byu.net>
40548
40549         Fix typo.
40550         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40551
40552         Avoid SA_ namespace.
40553         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40554         Reported by Ralf Wildenhues.
40555
40556         Avoid test failure due to SA_RESTORER.
40557         * tests/test-sigaction.c (SA_MASK): New macro.
40558         (main): Avoid failing due to extension flags being set.
40559         Reported by Jim Meyering.
40560
40561         Revert use of sig-handler.h in sigprocmask.c.
40562         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40563         it requires the existence of struct sigaction.
40564         * lib/sigprocmask.c (handler_t): Restore typedef.
40565         (rpl_signal, old_handlers): Use local type.
40566
40567 2008-06-22  Bruno Haible  <bruno@clisp.org>
40568
40569         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40570         conditionally.
40571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40572
40573 2008-06-22  Bruno Haible  <bruno@clisp.org>
40574
40575         * doc/posix-functions/siginterrupt.texi: Move note.
40576
40577         * lib/signal.in.h (SA_RESTART): New macro.
40578         * lib/sigaction.c: Update comment.
40579
40580         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40581
40582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40583         (gl_PREREQ_SIGPROCMASK): Invoke it.
40584         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40585
40586         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40587
40588         * lib/sigprocmask.c: Update a comment.
40589
40590 2008-06-21  Eric Blake  <ebb9@byu.net>
40591
40592         Use sigaction module rather than signal().
40593         * modules/c-stack (Depends-on): Add sigaction.
40594         * modules/fatal-signal (Depends-on): Likewise.
40595         * modules/nanosleep (Depends-on): Likewise.
40596         * modules/sigprocmask (Files): Add sig-handler.h.
40597         * modules/sigaction (Files): Likewise.
40598         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40599         Eggert.
40600         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40601         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40602         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40603         (init_fatal_signals): Likewise.
40604         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40605         (siginterrupt): Delete fallback.
40606         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40607         instead.
40608         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40609         siginterrupt.
40610
40611         New module sigaction, for mingw.
40612         * modules/sigaction: New module...
40613         * modules/sigaction-tests: ...and its test.
40614         * m4/sigaction.m4: New file.
40615         * lib/sigaction.c: Likewise.
40616         * tests/test-sigaction.c: Likewise.
40617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40618         * modules/signal (Makefile.am): Likewise.
40619         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40620         needed.
40621         * doc/posix-headers/signal.texi (signal.h): Mention provided
40622         types.
40623         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40624         that sigaction is preferable.
40625         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40626         module.
40627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40628         sigaction.
40629
40630         Improve robustness of sigprocmask by overriding signal.
40631         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40632         is in use.
40633         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40634         (SIGKILL, SIGSTOP): Provide fallbacks.
40635         (rpl_signal): Implement.
40636         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40637         signal can be called inside handlers.
40638
40639         Fix nanosleep module on mingw.
40640         * modules/nanosleep (Depends-on): Add sys_select.
40641         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40642
40643         Fix licensing of sigprocmask.
40644         * modules/raise (License): Relicense as LGPL.
40645
40646 2008-06-21  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40649         result if it contains question marks.
40650         Reported by Michael Geng <linux@michaelgeng.de>.
40651
40652 2008-06-19  Bruno Haible  <bruno@clisp.org>
40653
40654         Fix CVS-ism.
40655         * doc/gnulib.texi: Include updated-stamp.texi.
40656         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40657         (updated-stamp.texi): New rule.
40658         (gnulib.info): Depend on it.
40659         * doc/.gitignore: Add updated-stamp.texi.
40660         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40661
40662 2008-06-19  Bruno Haible  <bruno@clisp.org>
40663
40664         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40665         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40666
40667 2008-06-19  Eric Blake  <ebb9@byu.net>
40668
40669         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40670         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40671         Reported by Stepan Kasal.
40672
40673 2008-06-18  Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40676         Reported by Eric Blake.
40677
40678 2008-06-18  Eric Blake  <ebb9@byu.net>
40679
40680         Work around cygwin 1.5.25 strsignal bug.
40681         * tests/test-strsignal.c: Allow for const char *.
40682         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40683
40684 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40685
40686         * users.txt: Update URL to article and add author/date
40687         information.
40688
40689 2008-06-17  Bruno Haible  <bruno@clisp.org>
40690
40691         New macro gl_DISABLE_THREADS.
40692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40693         if the user did not pass --enable-threads or --disable-threads option.
40694         (gl_DISABLE_THREADS): New macro.
40695         Reported by Eric Blake <ebb9@byu.net>.
40696
40697 2008-06-17  Bruno Haible  <bruno@clisp.org>
40698
40699         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40700         when the macro ignores it.
40701         Based on a patch by Eric Blake <ebb9@byu.net>.
40702
40703 2008-06-17  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/tls (License): Change to LGPLv2+.
40706         Reported by Eric Blake.
40707
40708 2008-06-17  Eric Blake  <ebb9@byu.net>
40709
40710         Simplify c-stack prerequisites.
40711         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40713         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40714         check.
40715         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40716         <sys/resource.h>.
40717
40718         Move c-stack test into testsuite.
40719         * modules/c-stack-tests: New file.
40720         * lib/c-stack.c [DEBUG]: Move test program...
40721         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40722         fail test if sigaltstack is lacking.
40723         * tests/test-c-stack.sh: New driver file.
40724
40725 2008-06-16  Eric Blake  <ebb9@byu.net>
40726
40727         Use raise module consistently.
40728         * modules/fatal-signal (Depends-on): Add raise.
40729         * modules/sigprocmask (Depends-on): Likewise.
40730         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40731         * lib/sigprocmask.c (sigprocmask): Likewise.
40732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40733         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40734
40735         Fix compliance bug in sigpending.
40736         * lib/sigprocmask.c (sigpending): Return pending array via
40737         parameter, not return value.
40738
40739 2008-06-14  Eric Blake  <ebb9@byu.net>
40740
40741         Improve obstack-printf test code.
40742         * tests/test-obstack-printf.c (test_function): Fix comment, and
40743         simplify usage of obstack_* in macros.  Add a test for coverage.
40744         Reported by Bruno Haible.
40745
40746 2008-06-14  Bruno Haible  <bruno@clisp.org>
40747
40748         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40749         array size as a constant, not as a const variable.
40750         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40751         AC_USE_SYSTEM_EXTENSIONS.
40752         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40753         Test whether the obstack_printf function actually exists.
40754         * modules/obstack-printf (Depends-on): Add extensions.
40755         (Include): Remove obstack.h.
40756         * modules/obstack-printf-posix (Depends-on): Add extensions.
40757         (Include): Remove obstack.h.
40758
40759 2008-06-13  Eric Blake  <ebb9@byu.net>
40760
40761         Add obstack-printf and obstack-printf-posix modules.
40762         * modules/obstack-printf: New file.
40763         * modules/obstack-printf-posix: Likewise.
40764         * MODULES.html.sh (Misc): Mention them.
40765         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40766         Likewise.
40767         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40768         Likewise.
40769         * modules/stdio (Makefile.am): Accomodate new modules.
40770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40771         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40772         Declare.
40773         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40774         functions.
40775         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40776         (gl_REPLACE_OBSTACK_PRINTF): New macros
40777         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40778         * tests/test-obstack-printf.c: New file.
40779         * modules/obstack-printf-tests: Likewise.
40780         * modules/obstack-printf-posix-tests: Likewise.
40781
40782 2008-06-11  Bruno Haible  <bruno@clisp.org>
40783
40784         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40785         * lib/open.c: Include errno.h.
40786         (open): Fail when attempting to write to a file that has a trailing
40787         slash.
40788         * tests/test-open.c (main): Test against trailing slash bug.
40789         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40790
40791 2008-06-10  Bruno Haible  <bruno@clisp.org>
40792
40793         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40794         for $? to work inside the trap command, with various /bin/sh-s.
40795         * tests/test-vc-list-files-cvs.sh: Likewise.
40796
40797 2008-06-10  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/acl-internal.h: Don't include gettext.h here.
40800         * lib/set-mode-acl.c: Include gettext.h here.
40801         * lib/copy-acl.c: Likewise.
40802
40803 2008-06-10  Bruno Haible  <bruno@clisp.org>
40804
40805         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40806         * lib/wait-process.c (wait_subprocess): Likewise.
40807         * lib/execute.h (execute): Add termsigp argument.
40808         * lib/execute.c (execute): Likewise.
40809         * lib/csharpcomp.c (compile_csharp_using_pnet,
40810         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40811         * lib/csharpexec.c (execute_csharp_using_pnet,
40812         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40813         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40814         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40815         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40816         is_jikes_present): Update.
40817         * lib/javaexec.c (execute_java_class): Update.
40818         * lib/javaversion.c (execute_and_read_line): Update.
40819         * NEWS: Document the changes.
40820         Reported by Eric Blake.
40821
40822 2008-06-10  Eric Blake  <ebb9@byu.net>
40823
40824         Add missing include.
40825         * tests/test-strstr.c (includes): Add <signal.h>.
40826         * tests/test-strcasestr.c (includes): Likewise.
40827         * tests/test-memmem.c (includes): Likewise.
40828
40829 2008-06-10  Bruno Haible  <bruno@clisp.org>
40830
40831         * lib/wait-process.c (wait_subprocess): Add an assertion.
40832
40833 2008-06-10  Bruno Haible  <bruno@clisp.org>
40834
40835         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40836
40837 2008-06-10  Bruno Haible  <bruno@clisp.org>
40838
40839         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40840         using alarm().
40841         * tests/test-strcasestr.c (main): Likewise.
40842         * tests/test-strstr.c (main): Likewise.
40843
40844 2008-06-09  Bruno Haible  <bruno@clisp.org>
40845
40846         Work around the Solaris 10 ACE ACLs ABI change.
40847         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40848         declare if ACL_NO_TRIVIAL is present.
40849         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40850         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40851         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40852         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40853         define if ACL_NO_TRIVIAL is present.
40854         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40855         and use the current ABI.
40856         (file_has_acl): Use same #if condition as elsewhere.
40857         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40858         in use, and use the current ABI.
40859         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40860         Reported by Jim Meyering.
40861
40862 2008-06-09  Eric Blake  <ebb9@byu.net>
40863
40864         Work around environments that (stupidly) ignore SIGALRM.
40865         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40866         before using alarm().
40867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40869         Reported by Ian Beckwith <ianb@erislabs.net>.
40870
40871         Produce autobuild blurb earlier in log.
40872         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40873
40874 2008-06-09  Jim Meyering  <meyering@redhat.com>
40875         and OndÅ™ej Vašík  <ovasik@redhat.com>
40876
40877         utimens.c: correct kernel bug work-around
40878         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40879         failure, not success, and the kernel bug we're trying to work
40880         around affects not just the utimensat call, but also the fallback
40881         futimens call.
40882         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40883         not success.
40884         [HAVE_FUTIMENS]: Use the same work-around, here.
40885
40886 2008-06-09  Jim Meyering  <meyering@redhat.com>
40887
40888         add more guards around definition of ACE_-related code
40889         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40890         ALLOW and ACE_OWNER are also defined.
40891
40892 2008-06-08  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/acl-internal.h: Add me as co-author.
40895         * lib/file-has-acl.c: Likewise.
40896         * lib/set-mode-acl.c: Likewise.
40897         * lib/copy-acl.c: Likewise.
40898
40899 2008-06-08  Bruno Haible  <bruno@clisp.org>
40900
40901         Add support for AIX ACLs.
40902         * lib/acl-internal.h (acl_nontrivial): New declaration.
40903         * lib/file-has-acl.c (acl_nontrivial): New function.
40904         (file_has_acl): Add implementation using AIX 4 ACL API.
40905         * lib/set-mode-acl.c (qset_acl): Likewise.
40906         * lib/copy-acl.c (qcopy_acl): Likewise.
40907
40908 2008-06-08  Bruno Haible  <bruno@clisp.org>
40909
40910         Add support for HP-UX ACLs.
40911         * lib/acl-internal.h (acl_nontrivial): New declaration.
40912         * lib/file-has-acl.c (acl_nontrivial): New function.
40913         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40914         * lib/set-mode-acl.c (qset_acl): Likewise.
40915         * lib/copy-acl.c (qcopy_acl): Likewise.
40916
40917 2008-06-08  Bruno Haible  <bruno@clisp.org>
40918
40919         Add support for Cygwin ACLs.
40920         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40921         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40922         the chmod_or_fchmod call.
40923         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40924
40925 2008-06-08  Bruno Haible  <bruno@clisp.org>
40926
40927         Fix bug with setuid modes in Solaris 10+ code.
40928         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40929         succeeded, when the mode contains some special bits.
40930
40931 2008-06-08  Bruno Haible  <bruno@clisp.org>
40932
40933         Add support for Solaris 7..10 ACLs.
40934         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40935         declarations.
40936         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40937         functions.
40938         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40939         * lib/set-mode-acl.c (qset_acl): Likewise.
40940         * lib/copy-acl.c (qcopy_acl): Likewise.
40941
40942 2008-06-08  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40945         declaration.
40946         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40947         (acl_access_nontrivial): Remove MacOS X case.
40948         (file_has_acl): Use acl_extended_nontrivial.
40949         * lib/copy-acl.c (qcopy_acl): Likewise.
40950
40951 2008-06-08  Bruno Haible  <bruno@clisp.org>
40952
40953         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40954
40955 2008-06-08  Jim Meyering  <meyering@redhat.com>
40956
40957         * modules/acl (Maintainer): Add Bruno Haible.
40958
40959 2008-06-07  Bruno Haible  <bruno@clisp.org>
40960
40961         Improve support for Tru64 ACLs.
40962         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40963         ACL on OSF/1.
40964
40965 2008-06-07  Bruno Haible  <bruno@clisp.org>
40966
40967         Add support for MacOS X ACLs.
40968         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40969         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40970         * lib/set-mode-acl.c (qset_acl): Likewise.
40971         * lib/copy-acl.c (qcopy_acl): Likewise.
40972
40973 2008-06-07  Bruno Haible  <bruno@clisp.org>
40974
40975         Fix memory leak introduced on 2008-05-22.
40976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40977         use.
40978
40979 2008-06-07  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40982         to construct an empty ACL.
40983
40984 2008-06-07  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40987         precisely.
40988         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40989
40990 2008-06-07  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40993         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40994
40995 2008-06-07  Bruno Haible  <bruno@clisp.org>
40996
40997         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40998         regardless of POSIX.
40999         * doc/posix-functions/_longjmp.texi: Likewise.
41000         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41001         SystemV platform in this case.
41002
41003 2008-06-06  Eric Blake  <ebb9@byu.net>
41004
41005         Document abort() bugs.
41006         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41007
41008         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41009         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41010         sigsetjmp.
41011         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41012         siglongjmp, but only as a macro.
41013         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41014         is obsolete.
41015         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41016
41017         Tweak documentation to cover cygwin argz bugs.
41018         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41019         argz bug fix; no code change needed since no cygwin releases
41020         occurred between the last fix and the bug being tested.
41021         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41022         module and recently fixed cygwin bugs.
41023         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41024         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41025         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41026         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41027         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41028         Likewise.
41029         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41030         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41031         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41032         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41033         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41034         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41035         Likewise.
41036
41037         Avoid gcc warning on cygwin.
41038         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41039         !ACL_NO_TRIVIAL]: Avoid unused variable.
41040
41041 2008-06-05  Eric Blake  <ebb9@byu.net>
41042
41043         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41044         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41045         git-version-gen fails to come up with a version.
41046         Reported by Simon Josefsson.
41047
41048 2008-06-05  Jim Meyering  <meyering@redhat.com>
41049             Paul Eggert  <eggert@cs.ucla.edu>
41050
41051         utimens.c: work around a probable Linux kernel bug
41052         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41053         appears to be a kernel bug that causes utimensat to return 280
41054         instead of 0, indicating success.
41055
41056 2008-06-04  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41059         2008-06-01 commit.
41060
41061 2008-06-04  Bruno Haible  <bruno@clisp.org>
41062
41063         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41064         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41065         (file_has_acl): Use it. Save errno afterwards.
41066         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41067
41068 2008-06-03  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41071         draft code. Simplify #ifs.
41072         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41073         Put Solaris code after POSIX-draft code. Fix comments regarding
41074         Solaris 10, HP-UX. Mention Cygwin.
41075         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41076
41077 2008-06-03  Eric Blake  <ebb9@byu.net>
41078
41079         Provide fallback for older kernels.
41080         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41081         Provide runtime fallback if kernel lacks support.
41082         Reported by Mike Frysinger.
41083
41084 2008-06-02  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41087         it exists.
41088
41089 2008-06-02  Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41092         * lib/copy-acl.c (qcopy_acl): Update comment.
41093
41094 2008-06-02  Bruno Haible  <bruno@clisp.org>
41095
41096         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41097         like ACL APIs.
41098
41099 2008-06-02  Bruno Haible  <bruno@clisp.org>
41100
41101         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41102         * tests/test-set-mode-acl.sh: Likewise.
41103         * tests/test-copy-acl.sh: Likewise.
41104         * tests/test-copy-file.sh: Likewise.
41105
41106 2008-06-02  Bruno Haible  <bruno@clisp.org>
41107
41108         * tests/test-file-has-acl.sh: Remove unused code.
41109
41110 2008-06-01  Bruno Haible  <bruno@clisp.org>
41111
41112         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41113         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41114         messages.
41115         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41116
41117 2008-06-01  Bruno Haible  <bruno@clisp.org>
41118
41119         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41120         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41121         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41122         APIs.
41123         * modules/acl-tests (configure.ac): Remove tests now contained in
41124         m4/acl.m4.
41125
41126 2008-06-02  Jim Meyering  <meyering@redhat.com>
41127
41128         announce-gen: use a better key-server host name
41129         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41130         it may be more consistently reliable.  Suggested by Werner Koch
41131         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41132
41133 2008-06-01  Bruno Haible  <bruno@clisp.org>
41134
41135         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41136         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41137
41138 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41139
41140         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41141
41142 2008-06-01  Bruno Haible  <bruno@clisp.org>
41143
41144         New ACL tests.
41145         * tests/test-file-has-acl.sh: New file.
41146         * tests/test-file-has-acl.c: New file.
41147         * tests/test-set-mode-acl.sh: New file.
41148         * tests/test-set-mode-acl.c: New file.
41149         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41150         * tests/test-copy-acl.c: New file.
41151         * modules/acl-tests: New file, based on modules/copy-file-tests.
41152         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41153         (Depends-on): Add acl-tests.
41154         (configure.ac): Remove checks.
41155         (Makefile.am): Don't create test-sameacls program here any more.
41156
41157 2008-06-01  Bruno Haible  <bruno@clisp.org>
41158
41159         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41160         * tests/test-sameacls.c: Include progname.h.
41161         (main): Invoke set_program_name. Portability fixes for MacOS X,
41162         Solaris, HP-UX.
41163
41164 2008-06-01  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41167         function.
41168         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41169
41170 2008-06-01  Bruno Haible  <bruno@clisp.org>
41171
41172         * modules/rpmatch (Depends-on): Add strdup.
41173
41174 2008-06-01  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/pipe.c: Include unistd-safer.h.
41177         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41178         * modules/pipe (Depends-on): Add unistd-safer.
41179
41180 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41181
41182         * modules/autobuild (configure.ac): Call AB_INIT.
41183
41184 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41185
41186         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41187         Suggested by Bruno Haible <bruno@clisp.org>.
41188
41189 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41190
41191         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41192         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41193         <bruno@clisp.org>.
41194
41195 2008-05-29  Eric Blake  <ebb9@byu.net>
41196
41197         Prefer new POSIX 200x interfaces over futimesat.
41198         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41199         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41200         when available.
41201         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41202
41203 2008-05-28  Bruno Haible  <bruno@clisp.org>
41204
41205         * modules/stpcpy (License): Change to LGPLv2+.
41206         Requested by David Lutterkort <dlutter@redhat.com>.
41207
41208 2008-05-27  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41211         current mingw.
41212         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41213
41214 2008-05-27  Bruno Haible  <bruno@clisp.org>
41215
41216         * modules/iconv_open (Link): New section, from module 'iconv'.
41217         * modules/striconv (Link): Likewise.
41218         * modules/striconveh (Link): Likewise.
41219         * modules/xstriconv (Link): Likewise.
41220         * modules/unicodeio (Link): Likewise.
41221         * modules/propername (Link): Likewise.
41222         Reported by Jim Meyering.
41223
41224 2008-05-26  Jim Meyering  <meyering@redhat.com>
41225
41226         sha256: do not artificially restrict buffer length to be < 2^32
41227         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41228         uint32_t to size_t.
41229         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41230         to match.
41231
41232         avoid unaligned access errors, e.g., on sparc
41233         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41234         direct access through a possibly-unaligned uint64* pointer.
41235         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41236         direct access through a possibly-unaligned uint32* pointer.
41237         Prompted by this patch from Tom "spot" Callaway:
41238         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41239
41240         sha512.c: fix typo in comment
41241         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41242
41243 2008-05-25  Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41246         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41247         (Makefile.am): Update lib_SOURCES.
41248
41249 2008-05-25  Bruno Haible  <bruno@clisp.org>
41250
41251         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41252
41253 2008-05-25  Jim Meyering  <meyering@redhat.com>
41254
41255         useless-if-before-free: freed expr may have white-space differences
41256         * build-aux/useless-if-before-free: Recognize cases in which the
41257         freed expression differs from the tested one in embedded white
41258         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41259         $1 was used, so we can't make any regexp shy.  Improved tests now
41260         detect this.
41261
41262         useless-if-before-free: accept white space in the expression.
41263         * build-aux/useless-if-before-free: For now, any white space
41264         in the expression must be identical in the free argument.
41265
41266         useless-if-before-free: efficiency tweak
41267         * build-aux/useless-if-before-free: Make the expression-matching
41268         regexp "shy".
41269         Make the *outer* regexp shy, not the expr-matching one.
41270
41271         update code-in-comment to accept cast of free arg
41272         * build-aux/useless-if-before-free: Update regexp.
41273
41274 2008-05-25  Bruno Haible  <bruno@clisp.org>
41275
41276         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41277         * modules/copy-file-tests (Files, Makefile.am): Update.
41278         * tests/test-copy-file.c (func_test_copy): Update.
41279
41280 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41281
41282         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41283
41284 2008-05-23  Bruno Haible  <bruno@clisp.org>
41285
41286         Improve support for ACLs on OSF/1.
41287         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41288         Remove fallback for unknown flavors of ACLs.
41289
41290 2008-05-22  Bruno Haible  <bruno@clisp.org>
41291
41292         Add support for ACLs on OSF/1.
41293         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41294         replacements.
41295         (acl_free_text): New macro fallback.
41296         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41297         acl_free.
41298         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41299         acl_free_text function. Require AC_C_INLINE.
41300
41301 2008-05-22  Bruno Haible  <bruno@clisp.org>
41302
41303         Make copy_acl work on MacOS X 10.5.
41304         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41305         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41306         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41307         If MODE_INSIDE_ACL, don't assume that every system has the same text
41308         representation for ACLs as FreeBSD.
41309         * lib/copy-acl.c (copy_acl): Add support for platforms with
41310         !MODE_INSIDE_ACL.
41311         * lib/file-has-acl.c (file_has_acl): Likewise.
41312         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41313         FreeBSD, MacOS X, or IRIX, respectively.
41314
41315 2008-05-22  Bruno Haible  <bruno@clisp.org>
41316
41317         * lib/acl.h: Don't include <sys/acl.h>.
41318         (GETACLCNT): Move fallback to lib/acl-internal.h.
41319         * lib/acl-internal.h: Include <sys/acl.h> here.
41320         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41321
41322 2008-05-22  Bruno Haible  <bruno@clisp.org>
41323
41324         Split off copy_acl function to separate file.
41325         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41326         * lib/acl.c (copy_acl): Moved function to separate file.
41327         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41328         * modules/acl (Files): Add lib/copy-acl.c.
41329         (Makefiles.am): Augment lib_SOURCES.
41330
41331 2008-05-22  Bruno Haible  <bruno@clisp.org>
41332
41333         * modules/copy-file-tests: New file.
41334         * tests/test-copy-file.sh: New file.
41335         * tests/test-copy-file.c: New file.
41336         * tests/test-copy-file-sameacls.c: New file.
41337
41338 2008-05-22  Eric Blake  <ebb9@byu.net>
41339
41340         Avoid gcc warning.
41341         * tests/test-memcmp.c (main): Pass NULL indirectly.
41342
41343 2008-05-21  Bruno Haible  <bruno@clisp.org>
41344
41345         Add reference doc about ACLs.
41346         * doc/acl-resources.txt: New file.
41347         * doc/acl-cygwin.txt: New file.
41348
41349 2008-05-21  Bruno Haible  <bruno@clisp.org>
41350
41351         Avoid one more warning from gcc.
41352         * lib/vasnprintf.c (IF_LINT): Update comments.
41353         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41354
41355 2008-05-21  Jim Meyering  <meyering@redhat.com>
41356
41357         avoid a warning from gcc
41358         * lib/vasnprintf.c (IF_LINT): Define.
41359         (scale10_round_decimal_long_double):
41360         Use it to avoid a "may be used uninitialized" warning.
41361         (scale10_round_decimal_double): Likewise.
41362
41363 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41364
41365         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41366         declared.
41367
41368 2008-05-20  Bruno Haible  <bruno@clisp.org>
41369
41370         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41371         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41372
41373 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41374
41375         * modules/memcmp-tests: New file.
41376         * tests/test-memcmp.c: New file.
41377
41378 2008-05-19  Bruno Haible  <bruno@clisp.org>
41379
41380         * modules/propername (Notice, configure.ac): Put quoted "..." into
41381         --keyword option.
41382         * lib/propername.h: Update comments accordingly.
41383         Reported by Eric Blake.
41384
41385 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41386
41387         * modules/getpass-gnu (Depends-on): Add fseeko.
41388
41389 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41390
41391         * modules/base64-tests: New file.
41392
41393 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41394
41395         * lib/base64.c (base64_decode_ctx): If a decode context structure
41396         was passed in use it to ignore newlines.  If a context structure
41397         was _not_ passed in, continue to treat newlines as garbage (this
41398         is the historical behavior).  Formerly base64_decode.
41399         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41400         takes a decode context structure.
41401         * lib/base64.h (base64_decode): Macro for four-argument calls.
41402         (base64_decode_alloc): Likewise.
41403         * lib/base64.c (base64_decode_ctx): If a decode context structure
41404         was passed in use it to ignore newlines.  If a context structure
41405         was _not_ passed in, continue to treat newlines as garbage (this
41406         is the historical behavior).  Formerly base64_decode.
41407         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41408         takes a decode context structure.
41409         * lib/base64.h (base64_decode): Macro for four-argument calls.
41410         (base64_decode_alloc): Likewise.
41411
41412 2008-05-19  Jim Meyering  <meyering@redhat.com>
41413
41414         avoid a warning from gcc
41415         * lib/trim.c (IF_LINT): Define.
41416         (trim2): Use it to avoid a "may be used uninitialized" warning.
41417
41418         Fix doc typo.
41419         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41420
41421 2008-05-19  Bruno Haible  <bruno@clisp.org>
41422
41423         * doc/glibc-functions/getpass.texi: Document limits of other
41424         implementations.
41425
41426 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41427             Bruno Haible <bruno@clisp.org>
41428
41429         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41430
41431 2008-05-18  Bruno Haible  <bruno@clisp.org>
41432
41433         * modules/propername: New file, from GNU gettext.
41434         * lib/propername.h: New file, from GNU gettext.
41435         * lib/propername.c: New file, from GNU gettext.
41436         * MODULES.html.sh (Internationalization functions): Add propername.
41437
41438 2008-05-16  Jim Meyering  <meyering@redhat.com>
41439             Bruno Haible  <bruno@clisp.org>
41440
41441         Avoid some warnings from "gcc -Wshadow".
41442         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41443
41444 2008-05-15  Eric Blake  <ebb9@byu.net>
41445
41446         Extend previous patch to cygwin 1.7.0.
41447         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41448         fast implementation in cygwin >= 1.7.0.
41449         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41451
41452 2008-05-15  Bruno Haible  <bruno@clisp.org>
41453
41454         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41455         implementation in glibc >= 2.9.
41456         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41458
41459 2008-05-15  Bruno Haible  <bruno@clisp.org>
41460
41461         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41462         (Unicode string functions): Add unilbrk/*.
41463         Reported by Karl Berry.
41464
41465 2008-05-15  Eric Blake  <ebb9@byu.net>
41466
41467         Fix violation of <stdbool.h> replacement in regex.
41468         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41469         * lib/regexec.c (re_search_internal): Likewise.
41470         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41471
41472 2008-05-15  Jim Meyering  <meyering@redhat.com>
41473
41474         avoid distracting test output when git or cvs is not found
41475         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41476         * tests/test-vc-list-files-git.sh: Likewise.
41477
41478 2008-05-15  Eric Blake  <ebb9@byu.net>
41479
41480         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41481         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41482         glibc version.
41483         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41484         * doc/posix-functions/strstr.texi (strstr): Likewise.
41485         * lib/str-two-way.h (MAX): Sychronize with glibc.
41486
41487 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41488
41489         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41490         opr.ctx_type.
41491         (calc_first): Initialize constraint field.
41492         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41493         Fix grammar.
41494         (duplicate_node): Merge constraint field for all node types.
41495         (calc_eclosure_iter): Look at constraint field for all node types.
41496         * lib/regex_internal.c (create_cd_newstate): Don't look at
41497         opr.ctx_type.
41498
41499 2008-05-14  Bruno Haible  <bruno@clisp.org>
41500
41501         Help GCC to do better code generation.
41502         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41503         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41504         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41505         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41506         Declare with attribute 'malloc' if supported.
41507
41508 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41509
41510         use "echo STR|wc -c" rather than unportable "expr length STR"
41511         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41512         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41513
41514 2008-05-14  Jim Meyering  <meyering@redhat.com>
41515
41516         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41517         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41518         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41519         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41520         via Collin Lasse.
41521
41522 2008-05-14  Eric Blake  <ebb9@byu.net>
41523
41524         Avoid quadratic growth in gl_LIBSOURCES.
41525         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41526         Suggested by Bruno Haible.
41527
41528         Test xmemdup0.
41529         * modules/xmemdup0-tests: New file.
41530         * tests/test-xmemdup0.c: Likewise.
41531
41532 2008-05-13  Eric Blake  <ebb9@byu.net>
41533
41534         Split xmemdup0 into its own module.
41535         * modules/xmemdup0: New file.
41536         * lib/xmemdup0.h: Likewise.
41537         * lib/xmemdup0.c: Likewise.
41538         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41539         * lib/xalloc.h (xmemdup0): Remove.
41540         * lib/xmalloc.c (xmemdup0): Likewise.
41541
41542 2008-05-13  Eric Blake  <ebb9@byu.net>
41543             Bruno Haible  <bruno@clisp.org>
41544
41545         Reduce number of forks required during autoconf.
41546         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41547         and gl_LIBSOURCES_DIR.
41548         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41549         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41550         m4_syscmd per file.
41551         <m4_foreach_w>: Move...
41552         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41553
41554 2008-05-13  Eric Blake  <ebb9@byu.net>
41555
41556         * gnulib-tool: Fix various comment typos.
41557
41558 2008-05-12  Bruno Haible  <bruno@clisp.org>
41559
41560         Tailor the linebreaking algorithm.
41561         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41562
41563 2008-05-12  Bruno Haible  <bruno@clisp.org>
41564
41565         Update to Unicode 5.0.0.
41566         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41567         LBP_JV, LBP_JT. Redistribute values.
41568         (unilbrk_table): Change size.
41569         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41570         Unicode TR#14 rev. 22.
41571         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41572         LBP_JV, LBP_JT. Redistribute values.
41573         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41574         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41575         Update.
41576         * lib/unilbrk/lbrkprop1.h: Regenerated.
41577         * lib/unilbrk/lbrkprop2.h: Regenerated.
41578         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41579         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41580         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41581         Likewise.
41582         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41583         Likewise.
41584         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41585         result.
41586         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41587         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41588         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41589         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41590         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41591         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41592
41593 2008-05-11  Bruno Haible  <bruno@clisp.org>
41594
41595         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41596
41597 2008-05-11  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41600         * modules/unilbrk/gen-lbrk: New file.
41601
41602 2008-05-11  Bruno Haible  <bruno@clisp.org>
41603
41604         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41605         * m4/sha512.m4 (gl_SHA512): Likewise.
41606
41607 2008-05-11  Jim Meyering  <meyering@redhat.com>
41608
41609         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41610         * modules/crypto/sha256: New file.
41611         * modules/crypto/sha512: Likewise.
41612         * lib/sha256.c: Likewise.
41613         * lib/sha256.h: Likewise.
41614         * lib/sha512.c: Likewise.
41615         * lib/sha512.h: Likewise.
41616         * lib/u64.h: Likewise.
41617         * m4/sha256.m4: Likewise.
41618         * m4/sha512.m4: Likewise.
41619         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41620
41621 2008-05-10  Bruno Haible  <bruno@clisp.org>
41622
41623         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41624         (Input/Output <stdio.h>): Add xprintf.
41625         (Signal handling <signal.h>): Add strsignal.
41626         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41627         (Core language properties): Add func.
41628         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41629         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41630         strings.
41631         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41632         (Input/output): New section.
41633         (File system functions): Add openat-die, stat-macros.
41634         (Networking functions): Add sockets.
41635         (Unicode string functions): Add unictype/*.
41636         (Support for building libraries and executables): Add gperf.
41637         (Support for building documentation): Add agpl-3.0.
41638         (Misc): Add nocrash.
41639
41640 2008-05-10  Bruno Haible  <bruno@clisp.org>
41641
41642         * modules/unictype/gen-ctype: New file.
41643
41644 2008-05-10  Jim Meyering  <meyering@redhat.com>
41645
41646         Make chdir-safer.c more efficient on a system with no symlinks.
41647         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41648         also if ELOOP is zero.  Suggested by Bruno Haible.
41649
41650         Make chdir-safer.c slightly safer.
41651         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41652         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41653
41654         Avoid compile failure on systems without ELOOP (like mingw).
41655         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41656         Reported by Bruno Haible.
41657
41658 2008-05-10  Bruno Haible  <bruno@clisp.org>
41659
41660         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41661         (is_utf8_encoding): Use a case-insensitive comparison.
41662         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41663         streq.
41664
41665 2008-05-10  Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41668         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41669         * lib/unilbrk/ulc-common.h (iconv_string_length,
41670         iconv_string_keeping_offsets): Remove declarations.
41671         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41672         Don't include <iconv.h>, streq.h, xsize.h.
41673         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41674         conversion.
41675         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41676         <iconv.h>, streq.h, xsize.h.
41677         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41678         conversion.
41679         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41680         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41681         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41682         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41683
41684 2008-05-10  Bruno Haible  <bruno@clisp.org>
41685
41686         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41687         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41688
41689         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41690         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41691
41692         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41693         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41694
41695         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41696         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41697
41698         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41699         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41700
41701         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41702         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41703
41704         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41705         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41706
41707         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41708         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41709
41710 2008-05-10  Bruno Haible  <bruno@clisp.org>
41711
41712         Split up 'linebreak' module.
41713         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41714         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41715         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41716         modifications.
41717         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41718         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41719         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41720         lib/linebreak.c.
41721         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41722         lib/linebreak.c.
41723         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41724         lib/linebreak.c.
41725         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41726         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41727         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41728         lib/linebreak.c.
41729         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41730         lib/linebreak.c.
41731         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41732         lib/linebreak.c.
41733         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41734         lib/linebreak.c.
41735         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41736         lib/linebreak.c.
41737         * modules/unilbrk/base: New file.
41738         * modules/unilbrk/tables: New file.
41739         * modules/unilbrk/u8-possible-linebreaks: New file.
41740         * modules/unilbrk/u16-possible-linebreaks: New file.
41741         * modules/unilbrk/u32-possible-linebreaks: New file.
41742         * modules/unilbrk/ulc-common: New file.
41743         * modules/unilbrk/ulc-possible-linebreaks: New file.
41744         * modules/unilbrk/u8-width-linebreaks: New file.
41745         * modules/unilbrk/u16-width-linebreaks: New file.
41746         * modules/unilbrk/u32-width-linebreaks: New file.
41747         * modules/unilbrk/ulc-width-linebreaks: New file.
41748         * lib/linebreak.h: Remove file.
41749         * lib/linebreak.c: Remove file.
41750         * m4/linebreak.m4: Remove file.
41751         * modules/linebreak: Remove file.
41752         * NEWS: Mention the changes.
41753
41754 2008-05-09  Eric Blake  <ebb9@byu.net>
41755
41756         Add xmemdup0.
41757         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41758         implementation.
41759         * lib/xmalloc.c (xmemdup0): New C implementation.
41760
41761 2008-05-08  Bruno Haible  <bruno@clisp.org>
41762
41763         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41764
41765 2008-05-07  Eric Blake  <ebb9@byu.net>
41766
41767         Support cross-compilation of <wctype.h>.
41768         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41769         AC_CACHE_CHECK.
41770
41771 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41772
41773         * build-aux/vc-list-files: Add support for bzr.
41774
41775 2008-05-03  Jim Meyering  <meyering@redhat.com>
41776
41777         avoid failed assertion with tight malloc
41778         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41779
41780 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41781
41782         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41783         are needed from arpa/inet.h.
41784         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41785         Reported by Bruno Haible.
41786
41787 2008-05-02  Jim Meyering  <meyering@redhat.com>
41788
41789         avoid compilation error on FreeBSD 6
41790         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41791
41792 2008-05-01  Jim Meyering  <meyering@redhat.com>
41793
41794         useless-if-before-free: correct --help's exit status description
41795         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41796         for one or more matches, etc.  Reported by Bruno Haible.
41797
41798         vc-list-files: make the stand-alone gnulib test work
41799         * modules/vc-list-files-tests (configure.ac):
41800         Define and AC_SUBST abs_aux_dir.
41801         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41802         $(abs_top_srcdir) to each script and having each of them
41803         duplicate the work of setting PATH, set PATH here, using
41804         the new variable, abs_aux_dir instead.
41805         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41806         * tests/test-vc-list-files-git.sh: Likewise.
41807         Reported by Bruno Haible.
41808
41809 2008-05-01  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41812         reallocation. Rename 'done' to 'found_delimiter'.
41813
41814 2008-05-01  Jim Meyering  <meyering@redhat.com>
41815
41816         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41817         * build-aux/vc-list-files: Use `...`, not $(...).
41818
41819 2008-04-30  Jim Meyering  <meyering@redhat.com>
41820
41821         add tests for vc-list-files
41822         * modules/vc-list-files-tests: New module.
41823         * tests/test-vc-list-files-cvs.sh: New file.
41824         * tests/test-vc-list-files-git.sh: New file.
41825
41826         avoid a warning from gcc
41827         * lib/getndelim2.c (IF_LINT): Define.
41828         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41829
41830         vc-list-files: work properly with build-aux/cvsu, too
41831         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41832         to all cvs-based clauses.
41833
41834         vc-list-files: work properly in the CVS+awk case, too
41835         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41836
41837         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41838         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41839         take more than one file argument, so .  Add quotes, just in case $dir
41840         ever contains a shell meta-character.  Prompted by Soren Hansen in
41841         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41842
41843 2008-04-29  Eric Blake  <ebb9@byu.net>
41844
41845         Optimize getndelim2 to use block operations when possible.
41846         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41847         freadseek, and memchr2.
41848         * lib/getndelim2.c (getndelim2): Use them for block reads.
41849
41850 2008-04-29  Bruno Haible  <bruno@clisp.org>
41851
41852         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41853         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41854         * modules/inet_ntop (Depends-on): Add extensions.
41855         * modules/inet_pton (Depends-on): Likewise.
41856         Reported by Simon Josefsson.
41857
41858 2008-04-29  Jim Meyering  <meyering@redhat.com>
41859
41860         When the is more than one match in a block, match all of them.
41861         * build-aux/useless-if-before-free: Iterate through each block
41862         until there are no more matches.
41863
41864         Fix broken useless-if-before-free script.
41865         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41866         the expression to match cast of argument to free-like function.
41867
41868 2008-04-29  Eric Blake  <ebb9@byu.net>
41869
41870         Use new header.
41871         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41872
41873 2008-04-29  Jim Meyering  <meyering@redhat.com>
41874
41875         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41876         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41877         by gnulib to exist and to declare e.g., inet_ntop.
41878         Don't include "inet_ntop.h", now removed.
41879
41880         * m4/arpa_inet_h.m4: Remove trailing blanks.
41881
41882 2008-04-29  Eric Blake  <ebb9@byu.net>
41883
41884         Silence valgrind on safe reads beyond potential array bounds.
41885         * lib/rawmemchr.valgrind: New file.
41886         * lib/strchrnul.valgrind: Likewise.
41887         * modules/rawmemchr (Files): Distribute new file.
41888         * modules/strchrnul (Files): Likewise.
41889         Suggested by Bruno Haible.
41890
41891 2008-04-29  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41894         (inet_ntop, inet_pton): Change portability warning's wording.
41895         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41896         Invoke gl_CHECK_NEXT_HEADERS.
41897         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41898         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41899         set ARPA_INET_H.
41900         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41901         * modules/arpa_inet (Description): No longer only for systems that
41902         lack it.
41903         (Depends-on): Add include_next.
41904         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41905         HAVE_ARPA_INET_H.
41906
41907 2008-04-29  Jim Meyering  <meyering@redhat.com>
41908
41909         * modules/mkdir (License): Re-license as LGPLv2+.
41910
41911 2008-04-29  Bruno Haible  <bruno@clisp.org>
41912
41913         * modules/rawmemchr (Maintainer): Set to Eric.
41914         * modules/strchrnul (Maintainer): Likewise.
41915
41916 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41917
41918         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41919         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41920
41921         * modules/arpa_inet (arpa/inet.h): Use them.
41922
41923 2008-04-28  Eric Blake  <ebb9@byu.net>
41924
41925         Test getndelim2.
41926         * modules/getndelim2-tests: New file.
41927         * tests/test-getndelim2.c: Likewise.
41928         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41929         stream.
41930         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41931
41932         * MODULES.html.sh: Document new module.
41933
41934 2008-04-20  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/c-stack.c (die): Use raise.
41937         * modules/c-stack (Depends-on): Add raise.
41938
41939 2008-04-28  Bruno Haible  <bruno@clisp.org>
41940
41941         Expect rpmatch to be declared.
41942         * lib/yesno.c (rpmatch): Remove declaration.
41943
41944         Declare rpmatch.
41945         * lib/stdlib.in.h (rpmatch): New declaration.
41946         * lib/rpmatch.c: Include <stdlib.h> first.
41947         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41948         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41950         HAVE_RPMATCH.
41951         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41953         (Include): Set to <stdlib.h>.
41954         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41955         HAVE_RPMATCH.
41956         * NEWS: Document the change.
41957
41958 2008-04-28  Bruno Haible  <bruno@clisp.org>
41959
41960         Change rpmatch to use nl_langinfo when appropriate.
41961         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41962         (N_): New macro.
41963         (localized_pattern): New function/macro.
41964         (try): Remove match, nomatch arguments. Copy the pattern into safe
41965         memory before caching it.
41966         (rpmatch): Use localized_pattern. Add translator comments.
41967         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41968         Suggested by Eric Blake.
41969         * modules/rpmatch (Depends-on): Add stdbool.
41970
41971 2008-04-28  Eric Blake  <ebb9@byu.net>
41972
41973         Add rawmemchr module, matching glibc.
41974         * modules/string (Makefile.am): New indicator.
41975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41976         * lib/string.in.h (rawmemchr): Declare when appropriate.
41977         * modules/rawmemchr: New file.
41978         * m4/rawmemchr.m4: Likewise.
41979         * lib/rawmemchr.c: Likewise.
41980         * modules/rawmemchr-tests: Likewise.
41981         * tests/test-rawmemchr.c: Likewise.
41982         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41983         module.
41984         * modules/strchrnul (Depends-on): Add rawmemchr.
41985         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41986
41987         Whitespace cleanup.
41988         * tests/test-strchrnul.c: Reindent.
41989         * lib/strchrnul.c: Likewise.
41990
41991         Optimize and test strchrnul.
41992         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41993         * modules/strchrnul-tests: New file.
41994         * tests/test-strchrnul.c: Likewise.
41995
41996         Remove intprops dependency.
41997         * modules/memchr (Depends-on): Remove intprops.
41998         * modules/memrchr (Depends-on): Likewise.
41999         * modules/memchr2 (Depends-on): Likewise.
42000         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42001         * lib/memrchr.c (__memrchr): Likewise.
42002         * lib/memrchr2.c (memchr2): Likewise.
42003         Reported by Simon Josefsson.
42004
42005 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42006
42007         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42008         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42009
42010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42011
42012         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42013
42014         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42015
42016         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42017
42018         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42019         declarations.
42020         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42021
42022         * m4/inet_pton.m4: Don't check for header files.
42023
42024         * m4/inet_ntop.m4: Don't check for header files.
42025
42026 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42027
42028         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42029         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42030         trigger for cygwin).
42031         Reported by Bruno Haible  <bruno@clisp.org>.
42032
42033 2008-04-28  Bruno Haible  <bruno@clisp.org>
42034
42035         * doc/posix-functions/strdup.texi: Mention mingw problem.
42036
42037 2008-04-27  Bruno Haible  <bruno@clisp.org>
42038
42039         * modules/stat-time-tests (Depends-on): Add sleep.
42040         * tests/test-stat-time.c (force_unlink): New function.
42041         (cleanup): Use it.
42042         (test_mtime): Remove the ctime related tests.
42043         (test_ctime): New function, containing the ctime related tests.
42044         (main): Call test_ctime, except on native Windows platforms.
42045
42046 2008-04-27  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/rpmatch.c (rpmatch): Add some comments.
42049         Reported by James Youngman <jay@gnu.org>.
42050
42051 2008-04-27  Bruno Haible  <bruno@clisp.org>
42052
42053         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42054         quiet NaNs.
42055
42056 2008-04-27  Bruno Haible  <bruno@clisp.org>
42057
42058         Make test-yesno.sh work on mingw.
42059         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42060         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42061         (main): Set stdin to binary mode.
42062         * modules/yesno-tests (Depends-on): Add binary-io.
42063
42064 2008-04-27  Bruno Haible  <bruno@clisp.org>
42065
42066         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42067         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42068         argument that lie outside the IEEE 854 domain.
42069         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42070         (gl_ISFINITE): Use it.
42071         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42072
42073 2008-04-27  Bruno Haible  <bruno@clisp.org>
42074
42075         Allow local renaming in config.h.
42076         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42077
42078 2008-04-27  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/memchr.c (__memchr): Change type of 'i'.
42081         * lib/memchr2.c (memchr2): Likewise.
42082
42083 2008-04-26  Eric Blake  <ebb9@byu.net>
42084         and Bruno Haible  <bruno@clisp.org>
42085
42086         Optimize and test memrchr.
42087         * modules/memrchr (Depends-on): Add intprops.
42088         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42089         * modules/memrchr-tests: New file.
42090         * tests/test-memrchr.c: New file.
42091
42092 2008-04-26  Bruno Haible  <bruno@clisp.org>
42093
42094         Add tentative support for DragonFly BSD.
42095         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42096         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42097         fp.
42098         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42099         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42100         * lib/fpurge.c (fpurge): Likewise.
42101         * lib/freadable.c (freaadable): Likewise.
42102         * lib/freadahead.c (freadahead): Likewise.
42103         * lib/freading.c (freading): Likewise.
42104         * lib/freadptr.c (freadptr): Likewise.
42105         * lib/freadseek.c (freadptrinc): Likewise.
42106         * lib/fseeko.c (fseeko): Likewise.
42107         * lib/fseterr.c (fseterr): Likewise.
42108         * lib/fwritable.c (fwritable): Likewise.
42109         * lib/fwriting.c (fwriting): Likewise.
42110
42111 2008-04-26  Bruno Haible  <bruno@clisp.org>
42112
42113         * lib/stdio-impl.h: New file.
42114         * lib/fbufmode.c: Include stdio-impl.h.
42115         (fbufmode): Use fp_, remove redundant #defines.
42116         * lib/fflush.c: Include stdio-impl.h.
42117         (clear_ungetc_buffer): Remove redundant #defines.
42118         * lib/fpurge.c: Include stdio-impl.h.
42119         (fpurge): Remove redundant #defines.
42120         * lib/freadable.c: Include stdio-impl.h.
42121         (freadable): Remove redundant #defines.
42122         * lib/freadahead.c: Include stdio-impl.h.
42123         (freadahead): Remove redundant #defines.
42124         * lib/freading.c: Include stdio-impl.h.
42125         (freading): Remove redundant #defines.
42126         * lib/freadptr.c: Include stdio-impl.h.
42127         (freadptr): Remove redundant #defines.
42128         * lib/freadseek.c: Include stdio-impl.h.
42129         (freadptrinc): Remove redundant #defines.
42130         * lib/fseeko.c: Include stdio-impl.h.
42131         (rpl_fseeko): Remove redundant #defines.
42132         * lib/fseterr.c: Include stdio-impl.h.
42133         (fseterr): Remove redundant #defines.
42134         * lib/fwritable.c: Include stdio-impl.h.
42135         (fwritable: Remove redundant #defines.
42136         * lib/fwriting.c: Include stdio-impl.h.
42137         (fwriting): Remove redundant #defines.
42138         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42139         * modules/fflush (Files): Likewise.
42140         * modules/fpurge (Files): Likewise.
42141         * modules/freadable (Files): Likewise.
42142         * modules/freadahead (Files): Likewise.
42143         * modules/freading (Files): Likewise.
42144         * modules/freadptr (Files): Likewise.
42145         * modules/freadseek (Files): Likewise.
42146         * modules/fseeko (Files): Likewise.
42147         * modules/fseterr (Files): Likewise.
42148         * modules/fwritable (Files): Likewise.
42149         * modules/fwriting (Files): Likewise.
42150
42151 2008-04-26  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42154         restore_seek_optimization, update_fpos_cache): New functions, extracted
42155         from rpl_fflush.
42156         (rpl_fflush): Use them.
42157         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42158         (gl_REPLACE_FFLUSH): Use it.
42159
42160 2008-04-26  Bruno Haible  <bruno@clisp.org>
42161
42162         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42163         on Solaris.
42164         * tests/test-xstrtoimax.sh: Likewise.
42165         * tests/test-xstrtoumax.sh: Likewise.
42166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42167
42168 2008-04-26  Bruno Haible  <bruno@clisp.org>
42169
42170         * modules/memchr-tests: New file.
42171         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42172
42173 2008-04-26  Eric Blake  <ebb9@byu.net>
42174             Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/memchr.c: Include intprops.h.
42177         (__memchr): Optimize parallel detection of matching bytes. Rename local
42178         variables. Add explanatory comments.
42179
42180 2008-04-26  Bruno Haible  <bruno@clisp.org>
42181
42182         Fix module 'memchr', broken since 2000-10-28.
42183         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42184
42185 2008-04-26  Bruno Haible  <bruno@clisp.org>
42186
42187         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42188         comments.
42189
42190 2008-04-25  Eric Blake  <ebb9@byu.net>
42191
42192         Use native fstatat on cygwin 1.7.0.
42193         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42194         first.
42195
42196 2008-04-23  Eric Blake  <ebb9@byu.net>
42197
42198         Improve memchr2 performance.
42199         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42200         NUL bytes.
42201         * modules/memchr2 (Depends-on): Use intprops.h.
42202
42203 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42204
42205         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42206         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42207         <blp@cs.stanford.edu>.
42208
42209 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42210
42211         * lib/arpa_inet.in.h: New file.
42212
42213         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42214         (Makefile.am): Sed in substitute header file.
42215
42216         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42217         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42218
42219         * modules/inet_ntop (configure.ac): Use
42220         gl_ARPA_INET_MODULE_INDICATOR.
42221
42222         * modules/inet_pton (configure.ac): Use
42223         gl_ARPA_INET_MODULE_INDICATOR.
42224
42225 2008-04-22  Jim Meyering  <meyering@redhat.com>
42226
42227         * modules/verify (License): Re-license as LGPLv2+.
42228
42229 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42230
42231         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42232         parameter to void* as per POSIX standard (MinGW uses char*).
42233
42234 2008-04-21  Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42237         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42238         Define to replacements if REPLACE_ISWCNTRL is 1.
42239         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42240         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42241         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42242         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42243         what it fixes.
42244         * doc/posix-functions/iswalpha.texi: Likewise.
42245         * doc/posix-functions/iswblank.texi: Likewise.
42246         * doc/posix-functions/iswcntrl.texi: Likewise.
42247         * doc/posix-functions/iswdigit.texi: Likewise.
42248         * doc/posix-functions/iswgraph.texi: Likewise.
42249         * doc/posix-functions/iswlower.texi: Likewise.
42250         * doc/posix-functions/iswprint.texi: Likewise.
42251         * doc/posix-functions/iswpunct.texi: Likewise.
42252         * doc/posix-functions/iswspace.texi: Likewise.
42253         * doc/posix-functions/iswupper.texi: Likewise.
42254         * doc/posix-functions/iswxdigit.texi: Likewise.
42255         Reported by Alain Guibert.
42256
42257 2008-04-21  Bruno Haible  <bruno@clisp.org>
42258
42259         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42260         Patch by Alain Guibert.
42261
42262 2008-04-21  Bruno Haible  <bruno@clisp.org>
42263
42264         Fix test failures on mingw.
42265         * tests/test-xstrtol.c (print_no_progname): New function.
42266         (main): Install it in error_print_progname hook.
42267         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42268         * tests/test-xstrtoimax.sh: Likewise.
42269         * tests/test-xstrtoumax.sh: Likewise.
42270
42271 2008-04-21  Bruno Haible  <bruno@clisp.org>
42272
42273         Fix test failure on mingw.
42274         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42275
42276 2008-04-21  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42279         Actually assign a value.
42280
42281 2008-04-20  Bruno Haible  <bruno@clisp.org>
42282
42283         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42284         take 2.
42285         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42286         'canonicalize-lgpl' module is also used.
42287         * lib/canonicalize-lgpl.c: Undo last change.
42288         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42289
42290 2008-04-20  Bruno Haible  <bruno@clisp.org>
42291
42292         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42293         config.h. Provide _mkdir based fallback for mingw.
42294         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42295         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42297         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42298         rather than defining mkdir in config.h.
42299         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42300         (gl_SYS_STAT_H_DEFAULTS): New macro.
42301         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42302         HAVE_IO_H any more.
42303         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42304         HAVE_DECL_MKDIR and HAVE_IO_H.
42305
42306 2008-04-20  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/isapipe.c: Port to native Windows platforms.
42309
42310 2008-04-20  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42313
42314 2008-04-21  Eric Blake  <ebb9@byu.net>
42315
42316         Work around preprocessors that don't handle UINTMAX_MAX.
42317         * lib/memchr2.c (memchr2): Avoid embedded #if.
42318         Reported by Alain Guibert, fix suggested by Bruno Haible.
42319
42320 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42321
42322         * doc/posix-functions/strftime.texi (strftime): Explain better
42323         Windows incompatibility.  Suggested by Micah Cowan
42324         <micah@cowan.name>.
42325
42326 2008-04-20  Bruno Haible  <bruno@clisp.org>
42327
42328         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42329         unistr/u8-mblen.
42330
42331 2008-04-20  Bruno Haible  <bruno@clisp.org>
42332
42333         Fix test failure on platforms with non-GNU iconv.
42334         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42335         (U_TO_U8): Use it, rather than u16_to_u8.
42336         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42337         units at the end of the input string.
42338         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42339
42340 2008-04-20  Bruno Haible  <bruno@clisp.org>
42341
42342         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42343         when the resulting length is 0.
42344         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42345
42346 2008-04-20  Bruno Haible  <bruno@clisp.org>
42347
42348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42349         works.
42350         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42351
42352 2008-04-20  Bruno Haible  <bruno@clisp.org>
42353
42354         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42355         * modules/tsearch-tests (configure.ac): Test for initstate function.
42356
42357 2008-04-20  Bruno Haible  <bruno@clisp.org>
42358
42359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42360         for nlink_t if missing.
42361         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42362
42363 2008-04-19  Bruno Haible  <bruno@clisp.org>
42364
42365         Work around snprintf bug on Linux libc5.
42366         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42368         gl_SNPRINTF_SIZE1.
42369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42370         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42371         that test failed.
42372         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42373         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42374         * modules/snprintf (Files): Add m4/printf.m4.
42375         * modules/vsnprintf (Files): Likewise.
42376         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42377         * doc/posix-functions/vsnprintf.texi: Likewise.
42378
42379 2008-04-19  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42382         from 0.0058 to less than 10^-7.
42383
42384 2008-04-19  Bruno Haible  <bruno@clisp.org>
42385
42386         Fix rounding when a precision is given.
42387         * lib/vasnprintf.c (is_borderline): New function.
42388         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42389         9...9x.
42390         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42391         %e, %g.
42392         * tests/test-vasprintf-posix.c (test_function): Likewise.
42393         * tests/test-snprintf-posix.h (test_function): Likewise.
42394         * tests/test-sprintf-posix.h (test_function): Likewise.
42395         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42396         * tests/test-printf-posix.h (test_function): Likewise.
42397         * tests/test-printf-posix.output: Update.
42398         Reported by John Darrington <john@darrington.wattle.id.au> via
42399         Ben Pfaff <blp@cs.stanford.edu>.
42400
42401 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42402
42403         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42404         Suggested by Bruno Haible <bruno@clisp.org>.
42405
42406 2008-04-17  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42409         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42410         implementation.
42411         Patch by Bruce Merry <bmerry@gmail.com>.
42412
42413 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42414
42415         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42416         doesn't work under Windows.
42417
42418 2008-04-16  Bruno Haible  <bruno@clisp.org>
42419
42420         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42421         New macros.
42422         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42423         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42424         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42425         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42426         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42427         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42428         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42429         macros.
42430         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42431         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42432         Northern Sotho, Uighur.
42433
42434 2008-04-16  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42437         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42438         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42439         Reported by Daniel Bergström <daniel@octocode.com>.
42440
42441 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42442             Bruno Haible  <bruno@clisp.org>
42443
42444         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42445         function.
42446         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42447         New functions, mostly extracted from gl_locale_name_default.
42448         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42449
42450 2008-04-16  Eric Blake  <ebb9@byu.net>
42451
42452         Adjust strtod detection to catch glibc 2.7 bug.
42453         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42454         Reported by John Gatewood Ham.
42455
42456 2008-04-16  Bruno Haible  <bruno@clisp.org>
42457
42458         Add tentative support for Linux libc5.
42459         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42460         * lib/fpurge.c (fpurge): Likewise.
42461         * lib/freadable.c (freadable): Likewise.
42462         * lib/freadahead.c (freadahead): Likewise.
42463         * lib/freading.c (freading): Likewise.
42464         * lib/freadptr.c (freadptr): Likewise.
42465         * lib/freadseek.c (freadptrinc): Likewise.
42466         * lib/fseeko.c (rpl_fseeko): Likewise.
42467         * lib/fseterr.c (fseterr): Likewise.
42468         * lib/fwritable.c (fwritable): Likewise.
42469         * lib/fwriting.c (fwriting): Likewise.
42470         Reported by Alain Guibert <alguibert+bts@free.fr>.
42471
42472 2008-04-15  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/mathl (configure.ac): Define module indicator.
42475
42476 2008-04-15  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/logl.c (logl): Remove unused variables.
42479
42480 2008-04-15  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42483         fails.
42484
42485 2008-04-15  Bruno Haible  <bruno@clisp.org>
42486
42487         * lib/trim.c (trim2): Fix argument of isspace() macro.
42488
42489 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42490
42491         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42492         to 0.
42493         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42494
42495 2008-04-14  Bruno Haible  <bruno@clisp.org>
42496
42497         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42498         AC_LANG_PROGRAM argument.
42499         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42500         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42502         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42503         * m4/math_h.m4 (gl_MATH_H): Likewise.
42504         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42506         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42507         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42508         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42509         * m4/regex.m4 (gl_REGEX): Likewise.
42510         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42511         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42513         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42514         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42518
42519 2008-04-14  Jim Meyering  <meyering@redhat.com>
42520
42521         test-strtod: fix typos: s/abs/fabs/
42522         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42523
42524 2008-04-13  Bruno Haible  <bruno@clisp.org>
42525
42526         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42527         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42528         module is also used and while not building the reloc-wrapper.
42529
42530 2008-04-13  Bruno Haible  <bruno@clisp.org>
42531
42532         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42533
42534 2008-04-13  Bruno Haible  <bruno@clisp.org>
42535
42536         Fix AIX compilation failure introduced on 2008-04-02.
42537         * tests/test-frexp.c (exp): Undefine before redefining.
42538         * tests/test-frexpl.c (exp): Likewise.
42539
42540 2008-04-13  Bruno Haible  <bruno@clisp.org>
42541
42542         Work around a HP-UX stdio bug.
42543         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42544         * tests/test-ftello.c (main): Likewise.
42545         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42546         * doc/posix-functions/ftello.texi: Likewise.
42547
42548 2008-04-13  Bruno Haible  <bruno@clisp.org>
42549
42550         Make test-signbit pass on HP-UX/hppa.
42551         * tests/test-signbit.c (minus_zerol): New variable.
42552         (test_signbitl): Use it.
42553
42554 2008-04-13  Bruno Haible  <bruno@clisp.org>
42555
42556         Make truncl work on OSF/1 4.0.
42557         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42558         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42559         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42561         HAVE_DECL_TRUNCL.
42562         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42563         HAVE_DECL_TRUNCL.
42564         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42565
42566 2008-04-13  Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42569
42570 2008-04-13  Bruno Haible  <bruno@clisp.org>
42571
42572         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42573         expression, so as to avoid HP-UX 11 cc compiler bug.
42574
42575 2008-04-13  Bruno Haible  <bruno@clisp.org>
42576
42577         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42578
42579 2008-04-13  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/git-merge-changelog.c: Remove empty declaration outside of
42582         functions.
42583
42584 2008-04-13  Bruno Haible  <bruno@clisp.org>
42585
42586         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42587
42588 2008-04-13  Bruno Haible  <bruno@clisp.org>
42589
42590         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42591         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42593         also if it exists but lacks definitions of the SHUT_* macros.
42594         * modules/sys_socket (Description): Update.
42595         Reported by Elbert Pol <e.pol@chello.nl>.
42596
42597 2008-04-13  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/localcharset.c (OS2): Don't redefine if already defined.
42600         Reported by Elbert Pol <e.pol@chello.nl>.
42601
42602 2008-04-13  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/binary-io.h [__EMX__]: Include <io.h>.
42605         Reported by Elbert Pol <e.pol@chello.nl>.
42606
42607 2008-04-12  Bruno Haible  <bruno@clisp.org>
42608
42609         * lib/fpucw.h: Enable the definitions also for x86_64.
42610         Needed for NetBSD/x86_64.
42611         Reported by Thomas Klausner <tk@giga.or.at>.
42612
42613 2008-04-12  Bruno Haible  <bruno@clisp.org>
42614
42615         * tests/test-strtod.c: Include isnand.h.
42616         (main): Use isnand instead of isnan.
42617         Reported by Jim Meyering.
42618
42619 2008-04-12  Bruno Haible  <bruno@clisp.org>
42620
42621         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42622         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42623
42624 2008-04-12  Jim Meyering  <meyering@redhat.com>
42625
42626         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42627
42628 2008-04-12  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42631         Reported by Elbert Pol <e.pol@chello.nl>.
42632
42633 2008-04-12  Eric Blake  <ebb9@byu.net>
42634
42635         Work around Solaris 10 math.h bug.
42636         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42637         (gl_MATH_H_DEFAULTS): Set up default.
42638         * modules/math (Makefile.am): Replace new indicators.
42639         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42640         * tests/test-math.c (main): Test this.
42641         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42642         * doc/posix-headers/math.texi (math.h): Mention bug.
42643         Reported by Nelson H. F. Beebe and Jim Meyering.
42644
42645 2008-04-11  Bruno Haible  <bruno@clisp.org>
42646
42647         Adapt to future versions of Apple GCC.
42648         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42649         Reported by Peter O'Gorman <peter@pogma.com>.
42650
42651 2008-04-11  Bruno Haible  <bruno@clisp.org>
42652
42653         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42654
42655 2008-04-11  Bruno Haible  <bruno@clisp.org>
42656
42657         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42658
42659         * modules/getaddrinfo-tests (Makefile.am): Define
42660         test_getaddrinfo_LDADD.
42661
42662 2008-04-11  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42665         (init): Fix syntax error.
42666         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42667         is declared.
42668
42669 2008-04-11  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42672         * modules/glob (Depends-on): Add stdbool.
42673
42674 2008-04-11  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/trim.c: Include <string.h>.
42677
42678 2008-04-11  Eric Blake  <ebb9@byu.net>
42679
42680         Avoid compile failure on OS/2.
42681         * lib/regex_internal.h (internal_function): Disable optimization
42682         on OS/2 (__EMX__), where it caused compiler error.
42683         Reported by Elbert Pol.
42684
42685 2008-04-11  Bruno Haible  <bruno@clisp.org>
42686
42687         Flush the standard error stream before aborting. Needed on mingw.
42688         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42689         * tests/test-array_list.c (ASSERT): Likewise.
42690         * tests/test-array_oset.c (ASSERT): Likewise.
42691         * tests/test-avltree_list.c (ASSERT): Likewise.
42692         * tests/test-avltree_oset.c (ASSERT): Likewise.
42693         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42694         * tests/test-binary-io.c (ASSERT): Likewise.
42695         * tests/test-byteswap.c (ASSERT): Likewise.
42696         * tests/test-c-ctype.c (ASSERT): Likewise.
42697         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42698         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42699         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42700         * tests/test-c-strstr.c (ASSERT): Likewise.
42701         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42702         * tests/test-canonicalize.c (ASSERT): Likewise.
42703         * tests/test-carray_list.c (ASSERT): Likewise.
42704         * tests/test-ceilf1.c (ASSERT): Likewise.
42705         * tests/test-ceilf2.c (ASSERT): Likewise.
42706         * tests/test-ceill.c (ASSERT): Likewise.
42707         * tests/test-count-one-bits.c (ASSERT): Likewise.
42708         * tests/test-fbufmode.c (ASSERT): Likewise.
42709         * tests/test-fflush2.c (ASSERT): Likewise.
42710         * tests/test-floorf1.c (ASSERT): Likewise.
42711         * tests/test-floorf2.c (ASSERT): Likewise.
42712         * tests/test-floorl.c (ASSERT): Likewise.
42713         * tests/test-fopen.c (ASSERT): Likewise.
42714         * tests/test-fpending.c (ASSERT): Likewise.
42715         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42716         * tests/test-fpurge.c (ASSERT): Likewise.
42717         * tests/test-freadable.c (ASSERT): Likewise.
42718         * tests/test-freadahead.c (ASSERT): Likewise.
42719         * tests/test-freading.c (ASSERT): Likewise.
42720         * tests/test-freadptr.c (ASSERT): Likewise.
42721         * tests/test-freadptr2.c (ASSERT): Likewise.
42722         * tests/test-freadseek.c (ASSERT): Likewise.
42723         * tests/test-freopen.c (ASSERT): Likewise.
42724         * tests/test-frexp.c (ASSERT): Likewise.
42725         * tests/test-frexpl.c (ASSERT): Likewise.
42726         * tests/test-fseek.c (ASSERT): Likewise.
42727         * tests/test-fseeko.c (ASSERT): Likewise.
42728         * tests/test-fstrcmp.c (ASSERT): Likewise.
42729         * tests/test-ftell.c (ASSERT): Likewise.
42730         * tests/test-ftello.c (ASSERT): Likewise.
42731         * tests/test-func.c (ASSERT): Likewise.
42732         * tests/test-fwritable.c (ASSERT): Likewise.
42733         * tests/test-fwriting.c (ASSERT): Likewise.
42734         * tests/test-getdelim.c (ASSERT): Likewise.
42735         * tests/test-getline.c (ASSERT): Likewise.
42736         * tests/test-i-ring.c (ASSERT): Likewise.
42737         * tests/test-iconv-utf.c (ASSERT): Likewise.
42738         * tests/test-iconv.c (ASSERT): Likewise.
42739         * tests/test-isfinite.c (ASSERT): Likewise.
42740         * tests/test-isnand.c (ASSERT): Likewise.
42741         * tests/test-isnanf.c (ASSERT): Likewise.
42742         * tests/test-isnanl.h (ASSERT): Likewise.
42743         * tests/test-ldexpl.c (ASSERT): Likewise.
42744         * tests/test-linked_list.c (ASSERT): Likewise.
42745         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42746         * tests/test-localename.c (ASSERT): Likewise.
42747         * tests/test-lseek.c (ASSERT): Likewise.
42748         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42749         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42750         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42751         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42752         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42753         * tests/test-mbschr.c (ASSERT): Likewise.
42754         * tests/test-mbscspn.c (ASSERT): Likewise.
42755         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42756         * tests/test-mbspbrk.c (ASSERT): Likewise.
42757         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42758         * tests/test-mbsrchr.c (ASSERT): Likewise.
42759         * tests/test-mbsspn.c (ASSERT): Likewise.
42760         * tests/test-mbsstr1.c (ASSERT): Likewise.
42761         * tests/test-mbsstr2.c (ASSERT): Likewise.
42762         * tests/test-mbsstr3.c (ASSERT): Likewise.
42763         * tests/test-memchr2.c (ASSERT): Likewise.
42764         * tests/test-memmem.c (ASSERT): Likewise.
42765         * tests/test-open.c (ASSERT): Likewise.
42766         * tests/test-printf-frexp.c (ASSERT): Likewise.
42767         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42768         * tests/test-printf-posix.c (ASSERT): Likewise.
42769         * tests/test-quotearg.c (ASSERT): Likewise.
42770         * tests/test-rbtree_list.c (ASSERT): Likewise.
42771         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42772         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42773         * tests/test-round1.c (ASSERT): Likewise.
42774         * tests/test-roundf1.c (ASSERT): Likewise.
42775         * tests/test-roundl.c (ASSERT): Likewise.
42776         * tests/test-signbit.c (ASSERT): Likewise.
42777         * tests/test-sleep.c (ASSERT): Likewise.
42778         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42779         * tests/test-snprintf.c (ASSERT): Likewise.
42780         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42781         * tests/test-stat-time.c (ASSERT): Likewise.
42782         * tests/test-strcasestr.c (ASSERT): Likewise.
42783         * tests/test-strerror.c (ASSERT): Likewise.
42784         * tests/test-striconv.c (ASSERT): Likewise.
42785         * tests/test-striconveh.c (ASSERT): Likewise.
42786         * tests/test-striconveha.c (ASSERT): Likewise.
42787         * tests/test-strsignal.c (ASSERT): Likewise.
42788         * tests/test-strstr.c (ASSERT): Likewise.
42789         * tests/test-strtod.c (ASSERT): Likewise.
42790         * tests/test-trunc1.c (ASSERT): Likewise.
42791         * tests/test-trunc2.c (ASSERT): Likewise.
42792         * tests/test-truncf1.c (ASSERT): Likewise.
42793         * tests/test-truncf2.c (ASSERT): Likewise.
42794         * tests/test-truncl.c (ASSERT): Likewise.
42795         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42796         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42797         * tests/test-vasnprintf.c (ASSERT): Likewise.
42798         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42799         * tests/test-vasprintf.c (ASSERT): Likewise.
42800         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42801         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42802         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42803         * tests/test-vsnprintf.c (ASSERT): Likewise.
42804         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42805         * tests/test-wcwidth.c (ASSERT): Likewise.
42806         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42807         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42808         * tests/test-xvasprintf.c (ASSERT): Likewise.
42809         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42810         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42811         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42812         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42813         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42814         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42815         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42816         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42817         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42818         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42819         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42820         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42821         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42822         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42823         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42824         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42825         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42826         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42827         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42828         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42829         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42830         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42831         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42832         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42833         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42834         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42835         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42836         * tests/unictype/test-combining.c (ASSERT): Likewise.
42837         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42838         * tests/unictype/test-digit.c (ASSERT): Likewise.
42839         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42840         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42841         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42842         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42843         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42844         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42845         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42846         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42847         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42848         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42849         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42850         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42851         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42852         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42853         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42854         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42855         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42856         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42857         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42858         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42859         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42860         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42861         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42862         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42863         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42864         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42865         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42866         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42867         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42868         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42869         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42870         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42871         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42872         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42873         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42874         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42875         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42876         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42877         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42878         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42879         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42880         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42881         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42882         Reported by Eric Blake.
42883
42884 2008-04-11  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/wchar.in.h: Tweak comment.
42887
42888 2008-04-11  Bruno Haible  <bruno@clisp.org>
42889
42890         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42891         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42892         gl_COMMON.
42893         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42894
42895 2008-04-11  Bruno Haible  <bruno@clisp.org>
42896
42897         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42898
42899 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42900
42901         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42902         of attempting to use non-existing /dev/*random.  Based on patch
42903         from Adam Strzelecki <ono@java.pl> in
42904         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42905
42906 2008-04-08  Bruno Haible  <bruno@clisp.org>
42907
42908         Add tentative support for emx+gcc.
42909         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42910         * lib/fpurge.c (fpurge): Likewise.
42911         * lib/freadable.c (freadable): Likewise.
42912         * lib/freadahead.c (freadahead): Likewise.
42913         * lib/freading.c (freading): Likewise.
42914         * lib/freadptr.c (freadptr): Likewise.
42915         * lib/freadseek.c (freadptrinc): Likewise.
42916         * lib/fseeko.c (rpl_fseeko): Likewise.
42917         * lib/fseterr.c (fseterr): Likewise.
42918         * lib/fwritable.c (fwritable): Likewise.
42919         * lib/fwriting.c (fwriting): Likewise.
42920         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42921
42922 2008-04-09  Eric Blake  <ebb9@byu.net>
42923
42924         Avoid some autoconf warnings.
42925         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42926         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42927         * m4/afs.m4 (gl_AFS): Likewise.
42928         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42929         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42930         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42931         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42932         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42933         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42934         (AC_CHECK_DECLS_ONCE): Likewise.
42935         Rename file...
42936         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42937         gnulib-tool requires autoconf 2.59 or better.
42938         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42939
42940 2008-04-08  Eric Blake  <ebb9@byu.net>
42941
42942         Use 'git describe --match' if present (added in git 1.5.5).
42943         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42944         if possible.
42945
42946 2008-04-08  Bruno Haible  <bruno@clisp.org>
42947
42948         Add tentative support for OpenServer.
42949         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42950         _ptr, _cnt.
42951         * lib/fpurge.c (fpurge): Likewise.
42952         * lib/freadable.c (freadable): Likewise.
42953         * lib/freadahead.c (freadahead): Likewise.
42954         * lib/freading.c (freading): Likewise.
42955         * lib/freadptr.c (freadptr): Likewise.
42956         * lib/freadseek.c (freadptrinc): Likewise.
42957         * lib/fseeko.c (rpl_fseeko): Likewise.
42958         * lib/fseterr.c (fseterr): Likewise.
42959         * lib/fwritable.c (fwritable): Likewise.
42960         * lib/fwriting.c (fwriting): Likewise.
42961         Reported by Roger Cornelius <rac@tenzing.org> and
42962         Brian K. White <brian@aljex.com>.
42963
42964 2008-04-06  Jim Meyering  <meyering@redhat.com>
42965
42966         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42967
42968 2008-04-06  Bruno Haible  <bruno@clisp.org>
42969
42970         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42971         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42972         * tests/test-printf-posix.sh: Likewise.
42973         * tests/test-vfprintf-posix.sh: Likewise.
42974         * tests/test-vprintf-posix.sh: Likewise.
42975         * tests/test-xprintf-posix.sh: Likewise.
42976
42977 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42978
42979         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42980         hide error from 'ls', needed on OS/2.
42981         Report by Elbert Pol <elbert.pol@gmail.com>.
42982
42983 2008-04-04  Eric Blake  <ebb9@byu.net>
42984
42985         Make test-fseeko.c failures meaningful.
42986         * tests/test-fseeko.c: Print line number on failure.
42987         * tests/test-fseek.c: Likewise.
42988         Reported by Nelson H. F. Beebe.
42989
42990         Improve strtod bug detection check.
42991         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42992         required for Solaris 10.
42993         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42994
42995 2008-04-04  Bruno Haible  <bruno@clisp.org>
42996
42997         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42998         by m4/setenv.m4.
42999
43000 2008-04-03  Eric Blake  <ebb9@byu.net>
43001
43002         Ensure sane .version contents.
43003         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43004         version string.
43005         * build-aux/git-version-gen: Improve documentation.
43006
43007         Make GNU make output nicer.
43008         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43009         MAKECMDGOALS to enforce message for all command line targets.  Set
43010         srcdir for use in maint.mk.
43011
43012         Another maintainer tweak.
43013         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43014         a target that regenerates version.
43015
43016 2008-04-03  Jim Meyering  <meyering@redhat.com>
43017
43018         vc-list-files: don't cause coreutils "make po-check" failure
43019         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43020
43021 2008-04-03  Eric Blake  <ebb9@byu.net>
43022
43023         Allow VPATH usage of vc-list-files.
43024         * build-aux/vc-list-files (scriptversion): Add timestamp.
43025         (options): Add --help, --version, -C.
43026         (CVS): Support installed cvsu.
43027
43028 2008-04-02  Bruno Haible  <bruno@clisp.org>
43029
43030         Avoid some "statement with no effect" warnings from gcc.
43031         * tests/test-wctype.c (main): Explicitly ignore unused values.
43032         Reported by Jim Meyering.
43033
43034 2008-04-02  Jim Meyering  <meyering@redhat.com>
43035
43036         Avoid some warnings from "gcc -Wshadow".
43037         * tests/test-frexp.c (exp): Define to a different identifier.
43038         * tests/test-frexpl.c (exp): Likewise.
43039
43040 2008-04-03  Jim Meyering  <meyering@redhat.com>
43041
43042         bootstrap: remove dangling *.[ch] symlinks from lib
43043         * build-aux/bootstrap [dangling symlink removal]: Move find's
43044         -depth option to precede all others, to avoid a warning.
43045         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43046
43047 2008-04-02  Bruno Haible  <bruno@clisp.org>
43048
43049         Avoid some warnings from "gcc -Wshadow".
43050         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43051         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43052         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43053         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43054         Reported by Jim Meyering.
43055
43056 2008-04-01  Bruno Haible  <bruno@clisp.org>
43057
43058         Fix test to work on IRIX 6.5 with cc.
43059         * tests/test-math.c (numeric_equal): New function.
43060         (main): Use it.
43061
43062 2008-04-01  Bruno Haible  <bruno@clisp.org>
43063
43064         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43065
43066 2008-04-01  Bruno Haible  <bruno@clisp.org>
43067
43068         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43069         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43070         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43071         (Depends-on): Remove math.
43072
43073         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43075         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43076         (Depends-on): Remove math.
43077
43078         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43079         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43080         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43081         (Depends-on): Remove math.
43082         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43083         (Depends-on): Remove math.
43084
43085         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43086         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43087         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43088         (Depends-on): Remove math.
43089         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43090         (Depends-on): Remove math.
43091
43092         * tests/test-round1.c: Include nan.h.
43093         (main): Use NaNd instead of NAN.
43094         * modules/round-tests (Files): Add tests/nan.h.
43095
43096         * tests/test-trunc1.c: Include nan.h.
43097         (main): Use NaNd instead of NAN.
43098         * modules/trunc-tests (Files): Add tests/nan.h.
43099
43100         * tests/test-roundf1.c: Include nan.h.
43101         (main): Use NaNf instead of NAN.
43102         * modules/roundf-tests (Files): Add tests/nan.h.
43103
43104         * tests/test-truncf1.c: Include nan.h.
43105         (main): Use NaNf instead of NAN.
43106         * modules/truncf-tests (Files): Add tests/nan.h.
43107
43108         * tests/test-ceilf1.c: Include nan.h.
43109         (main): Use NaNf instead of NAN.
43110         * modules/ceilf-tests (Files): Add tests/nan.h.
43111
43112         * tests/test-floorf1.c: Include nan.h.
43113         (main): Use NaNf instead of NAN.
43114         * modules/floorf-tests (Files): Add tests/nan.h.
43115
43116         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43117         (main): Use NaNf instead of NAN.
43118         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43119
43120         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43121         (main): Use NaNd instead of NAN.
43122         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43123
43124         * tests/test-frexp.c: Include nan.h.
43125         (main): Use NaNd instead of NAN.
43126         * modules/frexp-tests (Files): Add tests/nan.h.
43127
43128         * lib/isnan.c: Don't include <math.h>.
43129         (FUNC): Don't use NAN macro.
43130         * modules/isnand-nolibm (Depends-on): Remove math.
43131         * modules/isnanf-nolibm (Depends-on): Remove math.
43132         * modules/isnanl (Depends-on): Remove math.
43133         * modules/isnanl-nolibm (Depends-on): Remove math.
43134
43135         * tests/nan.h: New file.
43136
43137 2008-04-01  Eric Blake  <ebb9@byu.net>
43138
43139         Fix typos.
43140         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43141         values to be the right type.
43142
43143         For now, cater to gnulib strtod inaccuracies.
43144         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43145         fractional results.  While not as nice from a QoI perspective, it
43146         is a quicker patch than correctly implementing decimal to binary
43147         rounding.
43148
43149 2008-03-31  Eric Blake  <ebb9@byu.net>
43150
43151         Guarantee a definition of NAN.
43152         * lib/math.in.h (NAN): Define if missing.
43153         * tests/test-math.c (main): Test it.
43154         * doc/posix-headers/math.texi (math.h): Document this.
43155         * lib/isnan.c (rpl_isnand): Use it.
43156         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43157         * tests/test-floorf1.c (NaN): Likewise.
43158         * tests/test-frexp.c (NaN): Likewise.
43159         * tests/test-isnand.c (NaN): Likewise.
43160         * tests/test-isnanf.c (NaN): Likewise.
43161         * tests/test-round1.c (NaN): Likewise.
43162         * tests/test-roundf1.c (NaN): Likewise.
43163         * tests/test-snprintf-posix.h (NaN): Likewise.
43164         * tests/test-sprintf-posix.h (NaN): Likewise.
43165         * tests/test-trunc1.c (NaN): Likewise.
43166         * tests/test-truncf1.c (NaN): Likewise.
43167         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43168         * tests/test-vasprintf-posix.c (NaN): Likewise.
43169         * modules/isnand-nolibm (Depends-on): Add math.
43170         * modules/isnanf-nolibm (Depends-on): Likewise.
43171         * modules/isnanl (Depends-on): Likewise.
43172         * modules/isnanl-nolibm (Depends-on): Likewise.
43173         * modules/snprintf-posix-tests (Depends-on): Likewise.
43174         * modules/sprintf-posix-tests (Depends-on): Likewise.
43175         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43176         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43177         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43178         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43179
43180 2008-03-31  Bruno Haible  <bruno@clisp.org>
43181
43182         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43183         * doc/posix-functions/strtod.texi: Likewise.
43184
43185 2008-03-31  Bruno Haible  <bruno@clisp.org>
43186
43187         * tests/test-strtod.c (main): Don't use C99 syntax.
43188
43189 2008-03-31  Bruno Haible  <bruno@clisp.org>
43190
43191         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43192         Reported by Eric Blake.
43193
43194 2008-03-31  Jim Meyering  <meyering@redhat.com>
43195
43196         Don't compare actual signbit return values.
43197         * tests/test-strtod.c (main): Rather, compare only their
43198         zero/non-zero nature.
43199
43200 2008-03-31  Eric Blake  <ebb9@byu.net>
43201
43202         More strtod documentation.
43203         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43204         failures as distinct bugs.
43205
43206 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43207
43208         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43209         Problem reported by Erik Benada in
43210         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43211
43212 2008-03-30  Bruno Haible  <bruno@clisp.org>
43213
43214         * tests/test-strtod.c: Add comments about which assertion fails on which
43215         platform.
43216         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43217
43218 2008-03-30  Eric Blake  <ebb9@byu.net>
43219
43220         Test signbit behavior on zeros.
43221         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43222         (test_signbitd, test_signbitl): Likewise.
43223
43224         More strtod touchups.
43225         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43226         sign of negative underflow, for now.  Use .5, not .1.
43227         * doc/posix-functions/strtod.texi (strtod): Mention these
43228         limitations.
43229         Reported by Jim Meyering.
43230
43231 2008-03-30  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43234         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43235
43236 2008-03-30  Bruno Haible  <bruno@clisp.org>
43237
43238         Avoid failure when attempting to return empty iconv results on some
43239         platforms.
43240         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43241         allocation, don't report ENOMEM when the resulting string is empty.
43242
43243 2008-03-30  Bruno Haible  <bruno@clisp.org>
43244
43245         Fix buffer overrun.
43246         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43247         Don't consider the width for tmp_length. Check count against tmp_length
43248         before doing the padding. Ensure enough allocation during padding.
43249
43250 2008-03-30  Eric Blake  <ebb9@byu.net>
43251
43252         strtod touchups.
43253         * lib/strtod.c (strtod): Avoid compiler warnings.
43254         Reported by Jim Meyering.
43255
43256 2008-03-30  Bruno Haible  <bruno@clisp.org>
43257
43258         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43259         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43260         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43261         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43262         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43263         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43264         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43265         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43266
43267         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43268         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43269         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43270         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43271         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43272         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43273         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43274         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43275
43276         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43277         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43278         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43279         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43280         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43281         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43282         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43283         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43284
43285         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43286         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43287
43288         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43289         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43290
43291         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43292         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43293
43294         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43296         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43297
43298         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43300         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43301
43302         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43304         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43305
43306         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43308         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43309
43310         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43311         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43313         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43314         (Depends-on): Add EOVERFLOW.
43315         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43316         (Depends-on): Add EOVERFLOW.
43317         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43318         (Depends-on): Add EOVERFLOW.
43319         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43320         (Depends-on): Add EOVERFLOW.
43321         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43322         (Depends-on): Add EOVERFLOW.
43323         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43324         (Depends-on): Add EOVERFLOW.
43325         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43326         (Depends-on): Add EOVERFLOW.
43327         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43328         (Depends-on): Add EOVERFLOW.
43329
43330         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43332         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43333
43334         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43336         * modules/snprintf (Depends-on): Add EOVERFLOW.
43337
43338         * lib/poll.c (EOVERFLOW): Remove fallback.
43339         * modules/poll (Depends-on): Add EOVERFLOW.
43340
43341         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43342         * modules/getugroups (Depends-on): Add EOVERFLOW.
43343
43344         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43345         * modules/getdelim (Depends-on): Add EOVERFLOW.
43346
43347         * lib/ftell.c (EOVERFLOW): Remove fallback.
43348         * modules/ftell (Depends-on): Add EOVERFLOW.
43349
43350         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43352         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43353
43354         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43355
43356         * modules/EOVERFLOW-tests: New file.
43357         * tests/test-EOVERFLOW.c: New file.
43358
43359         * modules/EOVERFLOW: New file.
43360         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43361
43362 2008-03-30  Bruno Haible  <bruno@clisp.org>
43363
43364         Fix bug introduced on 2007-06-10.
43365         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43366         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43367
43368 2008-03-30  Bruno Haible  <bruno@clisp.org>
43369
43370         Improve freadseek's efficiency after ungetc.
43371         * lib/freadseek.c: Include freadahead.h.
43372         (freadptrinc): New function, extracted from freadseek.
43373         (freadseek): Use it in a loop. Use freadahead to determine the number
43374         of loop iterations.
43375         * modules/freadseek (Depends-on): Add freadahead.
43376         (configure.ac): Require AC_C_INLINE.
43377
43378 2008-03-30  Bruno Haible  <bruno@clisp.org>
43379
43380         * lib/freadseek.c (freadseek): Don't ignore the return value of
43381         freadptr.
43382
43383 2008-03-29  Eric Blake  <ebb9@byu.net>
43384
43385         Add hex float support.
43386         * modules/strtod (Depends-on): Add c-ctype.
43387         (Link): Mention POW_LIB.
43388         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43389         whitespace between 'e' and exponent.
43390         * tests/test-strtod.c (main): Enable hex float tests.
43391         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43392         now provides.
43393
43394         Document various strtod bugs, with some fixes.
43395         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43396         "-0x", "inf", "nan", and hex constants.
43397         * doc/posix-functions/atof.texi (atof): Likewise.
43398         * modules/stdlib (Makefile.am): Support strtod.
43399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43400         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43401         detect additional strtod bugs.
43402         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43403         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43404         bool where appropriate.  Parse 'inf' and 'nan'.
43405         * tests/test-strtod.c: New file.
43406         * modules/strtod (Depends-on): Add stdbool, stdlib.
43407         (configure.ac): Turn on module indicator.
43408         * modules/strtod-tests: New module.
43409
43410 2008-03-29  Eric Blake  <ebb9@byu.net>
43411
43412         Fix ftell on mingw.
43413         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43414         * modules/ftell-tests (Depends-on): Add binary-io.
43415         * modules/ftello-tests (Depends-on): Likewise.
43416         * tests/test-ftell.c (main): Enhance test to cover behavior after
43417         ungetc.  Enforce binary mode.
43418         * tests/test-ftello.c (main): Likewise.
43419
43420         Pass test-freadseek on cygwin.
43421         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43422         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43423         ungetc buffer.
43424
43425         * tests/test-fflush2.c (main): Fix typo.
43426
43427 2008-03-29  Bruno Haible  <bruno@clisp.org>
43428
43429         * tests/test-fflush2.c (main): Temporarily disable the contents of
43430         this test.
43431         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43432         Reported by Eric Blake.
43433
43434 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43435
43436         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43437         (GC_SHA224_DIGEST_SIZE): Add.
43438
43439         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43440         (gc_hash_digest_length): Likewise.
43441         (gc_hash_buffer): Likewise.
43442
43443 2008-03-25  Bruno Haible  <bruno@clisp.org>
43444
43445         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43446         detail which gettext release to use.
43447         Reported by Simon Josefsson.
43448
43449 2008-03-26  Jim Meyering  <meyering@redhat.com>
43450
43451         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43452         * modules/gnumakefile (clean-GNUmakefile): Also, use
43453         test ... && ... || : syntax rather than if-then ... fi.
43454
43455         gnumakefile: Don't double-quote-expand $(VPATH) value.
43456         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43457
43458 2008-03-24  Eric Blake  <ebb9@byu.net>
43459
43460         Alter GNUmakefile to install into top directory.
43461         * modules/maintainer-makefile: Split, and add dependency...
43462         * modules/gnumakefile: to this new module.
43463         * build-aux/GNUmakefile: Move...
43464         * top/GNUmakefile: ...here.
43465         * build-aux/maint.mk: Move...
43466         * top/maint.mk: ...here.
43467         * MODULES.html.sh (Support for maintaining...): Document new
43468         module.
43469
43470 2008-03-23  Bruno Haible  <bruno@clisp.org>
43471
43472         * gnulib-tool: New options --vc-files, --no-vc-files.
43473         (func_usage): Document them.
43474         (vc_files): New variable.
43475         (func_import): Consider vc_files.
43476         (func_create_testdir): Set vc_files to empty.
43477         Suggested by Jim Meyering and Karl Berry.
43478
43479 2008-03-23  Bruno Haible  <bruno@clisp.org>
43480
43481         Fix regex compilation error on HP-UX 11.
43482         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43483         * modules/regex (Files): Add m4/mbstate_t.m4.
43484         Reported by Ton Voon <ton.voon@altinity.com>.
43485
43486 2008-03-23  Bruno Haible  <bruno@clisp.org>
43487
43488         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43489
43490 2008-03-23  Eric Blake  <ebb9@byu.net>
43491             Bruno Haible  <bruno@clisp.org>
43492
43493         Install files from top/ in the destination directory.
43494         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43495         augmentation also for the files from top/.
43496         (func_import, func_create_testdir): Rewrite file names:
43497         top/filename -> filename.
43498
43499 2008-03-23  Bruno Haible  <bruno@clisp.org>
43500
43501         Tweak "gnulib --version" output.
43502         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43503
43504 2008-03-23  Bruno Haible  <bruno@clisp.org>
43505
43506         Tweak "gnulib --version" output.
43507         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43508         rather than contents of ChangeLog, when possible.
43509
43510 2008-03-21  Eric Blake  <ebb9@byu.net>
43511
43512         More --version tweaks.
43513         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43514         date of last ChangeLog entry.
43515
43516 2008-03-21  Jim Meyering  <meyering@redhat.com>
43517
43518         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43519
43520 2008-03-20  Eric Blake  <ebb9@byu.net>
43521
43522         VPATH fix.
43523         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43524
43525 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43526
43527         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43528         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43529
43530 2008-03-20  Eric Blake  <ebb9@byu.net>
43531
43532         Sync GNUmakefile with coreutils.
43533         * build-aux/GNUmakefile (have-Makefile): Rename...
43534         (_have-Makefile): ...to this, for namespace consideration.
43535         (GNUmakefile.cfg): Include, if present.
43536         (_autoreconf): Define a default.
43537         (_is-dist-target): New rule for rebuilds to pick up intra-release
43538         version.
43539         (maint-cfg.mk): Rename...
43540         (cfg.mk): ...to this.
43541
43542 2008-03-18  Jim Meyering  <meyering@redhat.com>
43543
43544         New script and module: mktempd
43545         * MODULES.html.sh (maint+release support): Add mktempd.
43546         * build-aux/mktempd: New file.
43547         * modules/mktempd: New file.
43548
43549 2008-03-15  Jim Meyering  <meyering@redhat.com>
43550
43551         Undo last change.
43552         * lib/sha1.c, lib/md5.c: 63 != ~63.
43553         Reported by Andreas Schwab.
43554
43555         sha1.c, md5.c: Hoist a redundant expression.
43556         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43557         "ctx->buflen" only once, before calling *_process_block.
43558         * lib/md5.c (md5_process_bytes): Likewise.
43559
43560 2008-03-14  Eric Blake  <ebb9@byu.net>
43561
43562         Bump copyright year in files generated by gnulib-tool.
43563         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43564         gnulib-tool, rather than hard-coding it.
43565
43566         Fix 'gnulib-tool --version' output to work with git.
43567         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43568         (startup): ...here.
43569         (func_version): Use it to invoke git-version-gen, rather than
43570         relying on CVS keyword expansion.  Modernize wording.
43571         (cvsdatestamp, last_checkin_date, version): Kill unused
43572         variables.
43573
43574 2008-03-12  Jim Meyering  <meyering@redhat.com>
43575
43576         Recognize optional cast of the argument to free.
43577         * build-aux/useless-if-before-free: Update regexps.
43578
43579         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43580
43581 2008-03-11  Bruno Haible  <bruno@clisp.org>
43582
43583         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43584         by a single package.
43585         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43586         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43587         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43588         Reported by Sam Steingold <sds@gnu.org>.
43589
43590 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43591
43592         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43593         repositories.
43594
43595 2008-03-11  Bruno Haible  <bruno@clisp.org>
43596
43597         Avoid conflicts between local macro definitions.
43598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43599         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43600
43601 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43602             Bruno Haible  <bruno@clisp.org>
43603
43604         Make va_copy work with some version of xlc on AIX 5.1.
43605         * lib/stdarg.in.h: New file.
43606         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43607         On AIX, use a <stdarg.h> file substitute.
43608         * modules/stdarg (Files): Add lib/stdarg.in.h.
43609         (Depends-on): Add include_next.
43610         (Makefile.am): Build a stdarg.h substitute if requested.
43611         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43612
43613 2008-03-10  Bruno Haible  <bruno@clisp.org>
43614
43615         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43616         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43617         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43618
43619 2008-03-10  Bruno Haible  <bruno@clisp.org>
43620
43621         * modules/stdlib (Depends-on): Add include_next, remove
43622         absolute-header.
43623
43624 2008-03-09  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/freadahead.h (freadahead): Document more precisely.
43627         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43628         the sum of both buffer sizes.
43629         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43630         * NEWS: Document the change.
43631
43632 2008-03-09  Bruno Haible  <bruno@clisp.org>
43633
43634         Extend freadptr to return also the buffer size.
43635         * lib/freadptr.h (freadptr): Add sizep argument.
43636         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43637         (freadptr): Add sizep argument. Determine buffer size like freadahead
43638         does.
43639         * tests/test-freadptr.c: Don't include freadahead.h.
43640         (main): Adapt for new calling convention of freadptr.
43641         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43642         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43643         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43644         tests/test-freadptr2.sh.
43645         (Depends): Remove freadahead.
43646         (TESTS): Add test-freadptr2.sh.
43647         (check_PROGRAMS): Add test-freadptr2.
43648
43649 2008-03-09  Bruno Haible  <bruno@clisp.org>
43650
43651         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43652         Report and solution by Simon Josefsson.
43653
43654 2008-03-06  Bruno Haible  <bruno@clisp.org>
43655
43656         Make fflush after ungetc work on BSD platforms.
43657         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43658         * tests/test-fflush2.c: New file.
43659         * tests/test-fflush2.sh: New file.
43660         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43661         tests/test-fflush2.c.
43662         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43663         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43664
43665 2008-03-06  Eric Blake  <ebb9@byu.net>
43666
43667         Likewise for ftello.
43668         * modules/ftello (Dependencies): Add extensions.
43669         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43670
43671 2008-03-06  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/fseeko (Dependencies): Add extensions.
43674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43675         Needed on glibc systems.
43676
43677 2008-03-06  Bruno Haible  <bruno@clisp.org>
43678
43679         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43680         email address.
43681         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43682
43683 2008-03-06  Bruno Haible  <bruno@clisp.org>
43684
43685         * users.txt: Add libgnupdf.
43686
43687 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43688
43689         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43690         (Header File Substitutes, Function Substitutes,
43691         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43692         (Build robot for gnulib): Fix typo.
43693
43694 2008-03-06  Bruno Haible  <bruno@clisp.org>
43695
43696         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43697         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43698
43699 2008-03-06  Bruno Haible  <bruno@clisp.org>
43700
43701         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43702         * doc/gnulib.texi: Include it.
43703
43704 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43705
43706         * modules/func (License): Change license to unlimited; there was
43707         no LGPL parts in the module anyway.
43708
43709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43710
43711         * modules/__func__: Renamed to modules/func.
43712         * modules/__func__-tests: Renamed to modules/func-tests.
43713         * tests/test-__func__.c: Renamed to tests/test-func.c.
43714         * m4/__func__.m4: Renamed to m4/func.m4.
43715         * doc/gnulib.texi (__func__): Section renamed to func.
43716         Suggested by Eric Blake <ebb9@byu.net>.
43717
43718 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43719
43720         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43721         about __func__.  Make example self-contained.  Suggested by Eric
43722         Blake <ebb9@byu.net>.
43723
43724         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43725         Suggested by Eric Blake <ebb9@byu.net>.
43726
43727 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43728
43729         * modules/__func__: New file.
43730         * modules/__func__-tests: New file.
43731         * tests/test-__func__.c: New file.
43732         * m4/__func__.m4: New file.
43733         * doc/gnulib.texi (__func__): Document __func__ module.
43734
43735 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43736
43737         * modules/byteswap (License): Re-license as LGPLv2+.
43738
43739 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43740
43741         * doc/Makefile: Add pdf target.
43742
43743 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43744
43745         * modules/inline (License): Use 'unlimited', since there are only
43746         *.m4 files in this module.
43747
43748 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43749             Bruno Haible  <bruno@clisp.org>
43750
43751         Add support for HP C 7.1 on OpenVMS 8.3.
43752         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43753
43754 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43755
43756         Update VMS specifics.
43757         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43758
43759 2008-03-02  Jim Meyering  <meyering@redhat.com>
43760
43761         Remove the last dependency on the "free" module.
43762         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43763         Reported by Bob Proulx.
43764
43765         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43766
43767         Remove useless "if" tests before free.  Deprecate "free" module.
43768         * doc/posix-functions/free.texi: Mention that this
43769         module is no longer useful.
43770         * modules/free (Notice): Say this module is obsolete.
43771         * modules/readutmp (Depends-on): Remove free.
43772         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43773         * lib/putenv.c (putenv): Likewise.
43774         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43775         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43776         * tests/test-c-strcasestr.c (main): Likewise.
43777         * tests/test-c-strstr.c (main): Likewise.
43778         * tests/test-mbscasestr1.c (main): Likewise.
43779         * tests/test-mbscasestr2.c (main): Likewise.
43780         * tests/test-mbsstr1.c (main): Likewise.
43781         * tests/test-mbsstr2.c (main): Likewise.
43782         * tests/test-memmem.c (main): Likewise.
43783         * tests/test-strcasestr.c (main): Likewise.
43784         * tests/test-striconv.c (main): Likewise.
43785         * tests/test-striconveh.c (main): Likewise.
43786         * tests/test-striconveha.c (main): Likewise.
43787         * tests/test-strstr.c (main): Likewise.
43788
43789         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43790
43791         bootstrap: sync from coreutils again
43792         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43793
43794 2008-03-01  Jim Meyering  <meyering@redhat.com>
43795
43796         bootstrap: sync from coreutils
43797         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43798         also when the target doesn't exist.
43799
43800 2008-03-01  Eric Blake  <ebb9@byu.net>
43801
43802         Fix bugs in last patch.
43803         * lib/memchr2.c (memchr2): Fix typo.
43804         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43805         extension.
43806         Reported by Bruce Korb.
43807
43808         New module 'memchr2'.
43809         * modules/memchr2: New file.
43810         * modules/memchr2-tests: Likewise.
43811         * lib/memchr2.h: Likewise.
43812         * lib/memchr2.c: Likewise, based on memchr.c.
43813         * tests/test-memchr2.c: New test.
43814         * MODULES.html.sh (String handling): Add memchr2.
43815
43816 2008-02-29  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/freadseek-tests: New file.
43819         * tests/test-freadseek.sh: New file.
43820         * tests/test-freadseek.c: New file.
43821
43822         New module 'freadseek'.
43823         * modules/freadseek: New file.
43824         * lib/freadseek.h: New file.
43825         * lib/freadseek.c: New file.
43826         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43827
43828 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43829
43830         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43831         wydawca.
43832
43833         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43834         program_invocation_name and program_invocation_short_name are
43835         present.
43836
43837 2008-02-28  Bruno Haible  <bruno@clisp.org>
43838
43839         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43840         * tests/test-freadptr.sh: Also test non-seekable stdin.
43841
43842 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43843
43844         * build-aux/bootstrap (source_base, m4_base)
43845         (doc_base, tests_base): New variables.
43846         (gnulib_tool_options): Do not hardcode base directories, use
43847         the above variables instead.
43848
43849 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43850
43851         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43852
43853 2008-02-28  Bruno Haible  <bruno@clisp.org>
43854
43855         * modules/freadptr-tests: New file.
43856         * tests/test-freadptr.sh: New file.
43857         * tests/test-freadptr.c: New file.
43858
43859         New module 'freadptr'.
43860         * modules/freadptr: New file.
43861         * lib/freadptr.h: New file.
43862         * lib/freadptr.c: New file.
43863         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43864
43865 2008-02-26  Karl Berry  <karl@freefriends.org>
43866
43867         Sync from Libtool:
43868         * libltdl/argz.c (argz_add, argz_count): New functions.
43869         * libltdl/argz.in.h: Declare them.
43870         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43871
43872 2008-02-22  Bruno Haible  <bruno@clisp.org>
43873
43874         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43875         is a pointer type.  Needed for HP-UX 10.
43876         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43877         * doc/posix-functions/gmtime_r.texi: Likewise.
43878         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43879
43880 2008-02-24  Bruno Haible  <bruno@clisp.org>
43881
43882         * modules/environ-tests: New file.
43883         * tests/test-environ.c: New file.
43884
43885         New module 'environ'.
43886         * modules/environ: New file.
43887         * lib/unistd.in.h (environ): New declaration.
43888         * m4/environ.m4: New file.
43889         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43890         after use.
43891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43892         HAVE_DECL_ENVIRON.
43893         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43894         HAVE_DECL_ENVIRON.
43895         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43896         wrong claim that 'environ' is missing on some systems.
43897         * modules/execute (Depends-on): Add environ.
43898         * lib/execute.c (environ): Remove fallback declaration.
43899         * modules/pipe (Depends-on): Add environ.
43900         * lib/pipe.c (environ): Remove fallback declaration.
43901         * modules/setenv (Depends-on): Add environ.
43902         * lib/setenv.c (environ): Remove fallback declaration.
43903         * modules/unsetenv (Depends-on): Add environ.
43904         * lib/unsetenv.c (environ): Remove fallback declaration.
43905         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43906         m4/environ.m4.
43907         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43908         (gl_PREREQ_UNSETENV): Likewise.
43909
43910 2008-02-24  Bruno Haible  <bruno@clisp.org>
43911
43912         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43913
43914 2008-02-20  Bob Proulx  <bob@proulx.com>
43915
43916         Enable use of older two part flavor 'git describe'.
43917         * build-aux/git-version-gen: If using the older two part flavor of
43918         git version then recreate the third part now present in the
43919         newer three part flavor of git describe.
43920
43921 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43922
43923         * lib/fts.c (fts_build): Typo correction to comment.
43924
43925 2008-02-17  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43928         generating no-op conflicts.
43929
43930 2008-02-17  Bruno Haible  <bruno@clisp.org>
43931
43932         Speed up by 10%.
43933         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43934         result_entries, rather than an index-based loop.
43935
43936 2008-02-17  Bruno Haible  <bruno@clisp.org>
43937
43938         Speed up by 25%.
43939         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43940         'hashcode_cached'.
43941         (entry_create): New function.
43942         (entry_hashcode): Use the cached hashcode if possible.
43943         (read_changelog_file, try_split_merged_entry): Use entry_create.
43944
43945 2008-02-17  Bruno Haible  <bruno@clisp.org>
43946
43947         Speed up from O(n^2) to O(n) for long ChangeLog files.
43948         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43949         (read_changelog_file): Change implementation of entries_reversed list
43950         to rbtreehash.
43951         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43952
43953 2008-02-17  Bruno Haible  <bruno@clisp.org>
43954
43955         New option --split-merged-entry.
43956         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43957         (find_paragraph_end, try_split_merged_entry): New functions.
43958         (long_options): Add option --split-merged-entry.
43959         (usage): Document option --split-merged-entry.
43960         (main): Implement option --split-merged-entry.
43961         Reported by Eric Blake.
43962
43963 2008-02-17  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/git-merge-changelog.c: Include c-strstr.h.
43966         (main): Support the "git pull --rebase" situation.
43967         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43968         Reported by Eric Blake.
43969
43970 2008-02-16  Eric Blake  <ebb9@byu.net>
43971
43972         Avoid doubling \ in common case of "c-maybe" quoting style.
43973         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43974         eliding outer quotes.
43975         * lib/quotearg.h: Document this.
43976         * tests/test-quotearg.c (result_strings, inputs, results_g)
43977         (flag_results, locale_results): Test it by adding a new string to
43978         each test group.
43979         (compare_strings): Test new string.
43980
43981 2008-02-13  Eric Blake  <ebb9@byu.net>
43982
43983         Avoid trigraph quoting in default output.
43984         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43985         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43986         unless explicitly requested.
43987         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43988
43989 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43990
43991         Don't rely on signed integer overflowing to negative value.
43992         * lib/getugroups.c (getugroups): Include <limits.h>.
43993         Instead, compare against INT_MAX, and increment only if the test passes.
43994
43995 2008-02-13  Jim Meyering  <meyering@redhat.com>
43996         and Eric Blake  <ebb9@byu.net>
43997
43998         Avoid shadowing warning and compile errors on Linux.
43999         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44000         forwarding macros on Linux.
44001         (dcgettext): Define a stub, for Linux.
44002         (results_g, main): Avoid warnings.
44003
44004 2008-02-12  Eric Blake  <ebb9@byu.net>
44005
44006         Silence warning in last patch.
44007         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44008
44009         Quotearg part 4: add tests, fix c-maybe colon quoting.
44010         * lib/quotearg.h: Improve documentation.
44011         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44012         escapes when adding outer quotes.  When quoting trigraphs, use
44013         valid C notation.  When quoting NUL, omit extra characters if next
44014         character is not digit.  Alter prototype.
44015         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44016         callers.
44017         * modules/quotearg-tests: New module.
44018         * tests/test-quotearg.c: New test.
44019
44020 2008-02-07  Eric Blake  <ebb9@byu.net>
44021
44022         Quotearg part 3: add flag to control outer quote elision.
44023         * lib/quotearg.h (c_maybe_quoting_style): New style.
44024         (enum quoting_flags): Better documentation of flags.
44025         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44026         c-maybe style.
44027         (quotearg_buffer_restyled): Handle new flag to elide outer
44028         quotes.
44029
44030         Quotearg part 2: add flag that can control NUL elision.
44031         * lib/quotearg.h (set_quoting_flags): New prototype.
44032         * lib/quotearg.c (struct quoting_options): Add flag field.
44033         (set_quoting_flags): New function.
44034         (quotearg_buffer_restyled): Add flags parameter.
44035         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44036         (quotearg_n_options): Set the flag, since length cannot be
44037         returned.
44038         (quoting_options_from_style): Default flags correctly.
44039
44040         Quotearg part 1: more wrappers, restore quotearg_char state.
44041         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44042         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44043         (quotearg_colon_mem): New wrappers.
44044         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44045         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44046         functions.
44047         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44048         (quotearg_colon_mem): New functions.
44049
44050 2008-02-11  Bruno Haible  <bruno@clisp.org>
44051
44052         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44053         library in the current directory: it does not work with parallel make.
44054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44055
44056 2008-02-11  Bruno Haible  <bruno@clisp.org>
44057
44058         * .gitattributes: New file.
44059
44060 2008-02-11  Jim Meyering  <meyering@redhat.com>
44061
44062         useless-if-before-free: Fix reversed exit values.
44063         * build-aux/useless-if-before-free: Use correct values
44064         for EXIT_MATCH and EXIT_NO_MATCH.
44065
44066         * build-aux/useless-if-before-free: Close stdout carefully.
44067
44068 2008-02-10  Bruno Haible  <bruno@clisp.org>
44069
44070         New module 'git-merge-changelog'.
44071         * modules/git-merge-changelog: New file.
44072         * lib/git-merge-changelog.c: New file.
44073
44074 2008-02-10  Jim Meyering  <meyering@redhat.com>
44075
44076         useless-if-before-free: New option: --list (-l).
44077
44078         useless-if-before-free: Don't exit immediately upon open failure.
44079         * build-aux/useless-if-before-free: Exit 2 for errors.
44080         Upon failure to open a file, don't exit immediately.
44081         Rather, just warn and continue with any remaining files.
44082
44083 2008-02-10  Bruno Haible  <bruno@clisp.org>
44084
44085         New abstract list operation 'node_set_value'.
44086         * lib/gl_list.h (gl_list_node_set_value): New function.
44087         (struct gl_list_implementation): New field node_set_value.
44088         * lib/gl_list.c (gl_list_node_set_value): New function.
44089         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44090         (gl_array_list_implementation): Update.
44091         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44092         (gl_carray_list_implementation): Update.
44093         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44094         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44095         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44096         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44097         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44098         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44099         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44100         Update.
44101         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44102         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44103         (gl_sublist_list_implementation): Update.
44104
44105 2008-02-10  Bruno Haible  <bruno@clisp.org>
44106
44107         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44108         Needed when ELEMENT is #defined to 'some_type *'.
44109
44110 2008-02-10  Jim Meyering  <meyering@redhat.com>
44111
44112         New script and module: useless-if-before-free
44113         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44114         * build-aux/useless-if-before-free: New file.
44115         * modules/useless-if-before-free: New file.
44116
44117         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44118
44119         xstrtol_error: Fix typo.
44120         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44121         s/exit_failure/exit_status/.
44122
44123 2008-02-09  Jim Meyering  <meyering@redhat.com>
44124
44125         New script and module: gitlog-to-changelog
44126         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44127         * modules/gitlog-to-changelog: New file.
44128         * build-aux/gitlog-to-changelog: New file.
44129
44130 2008-02-08  Jim Meyering  <meyering@redhat.com>
44131
44132         Avoid two "parameter unused" warnings.
44133         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44134         Mark "st" as used.
44135
44136         Use "git COMMAND", not "git-COMMAND".
44137         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44138         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44139         * build-aux/git-version-gen: Use "git status", not "git-status".
44140
44141 2008-02-07  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44144         Avoids a crash on Windows Vista.
44145         Reported by Adam Strzelecki <ono@java.pl> via
44146         Simon Josefsson <simon@josefsson.org>.
44147
44148 2008-02-06  Bruno Haible  <bruno@clisp.org>
44149
44150         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44151         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44152         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44156         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44157         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44165         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44166         left-adjust flag.
44167         * tests/test-snprintf-posix.h (test_function): Likewise.
44168         * tests/test-sprintf-posix.h (test_function): Likewise.
44169         * tests/test-vasprintf-posix.c (test_function): Likewise.
44170         * doc/posix-functions/fprintf.texi: Update.
44171         * doc/posix-functions/printf.texi: Update.
44172         * doc/posix-functions/snprintf.texi: Update.
44173         * doc/posix-functions/sprintf.texi: Update.
44174         * doc/posix-functions/vfprintf.texi: Update.
44175         * doc/posix-functions/vprintf.texi: Update.
44176         * doc/posix-functions/vsnprintf.texi: Update.
44177         * doc/posix-functions/vsprintf.texi: Update.
44178         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44179
44180 2008-02-06  Bruno Haible  <bruno@clisp.org>
44181
44182         Fix bug introduced on 2008-01-26.
44183         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44184
44185 2008-02-06  Bruno Haible  <bruno@clisp.org>
44186
44187         Fix bug introduced on 2007-06-10.
44188         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44189         !NEED_PRINTF_FLAG_ZERO.
44190
44191 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44192
44193         getloadavg: use libperfstat on AIX5
44194         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44195
44196 2008-02-03  Bruno Haible  <bruno@clisp.org>
44197
44198         * lib/diffseq.h: Add comments about required #includes.
44199         Reported by Michael Biggs <gnulib@doubleplum.net>.
44200
44201 2008-02-01  Bruno Haible  <bruno@clisp.org>
44202
44203         * users.txt: Add gnuit.
44204
44205 2008-01-31  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/md4.c (set_uint32): Mark as inline.
44208         * lib/md5.c (set_uint32): Likewise.
44209         * lib/sha1.c (set_uint32): Likewise.
44210         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44211         * m4/md5.m4 (gl_MD5): Likewise.
44212         * m4/sha1.m4 (gl_SHA1): Likewise.
44213
44214 2008-01-31  Jim Meyering  <meyering@redhat.com>
44215
44216         Use "sizeof VAR", rather than a literal "4".
44217         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44218         * lib/md4.c (md4_read_ctx): Likewise.
44219         * lib/sha1.c (sha1_read_ctx): Likewise.
44220
44221 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44222
44223         * tests/test-sha1.c: New file, based on test-md5.c.
44224
44225         * modules/crypto/sha1-tests: New file.
44226
44227 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44228
44229         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44230
44231 2008-01-31  Jim Meyering  <meyering@redhat.com>
44232
44233         Prefer "sizeof v" over the equivalent "4".
44234         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44235         * lib/md5.c (set_uint32): Likewise.
44236         * lib/sha1.c (set_uint32): Likewise.
44237
44238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44239
44240         * lib/sha1.c (set_uint32): Mark function as static.
44241
44242 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44243
44244         md2: clarify comments to say that alignment is not required.
44245         * lib/md2.h: Remove warning about alignment in comment.
44246         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44247         never been required.
44248
44249 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44250
44251         md4: adapt alignment constraint fix from sha1.
44252         * lib/md4.c (set_uint32): New function, from sha1.c
44253         (md4_read_ctx): Use it.
44254         (md4_finish_ctx): Doc fix.
44255         * lib/md4.h: Doc fix.
44256
44257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44258
44259         md5: adapt alignment constraint fix from sha1.
44260         * lib/md5.c (set_uint32): New function, from sha1.c
44261         (md5_read_ctx): Use it.
44262         (md5_finish_ctx): Doc fix.
44263         * lib/md5.h: Doc fix.
44264
44265 2008-01-30  Peter Palfrader  <weasel@debian.org>
44266
44267         sha1: remove the result buffer alignment constraint
44268         * lib/sha1.c (set_uint32): New function.
44269         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44270         constraint.
44271         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44272         * lib/sha1.h: Likewise.
44273
44274 2008-01-30  Andreas Schwab  <schwab@suse.de>
44275             Bruno Haible  <bruno@clisp.org>
44276
44277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44278         correct definition of LDBL_MIN_EXP.
44279
44280 2008-01-30  Karl Berry  <karl@gnu.org>
44281
44282         * config/srclist-update: try to preserve x bit on updates.
44283         * config/srclistvars.sh: update for karl.
44284
44285 2008-01-29  Jim Meyering  <meyering@redhat.com>
44286
44287         vasnprintf.c: Avoid warning about unused label
44288         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44289         "overflow" label definition and associated code with the
44290         same cpp condition that guards the sole use of that label.
44291
44292 2008-01-26  Bruno Haible  <bruno@clisp.org>
44293
44294         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44295         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44296         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44297         * lib/isnanl-nolibm.h (isnanl): Likewise.
44298         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44299
44300 2008-01-26  Bruno Haible  <bruno@clisp.org>
44301
44302         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44303         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44304
44305 2008-01-26  Bruno Haible  <bruno@clisp.org>
44306
44307         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44308         GCC >= 4.0 built-in.
44309         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44310
44311 2008-01-26  Bruno Haible  <bruno@clisp.org>
44312
44313         Rename isnan, applicable to 'double' only, to isnand.
44314         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44315         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44316         (configure.ac): Update.
44317         (Include): Replace "isnan.h" with "isnand.h".
44318         * m4/isnand.m4: Renamed from m4/isnan.m4.
44319         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44320         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44321         instead of isnan.c.
44322         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44323         instead of HAVE_ISNAN_IN_LIBC.
44324         (isnand): Renamed from isnan.
44325         * lib/isnand.c: New file.
44326         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44327         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44328         (Makefile.am): Update.
44329         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44330         Include isnand.h instead of isnan.h.
44331         (main): Test isnand instead of isnan.
44332         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44333         isnan-nolibm.
44334         * modules/frexp (Depends-on): Likewise.
44335         * modules/frexp-tests (Depends-on): Likewise.
44336         * modules/frexp-nolibm (Depends-on): Likewise.
44337         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44338         * modules/isfinite (Depends-on): Likewise.
44339         * modules/round-tests (Depends-on): Likewise.
44340         * modules/signbit (Depends-on): Likewise.
44341         * modules/signbit-tests (Depends-on): Likewise.
44342         * modules/snprintf-posix (Depends-on): Likewise.
44343         * modules/sprintf-posix (Depends-on): Likewise.
44344         * modules/trunc-tests (Depends-on): Likewise.
44345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44352         * modules/vasnprintf-posix (Depends-on): Likewise.
44353         * modules/vasprintf-posix (Depends-on): Likewise.
44354         * modules/vfprintf-posix (Depends-on): Likewise.
44355         * modules/vsnprintf-posix (Depends-on): Likewise.
44356         * modules/vsprintf-posix (Depends-on): Likewise.
44357         * lib/frexp.c: Include isnand.h instead of isnan.h.
44358         (ISNAN): Set to isnand instead of isnan.
44359         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44360         (gl_isfinited): Use isnand instead of isnan.
44361         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44362         (gl_signbitd): Use isnand instead of isnan.
44363         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44364         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44365         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44366         (main): Use isnand instead of isnan.
44367         * tests/test-round1.c: Include isnand.h.
44368         (main): Use isnand instead of isnan.
44369         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44370         (ISNAN): Set to isnand instead of isnan.
44371         * tests/test-trunc1.c: Include isnand.h.
44372         (main): Use isnand instead of isnan.
44373         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44374         (equal): Use isnand instead of isnan.
44375         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44376         isnand-nolibm.
44377         * NEWS: Mention the change.
44378
44379 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44380             Bruno Haible  <bruno@clisp.org>
44381
44382         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44383         the GCC builtins for signbits are present and set
44384         REPLACE_SIGNBIT_USING_GCC if so.
44385         * lib/math.in.h (signbit): Define using GCC builtins if
44386         REPLACE_SIGNBIT_USING_GCC is set.
44387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44388         REPLACE_SIGNBIT_USING_GCC.
44389         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44390
44391 2008-01-25  Jim Meyering  <meyering@redhat.com>
44392
44393         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44394         * lib/poll.c: Include <config.h>, not "config.h".
44395         * tests/test-getaddrinfo.c: Likewise.
44396
44397 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44398
44399         * modules/sockets-tests: New file.
44400
44401 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44402
44403         * modules/sockets: New module, can be used to call WSA_Startup and
44404         WSA_Cleanup when needed.
44405
44406         * lib/sockets.h, lib/sockets.c: New files.
44407
44408         * m4/sockets.m4: New file.
44409
44410         * tests/test-sockets.c: New file.
44411
44412 2008-01-19  Bruno Haible  <bruno@clisp.org>
44413
44414         * doc/posix-headers: Renamed from doc/headers.
44415         * doc/posix-functions: Renamed from doc/functions.
44416         * doc/gnulib.texi: Update.
44417
44418 2008-01-19  Bruno Haible  <bruno@clisp.org>
44419
44420         * doc/glibc-functions/strcasestr.texi: Include contents of
44421         doc/functions/strcasestr.texi, fixing the list of platforms.
44422         * doc/functions/strcasestr.texi: Remove file.
44423
44424 2008-01-19  Bruno Haible  <bruno@clisp.org>
44425
44426         * doc/glibc-functions/memmem.texi: Include contents of
44427         doc/functions/memmem.texi.
44428         * doc/functions/memmem.texi: Remove file.
44429
44430 2008-01-18  Bruno Haible  <bruno@clisp.org>
44431
44432         * doc/glibc-functions/*.texi: New files.
44433         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44434         to use the new files.
44435
44436 2008-01-17  Bruno Haible  <bruno@clisp.org>
44437
44438         * tests/test-gethostname.c (main): Fix printf statement.
44439
44440 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44441
44442         * modules/gethostname-tests: New file.
44443
44444         * tests/test-gethostname.c: New file.
44445
44446 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44447
44448         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44449         used by the UNAME case.  Reported by Bruno Haible
44450         <bruno@clisp.org>.
44451
44452 2008-01-17  Eric Blake  <ebb9@byu.net>
44453
44454         Convert c-strcasestr to be more efficient.
44455         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44456         (Depends-on): Add c-strcase, remove malloca, strnlen.
44457         * tests/test-c-strcasestr.c (main): Enhance test.
44458         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44459
44460 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44461
44462         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44463         Use it in creating po/Makevars.
44464
44465 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44466
44467         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44468         Applications that requires it should initialize libgcrypt
44469         manually.
44470
44471 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44472
44473         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44474
44475 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44476
44477         Fix problem with getdate on mingw32 reported by Simon Josefsson
44478         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44479         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44480         tzname", when deciding whether to declare tzname.
44481         * lib/strftime.c (tzname): Likewise.
44482
44483 2008-01-15  Bruno Haible  <bruno@clisp.org>
44484
44485         Work around a MacOS X 10.5 bug in frexpl().
44486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44487         * doc/functions/frexpl.texi: Document the bug.
44488         Reported by Elias Pipping <pipping@gentoo.org>.
44489
44490 2008-01-14  Eric Blake  <ebb9@byu.net>
44491
44492         Touch up previous patch.
44493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44494         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44495
44496         Convert strcasestr module to use Two-Way algorithm.
44497         * modules/strcasestr-simple: New module, based on the old
44498         strcasestr, but with Two-Way rather than KMP.
44499         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44500         * lib/string.in.h (rpl_strcasestr): Declare.
44501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44502         performance.
44503         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44504         * modules/string (Makefile.am): Support strcasestr.
44505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44506         * modules/strcasestr-tests (Depends-on): Check for alarm.
44507         * tests/test-strcasestr.c: Augment test.
44508         * lib/str-two-way.h: Clean up stray macro.
44509         * NEWS: Document new module.
44510         * MODULES.html.sh (string handling): Likewise.
44511         * doc/functions/strcasestr.texi: New file.
44512         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44513         here, since it is not a POSIX function.
44514
44515 2008-01-14  Colin Watson  <cjwatson@debian.org>
44516             Bruno Haible  <bruno@clisp.org>
44517
44518         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44519         works fine; if not, set REPLACE_STRSIGNAL.
44520         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44522         REPLACE_STRSIGNAL.
44523         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44524         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44525         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44526
44527 2008-01-14  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/strsignal (Include): Change to <string.h>.
44530
44531 2008-01-14  Colin Watson  <cjwatson@debian.org>
44532
44533         * modules/argp (Notice): Add a notice recommending to change
44534         XGETTEXT_OPTIONS.
44535         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44536
44537 2008-01-13  Colin Watson  <cjwatson@debian.org>
44538
44539         * modules/strsignal-tests: New file.
44540         * tests/test-strsignal.c: New file.
44541
44542         * lib/strsignal.c: New file, from glibc with modifications.
44543         * lib/siglist.h: New file, from glibc with modifications.
44544         * lib/string.in.h (strsignal): New declaration.
44545         * m4/strsignal.m4: New file.
44546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44547         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44548         * modules/strsignal: New file.
44549         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44550         HAVE_DECL_STRSIGNAL.
44551
44552 2008-01-13  Bruno Haible  <bruno@clisp.org>
44553
44554         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44555         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44557         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44558
44559 2008-01-13  Bruno Haible  <bruno@clisp.org>
44560
44561         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44562         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44563         * lib/argp.h (__attribute__): Likewise.
44564         * lib/c-stack.c (__attribute__): Likewise.
44565         * lib/error.h (__attribute__): Likewise.
44566         * lib/fts.c (__attribute__): Likewise.
44567         * lib/openat.h (__attribute__): Likewise.
44568         * lib/stdio.in.h (__attribute__): Likewise.
44569         * lib/string.in.h (__attribute__): Likewise.
44570         * lib/utimens.c (__attribute__): Likewise.
44571         * lib/vasnprintf.h (__attribute__): Likewise.
44572         * lib/xalloc.h (__attribute__): Likewise.
44573         * lib/xprintf.h (__attribute__): Likewise.
44574         * lib/xstrtol.h (__attribute__): Likewise.
44575         * lib/xvasprintf.h (__attribute__): Likewise.
44576
44577 2008-01-12  Bruno Haible  <bruno@clisp.org>
44578
44579         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44580         * doc/glibc-headers/a.out.texi: New file.
44581         * doc/glibc-headers/aliases.texi: New file.
44582         * doc/glibc-headers/alloca.texi: New file.
44583         * doc/glibc-headers/ar.texi: New file.
44584         * doc/glibc-headers/argp.texi: New file.
44585         * doc/glibc-headers/argz.texi: New file.
44586         * doc/glibc-headers/byteswap.texi: New file.
44587         * doc/glibc-headers/crypt.texi: New file.
44588         * doc/glibc-headers/endian.texi: New file.
44589         * doc/glibc-headers/envz.texi: New file.
44590         * doc/glibc-headers/err.texi: New file.
44591         * doc/glibc-headers/error.texi: New file.
44592         * doc/glibc-headers/execinfo.texi: New file.
44593         * doc/glibc-headers/fpu_control.texi: New file.
44594         * doc/glibc-headers/fstab.texi: New file.
44595         * doc/glibc-headers/fts.texi: New file.
44596         * doc/glibc-headers/getopt.texi: New file.
44597         * doc/glibc-headers/ieee754.texi: New file.
44598         * doc/glibc-headers/ifaddrs.texi: New file.
44599         * doc/glibc-headers/libintl.texi: New file.
44600         * doc/glibc-headers/mcheck.texi: New file.
44601         * doc/glibc-headers/mntent.texi: New file.
44602         * doc/glibc-headers/obstack.texi: New file.
44603         * doc/glibc-headers/paths.texi: New file.
44604         * doc/glibc-headers/printf.texi: New file.
44605         * doc/glibc-headers/pty.texi: New file.
44606         * doc/glibc-headers/resolv.texi: New file.
44607         * doc/glibc-headers/shadow.texi: New file.
44608         * doc/glibc-headers/sysexits.texi: New file.
44609         * doc/glibc-headers/ttyent.texi: New file.
44610
44611 2008-01-12  Jim Meyering  <meyering@redhat.com>
44612
44613         announce-gen: emit Gnulib's git-based version string.
44614         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44615         New option --gnulib-version=V, where V is expected to be
44616         the output of running git describe in the gnulib directory.
44617         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44618         not useful, and plan to stop publishing an xdelta file with each
44619         coreutils release.
44620
44621         * build-aux/announce-gen: Also check for lzma-compressed files.
44622
44623 2008-01-11  Bruno Haible  <bruno@clisp.org>
44624
44625         * tests/test-memmem.c (main): Increase maximum allowed time.
44626         * tests/test-strstr.c (main): Likewise.
44627
44628 2008-01-11  Bruno Haible  <bruno@clisp.org>
44629
44630         * doc/functions/memmem.texi: Add more precisions about platforms.
44631         * doc/functions/strstr.texi: Likewise.
44632
44633 2008-01-10  Eric Blake  <ebb9@byu.net>
44634
44635         * m4/strstr.m4: Delete cruft from copy-n-paste.
44636         Reported by Bruno Haible.
44637
44638 2008-01-10  Bruno Haible  <bruno@clisp.org>
44639
44640         Make c-strstr rely on strstr.
44641         * lib/c-strstr.c: Don't include str-kmp.h.
44642         (c_strstr): Define in terms of strstr.
44643         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44644         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44645
44646 2008-01-10  Bruno Haible  <bruno@clisp.org>
44647
44648         * doc/gnulib.texi (String Functions in C Locale): New section.
44649         * doc/c-ctype.texi: New file.
44650         * doc/c-strcase.texi: New file.
44651         * doc/c-strcaseeq.texi: New file.
44652         * doc/c-strcasestr.texi: New file.
44653         * doc/c-strstr.texi: New file.
44654         * doc/c-strtod.texi: New file.
44655         * doc/c-strtold.texi: New file.
44656
44657 2008-01-10  Eric Blake  <ebb9@byu.net>
44658
44659         * lib/relocatable.h: Fix a comment.
44660
44661 2008-01-10  Eric Blake  <ebb9@byu.net>
44662
44663         Share two-way algorithm.
44664         * lib/str-two-way.h: New file, merged from...
44665         * lib/memmem.c: ...here...
44666         * lib/strstr.c: ...and here.
44667         * modules/memmem (Files): Use it.
44668         * modules/strstr (Files): Likewise.
44669
44670         Avoid quadratic strstr implementations.
44671         * lib/strstr.c: New file.
44672         * m4/strstr.m4: Likewise.
44673         * modules/strstr: Likewise.
44674         * modules/strstr-tests: Likewise.
44675         * tests/test-strstr.c: Likewise.
44676         * lib/string.in.h (rpl_strstr): Declare.
44677         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44679         * modules/string (Makefile.am): Likewise.
44680         * MODULES.html.sh (string handling): Mention new module.
44681         * doc/functions/strstr.texi (strstr): Document the bug.
44682
44683 2008-01-10  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/relocatable.h (relocate): State whether result is freshly
44686         allocated or not.
44687         * lib/relocatable.c (relocate): Return a freshly allocated string
44688         instead of a pointer to a privately held string.
44689         Reported by Sylvain Beucler <beuc@gnu.org>.
44690
44691 2008-01-10  Colin Watson  <cjwatson@debian.org>
44692
44693         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44694         s/S_ISNLK/S_ISLNK/.
44695
44696 2008-01-09  Bruno Haible  <bruno@clisp.org>
44697
44698         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44699         and other files.
44700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44701         if it's only a guess.
44702         * modules/memmem: Simplify by depending on memmem-simple.
44703
44704 2008-01-09  Bruno Haible  <bruno@clisp.org>
44705
44706         Work around OpenBSD 4.0 tdelete() bug.
44707         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44708         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44709         macros and don't redefine the enum values.
44710         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44711         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44712         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44713
44714 2008-01-09  Bruno Haible  <bruno@clisp.org>
44715
44716         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44717         (main): Don't perform the tests if setlocale did not install a UTF-8
44718         locale. Needed on OpenBSD 4.0.
44719         * modules/wcwidth-tests (Depends-on): Add localcharset.
44720
44721 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44722
44723         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44724         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44725         * NEWS: announce this.
44726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44727
44728 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44729         and Eric Blake  <ebb9@byu.net>
44730
44731         Add memmem-simple module.
44732         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44733         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44734         * modules/memmem-simple: New file.
44735         * modules/memmem (Description): Tweak.
44736         * MODULES.html.sh (string handling): Mention new module.
44737         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44738         addressed by memmem-simple.
44739         * NEWS: Document the difference.
44740
44741 2008-01-09  Eric Blake  <ebb9@byu.net>
44742
44743         Give gcc some memmem optimization hints.
44744         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44745         (strcasestr): Declare as pure.
44746         * modules/memmem (Maintainer): Claim my implementation.
44747
44748 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44749
44750         Support AIX 6.1 and higher.
44751         * build-aux/config.libpath: Likewise.
44752         * build-aux/config.rpath: Likewise.
44753
44754 2008-01-08  Jim Meyering  <meyering@redhat.com>
44755             Bruno Haible  <bruno@clisp.org>
44756
44757         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44758         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44759         Reported by Peter Fales in
44760         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44761
44762 2008-01-08  Bruno Haible  <bruno@clisp.org>
44763
44764         * modules/unictype/category-of (Depends-on): Add
44765         unictype/category-none.
44766         * modules/unictype/category-and-tests (Depends-on): Add
44767         unictype/category-{L,N,Lu,Nd}.
44768         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44769         * modules/unictype/category-or-tests (Depends-on): Add
44770         unictype/category-{L,N}.
44771         * modules/unictype/category-name-tests (Depends-on): Add
44772         unictype/category-{Z,Nl}.
44773         Reported by Simon Josefsson.
44774
44775 2008-01-08  Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44778         convention better.
44779         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44780         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44781         Reported by Peter Miller <millerp@canb.auug.org.au>.
44782
44783 2008-01-08  Eric Blake  <ebb9@byu.net>
44784
44785         Rewrite memmem to guarantee linear complexity without malloc.
44786         * lib/memmem.c (memmem): Use Two-Way rather than
44787         Knuth-Morris-Pratt, to allow O(1) space usage.
44788         (critical_factorization, two_way_short_needle)
44789         (two_way_long_needle): New functions.
44790         (knuth_morris_pratt): Delete.
44791         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44792         Add stdint.
44793         * tests/test-memmem.c (main): Add tests for periodic needle and
44794         sublinear performance.
44795         * doc/functions/memmem.texi (memmem): Document other deficiencies
44796         in cygwin and older glibc.
44797
44798 2008-01-08  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44801         augmentation.
44802
44803 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44804
44805         Add a configure time option: --disable-acl.
44806         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44807         AC_ARG_ENABLE(acl).
44808
44809 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44810
44811         * tests/test-localename.c: Don't include obsolete "setenv.h".
44812
44813         * modules/localename-tests (Depends-on): Need unsetenv.
44814
44815 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44816
44817         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44818
44819 2008-01-06  Colin Watson  <cjwatson@debian.org>
44820
44821         * users.txt: Add man-db.
44822
44823 2008-01-07  Bruno Haible  <bruno@clisp.org>
44824
44825         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44826         previous section name.
44827
44828 2008-01-07  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/progname.c (set_program_name): Don't strip off a leading
44831         "lt-" prefix outside a .libs directory.
44832         Suggested by Paul Eggert.
44833
44834 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44835             Bruno Haible  <bruno@clisp.org>
44836
44837         Improve memory cleanup in 'relocatable' module.
44838         * lib/relocatable.h (compute_curr_prefix): Change return type to
44839         'char *'.
44840         * lib/relocatable.c (compute_curr_prefix): Change return type to
44841         'char *'. Free curr_installdir after use.
44842         (relocate): Free curr_prefix_better after use.
44843         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44844
44845 2008-01-01  Bruno Haible  <bruno@clisp.org>
44846
44847         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44848         failure on older glibc systems.
44849         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44850
44851 2008-01-05  Eric Blake  <ebb9@byu.net>
44852
44853         Avoid quadratic system memmem.
44854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44855         Reported by Ralf Wildenhues.
44856
44857         Fix memmem test for mingw.
44858         * modules/memmem-tests (configure.ac): Check for alarm.
44859         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44860         it.
44861         * doc/functions/memmem.texi: New file.
44862         * doc/gnulib.texi (Function Substitutes): Add memmem.
44863         Reported by Bruno Haible.
44864
44865 2008-01-04  Bruno Haible  <bruno@clisp.org>
44866
44867         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44868         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44869         gl_HEADER_STRING_H_DEFAULTS.
44870
44871 2008-01-04  Eric Blake  <ebb9@byu.net>
44872
44873         Shorten duration of memmem test.
44874         * tests/test-memmem.c (main): Use alarm to declare failure if test
44875         is taking too long.
44876         Reported by Ralf Wildenhues.
44877
44878 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44879
44880         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44881         string, needed by strerror.
44882
44883 2008-01-03  Colin Watson  <cjwatson@debian.org>
44884             Bruno Haible  <bruno@clisp.org>
44885
44886         * doc/gnulib-tool.texi (Localization): New section.
44887
44888 2008-01-02  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44891         variables to 'unsigned char *' type.
44892         Reported by Paul Eggert.
44893
44894 2008-01-02  Jim Meyering  <jim@meyering.net>
44895
44896         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44897
44898 2007-12-31  Jim Meyering  <jim@meyering.net>
44899
44900         Avoid use of private FTS type name.
44901         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44902
44903 2007-12-30  Karl Berry  <karl@gnu.org>
44904
44905         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44906         work around defect in Texinfo and/or the standalone Info browser.
44907
44908 2007-12-30  Bruno Haible  <bruno@clisp.org>
44909
44910         Unify 5 copies of the KMP code.
44911         * lib/str-kmp.h: New file.
44912         * lib/c-strcasestr.c: Include str-kmp.h.
44913         (knuth_morris_pratt): Remove function.
44914         (c_strcasestr): Update.
44915         * lib/c-strstr.c: Include str-kmp.h.
44916         (knuth_morris_pratt): Remove function.
44917         (c_strcasestr): Update.
44918         * lib/mbscasestr.c: Include str-kmp.h.
44919         (knuth_morris_pratt_unibyte): Remove function.
44920         * lib/mbsstr.c: Include str-kmp.h.
44921         (knuth_morris_pratt_unibyte): Remove function.
44922         * lib/strcasestr.c: Include str-kmp.h.
44923         (knuth_morris_pratt): Remove function.
44924         (strcasestr): Update.
44925         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44926         * modules/c-strstr (Files): Likewise.
44927         * modules/mbscasestr (Files): Likewise.
44928         * modules/mbsstr (Files): Likewise.
44929         * modules/strcasestr (Files): Likewise.
44930         Suggested by Paul Eggert.
44931
44932 2007-12-30  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44935         defined.
44936
44937 2007-12-30  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/xmalloca.h: Include xalloc.h.
44940         (xnmalloca): New macro.
44941
44942 2007-12-30  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/malloca.h (nmalloca): New macro.
44945         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44946         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44947         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44948         knuth_morris_pratt_multibyte): Likewise.
44949         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44950         knuth_morris_pratt_multibyte): Likewise.
44951         * lib/memmem.c (knuth_morris_pratt): Likewise.
44952         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44953
44954 2007-12-25  Bruno Haible  <bruno@clisp.org>
44955
44956         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44957         * lib/glob.c: Don't include openat.h.
44958         (link_exists2_p): Add back the code that deals with the
44959         !GLOB_ALTDIRFUNC case.
44960         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44961         let it do the filename concatenation.
44962         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44963         * modules/glob (Depends-on): Remove openat.
44964
44965 2007-12-31  Bruno Haible  <bruno@clisp.org>
44966
44967         * modules/dirfd (License): Change to LGPLv2+.
44968         Approved by Jim Meyering.
44969
44970 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44971
44972         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44973         when multiplying M by sizeof (size_t).
44974
44975 2007-12-10  Martin Lambers  <marlam@marlam.de>
44976
44977         Override getpagesize on mingw.
44978         * lib/getpagesize.c: New file.
44979         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44980         * modules/getpagesize (Files): Add lib/getpagesize.c.
44981         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44983         REPLACE_GETPAGESIZE.
44984         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44985
44986 2007-12-25  Bruno Haible  <bruno@clisp.org>
44987
44988         * modules/localcharset (Notice): New field.
44989         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44990         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44991
44992 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44993             Bruno Haible  <bruno@clisp.org>
44994
44995         Avoid using the syntax symbol() in formatted documentation.
44996         * MODULES.html.sh (func_module): When replacing symbol() with a
44997         hyperlink, remove the parentheses. Show an error if some remain.
44998         Recognize and render the '...' syntax.
44999         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45000         Rework. Add paragraph about GCC's inlining.
45001         * doc/alloca.texi: Likewise.
45002         * doc/error.texi: Remove parentheses from symbol reference.
45003         * doc/gnulib-intro.texi: Likewise.
45004         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45005         * modules/fnmatch (Description): Reword to say "the ... function".
45006         * modules/full-read (Description): Likewise.
45007         * modules/full-write (Description): Likewise.
45008         * modules/safe-read (Description): Likewise.
45009         * modules/safe-write (Description): Likewise.
45010         * modules/strchrnul (Description): Likewise.
45011         * modules/trim (Description): Likewise.
45012         * modules/error (Description): Remove parentheses from symbol
45013         references.
45014         * modules/verror (Description): Likewise.
45015         Reported by Karl Berry.
45016
45017 2007-12-25  Bruno Haible  <bruno@clisp.org>
45018
45019         Fixup after 2007-10-16 commit.
45020         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45021
45022 2007-12-24  Bruno Haible  <bruno@clisp.org>
45023
45024         Make --enable-relocatable work with DESTDIR.
45025         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45026         to compute installdir from destprog.
45027         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45028         also set the RELOC_DESTDIR variable.
45029         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45030
45031 2007-12-24  Bruno Haible  <bruno@clisp.org>
45032
45033         Fix link error due to xalloc_die().
45034         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45035         of xreadlink.
45036         * lib/relocwrapper.c: Update comments.
45037         * build-aux/install-reloc: Remove xreadlink.c from file list.
45038         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45039         xreadlink.c.
45040         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45041
45042 2007-12-24  Bruno Haible  <bruno@clisp.org>
45043
45044         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45045         * lib/setenv.h: Remove file.
45046         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45047         lib/setenv.h.
45048         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45049         (Depends-on): Add stdlib.
45050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45051         gl_FUNC_UNSETENV.
45052         (Include): Replace setenv.h with <stdlib.h>.
45053         * modules/unsetenv: New file.
45054         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45055         * lib/unsetenv.c: Include <stdlib.h> first.
45056         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45057         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45058         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45059         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45060         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45061         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45063         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45064         * doc/functions/unsetenv.texi: Update.
45065         * modules/xsetenv (Depends-on): Add unsetenv.
45066         * modules/getdate (Depends-on): Likewise.
45067         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45068         * lib/xsetenv.c: Don't include setenv.h.
45069         * lib/getdate.y: Likewise.
45070         * lib/relocwrapper.c: Likewise.
45071         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45072         (Depends-on): Add stdlib.
45073         * NEWS: Mention the changes.
45074         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45075
45076 2007-12-23  Bruno Haible  <bruno@clisp.org>
45077
45078         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45079         indentation.
45080
45081 2007-12-23  Bruno Haible  <bruno@clisp.org>
45082
45083         * lib/c-strcasestr.c: Add more comments.
45084         * lib/c-strstr.c: Likewise.
45085         * lib/mbscasestr.c: Likewise.
45086         * lib/mbsstr.c: Likewise.
45087         * lib/strcasestr.c: Likewise.
45088         * lib/memmem.c: Likewise.
45089
45090 2007-12-23  Bruno Haible  <bruno@clisp.org>
45091
45092         * tests/test-memmem.c: Include <string.h> first.
45093
45094 2007-12-22  Bruno Haible  <bruno@clisp.org>
45095
45096         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45097         the contents of $testsbase.
45098         Reported by Ralf Wildenhues.
45099
45100 2007-12-22  Bruno Haible  <bruno@clisp.org>
45101
45102         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45103         two variables local_ldadd_before, local_ldadd_last.
45104
45105 2007-12-20  Eric Blake  <ebb9@byu.net>
45106
45107         Work around circular library issue when cross-compiling.
45108         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45109         that progname.o does not need to pull in rpl_memcmp.
45110
45111 2007-12-19  Eric Blake  <ebb9@byu.net>
45112
45113         Fix memmem to avoid O(n^2) worst-case complexity.
45114         * lib/memmem.c (knuth_morris_pratt): New function.
45115         (memmem): Use it if first few naive iterations fail.
45116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45117         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45118         * modules/memchr (License): Likewise.
45119         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45120         malloca.
45121         * tests/test-memmem.c: Rewrite, borrowing ideas from
45122         test-mbsstr1.c; the old version wouldn't even compile!
45123         * modules/memmem-tests: New file.
45124         * lib/string.in.h (rpl_memmem): Add declaration.
45125         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45127         REPLACE_MEMMEM.
45128
45129 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45130
45131         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45132         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45133         before any system include files, and undef after them all.  This
45134         should fix a problem on VMS reported by John E. Malmberg in
45135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45136
45137 2007-12-17  Eric Blake  <ebb9@byu.net>
45138
45139         Revert addition of verify, for BSD/OS.
45140         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45141         can't handle large files, for the sake of obsolete platforms.
45142         * modules/fseeko (Depends-on): Remove verify.
45143         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45144         * doc/functions/ftello.texi (ftello): Likewise.
45145         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45146         Reported by Larry Jones.
45147
45148 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45149
45150         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45151         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45152
45153 2007-12-17  Jim Meyering  <meyering@redhat.com>
45154
45155         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45156         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45157         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45158         * modules/getcwd (Depends-on): Add openat.
45159         Reported by Petr Salinger.
45160
45161 2007-12-17  Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45164         avoid a segmentation fault of the configure test on x86_64 systems.
45165
45166 2007-12-15  Jim Meyering  <meyering@redhat.com>
45167
45168         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45169
45170 2007-12-13  Eric Blake  <ebb9@byu.net>
45171
45172         Another fseek test.
45173         * tests/test-fseek.c (main): Also test ungetc handling.
45174         * tests/test-fseeko.c (main): Likewise.
45175         * modules/fseeko (Depends-on): Add verify.
45176         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45177         large.
45178         Reported by Larry Jones.
45179
45180         Fix fseeko on mingw.
45181         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45182         seek.
45183
45184         Beef up fseek tests.
45185         * tests/test-fseek.c (main): Also test eof handling.
45186         * tests/test-fseeko.c (main): Likewise.
45187         Reported by Larry Jones.
45188
45189 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45190
45191         Fix fseeko on BSD-based platforms.
45192         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45193         successful seek.
45194
45195 2007-12-12  Eric Blake  <ebb9@byu.net>
45196
45197         Allow circular dependency of separate libtests.a
45198         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45199         when use_libtests.
45200
45201 2007-12-11  Eric Blake  <ebb9@byu.net>
45202
45203         Fix bug with -0.0L in previous patch.
45204         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45205         * tests/test-isnan.c (main): Also test on zeroes.
45206         * tests/test-isnanf.c (main): Likewise.
45207         * tests/test-isnanl.h (main): Likewise.
45208
45209         Detect pseudo-denormals on x86 even when cross-compiling.
45210         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45211         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45212         invalid bit patterns that happen to satisfy ==.
45213
45214         Avoid link failures with separate libtests.a.
45215         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45216         last, to satisfy circular dependencies.
45217
45218 2007-12-11  Eric Blake  <ebb9@byu.net>
45219         and Bruno Haible  <bruno@clisp.org>
45220
45221         Fix OpenBSD 4.0 <float.h> handling of long double.
45222         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45223         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45224         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45225
45226 2007-12-11  Jim Meyering  <meyering@redhat.com>
45227
45228         * users.txt: Add libvirt.
45229
45230         Support versions of autoconf prior to 2.59c.
45231         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45232         if it is not already defined.
45233
45234 2007-12-09  Bruno Haible  <bruno@clisp.org>
45235
45236         Let 'gnulib-tool --import' collect sources needed for the tests in
45237         tests/ rather than in lib/.
45238         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45239         argument. If true, add rules to generate libtests.a, and put libtests.a
45240         into $(LDADD). Consider source files in subdirectories and set
45241         uses_subdirs.
45242         (func_emit_initmacro_start, func_emit_initmacro_end,
45243         func_emit_initmacro_done): Pass all arguments explicitly.
45244         (func_import): Determine two module lists main_modules,
45245         testsrelated_modules. Determine use_libtests. Determine two variables
45246         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45247         instead of just sed_transform_lib_file. Determine two variables
45248         main_files and testsrelated_files. Compute 'files' as the union of
45249         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45250         func_add_or_update. In the generated gnulib-comp.m4, collect the
45251         object files for tests/ in different variables than those for lib/.
45252         Substitute LIBTESTS_LIBDEPS.
45253         (func_create_testdir): Combine the uses_subdirs results from
45254         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45255
45256 2007-12-09  Bruno Haible  <bruno@clisp.org>
45257
45258         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45259         the build-aux directory.
45260
45261 2007-12-09  Bruno Haible  <bruno@clisp.org>
45262
45263         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45264         introduced on 2006-09-09.
45265
45266 2007-12-07  Jim Meyering  <meyering@redhat.com>
45267
45268         Let these macros work also with autoconf-2.59.
45269         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45270         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45272
45273 2007-12-06  Jim Meyering  <meyering@redhat.com>
45274
45275         Avoid a configure-time syntax error in gl_FUNC_ACL.
45276         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45277         function in each branch, before testing the cache variable.
45278
45279 2007-12-04  Eric Blake  <ebb9@byu.net>
45280
45281         Make scripts executable.
45282         * build-aux/config.guess: Add execute permissions.
45283         * build-aux/config.sub: Likewise.
45284         * build-aux/gendocs.sh: Likewise.
45285
45286         Fix frexp on mingw.
45287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45288         cross-compiling.
45289         * doc/functions/frexp.texi (frexp): Document the bug.
45290
45291         Make cygwin fseeko check more reliable.
45292         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45293         version numbers, rather than unrelated feature check.
45294         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45295         * doc/functions/ftello.texi (ftello): Likewise.
45296         Reported by Bruno Haible.
45297
45298         * m4/strerror.m4: Bump version number.
45299
45300 2007-12-03  Bruno Haible  <bruno@clisp.org>
45301
45302         * doc/functions/mprotect.texi: Mention the mingw problem.
45303
45304 2007-12-03  Eric Blake  <ebb9@byu.net>
45305
45306         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45307         REPLACE_STRERROR is initialized before this macro.
45308
45309 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45310
45311         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45312         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45313         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45314         put -lsec in even for programs other than 'ls'.  This fixes a problem
45315         for gettext reported by Bruno Haible in
45316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45317         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45318         Add support for Solaris 10.  This isn't efficient, but should get the
45319         job done for now.
45320
45321 2007-12-03  James Youngman  <jay@gnu.org>
45322
45323         * doc/regexprops-generic.texi: change "an close-group" to "a
45324         close-group" and "illegal" to "not allowed".
45325
45326 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45327
45328         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45329         pr_byname.h. Needed for the rare case when the maintainer has done
45330         "make maintainer-clean" in the source directory and then attempts a
45331         build outside the source directory.
45332         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45333         scripts_byname.h.
45334
45335 2007-12-02  Martin Lambers <marlam@marlam.de>
45336             Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/getpagesize.h: Remove file.
45339         * lib/unistd.in.h: Include declaration of getpagesize here.
45340         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45341         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45342         HAVE_SYS_PARAM_H.
45343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45344         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45345         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45346         (Depends-on): Add unistd.
45347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45348         (Include): Use <unistd.h> instead of getpagesize.h.
45349         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45350         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45351         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45352         gl_GETPAGESIZE invocation, already handled by module dependency.
45353         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45354
45355 2007-12-02  Bruno Haible  <bruno@clisp.org>
45356
45357         * modules/strings-tests: New file.
45358         * tests/test-strings.c: New file.
45359
45360         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45361         * lib/strings.in.h: New file.
45362         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45363         * m4/strings_h.m4: New file.
45364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45365         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45366         * modules/strings: New file.
45367         * modules/string (Makefile.am): Update.
45368         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45369         Reported by Karl Berry.
45370
45371 2007-12-01  Eric Blake  <ebb9@byu.net>
45372
45373         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45374         accomodate fix in cygwin 1.5.25.
45375
45376 2007-12-01  Jim Meyering  <meyering@redhat.com>
45377
45378         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45379         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45380         that would inhibit utf8-optimization of a regexp containing line-
45381         or buffer-anchors, e.g., `^', `$'.
45382
45383 2007-11-30  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45386         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45387         glthread_recursive_lock_init.
45388         * lib/lock.c (glthread_recursive_lock_init)
45389         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45391
45392 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         New function qset_acl, like set_acl but with syscall semantics.
45395         * lib/acl.h (qset_acl): New decl.
45396         * lib/acl.c (qset_acl): New function.
45397         (set_acl): Use new function.  Use more-consistent diagnostics.
45398
45399 2007-11-28  Jim Meyering  <meyering@redhat.com>
45400
45401         * modules/physmem (License): Change from GPL to LGPLv2+.
45402
45403 2007-11-26  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45406         'long double' type has excess precision.
45407         Reported by Jim Meyering in
45408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45409
45410 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45411
45412         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45413         Sync from <http://gnu.org/licenses>.
45414         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45415         with license text from same location.
45416         * doc/maintain.texi, doc/standards.texi:  Sync from
45417         <http://savannah.gnu.org/projects/gnustandards>.
45418
45419 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45420         and Jim Meyering  <meyering@redhat.com>
45421
45422         Adjust getdate' grammar to accept a slightly more regular language.
45423         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45424         Before, the former was rejected.
45425         * lib/getdate.y (digits_to_date_time): New function, factored
45426         out of ...
45427         (number): ...here.  Just call digits_to_date_time.
45428         (hybrid): New non-terminal to handle an <unsigned number,
45429         signed relative offset> sequence consistently.
45430
45431 2007-11-18  Jim Meyering  <meyering@redhat.com>
45432
45433         Pull my changes from coreutils:
45434         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45435         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45436         use of $gnulib_tool_option_extras, so that it's separated from the
45437         preceding argument.
45438
45439         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45440         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45441         parent destination directories before copying a file into place.
45442
45443 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45444
45445         bootstrap: work also with 4-argument variant of AC_INIT
45446         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45447
45448 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         Port test-getaddrinfo to Solaris.
45451         Problem reported by Bruno Haible in
45452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45453         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45454         explanation of setting 'hints'.
45455         Don't reject an implementation merely because it returns EAI_SERVICE.
45456         (EAI_SERVICE): Define to 0 if not defined.
45457
45458 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45459
45460         The license of gnu-make and posix-shell is now "GPLed build tool".
45461         * modules/gnu-make (License): Likewise.
45462         * modules/posix-shell (License): Likewise.
45463
45464         New module posix-shell, for determining a POSIX shell
45465         or perhaps something that is close enough to a POSIX shell.
45466         * m4/posix-shell.m4: New file.
45467         * modules/posix-shell: New file.
45468
45469         * MODULES.html.sh: Mention new module.
45470
45471         New module gnu-make, for determining whether we're using GNU Make.
45472         * m4/gnu-make.m4: New file.
45473         * modules/gnu-make: New file.
45474         * MODULES.html.sh: Mention new module.
45475
45476 2007-11-14  Jim Meyering  <meyering@redhat.com>
45477
45478         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45479         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45480         use this macro to create a function _definition_.
45481         Remove useless "#undef ARGMATCH_DIE".
45482
45483 2007-11-14  Bruno Haible  <bruno@clisp.org>
45484
45485         * lib/config.charset: Update for OpenBSD 4.1.
45486         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45487
45488 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45489
45490         Document 64-bit #if problems in stdint.texi.
45491         * doc/headers/stdint.texi (stdint.h): Mention problems with
45492         64-bit-#if, and how to work around them.
45493
45494         Don't insist on 'long long int' support in the preprocessor.  It
45495         breaks too many things.  For example, PRIdMAX still uses a 'long
45496         long int' format with the latest Sun compiler, even though
45497         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45498         preprocessor problem.  This causes the latest coreutils to dump
45499         core on Solaris 10 sparc with the Sun C compiler.
45500         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45501         the troublesome expressions at configure-time, not at #if-time.
45502         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45503         preprocessor.
45504         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45505         compile-time C checks, done at 'configure'-time.
45506         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45507         * modules/inttypes (Makefile): Substitute the new symbols that
45508         gl_INTTYPES_H now generates.
45509         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45510
45511 2007-11-12  Bruno Haible  <bruno@clisp.org>
45512
45513         Tests for Unicode character classification functions.
45514
45515         * modules/unictype/bidicategory-byname-tests: New file.
45516         * modules/unictype/bidicategory-name-tests: New file.
45517         * modules/unictype/bidicategory-of-tests: New file.
45518         * modules/unictype/bidicategory-test-tests: New file.
45519         * modules/unictype/block-list-tests: New file.
45520         * modules/unictype/block-of-tests: New file.
45521         * modules/unictype/block-test-tests: New file.
45522         * modules/unictype/category-C-tests: New file.
45523         * modules/unictype/category-Cc-tests: New file.
45524         * modules/unictype/category-Cf-tests: New file.
45525         * modules/unictype/category-Cn-tests: New file.
45526         * modules/unictype/category-Co-tests: New file.
45527         * modules/unictype/category-Cs-tests: New file.
45528         * modules/unictype/category-L-tests: New file.
45529         * modules/unictype/category-Ll-tests: New file.
45530         * modules/unictype/category-Lm-tests: New file.
45531         * modules/unictype/category-Lo-tests: New file.
45532         * modules/unictype/category-Lt-tests: New file.
45533         * modules/unictype/category-Lu-tests: New file.
45534         * modules/unictype/category-M-tests: New file.
45535         * modules/unictype/category-Mc-tests: New file.
45536         * modules/unictype/category-Me-tests: New file.
45537         * modules/unictype/category-Mn-tests: New file.
45538         * modules/unictype/category-N-tests: New file.
45539         * modules/unictype/category-Nd-tests: New file.
45540         * modules/unictype/category-Nl-tests: New file.
45541         * modules/unictype/category-No-tests: New file.
45542         * modules/unictype/category-P-tests: New file.
45543         * modules/unictype/category-Pc-tests: New file.
45544         * modules/unictype/category-Pd-tests: New file.
45545         * modules/unictype/category-Pe-tests: New file.
45546         * modules/unictype/category-Pf-tests: New file.
45547         * modules/unictype/category-Pi-tests: New file.
45548         * modules/unictype/category-Po-tests: New file.
45549         * modules/unictype/category-Ps-tests: New file.
45550         * modules/unictype/category-S-tests: New file.
45551         * modules/unictype/category-Sc-tests: New file.
45552         * modules/unictype/category-Sk-tests: New file.
45553         * modules/unictype/category-Sm-tests: New file.
45554         * modules/unictype/category-So-tests: New file.
45555         * modules/unictype/category-Z-tests: New file.
45556         * modules/unictype/category-Zl-tests: New file.
45557         * modules/unictype/category-Zp-tests: New file.
45558         * modules/unictype/category-Zs-tests: New file.
45559         * modules/unictype/category-and-not-tests: New file.
45560         * modules/unictype/category-and-tests: New file.
45561         * modules/unictype/category-byname-tests: New file.
45562         * modules/unictype/category-name-tests: New file.
45563         * modules/unictype/category-none-tests: New file.
45564         * modules/unictype/category-of-tests: New file.
45565         * modules/unictype/category-or-tests: New file.
45566         * modules/unictype/category-test-withtable-tests: New file.
45567         * modules/unictype/combining-class-tests: New file.
45568         * modules/unictype/ctype-alnum-tests: New file.
45569         * modules/unictype/ctype-alpha-tests: New file.
45570         * modules/unictype/ctype-blank-tests: New file.
45571         * modules/unictype/ctype-cntrl-tests: New file.
45572         * modules/unictype/ctype-digit-tests: New file.
45573         * modules/unictype/ctype-graph-tests: New file.
45574         * modules/unictype/ctype-lower-tests: New file.
45575         * modules/unictype/ctype-print-tests: New file.
45576         * modules/unictype/ctype-punct-tests: New file.
45577         * modules/unictype/ctype-space-tests: New file.
45578         * modules/unictype/ctype-upper-tests: New file.
45579         * modules/unictype/ctype-xdigit-tests: New file.
45580         * modules/unictype/decimal-digit-tests: New file.
45581         * modules/unictype/digit-tests: New file.
45582         * modules/unictype/mirror-tests: New file.
45583         * modules/unictype/numeric-tests: New file.
45584         * modules/unictype/property-alphabetic-tests: New file.
45585         * modules/unictype/property-ascii-hex-digit-tests: New file.
45586         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45587         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45588         * modules/unictype/property-bidi-block-separator-tests: New file.
45589         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45590         * modules/unictype/property-bidi-common-separator-tests: New file.
45591         * modules/unictype/property-bidi-control-tests: New file.
45592         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45593         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45594         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45595         * modules/unictype/property-bidi-european-digit-tests: New file.
45596         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45597         * modules/unictype/property-bidi-left-to-right-tests: New file.
45598         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45599         * modules/unictype/property-bidi-other-neutral-tests: New file.
45600         * modules/unictype/property-bidi-pdf-tests: New file.
45601         * modules/unictype/property-bidi-segment-separator-tests: New file.
45602         * modules/unictype/property-bidi-whitespace-tests: New file.
45603         * modules/unictype/property-byname-tests: New file.
45604         * modules/unictype/property-combining-tests: New file.
45605         * modules/unictype/property-composite-tests: New file.
45606         * modules/unictype/property-currency-symbol-tests: New file.
45607         * modules/unictype/property-dash-tests: New file.
45608         * modules/unictype/property-decimal-digit-tests: New file.
45609         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45610         * modules/unictype/property-deprecated-tests: New file.
45611         * modules/unictype/property-diacritic-tests: New file.
45612         * modules/unictype/property-extender-tests: New file.
45613         * modules/unictype/property-format-control-tests: New file.
45614         * modules/unictype/property-grapheme-base-tests: New file.
45615         * modules/unictype/property-grapheme-extend-tests: New file.
45616         * modules/unictype/property-grapheme-link-tests: New file.
45617         * modules/unictype/property-hex-digit-tests: New file.
45618         * modules/unictype/property-hyphen-tests: New file.
45619         * modules/unictype/property-id-continue-tests: New file.
45620         * modules/unictype/property-id-start-tests: New file.
45621         * modules/unictype/property-ideographic-tests: New file.
45622         * modules/unictype/property-ids-binary-operator-tests: New file.
45623         * modules/unictype/property-ids-trinary-operator-tests: New file.
45624         * modules/unictype/property-ignorable-control-tests: New file.
45625         * modules/unictype/property-iso-control-tests: New file.
45626         * modules/unictype/property-join-control-tests: New file.
45627         * modules/unictype/property-left-of-pair-tests: New file.
45628         * modules/unictype/property-line-separator-tests: New file.
45629         * modules/unictype/property-logical-order-exception-tests: New file.
45630         * modules/unictype/property-lowercase-tests: New file.
45631         * modules/unictype/property-math-tests: New file.
45632         * modules/unictype/property-non-break-tests: New file.
45633         * modules/unictype/property-not-a-character-tests: New file.
45634         * modules/unictype/property-numeric-tests: New file.
45635         * modules/unictype/property-other-alphabetic-tests: New file.
45636         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45637         * modules/unictype/property-other-grapheme-extend-tests: New file.
45638         * modules/unictype/property-other-id-continue-tests: New file.
45639         * modules/unictype/property-other-id-start-tests: New file.
45640         * modules/unictype/property-other-lowercase-tests: New file.
45641         * modules/unictype/property-other-math-tests: New file.
45642         * modules/unictype/property-other-uppercase-tests: New file.
45643         * modules/unictype/property-paired-punctuation-tests: New file.
45644         * modules/unictype/property-paragraph-separator-tests: New file.
45645         * modules/unictype/property-pattern-syntax-tests: New file.
45646         * modules/unictype/property-pattern-white-space-tests: New file.
45647         * modules/unictype/property-private-use-tests: New file.
45648         * modules/unictype/property-punctuation-tests: New file.
45649         * modules/unictype/property-quotation-mark-tests: New file.
45650         * modules/unictype/property-radical-tests: New file.
45651         * modules/unictype/property-sentence-terminal-tests: New file.
45652         * modules/unictype/property-soft-dotted-tests: New file.
45653         * modules/unictype/property-space-tests: New file.
45654         * modules/unictype/property-terminal-punctuation-tests: New file.
45655         * modules/unictype/property-test-tests: New file.
45656         * modules/unictype/property-titlecase-tests: New file.
45657         * modules/unictype/property-unassigned-code-value-tests: New file.
45658         * modules/unictype/property-unified-ideograph-tests: New file.
45659         * modules/unictype/property-uppercase-tests: New file.
45660         * modules/unictype/property-variation-selector-tests: New file.
45661         * modules/unictype/property-white-space-tests: New file.
45662         * modules/unictype/property-xid-continue-tests: New file.
45663         * modules/unictype/property-xid-start-tests: New file.
45664         * modules/unictype/property-zero-width-tests: New file.
45665         * modules/unictype/scripts-tests: New file.
45666         * modules/unictype/syntax-c-ident-tests: New file.
45667         * modules/unictype/syntax-c-whitespace-tests: New file.
45668         * modules/unictype/syntax-java-ident-tests: New file.
45669         * modules/unictype/syntax-java-whitespace-tests: New file.
45670         * tests/unictype/test-bidi_byname.c: New file.
45671         * tests/unictype/test-bidi_name.c: New file.
45672         * tests/unictype/test-bidi_of.c: New file.
45673         * tests/unictype/test-bidi_test.c: New file.
45674         * tests/unictype/test-block_list.c: New file.
45675         * tests/unictype/test-block_of.c: New file.
45676         * tests/unictype/test-block_test.c: New file.
45677         * tests/unictype/test-categ_and.c: New file.
45678         * tests/unictype/test-categ_and_not.c: New file.
45679         * tests/unictype/test-categ_byname.c: New file.
45680         * tests/unictype/test-categ_name.c: New file.
45681         * tests/unictype/test-categ_none.c: New file.
45682         * tests/unictype/test-categ_of.c: New file.
45683         * tests/unictype/test-categ_or.c: New file.
45684         * tests/unictype/test-categ_test_withtable.c: New file.
45685         * tests/unictype/test-combining.c: New file.
45686         * tests/unictype/test-decdigit.c: New file.
45687         * tests/unictype/test-digit.c: New file.
45688         * tests/unictype/test-mirror.c: New file.
45689         * tests/unictype/test-numeric.c: New file.
45690         * tests/unictype/test-pr_byname.c: New file.
45691         * tests/unictype/test-pr_test.c: New file.
45692         * tests/unictype/test-predicate-part1.h: New file.
45693         * tests/unictype/test-predicate-part2.h: New file.
45694         * tests/unictype/test-scripts.c: New file.
45695         * tests/unictype/test-sy_c_ident.c: New file.
45696         * tests/unictype/test-sy_java_ident.c: New file.
45697
45698         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45699         for Unicode 5.0.0.
45700         * tests/unictype/test-categ_Cc.c: Likewise.
45701         * tests/unictype/test-categ_Cf.c: Likewise.
45702         * tests/unictype/test-categ_Cn.c: Likewise.
45703         * tests/unictype/test-categ_Co.c: Likewise.
45704         * tests/unictype/test-categ_Cs.c: Likewise.
45705         * tests/unictype/test-categ_L.c: Likewise.
45706         * tests/unictype/test-categ_Ll.c: Likewise.
45707         * tests/unictype/test-categ_Lm.c: Likewise.
45708         * tests/unictype/test-categ_Lo.c: Likewise.
45709         * tests/unictype/test-categ_Lt.c: Likewise.
45710         * tests/unictype/test-categ_Lu.c: Likewise.
45711         * tests/unictype/test-categ_M.c: Likewise.
45712         * tests/unictype/test-categ_Mc.c: Likewise.
45713         * tests/unictype/test-categ_Me.c: Likewise.
45714         * tests/unictype/test-categ_Mn.c: Likewise.
45715         * tests/unictype/test-categ_N.c: Likewise.
45716         * tests/unictype/test-categ_Nd.c: Likewise.
45717         * tests/unictype/test-categ_Nl.c: Likewise.
45718         * tests/unictype/test-categ_No.c: Likewise.
45719         * tests/unictype/test-categ_P.c: Likewise.
45720         * tests/unictype/test-categ_Pc.c: Likewise.
45721         * tests/unictype/test-categ_Pd.c: Likewise.
45722         * tests/unictype/test-categ_Pe.c: Likewise.
45723         * tests/unictype/test-categ_Pf.c: Likewise.
45724         * tests/unictype/test-categ_Pi.c: Likewise.
45725         * tests/unictype/test-categ_Po.c: Likewise.
45726         * tests/unictype/test-categ_Ps.c: Likewise.
45727         * tests/unictype/test-categ_S.c: Likewise.
45728         * tests/unictype/test-categ_Sc.c: Likewise.
45729         * tests/unictype/test-categ_Sk.c: Likewise.
45730         * tests/unictype/test-categ_Sm.c: Likewise.
45731         * tests/unictype/test-categ_So.c: Likewise.
45732         * tests/unictype/test-categ_Z.c: Likewise.
45733         * tests/unictype/test-categ_Zl.c: Likewise.
45734         * tests/unictype/test-categ_Zp.c: Likewise.
45735         * tests/unictype/test-categ_Zs.c: Likewise.
45736         * tests/unictype/test-ctype_alnum.c: Likewise.
45737         * tests/unictype/test-ctype_alpha.c: Likewise.
45738         * tests/unictype/test-ctype_blank.c: Likewise.
45739         * tests/unictype/test-ctype_cntrl.c: Likewise.
45740         * tests/unictype/test-ctype_digit.c: Likewise.
45741         * tests/unictype/test-ctype_graph.c: Likewise.
45742         * tests/unictype/test-ctype_lower.c: Likewise.
45743         * tests/unictype/test-ctype_print.c: Likewise.
45744         * tests/unictype/test-ctype_punct.c: Likewise.
45745         * tests/unictype/test-ctype_space.c: Likewise.
45746         * tests/unictype/test-ctype_upper.c: Likewise.
45747         * tests/unictype/test-ctype_xdigit.c: Likewise.
45748         * tests/unictype/test-decdigit.h: Likewise.
45749         * tests/unictype/test-digit.h: Likewise.
45750         * tests/unictype/test-numeric.h: Likewise.
45751         * tests/unictype/test-pr_alphabetic.c: Likewise.
45752         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45753         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45754         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45755         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45756         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45757         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45758         * tests/unictype/test-pr_bidi_control.c: Likewise.
45759         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45760         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45761         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45762         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45763         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45764         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45765         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45766         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45767         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45768         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45769         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45770         * tests/unictype/test-pr_combining.c: Likewise.
45771         * tests/unictype/test-pr_composite.c: Likewise.
45772         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45773         * tests/unictype/test-pr_dash.c: Likewise.
45774         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45775         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45776         * tests/unictype/test-pr_deprecated.c: Likewise.
45777         * tests/unictype/test-pr_diacritic.c: Likewise.
45778         * tests/unictype/test-pr_extender.c: Likewise.
45779         * tests/unictype/test-pr_format_control.c: Likewise.
45780         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45781         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45782         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45783         * tests/unictype/test-pr_hex_digit.c: Likewise.
45784         * tests/unictype/test-pr_hyphen.c: Likewise.
45785         * tests/unictype/test-pr_id_continue.c: Likewise.
45786         * tests/unictype/test-pr_id_start.c: Likewise.
45787         * tests/unictype/test-pr_ideographic.c: Likewise.
45788         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45789         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45790         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45791         * tests/unictype/test-pr_iso_control.c: Likewise.
45792         * tests/unictype/test-pr_join_control.c: Likewise.
45793         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45794         * tests/unictype/test-pr_line_separator.c: Likewise.
45795         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45796         * tests/unictype/test-pr_lowercase.c: Likewise.
45797         * tests/unictype/test-pr_math.c: Likewise.
45798         * tests/unictype/test-pr_non_break.c: Likewise.
45799         * tests/unictype/test-pr_not_a_character.c: Likewise.
45800         * tests/unictype/test-pr_numeric.c: Likewise.
45801         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45802         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45803         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45804         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45805         * tests/unictype/test-pr_other_id_start.c: Likewise.
45806         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45807         * tests/unictype/test-pr_other_math.c: Likewise.
45808         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45809         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45810         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45811         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45812         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45813         * tests/unictype/test-pr_private_use.c: Likewise.
45814         * tests/unictype/test-pr_punctuation.c: Likewise.
45815         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45816         * tests/unictype/test-pr_radical.c: Likewise.
45817         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45818         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45819         * tests/unictype/test-pr_space.c: Likewise.
45820         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45821         * tests/unictype/test-pr_titlecase.c: Likewise.
45822         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45823         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45824         * tests/unictype/test-pr_uppercase.c: Likewise.
45825         * tests/unictype/test-pr_variation_selector.c: Likewise.
45826         * tests/unictype/test-pr_white_space.c: Likewise.
45827         * tests/unictype/test-pr_xid_continue.c: Likewise.
45828         * tests/unictype/test-pr_xid_start.c: Likewise.
45829         * tests/unictype/test-pr_zero_width.c: Likewise.
45830         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45831         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45832
45833 2007-11-12  Bruno Haible  <bruno@clisp.org>
45834
45835         Unicode character classification functions.
45836         * lib/unictype.h: New file.
45837         * modules/unictype/base: New file.
45838         * modules/unictype/category-L: New file.
45839         * modules/unictype/category-Lu: New file.
45840         * modules/unictype/category-Ll: New file.
45841         * modules/unictype/category-Lt: New file.
45842         * modules/unictype/category-Lm: New file.
45843         * modules/unictype/category-Lo: New file.
45844         * modules/unictype/category-M: New file.
45845         * modules/unictype/category-Mn: New file.
45846         * modules/unictype/category-Mc: New file.
45847         * modules/unictype/category-Me: New file.
45848         * modules/unictype/category-N: New file.
45849         * modules/unictype/category-Nd: New file.
45850         * modules/unictype/category-Nl: New file.
45851         * modules/unictype/category-No: New file.
45852         * modules/unictype/category-P: New file.
45853         * modules/unictype/category-Pc: New file.
45854         * modules/unictype/category-Pd: New file.
45855         * modules/unictype/category-Ps: New file.
45856         * modules/unictype/category-Pe: New file.
45857         * modules/unictype/category-Pi: New file.
45858         * modules/unictype/category-Pf: New file.
45859         * modules/unictype/category-Po: New file.
45860         * modules/unictype/category-S: New file.
45861         * modules/unictype/category-Sm: New file.
45862         * modules/unictype/category-Sc: New file.
45863         * modules/unictype/category-Sk: New file.
45864         * modules/unictype/category-So: New file.
45865         * modules/unictype/category-Z: New file.
45866         * modules/unictype/category-Zs: New file.
45867         * modules/unictype/category-Zl: New file.
45868         * modules/unictype/category-Zp: New file.
45869         * modules/unictype/category-C: New file.
45870         * modules/unictype/category-Cc: New file.
45871         * modules/unictype/category-Cf: New file.
45872         * modules/unictype/category-Cs: New file.
45873         * modules/unictype/category-Co: New file.
45874         * modules/unictype/category-Cn: New file.
45875         * modules/unictype/category-or: New file.
45876         * modules/unictype/category-of: New file.
45877         * modules/unictype/category-test: New file.
45878         * modules/unictype/category-test-withtable: New file.
45879         * modules/unictype/category-byname: New file.
45880         * modules/unictype/category-none: New file.
45881         * modules/unictype/category-and: New file.
45882         * modules/unictype/category-and-not: New file.
45883         * modules/unictype/category-name: New file.
45884         * modules/unictype/combining-class: New file.
45885         * modules/unictype/category-all: New file.
45886         * modules/unictype/bidicategory-all: New file.
45887         * modules/unictype/bidicategory-byname: New file.
45888         * modules/unictype/bidicategory-name: New file.
45889         * modules/unictype/bidicategory-of: New file.
45890         * modules/unictype/bidicategory-test: New file.
45891         * modules/unictype/decimal-digit: New file.
45892         * modules/unictype/digit: New file.
45893         * modules/unictype/numeric: New file.
45894         * modules/unictype/mirror: New file.
45895         * modules/unictype/property-white-space: New file.
45896         * modules/unictype/property-alphabetic: New file.
45897         * modules/unictype/property-other-alphabetic: New file.
45898         * modules/unictype/property-not-a-character: New file.
45899         * modules/unictype/property-default-ignorable-code-point: New file.
45900         * modules/unictype/property-other-default-ignorable-code-point: New
45901         file.
45902         * modules/unictype/property-deprecated: New file.
45903         * modules/unictype/property-logical-order-exception: New file.
45904         * modules/unictype/property-variation-selector: New file.
45905         * modules/unictype/property-private-use: New file.
45906         * modules/unictype/property-unassigned-code-value: New file.
45907         * modules/unictype/property-uppercase: New file.
45908         * modules/unictype/property-other-uppercase: New file.
45909         * modules/unictype/property-lowercase: New file.
45910         * modules/unictype/property-other-lowercase: New file.
45911         * modules/unictype/property-titlecase: New file.
45912         * modules/unictype/property-soft-dotted: New file.
45913         * modules/unictype/property-id-start: New file.
45914         * modules/unictype/property-other-id-start: New file.
45915         * modules/unictype/property-id-continue: New file.
45916         * modules/unictype/property-other-id-continue: New file.
45917         * modules/unictype/property-xid-start: New file.
45918         * modules/unictype/property-xid-continue: New file.
45919         * modules/unictype/property-pattern-white-space: New file.
45920         * modules/unictype/property-pattern-syntax: New file.
45921         * modules/unictype/property-join-control: New file.
45922         * modules/unictype/property-grapheme-base: New file.
45923         * modules/unictype/property-grapheme-extend: New file.
45924         * modules/unictype/property-other-grapheme-extend: New file.
45925         * modules/unictype/property-grapheme-link: New file.
45926         * modules/unictype/property-bidi-control: New file.
45927         * modules/unictype/property-bidi-left-to-right: New file.
45928         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45929         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45930         * modules/unictype/property-bidi-european-digit: New file.
45931         * modules/unictype/property-bidi-eur-num-separator: New file.
45932         * modules/unictype/property-bidi-eur-num-terminator: New file.
45933         * modules/unictype/property-bidi-arabic-digit: New file.
45934         * modules/unictype/property-bidi-common-separator: New file.
45935         * modules/unictype/property-bidi-block-separator: New file.
45936         * modules/unictype/property-bidi-segment-separator: New file.
45937         * modules/unictype/property-bidi-whitespace: New file.
45938         * modules/unictype/property-bidi-non-spacing-mark: New file.
45939         * modules/unictype/property-bidi-boundary-neutral: New file.
45940         * modules/unictype/property-bidi-pdf: New file.
45941         * modules/unictype/property-bidi-embedding-or-override: New file.
45942         * modules/unictype/property-bidi-other-neutral: New file.
45943         * modules/unictype/property-hex-digit: New file.
45944         * modules/unictype/property-ascii-hex-digit: New file.
45945         * modules/unictype/property-ideographic: New file.
45946         * modules/unictype/property-unified-ideograph: New file.
45947         * modules/unictype/property-radical: New file.
45948         * modules/unictype/property-ids-binary-operator: New file.
45949         * modules/unictype/property-ids-trinary-operator: New file.
45950         * modules/unictype/property-zero-width: New file.
45951         * modules/unictype/property-space: New file.
45952         * modules/unictype/property-non-break: New file.
45953         * modules/unictype/property-iso-control: New file.
45954         * modules/unictype/property-format-control: New file.
45955         * modules/unictype/property-dash: New file.
45956         * modules/unictype/property-hyphen: New file.
45957         * modules/unictype/property-punctuation: New file.
45958         * modules/unictype/property-line-separator: New file.
45959         * modules/unictype/property-paragraph-separator: New file.
45960         * modules/unictype/property-quotation-mark: New file.
45961         * modules/unictype/property-sentence-terminal: New file.
45962         * modules/unictype/property-terminal-punctuation: New file.
45963         * modules/unictype/property-currency-symbol: New file.
45964         * modules/unictype/property-math: New file.
45965         * modules/unictype/property-other-math: New file.
45966         * modules/unictype/property-paired-punctuation: New file.
45967         * modules/unictype/property-left-of-pair: New file.
45968         * modules/unictype/property-combining: New file.
45969         * modules/unictype/property-composite: New file.
45970         * modules/unictype/property-decimal-digit: New file.
45971         * modules/unictype/property-numeric: New file.
45972         * modules/unictype/property-diacritic: New file.
45973         * modules/unictype/property-extender: New file.
45974         * modules/unictype/property-ignorable-control: New file.
45975         * modules/unictype/property-test: New file.
45976         * modules/unictype/property-byname: New file.
45977         * modules/unictype/property-all: New file.
45978         * modules/unictype/scripts: New file.
45979         * modules/unictype/scripts-all: New file.
45980         * modules/unictype/block-of: New file.
45981         * modules/unictype/block-test: New file.
45982         * modules/unictype/block-list: New file.
45983         * modules/unictype/block-all: New file.
45984         * modules/unictype/syntax-c-whitespace: New file.
45985         * modules/unictype/syntax-java-whitespace: New file.
45986         * modules/unictype/syntax-c-ident: New file.
45987         * modules/unictype/syntax-java-ident: New file.
45988         * modules/unictype/ctype-alnum: New file.
45989         * modules/unictype/ctype-alpha: New file.
45990         * modules/unictype/ctype-cntrl: New file.
45991         * modules/unictype/ctype-digit: New file.
45992         * modules/unictype/ctype-graph: New file.
45993         * modules/unictype/ctype-lower: New file.
45994         * modules/unictype/ctype-print: New file.
45995         * modules/unictype/ctype-punct: New file.
45996         * modules/unictype/ctype-space: New file.
45997         * modules/unictype/ctype-upper: New file.
45998         * modules/unictype/ctype-xdigit: New file.
45999         * modules/unictype/ctype-blank: New file.
46000         * lib/unictype/bidi_byname.c: New file.
46001         * lib/unictype/bidi_name.c: New file.
46002         * lib/unictype/bidi_of.c: New file.
46003         * lib/unictype/bidi_test.c: New file.
46004         * lib/unictype/bitmap.h: New file.
46005         * lib/unictype/block_test.c: New file.
46006         * lib/unictype/blocks.c: New file.
46007         * lib/unictype/categ_C.c: New file.
46008         * lib/unictype/categ_Cc.c: New file.
46009         * lib/unictype/categ_Cf.c: New file.
46010         * lib/unictype/categ_Cn.c: New file.
46011         * lib/unictype/categ_Co.c: New file.
46012         * lib/unictype/categ_Cs.c: New file.
46013         * lib/unictype/categ_L.c: New file.
46014         * lib/unictype/categ_Ll.c: New file.
46015         * lib/unictype/categ_Lm.c: New file.
46016         * lib/unictype/categ_Lo.c: New file.
46017         * lib/unictype/categ_Lt.c: New file.
46018         * lib/unictype/categ_Lu.c: New file.
46019         * lib/unictype/categ_M.c: New file.
46020         * lib/unictype/categ_Mc.c: New file.
46021         * lib/unictype/categ_Me.c: New file.
46022         * lib/unictype/categ_Mn.c: New file.
46023         * lib/unictype/categ_N.c: New file.
46024         * lib/unictype/categ_Nd.c: New file.
46025         * lib/unictype/categ_Nl.c: New file.
46026         * lib/unictype/categ_No.c: New file.
46027         * lib/unictype/categ_P.c: New file.
46028         * lib/unictype/categ_Pc.c: New file.
46029         * lib/unictype/categ_Pd.c: New file.
46030         * lib/unictype/categ_Pe.c: New file.
46031         * lib/unictype/categ_Pf.c: New file.
46032         * lib/unictype/categ_Pi.c: New file.
46033         * lib/unictype/categ_Po.c: New file.
46034         * lib/unictype/categ_Ps.c: New file.
46035         * lib/unictype/categ_S.c: New file.
46036         * lib/unictype/categ_Sc.c: New file.
46037         * lib/unictype/categ_Sk.c: New file.
46038         * lib/unictype/categ_Sm.c: New file.
46039         * lib/unictype/categ_So.c: New file.
46040         * lib/unictype/categ_Z.c: New file.
46041         * lib/unictype/categ_Zl.c: New file.
46042         * lib/unictype/categ_Zp.c: New file.
46043         * lib/unictype/categ_Zs.c: New file.
46044         * lib/unictype/categ_and.c: New file.
46045         * lib/unictype/categ_and_not.c: New file.
46046         * lib/unictype/categ_byname.c: New file.
46047         * lib/unictype/categ_name.c: New file.
46048         * lib/unictype/categ_none.c: New file.
46049         * lib/unictype/categ_of.c: New file.
46050         * lib/unictype/categ_or.c: New file.
46051         * lib/unictype/categ_test.c: New file.
46052         * lib/unictype/combining.c: New file.
46053         * lib/unictype/ctype_alnum.c: New file.
46054         * lib/unictype/ctype_alpha.c: New file.
46055         * lib/unictype/ctype_blank.c: New file.
46056         * lib/unictype/ctype_cntrl.c: New file.
46057         * lib/unictype/ctype_digit.c: New file.
46058         * lib/unictype/ctype_graph.c: New file.
46059         * lib/unictype/ctype_lower.c: New file.
46060         * lib/unictype/ctype_print.c: New file.
46061         * lib/unictype/ctype_punct.c: New file.
46062         * lib/unictype/ctype_space.c: New file.
46063         * lib/unictype/ctype_upper.c: New file.
46064         * lib/unictype/ctype_xdigit.c: New file.
46065         * lib/unictype/decdigit.c: New file.
46066         * lib/unictype/digit.c: New file.
46067         * lib/unictype/identsyntaxmap.h: New file.
46068         * lib/unictype/mirror.c: New file.
46069         * lib/unictype/numeric.c: New file.
46070         * lib/unictype/pr_alphabetic.c: New file.
46071         * lib/unictype/pr_ascii_hex_digit.c: New file.
46072         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46073         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46074         * lib/unictype/pr_bidi_block_separator.c: New file.
46075         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46076         * lib/unictype/pr_bidi_common_separator.c: New file.
46077         * lib/unictype/pr_bidi_control.c: New file.
46078         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46079         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46080         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46081         * lib/unictype/pr_bidi_european_digit.c: New file.
46082         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46083         * lib/unictype/pr_bidi_left_to_right.c: New file.
46084         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46085         * lib/unictype/pr_bidi_other_neutral.c: New file.
46086         * lib/unictype/pr_bidi_pdf.c: New file.
46087         * lib/unictype/pr_bidi_segment_separator.c: New file.
46088         * lib/unictype/pr_bidi_whitespace.c: New file.
46089         * lib/unictype/pr_byname.c: New file.
46090         * lib/unictype/pr_byname.gperf: New file.
46091         * lib/unictype/pr_combining.c: New file.
46092         * lib/unictype/pr_composite.c: New file.
46093         * lib/unictype/pr_currency_symbol.c: New file.
46094         * lib/unictype/pr_dash.c: New file.
46095         * lib/unictype/pr_decimal_digit.c: New file.
46096         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46097         * lib/unictype/pr_deprecated.c: New file.
46098         * lib/unictype/pr_diacritic.c: New file.
46099         * lib/unictype/pr_extender.c: New file.
46100         * lib/unictype/pr_format_control.c: New file.
46101         * lib/unictype/pr_grapheme_base.c: New file.
46102         * lib/unictype/pr_grapheme_extend.c: New file.
46103         * lib/unictype/pr_grapheme_link.c: New file.
46104         * lib/unictype/pr_hex_digit.c: New file.
46105         * lib/unictype/pr_hyphen.c: New file.
46106         * lib/unictype/pr_id_continue.c: New file.
46107         * lib/unictype/pr_id_start.c: New file.
46108         * lib/unictype/pr_ideographic.c: New file.
46109         * lib/unictype/pr_ids_binary_operator.c: New file.
46110         * lib/unictype/pr_ids_trinary_operator.c: New file.
46111         * lib/unictype/pr_ignorable_control.c: New file.
46112         * lib/unictype/pr_iso_control.c: New file.
46113         * lib/unictype/pr_join_control.c: New file.
46114         * lib/unictype/pr_left_of_pair.c: New file.
46115         * lib/unictype/pr_line_separator.c: New file.
46116         * lib/unictype/pr_logical_order_exception.c: New file.
46117         * lib/unictype/pr_lowercase.c: New file.
46118         * lib/unictype/pr_math.c: New file.
46119         * lib/unictype/pr_non_break.c: New file.
46120         * lib/unictype/pr_not_a_character.c: New file.
46121         * lib/unictype/pr_numeric.c: New file.
46122         * lib/unictype/pr_other_alphabetic.c: New file.
46123         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46124         * lib/unictype/pr_other_grapheme_extend.c: New file.
46125         * lib/unictype/pr_other_id_continue.c: New file.
46126         * lib/unictype/pr_other_id_start.c: New file.
46127         * lib/unictype/pr_other_lowercase.c: New file.
46128         * lib/unictype/pr_other_math.c: New file.
46129         * lib/unictype/pr_other_uppercase.c: New file.
46130         * lib/unictype/pr_paired_punctuation.c: New file.
46131         * lib/unictype/pr_paragraph_separator.c: New file.
46132         * lib/unictype/pr_pattern_syntax.c: New file.
46133         * lib/unictype/pr_pattern_white_space.c: New file.
46134         * lib/unictype/pr_private_use.c: New file.
46135         * lib/unictype/pr_punctuation.c: New file.
46136         * lib/unictype/pr_quotation_mark.c: New file.
46137         * lib/unictype/pr_radical.c: New file.
46138         * lib/unictype/pr_sentence_terminal.c: New file.
46139         * lib/unictype/pr_soft_dotted.c: New file.
46140         * lib/unictype/pr_space.c: New file.
46141         * lib/unictype/pr_terminal_punctuation.c: New file.
46142         * lib/unictype/pr_test.c: New file.
46143         * lib/unictype/pr_titlecase.c: New file.
46144         * lib/unictype/pr_unassigned_code_value.c: New file.
46145         * lib/unictype/pr_unified_ideograph.c: New file.
46146         * lib/unictype/pr_uppercase.c: New file.
46147         * lib/unictype/pr_variation_selector.c: New file.
46148         * lib/unictype/pr_white_space.c: New file.
46149         * lib/unictype/pr_xid_continue.c: New file.
46150         * lib/unictype/pr_xid_start.c: New file.
46151         * lib/unictype/pr_zero_width.c: New file.
46152         * lib/unictype/scripts.c: New file.
46153         * lib/unictype/sy_c_ident.c: New file.
46154         * lib/unictype/sy_c_whitespace.c: New file.
46155         * lib/unictype/sy_java_ident.c: New file.
46156         * lib/unictype/sy_java_whitespace.c: New file.
46157
46158         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46159         Unicode 5.0.0.
46160         * lib/unictype/blocks.h: Likewise.
46161         * lib/unictype/categ_C.h: Likewise.
46162         * lib/unictype/categ_Cc.h: Likewise.
46163         * lib/unictype/categ_Cf.h: Likewise.
46164         * lib/unictype/categ_Cn.h: Likewise.
46165         * lib/unictype/categ_Co.h: Likewise.
46166         * lib/unictype/categ_Cs.h: Likewise.
46167         * lib/unictype/categ_L.h: Likewise.
46168         * lib/unictype/categ_Ll.h: Likewise.
46169         * lib/unictype/categ_Lm.h: Likewise.
46170         * lib/unictype/categ_Lo.h: Likewise.
46171         * lib/unictype/categ_Lt.h: Likewise.
46172         * lib/unictype/categ_Lu.h: Likewise.
46173         * lib/unictype/categ_M.h: Likewise.
46174         * lib/unictype/categ_Mc.h: Likewise.
46175         * lib/unictype/categ_Me.h: Likewise.
46176         * lib/unictype/categ_Mn.h: Likewise.
46177         * lib/unictype/categ_N.h: Likewise.
46178         * lib/unictype/categ_Nd.h: Likewise.
46179         * lib/unictype/categ_Nl.h: Likewise.
46180         * lib/unictype/categ_No.h: Likewise.
46181         * lib/unictype/categ_P.h: Likewise.
46182         * lib/unictype/categ_Pc.h: Likewise.
46183         * lib/unictype/categ_Pd.h: Likewise.
46184         * lib/unictype/categ_Pe.h: Likewise.
46185         * lib/unictype/categ_Pf.h: Likewise.
46186         * lib/unictype/categ_Pi.h: Likewise.
46187         * lib/unictype/categ_Po.h: Likewise.
46188         * lib/unictype/categ_Ps.h: Likewise.
46189         * lib/unictype/categ_S.h: Likewise.
46190         * lib/unictype/categ_Sc.h: Likewise.
46191         * lib/unictype/categ_Sk.h: Likewise.
46192         * lib/unictype/categ_Sm.h: Likewise.
46193         * lib/unictype/categ_So.h: Likewise.
46194         * lib/unictype/categ_Z.h: Likewise.
46195         * lib/unictype/categ_Zl.h: Likewise.
46196         * lib/unictype/categ_Zp.h: Likewise.
46197         * lib/unictype/categ_Zs.h: Likewise.
46198         * lib/unictype/categ_of.h: Likewise.
46199         * lib/unictype/combining.h: Likewise.
46200         * lib/unictype/ctype_alnum.h: Likewise.
46201         * lib/unictype/ctype_alpha.h: Likewise.
46202         * lib/unictype/ctype_blank.h: Likewise.
46203         * lib/unictype/ctype_cntrl.h: Likewise.
46204         * lib/unictype/ctype_digit.h: Likewise.
46205         * lib/unictype/ctype_graph.h: Likewise.
46206         * lib/unictype/ctype_lower.h: Likewise.
46207         * lib/unictype/ctype_print.h: Likewise.
46208         * lib/unictype/ctype_punct.h: Likewise.
46209         * lib/unictype/ctype_space.h: Likewise.
46210         * lib/unictype/ctype_upper.h: Likewise.
46211         * lib/unictype/ctype_xdigit.h: Likewise.
46212         * lib/unictype/decdigit.h: Likewise.
46213         * lib/unictype/digit.h: Likewise.
46214         * lib/unictype/mirror.h: Likewise.
46215         * lib/unictype/numeric.h: Likewise.
46216         * lib/unictype/pr_alphabetic.h: Likewise.
46217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46218         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46219         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46220         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46221         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46222         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46223         * lib/unictype/pr_bidi_control.h: Likewise.
46224         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46225         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46226         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46227         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46228         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46229         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46230         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46231         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46232         * lib/unictype/pr_bidi_pdf.h: Likewise.
46233         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46234         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46235         * lib/unictype/pr_combining.h: Likewise.
46236         * lib/unictype/pr_composite.h: Likewise.
46237         * lib/unictype/pr_currency_symbol.h: Likewise.
46238         * lib/unictype/pr_dash.h: Likewise.
46239         * lib/unictype/pr_decimal_digit.h: Likewise.
46240         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46241         * lib/unictype/pr_deprecated.h: Likewise.
46242         * lib/unictype/pr_diacritic.h: Likewise.
46243         * lib/unictype/pr_extender.h: Likewise.
46244         * lib/unictype/pr_format_control.h: Likewise.
46245         * lib/unictype/pr_grapheme_base.h: Likewise.
46246         * lib/unictype/pr_grapheme_extend.h: Likewise.
46247         * lib/unictype/pr_grapheme_link.h: Likewise.
46248         * lib/unictype/pr_hex_digit.h: Likewise.
46249         * lib/unictype/pr_hyphen.h: Likewise.
46250         * lib/unictype/pr_id_continue.h: Likewise.
46251         * lib/unictype/pr_id_start.h: Likewise.
46252         * lib/unictype/pr_ideographic.h: Likewise.
46253         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46254         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46255         * lib/unictype/pr_ignorable_control.h: Likewise.
46256         * lib/unictype/pr_iso_control.h: Likewise.
46257         * lib/unictype/pr_join_control.h: Likewise.
46258         * lib/unictype/pr_left_of_pair.h: Likewise.
46259         * lib/unictype/pr_line_separator.h: Likewise.
46260         * lib/unictype/pr_logical_order_exception.h: Likewise.
46261         * lib/unictype/pr_lowercase.h: Likewise.
46262         * lib/unictype/pr_math.h: Likewise.
46263         * lib/unictype/pr_non_break.h: Likewise.
46264         * lib/unictype/pr_not_a_character.h: Likewise.
46265         * lib/unictype/pr_numeric.h: Likewise.
46266         * lib/unictype/pr_other_alphabetic.h: Likewise.
46267         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46268         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46269         * lib/unictype/pr_other_id_continue.h: Likewise.
46270         * lib/unictype/pr_other_id_start.h: Likewise.
46271         * lib/unictype/pr_other_lowercase.h: Likewise.
46272         * lib/unictype/pr_other_math.h: Likewise.
46273         * lib/unictype/pr_other_uppercase.h: Likewise.
46274         * lib/unictype/pr_paired_punctuation.h: Likewise.
46275         * lib/unictype/pr_paragraph_separator.h: Likewise.
46276         * lib/unictype/pr_pattern_syntax.h: Likewise.
46277         * lib/unictype/pr_pattern_white_space.h: Likewise.
46278         * lib/unictype/pr_private_use.h: Likewise.
46279         * lib/unictype/pr_punctuation.h: Likewise.
46280         * lib/unictype/pr_quotation_mark.h: Likewise.
46281         * lib/unictype/pr_radical.h: Likewise.
46282         * lib/unictype/pr_sentence_terminal.h: Likewise.
46283         * lib/unictype/pr_soft_dotted.h: Likewise.
46284         * lib/unictype/pr_space.h: Likewise.
46285         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46286         * lib/unictype/pr_titlecase.h: Likewise.
46287         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46288         * lib/unictype/pr_unified_ideograph.h: Likewise.
46289         * lib/unictype/pr_uppercase.h: Likewise.
46290         * lib/unictype/pr_variation_selector.h: Likewise.
46291         * lib/unictype/pr_white_space.h: Likewise.
46292         * lib/unictype/pr_xid_continue.h: Likewise.
46293         * lib/unictype/pr_xid_start.h: Likewise.
46294         * lib/unictype/pr_zero_width.h: Likewise.
46295         * lib/unictype/scripts.h: Likewise.
46296         * lib/unictype/scripts_byname.gperf: Likewise.
46297         * lib/unictype/sy_c_ident.h: Likewise.
46298         * lib/unictype/sy_c_whitespace.h: Likewise.
46299         * lib/unictype/sy_java_ident.h: Likewise.
46300         * lib/unictype/sy_java_whitespace.h: Likewise.
46301
46302         * lib/unictype/Makefile: New file.
46303         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46304         glibc.
46305         * lib/unictype/3level.h: New file, copied from glibc.
46306         * lib/unictype/3levelbit.h: New file.
46307
46308 2007-11-11  Bruno Haible  <bruno@clisp.org>
46309
46310         * modules/gperf: New file.
46311         * modules/iconv_open (Depends-on): Add it.
46312         (Makefile.am): Remove the GPERF definition.
46313
46314 2007-11-11  Bruno Haible  <bruno@clisp.org>
46315
46316         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46317         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46318
46319 2007-11-11  Bruno Haible  <bruno@clisp.org>
46320
46321         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46322         (usage): Remove function.
46323
46324 2007-11-11  Bruno Haible  <bruno@clisp.org>
46325
46326         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46327         gl_FUNC_CEILF_LIBS.
46328         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46329         gl_FUNC_CEIL_LIBS.
46330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46331         gl_FUNC_CEILL_LIBS.
46332         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46333         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46334         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46335
46336 2007-11-11  Bruno Haible  <bruno@clisp.org>
46337
46338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46339         roundf were declared but do not exist on functions.
46340         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46341         roundl were declared but do not exist on functions.
46342         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46343         HAVE_FLOORL_AND_CEILL, respectively.
46344         Needed for Sun C on Solaris 10.
46345
46346 2007-11-11  Bruno Haible  <bruno@clisp.org>
46347
46348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46349         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46350         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46351         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46352         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46353         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46354         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46355         HAVE_DECL_ROUNDF.
46356         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46357         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46359         of HAVE_DECL_ROUND*.
46360         * modules/math (Makefile.am): Update.
46361
46362 2007-11-10  Bruno Haible  <bruno@clisp.org>
46363
46364         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46365         ptrdiff_t as m4/intl.m4.
46366
46367 2007-11-10  Jim Meyering  <meyering@redhat.com>
46368
46369         Avoid link failure for the argmatch test.
46370         * tests/test-argmatch.c (usage): Define function to avoid a link
46371         failure: argmatch_die requires a usage function.
46372
46373 2007-11-09  Bruno Haible  <bruno@clisp.org>
46374
46375         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46376         * doc/functions/vsnprintf.texi: Likewise.
46377         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46378         with a size argument < 2.
46379
46380 2007-11-09  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46383         buffer. Fixes an inefficiency introduced on 2007-11-03.
46384
46385 2007-11-09  Bruno Haible  <bruno@clisp.org>
46386
46387         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46388         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46389
46390 2007-11-08  Jim Meyering  <meyering@redhat.com>
46391
46392         Change cache variable name prefix "jm_" to "gl_" everywhere.
46393         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46394         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46395         * m4/uptime.m4: s/gl_/jm_/
46396
46397 2007-11-07  Bruno Haible  <bruno@clisp.org>
46398
46399         Update to GNU gettext 0.17.
46400         * m4/intl.m4: Update to GNU gettext 0.17.
46401         * m4/po.m4: Likewise.
46402         * modules/gettext (Files): Remove m4/ulonglong.m4.
46403         (configure.ac): Require gettext infrastructure from version 0.17.
46404
46405 2007-11-06  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46408         symbolic values are not defined in a public header.
46409         * lib/freadable.c (freadable) [QNX]: Likewise.
46410         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46411         * lib/freading.c (freading) [QNX]: Likewise.
46412         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46413         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46414         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46415         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46416         Reported by Alain Magloire.
46417
46418         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46419
46420 2007-11-05  Bruno Haible  <bruno@clisp.org>
46421
46422         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46423         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46424         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46425         Reported by Eric Blake.
46426
46427 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46428             Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46431         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46432         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46433         (malloc): Undefine also before including <stdlib.h>.
46434         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46435         Needed on OSF/1 4.0.
46436
46437 2007-11-05  Jim Meyering  <meyering@redhat.com>
46438
46439         git-version-gen: sync from coreutils.
46440         * build-aux/git-version-gen: Add comments.
46441         Change the first '-' to '.' in the snapshot version string,
46442         e.g., 6.9-377-08144 -> 6.9.377-08144
46443         Remove first parameter.
46444         Don't declare a version "-dirty" merely because a time
46445         stamp has changed.
46446
46447 2007-11-04  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/lock.h: Protect all macro definitions containing an 'if'
46450         statement through a "do { ... } while (0)".
46451         * lib/tls.h: Likewise.
46452
46453 2007-11-04  Bruno Haible  <bruno@clisp.org>
46454
46455         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46456
46457 2007-11-04  Bruno Haible  <bruno@clisp.org>
46458
46459         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46460         * modules/fprintf-posix (Depends-on): Add nocrash.
46461         * modules/snprintf-posix (Depends-on): Likewise.
46462         * modules/sprintf-posix (Depends-on): Likewise.
46463         * modules/vasnprintf-posix (Depends-on): Likewise.
46464         * modules/vasprintf-posix (Depends-on): Likewise.
46465         * modules/vfprintf-posix (Depends-on): Likewise.
46466         * modules/vsnprintf-posix (Depends-on): Likewise.
46467         * modules/vsprintf-posix (Depends-on): Likewise.
46468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46469         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46470         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46471         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46472         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46473         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46474         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46475
46476 2007-11-04  Bruno Haible  <bruno@clisp.org>
46477
46478         * modules/nocrash: New file.
46479         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46480         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46481
46482 2007-11-04  Bruno Haible  <bruno@clisp.org>
46483
46484         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46485         precision handling.
46486         * tests/test-vasprintf-posix.c (test_function): Likewise.
46487         * tests/test-snprintf-posix.h (test_function): Likewise.
46488         * tests/test-sprintf-posix.h (test_function): Likewise.
46489
46490         Fix *printf behaviour for large precisions on mingw and BeOS.
46491         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46492         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46494         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46496         gl_PRINTF_PRECISION and test its result. Invoke
46497         gl_PREREQ_VASNPRINTF_PRECISION.
46498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46500         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46505         * doc/functions/fprintf.texi: Update.
46506         * doc/functions/printf.texi: Update.
46507         * doc/functions/snprintf.texi: Update.
46508         * doc/functions/sprintf.texi: Update.
46509         * doc/functions/vfprintf.texi: Update.
46510         * doc/functions/vprintf.texi: Update.
46511         * doc/functions/vsnprintf.texi: Update.
46512         * doc/functions/vsprintf.texi: Update.
46513
46514 2007-11-04  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46517
46518 2007-11-04  Bruno Haible  <bruno@clisp.org>
46519
46520         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46521         Reported by Sylvain Beucler <beuc@gnu.org>.
46522
46523 2007-11-03  Bruno Haible  <bruno@clisp.org>
46524
46525         * tests/test-fprintf-posix2.sh: New file.
46526         * tests/test-fprintf-posix2.c: New file.
46527         * modules/fprintf-posix-tests (Files): Add them.
46528         (TESTS): Add test-fprintf-posix2.sh.
46529         (configure.ac): Check for getrlimit and setrlimit.
46530         (check_PROGRAMS): Add test-fprintf-posix2.
46531
46532         * tests/test-printf-posix2.sh: New file.
46533         * tests/test-printf-posix2.c: New file.
46534         * modules/printf-posix-tests (Files): Add them.
46535         (TESTS): Add test-printf-posix2.sh.
46536         (configure.ac): Check for getrlimit and setrlimit.
46537         (check_PROGRAMS): Add test-printf-posix2.
46538
46539         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46540         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46541         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46542         (decode_double): New function, copied from decode_long_double.
46543         (scale10_round_decimal_decoded): New function, extracted from
46544         scale10_round_decimal_long_double.
46545         (scale10_round_decimal_long_double): Use it.
46546         (scale10_round_decimal_double): New function.
46547         (floorlog10): New function.
46548         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46550         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46552         gl_PRINTF_ENOMEM and test its result. Invoke
46553         gl_PREREQ_VASNPRINTF_ENOMEM.
46554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46561         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46562         * modules/snprintf-posix (Depends-on): Likewise.
46563         * modules/sprintf-posix (Depends-on): Likewise.
46564         * modules/vasnprintf-posix (Depends-on): Likewise.
46565         * modules/vasprintf-posix (Depends-on): Likewise.
46566         * modules/vfprintf-posix (Depends-on): Likewise.
46567         * modules/vsnprintf-posix (Depends-on): Likewise.
46568         * modules/vsprintf-posix (Depends-on): Likewise.
46569         * doc/functions/fprintf.texi: Update.
46570         * doc/functions/printf.texi: Update.
46571         * doc/functions/snprintf.texi: Update.
46572         * doc/functions/sprintf.texi: Update.
46573         * doc/functions/vfprintf.texi: Update.
46574         * doc/functions/vprintf.texi: Update.
46575         * doc/functions/vsnprintf.texi: Update.
46576         * doc/functions/vsprintf.texi: Update.
46577
46578 2007-11-03  Bruno Haible  <bruno@clisp.org>
46579
46580         * modules/frexp-nolibm-tests: New file.
46581
46582         * modules/frexp-nolibm: New file.
46583         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46584
46585 2007-11-03  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46588         value is C99 compliant.
46589         Needed for OSF/1 5.1.
46590
46591 2007-11-03  Bruno Haible  <bruno@clisp.org>
46592
46593         Fix out-of-memory handling of vasnprintf.
46594         * lib/printf-parse.c: Include <errno.h>.
46595         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46596         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46597         is already set.
46598
46599 2007-11-02  Eric Blake  <ebb9@byu.net>
46600
46601         Fix tests on cygwin.
46602         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46603
46604 2007-11-01  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46607         warning.
46608         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46609         needed for POSIX compatibility.
46610
46611 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46614         for compatibility with GNU.
46615
46616 2007-11-01  Bruno Haible  <bruno@clisp.org>
46617
46618         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46619         (putenv): Renamed from rpl_putenv. Change argument type from
46620         'const char *' to 'char *'.
46621         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46622         of defining putenv in config.h, just set REPLACE_PUTENV.
46623         * modules/putenv (Depends-on): Add stdlib.
46624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46625         (Include): Use <stdlib.h>.
46626         * lib/stdlib.in.h (putenv): New declaration.
46627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46628         REPLACE_PUTENV.
46629         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46630         REPLACE_PUTENV.
46631         Needed for MacOS X 10.5.0.
46632         Reported by Peter O'Gorman <peter@pogma.com>.
46633
46634 2007-11-01  Jim Meyering  <meyering@redhat.com>
46635
46636         Treat an empty date string exactly like "0".
46637         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46638         if the remaining date string (to be parsed) is empty, use "0".
46639         Reported by Mischa Molhoek and discussed in this thread:
46640         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46641
46642 2007-10-31  Bruno Haible  <bruno@clisp.org>
46643
46644         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46645         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46646         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46647         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46648         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46649         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46650
46651 2007-10-31  Bruno Haible  <bruno@clisp.org>
46652
46653         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46654         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46655         (AC_TYPE_LONG_LONG_INT): Use it.
46656         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46657         it as well.
46658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46659         to m4/longlong.m4.
46660         * modules/stdint (Files): Remove m4/ulonglong.m4.
46661         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46662         m4/ulonglong.m4.
46663         * modules/strtoumax (Files): Likewise.
46664
46665 2007-10-30  Bruno Haible  <bruno@clisp.org>
46666
46667         * modules/xvasprintf-posix: New file.
46668         Suggested by Eric Blake.
46669
46670 2007-10-30  Bruno Haible  <bruno@clisp.org>
46671
46672         * modules/xprintf-posix-tests: New file.
46673         * tests/test-xprintf-posix.sh: New file.
46674         * tests/test-xprintf-posix.c: New file.
46675         * tests/test-xfprintf-posix.c: New file.
46676
46677         * modules/xprintf-posix: New file.
46678
46679 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46680
46681         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46682         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46683         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46684
46685 2007-10-29  Bruno Haible  <bruno@clisp.org>
46686
46687         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46688         contain the special marker '_cv_'.
46689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46690         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46691         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46692         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46693         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46694         Reported by Ralf Wildenhues.
46695
46696 2007-10-29  Bruno Haible  <bruno@clisp.org>
46697
46698         * gnulib-tool (func_import): When --lgpl is not specified, set
46699         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46700         GPLv3.
46701         Reported by Simon Josefsson.
46702
46703 2007-10-28  Bruno Haible  <bruno@clisp.org>
46704
46705         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46706         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46707         HAVE_DECL_ISFINITE.
46708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46709         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46710         HAVE_DECL_ISFINITE.
46711
46712 2007-10-28  Bruno Haible  <bruno@clisp.org>
46713
46714         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46715         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46716
46717 2007-10-28  Bruno Haible  <bruno@clisp.org>
46718
46719         Fix link errors with Sun C 5.0 on Solaris 10.
46720         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46721         function is declared but not present in the compiler's libm.
46722         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46723         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46724         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46725         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46726         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46727         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46728         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46730         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46731         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46732         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46733         HAVE_DECL_FLOORL.
46734
46735 2007-10-28  Bruno Haible  <bruno@clisp.org>
46736
46737         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46738         gl_FUNC_FLOORL. Cache the result.
46739         (gl_FUNC_FLOORL): Use it.
46740         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46741         gl_FUNC_CEILL. Cache the result.
46742         (gl_FUNC_CEILL): Use it.
46743
46744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46745         gl_FUNC_FLOOR. Cache the result.
46746         (gl_FUNC_FLOOR): Use it.
46747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46748         gl_FUNC_CEIL. Cache the result.
46749         (gl_FUNC_CEIL): Use it.
46750
46751         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46752         gl_FUNC_FLOORF. Cache the result.
46753         (gl_FUNC_FLOORF): Use it.
46754         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46755         gl_FUNC_CEILF. Cache the result.
46756         (gl_FUNC_CEILF): Use it.
46757
46758 2007-10-28  Bruno Haible  <bruno@clisp.org>
46759
46760         * gnulib-tool: Allow specifying the LGPL version number through
46761         --lgpl=2 or --lgpl=3.
46762         (func_usage): Document --lgpl with argument.
46763         Handle --lgpl=... arguments.
46764         (func_import): Recognize also gl_LGPL calls with an argument. When
46765         --lgpl=2 is used and the module's license is just LGPL, report an
46766         error. Set sed_transform_lib_file according to the lgpl variable. In
46767         the generated files, use --lgpl or gl_LGPL invocations with argument,
46768         if necessary.
46769         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46770         an LGPv2+ license.
46771         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46772         gl_LGPL macro.
46773
46774 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46775             Bruno Haible  <bruno@clisp.org>
46776
46777         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46778         (u16_uctomb_aux): Likewise.
46779         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46780         !HAVE_INLINE.
46781         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46782
46783 2007-10-28  Bruno Haible  <bruno@clisp.org>
46784
46785         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46786         Invoke AM_GETTEXT_OPTION if it exists.
46787         * modules/vasprintf: Likewise.
46788         * modules/verror: Likewise.
46789         * modules/xprintf: Likewise.
46790         * modules/xvasprintf: Likewise.
46791
46792 2007-10-27  Ben Pfaff  <blp@gnu.org>
46793
46794         * lib/math.in.h: Define isfinite macro and prototypes for
46795         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46796         implementations.
46797         * m4/math_h.m4: New substitutions for isfinite module.
46798         * lib/isfinite.c: New file.
46799         * m4/isfinite.m4: New file.
46800         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46801         * modules/isfinite: New file.
46802         * modules/isfinite-tests: New file.
46803         * tests/tests-isfinite.c: New file.
46804         * doc/functions/isfinite.texi: Mention isfinite module.
46805         * MODULES.html.sh: Mention new module.
46806
46807 2007-10-27  Ben Pfaff  <blp@gnu.org>
46808
46809         Ralf Wildenhues reported that Tru64 4.0D declares the round
46810         functions but does not have definitions.
46811         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46812         cannot be found in any library, set the output variable to
46813         "missing" instead of "".
46814         * m4/round.m4: Also use our substitute if we cannot find round in
46815         any library, even if it is declared.
46816         * m4/roundf.m4: Likewise for roundf.
46817         * m4/roundl.m4: Likewise for roundl.
46818         * lib/math.in.h: Undefine roundf, round, roundl before defining
46819         their replacements, to allow for hypothetical systems where these
46820         may be defined as macros but not available in libraries.
46821
46822 2007-10-27  Bruno Haible  <bruno@clisp.org>
46823
46824         * doc/gnulib.texi: Invoke @firstparagraphindent.
46825         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46826         changes in gnulib.
46827         (Source changes): New section.
46828
46829 2007-10-26  Bruno Haible  <bruno@clisp.org>
46830
46831         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46832         borrowed from autoconf.
46833
46834 2007-10-26  Bruno Haible  <bruno@clisp.org>
46835
46836         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46837         strerror returned the empty string. Needed on HP-UX 11.00.
46838
46839 2007-10-24  Micah Cowan  <micah@cowan.name>
46840
46841         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46842         * build-aux/bootstrap: Remove support for now-unnecessary option,
46843         --cvs-user, and envvars CVS_USER, CVS_RSH.
46844
46845 2007-10-24  Jim Meyering  <meyering@redhat.com>
46846
46847         Avoid diagnostics from sha1sum when there is no cached checksum.
46848         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46849         if the po.s1 file hasn't been created yet.
46850
46851         * build-aux/bootstrap: Sync from coreutils:
46852         2007-10-24  Jim Meyering  <meyering@redhat.com>
46853         Get gnulib from the git repository, not from an obsolete cvs one.
46854         * build-aux/bootstrap: Suggestion from Micah Cowan.
46855         2007-10-04  Jim Meyering  <jim@meyering.net>
46856         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46857         (update_po_files): Work also when there are no .po files in po/.
46858
46859 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46860
46861         * README: Append ".git" to git and cg examples.
46862         Problem reported by Benoit Sigoure.
46863
46864 2007-10-23  Micah Cowan  <micah@cowan.name>
46865
46866         * users.txt: Add wget.
46867
46868 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46869
46870         Fix linking of some unistdio tests on FreeBSD.
46871         * modules/unistdio/u16-vsnprintf-tests
46872         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46873         * modules/unistdio/u16-vsprintf-tests
46874         (test_u16_vsnprintf1_LDADD): Likewise.
46875         * modules/unistdio/u32-vsnprintf-tests
46876         (test_u32_vsnprintf1_LDADD): Likewise.
46877         * modules/unistdio/u32-vsprintf-tests
46878         (test_u32_vsprintf1_LDADD): Likewise.
46879         * modules/unistdio/u8-vsnprintf-tests
46880         (test_u8_vsnprintf1_LDADD): Likewise.
46881         * modules/unistdio/u8-vsprintf-tests
46882         (test_u8_vsprintf1_LDADD): Likewise.
46883         * modules/unistdio/ulc-vsnprintf-tests
46884         (test_ulc_vsnprintf1_LDADD): Likewise.
46885         * modules/unistdio/ulc-vsprintf-tests
46886         (test_ulc_vsprintf1_LDADD): Likewise.
46887
46888         Fix linking of some uniconv tests on FreeBSD.
46889         * modules/uniconv/u16-conv-from-enc-tests
46890         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46891         * modules/uniconv/u16-conv-to-enc-tests
46892         (test_u16_conv_to_enc_LDADD): Likewise.
46893         * modules/uniconv/u16-strconv-from-enc-tests
46894         (test_u16_strconv_from_enc_LDADD): Likewise.
46895         * modules/uniconv/u16-strconv-to-enc-tests
46896         (test_u16_strconv_to_enc_LDADD): Likewise.
46897         * modules/uniconv/u32-conv-from-enc-tests
46898         (test_u32_conv_from_enc_LDADD): Likewise.
46899         * modules/uniconv/u32-conv-to-enc-tests
46900         (test_u32_conv_to_enc_LDADD): Likewise.
46901         * modules/uniconv/u32-strconv-from-enc-tests
46902         (test_u32_strconv_from_enc_LDADD): Likewise.
46903         * modules/uniconv/u32-strconv-to-enc-tests
46904         (test_u32_strconv_to_enc_LDADD): Likewise.
46905         * modules/uniconv/u8-conv-from-enc-tests
46906         (test_u8_conv_from_enc_LDADD): Likewise.
46907         * modules/uniconv/u8-conv-to-enc-tests
46908         (test_u8_conv_to_enc_LDADD): Likewise.
46909         * modules/uniconv/u8-strconv-from-enc-tests
46910         (test_u8_strconv_from_enc_LDADD): Likewise.
46911         * modules/uniconv/u8-strconv-to-enc-tests
46912         (test_u8_strconv_to_enc_LDADD): Likewise.
46913
46914 2007-10-22  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46917         size.
46918
46919 2007-10-22  Eric Blake  <ebb9@byu.net>
46920
46921         Tweak x*printf documentation.
46922         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46923         variable name and comments.
46924         Suggested by Bruno Haible.
46925
46926 2007-10-22  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/acl.c (copy_acl): Fix file name in comment.
46929
46930 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46931
46932         Fix Tru64 problem with stdbool.h.
46933         * lib/stdbool.in.h (false, true):
46934         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46935         Don't declare as an enum in this situation; it runs afoul of Tru64.
46936         Problem reported by Steven M. Schweda in
46937         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46938
46939 2007-10-22  Eric Blake  <ebb9@byu.net>
46940
46941         Also wrap vf?printf.
46942         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46943         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46944         (xvprintf, xvfprintf): New functions.
46945
46946 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46947
46948         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46949         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46950
46951         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46952         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46953
46954 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46955
46956         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46957         by Bruno Haible.
46958
46959 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46960
46961         * lib/getloadavg.c
46962         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46963         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46964
46965         * tests/test-i-ring.c: Work for C89.
46966
46967 2007-10-22  Bruno Haible  <bruno@clisp.org>
46968
46969         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46970         -1u, in preprocessor expression, so that we don't test for the bug
46971         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46973
46974 2007-10-22  Eric Blake  <ebb9@byu.net>
46975
46976         * tests/test-yesno.sh: Silence stderr during test.
46977
46978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46979
46980         * modules/crypto/gc-camellia: New file.
46981
46982         * m4/gc-camellia.m4: New file.
46983
46984         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46985
46986         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46987
46988 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46989
46990         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46991         --help to stdout.  Reported by sms@antinode.org (Steven
46992         M. Schweda).
46993
46994 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46995
46996         * users.txt: Fix link to libksba.
46997
46998 2007-10-21  Ben Pfaff  <blp@gnu.org>
46999
47000         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47001         round.c roundf implementation that depends on floorf and ceilf to
47002         be tested unconditionally.
47003
47004 2007-10-21  Ben Pfaff  <blp@gnu.org>
47005
47006         * m4/check-libm-func.m4: Removed.
47007         * m4/check-math-lib.m4: New file.
47008         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47009         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47010         definition and lack of AC_LIBOBJ([roundf]).
47011         * m4/roundl.m4: Ditto, and similarly for roundl.
47012         * modules/round: Reference new m4 file.
47013         * modules/roundf: Ditto.
47014         * modules/roundl: Ditto.
47015         * tests/test-round2.c (main): Use ROUND instead of round.
47016         Bug report from Bruno Haible.
47017
47018 2007-10-21  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47021         context.
47022
47023 2007-10-21  Bruno Haible  <bruno@clisp.org>
47024
47025         * tests/test-wcwidth.c (main): Allow negative result for some control
47026         characters.
47027
47028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47029         Needed on OSF/1 5.1.
47030
47031 2007-10-21  Bruno Haible  <bruno@clisp.org>
47032
47033         * tests/test-floorf1.c: Include isnanf.h.
47034         (main): Use isnanf() instead of isnan().
47035         * tests/test-ceilf1.c: Include isnanf.h.
47036         (main): Use isnanf() instead of isnan().
47037         * tests/test-truncf1.c: Include isnanf.h.
47038         (main): Use isnanf() instead of isnan().
47039         * tests/test-roundf1.c: Include isnanf.h.
47040         (main): Use isnanf() instead of isnan().
47041
47042 2007-10-21  Eric Blake  <ebb9@byu.net>
47043
47044         * users.txt: Update URL for m4.
47045
47046 2007-10-21  Bruno Haible  <bruno@clisp.org>
47047
47048         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47049
47050 2007-10-21  Bruno Haible  <bruno@clisp.org>
47051
47052         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47053         Git's management files if the CVS files are not present.
47054
47055 2007-10-20  Bruno Haible  <bruno@clisp.org>
47056
47057         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47058         gcc-3.4.x.
47059
47060 2007-10-20  Ben Pfaff  <blp@gnu.org>
47061
47062         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47063         implementations.
47064         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47065         * lib/round.c: New file.
47066         * lib/roundf.c: New file.
47067         * lib/roundl.c: New file.
47068         * m4/round.m4: New file.
47069         * m4/roundf.m4: New file.
47070         * m4/roundl.m4: New file.
47071         * m4/check-libm-func-m4: New file.
47072         * modules/math: Replace round, roundf, roundl related @VARS@ in
47073         math.in.h.
47074         * modules/round: New file.
47075         * modules/round-tests: New file.
47076         * modules/roundf: New file.
47077         * modules/roundf-tests: New file.
47078         * modules/roundl: New file.
47079         * modules/roundl-tests: New file.
47080         * tests/test-round1.c: New file.
47081         * tests/test-round2.c: New file.
47082         * tests/test-roundf1.c: New file.
47083         * tests/test-roundf2.c: New file.
47084         * tests/test-roundl.c: New file.
47085         * doc/functions/round.texi: Mention round module.
47086         * doc/functions/roundf.texi: Mention roundf module.
47087         * doc/functions/roundl.texi: Mention roundl module.
47088         * MODULES.html.sh: Mention new modules.
47089         Thanks to Bruno Haible for suggestions.
47090
47091 2007-10-20  Jim Meyering  <meyering@redhat.com>
47092
47093         * lib/xprintf.c: Include <config.h> unconditionally.
47094
47095         Change xprintf's license to GPL.
47096         * modules/xprintf (License): s/LGPL/GPL/, since this module
47097         depends on modules (exit and exitfail) which are GPL.
47098         Suggestion from Bruno Haible.
47099
47100         xprintf fixes.
47101         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47102         Use a clearer diagnostic.
47103         Patch from Bruno Haible.
47104
47105 2007-10-20  Bruno Haible  <bruno@clisp.org>
47106
47107         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47108         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47110
47111 2007-10-20  Bruno Haible  <bruno@clisp.org>
47112
47113         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47114         precision in the comparison result > x - 1 or similar.
47115         * tests/test-ceilf2.c (correct_result_p): Likewise.
47116         * tests/test-truncf2.c (correct_result_p): Likewise.
47117         * tests/test-trunc2.c (correct_result_p): Likewise.
47118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47119
47120 2007-10-20  Bruno Haible  <bruno@clisp.org>
47121
47122         * modules/ceil: New file.
47123         * m4/ceil.m4: New file.
47124         * doc/functions/ceil.texi: Mention the 'ceil' module.
47125
47126 2007-10-20  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/floor: New file.
47129         * m4/floor.m4: New file.
47130         * doc/functions/floor.texi: Mention the 'floor' module.
47131
47132 2007-10-20  Bruno Haible  <bruno@clisp.org>
47133
47134         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47135         of %a.
47136         * modules/floorf-tests (Depends-on): Likewise.
47137         * modules/truncf-tests (Depends-on): Likewise.
47138         * modules/trunc-tests (Depends-on): Likewise.
47139         Reported by Ben Pfaff.
47140
47141 2007-10-19  Jim Meyering  <meyering@redhat.com>
47142
47143         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47144         Don't bother testing specific errno values.  Just test ferror.
47145
47146         New module: xprintf
47147         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47148
47149 2007-10-19  Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47152         syntax.
47153         * modules/javaexec (Makefile.am): Likewise.
47154         * modules/relocatable-prog (Makefile.am): Likewise.
47155         Suggested by Jim Meyering.
47156
47157 2007-10-18  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47160         Reported by Jim Meyering.
47161
47162 2007-10-18  Eric Blake  <ebb9@byu.net>
47163
47164         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47165
47166 2007-10-18  Bruno Haible  <bruno@clisp.org>
47167
47168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47169         the format string into writable memory. Needed in Fortify conditions.
47170
47171 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47172             Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47175         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47176         * modules/trim (Depends-on): Add mbchar.
47177         (configure.ac): Add gl_FUNC_MBRTOWC.
47178         (Makefile.am): Augment lib_SOURCES.
47179
47180 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47181
47182         Modify glob.c to use fstatat and dirfd, to simplify it.
47183         Suggested by Eric Blake.
47184         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47185         Don't include <stdbool.h>; not used.
47186         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47187         (link_exists_p): Simplify implementation, since we can now assume
47188         dirfd and fstatat.
47189         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47190
47191 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47192
47193         * gnulib-tool (func_get_dependencies): Fix sed script to
47194         match only tests.
47195
47196 2007-10-17  Bruno Haible  <bruno@clisp.org>
47197
47198         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47199         allow locale names without encoding suffix.
47200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47201         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47202
47203 2007-10-16  Bruno Haible  <bruno@clisp.org>
47204
47205         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47206         * lib/getgroups.c (getgroups): Likewise.
47207         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47208
47209 2007-10-16  Bruno Haible  <bruno@clisp.org>
47210
47211         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47212         * modules/malloc-posix (License): Likewise.
47213         * modules/realloc-posix (License): Likewise.
47214         * modules/calloc-posix (License): Likewise.
47215         * modules/intprops (License): Change from GPL to LGPL, with
47216         Paul Eggert's approval.
47217
47218 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47219
47220         Merge glibc changes into lib/glob.c.
47221
47222         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47223         2007-10-15 04:59:03 UTC.  Here are the changes:
47224
47225         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47226
47227         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47228
47229         * lib/glob.c: Add some branch prediction throughout.
47230
47231         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47232
47233         [BZ #5103]
47234         * lib/glob.c (glob): Recognize patterns starting \/.
47235
47236         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47237
47238         [BZ #3996]
47239         * lib/glob.c (attribute_hidden): Define if not defined.
47240         (glob): Unescape dirname, filename or username when needed and not
47241         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47242         is NULL.  Handle unescaped [ in pattern without closing ].
47243         Don't pass GLOB_CHECK down to recursive glob for directories.
47244         (__glob_pattern_type): New function.
47245         (__glob_pattern_p): Implement using __glob_pattern_type.
47246         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47247         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47248         Remove unreachable code.
47249
47250         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47251
47252         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47253         explain why there are no leaks.
47254
47255         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47256
47257         [BZ #3253]
47258         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47259         time, rather allocate increasingly bigger arrays of pointers, if
47260         possible with alloca, if too large with malloc.
47261
47262 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47263
47264         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47265         Problem reported by H.Merijn Brand in
47266         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47267         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47268         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47269
47270 2007-10-15  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47273         with explicit rpl_ prefix.
47274         * lib/fopen.c (fopen): Likewise.
47275         * lib/freopen.c (freopen): Likewise.
47276         * lib/iconv.c (iconv): Likewise.
47277         * lib/iconv_close.c (iconv_close): Likewise.
47278
47279 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47280
47281         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47282
47283 2007-10-15  Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47286         <stddef.h> instead of <stdlib.h> since we only need NULL.
47287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47288
47289 2007-10-15  Bruno Haible  <bruno@clisp.org>
47290
47291         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47292         Replace paragraph talking about LIBOBJS.
47293         Reported by Colin Watson <cjwatson@debian.org>.
47294
47295 2007-10-15  Bruno Haible  <bruno@clisp.org>
47296
47297         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47298         <stdlib.h> before using NULL.
47299
47300 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47301
47302         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47303         Reported by Albert Chin <china@thewrittenword.com>.
47304
47305 2007-10-14  Bruno Haible  <bruno@clisp.org>
47306
47307         * modules/iconv_open-utf-tests: New file.
47308         * tests/test-iconv-utf.c: New file.
47309
47310         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47311         * modules/iconv_open-utf: New file.
47312         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47313         (iconv, iconv_close): New declarations.
47314         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47315         be defined.
47316         (iconv_open): Add special handling of conversion between UTF-8 and
47317         UTF-{16,32}{BE,LE}.
47318         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47319         * lib/iconv_close.c: New file.
47320         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47321         gl_FUNC_ICONV_OPEN.
47322         (gl_FUNC_ICONV_OPEN): Use it.
47323         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47324         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47325         and REPLACE_ICONV_UTF.
47326         * modules/iconv_open (Depends-on): Add c-strcase.
47327         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47328         ICONV_CONST.
47329         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47330
47331 2007-10-13  Albert Chin  <china@thewrittenword.com>
47332             Bruno Haible  <bruno@clisp.org>
47333
47334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47335         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47336
47337 2007-10-13  Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47340         defined, use the ISO C99 inline semantics.
47341         * lib/argp.h (ARGP_EI): Likewise.
47342
47343 2007-10-13  Bruno Haible  <bruno@clisp.org>
47344
47345         Handle 'inline' change in gcc 4.3.0.
47346         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47347         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47348         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47349         argp_fmtstream_point): Disable 'extern' declaration if the function
47350         definition is going to be provided inline.
47351         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47352         semantics, not the ISO C99 inline semantics.
47353         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47354         'extern' declaration if the function definition is going to be provided
47355         inline.
47356         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47357         the GNU C inline semantics, not the ISO C99 inline semantics. With
47358         GCC 4.2, avoid a warning.
47359
47360 2007-10-13  Bruno Haible  <bruno@clisp.org>
47361
47362         * lib/freading.h (freading): Enable the use of __freading for
47363         glibc >= 2.7.
47364         * lib/freading.c (freading): Likewise.
47365
47366 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47367
47368         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47369         "warning: C99 inline functions are not supported; using GNU89".
47370
47371 2007-10-12  Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47374         of 2.
47375         * tests/test-ceilf2.c: New file.
47376         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47377
47378         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47379         * modules/ceilf-tests: Update.
47380
47381 2007-10-12  Bruno Haible  <bruno@clisp.org>
47382
47383         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47384         of 2.
47385         * tests/test-floorf2.c: New file.
47386         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47387
47388         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47389         * modules/floorf-tests: Update.
47390
47391 2007-10-12  Bruno Haible  <bruno@clisp.org>
47392
47393         * tests/test-trunc2.c: New file.
47394         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47395
47396         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47397         * modules/trunc-tests: Update.
47398
47399 2007-10-12  Bruno Haible  <bruno@clisp.org>
47400
47401         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47402         of 2.
47403         * tests/test-truncf2.c: New file.
47404         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47405
47406         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47407         * modules/truncf-tests: Update.
47408
47409 2007-10-11  Eric Blake  <ebb9@byu.net>
47410
47411         Don't claim strerror is broken on Interix.
47412         * doc/functions/strerror.texi (strerror): Known broken systems are
47413         now Solaris 8, and not Interix.
47414         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47415         Interix on cross-compile.
47416         Reported by Martin Koeppe in
47417         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47418
47419 2007-10-11  Bruno Haible  <bruno@clisp.org>
47420
47421         * modules/i-ring-tests: New file.
47422         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47423         instead of assert.
47424
47425 2007-10-11  Bruno Haible  <bruno@clisp.org>
47426
47427         * modules/filenamecat-tests: New file.
47428         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47429         * lib/filenamecat.c: Remove test code.
47430
47431 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47432
47433         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47434
47435         * lib/strerror.c: Include <string.h> always, to test interface,
47436         and to remove the need for the dummy.
47437         Include intprops.h to compute width instead of doing it ourselves
47438         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47439         (strerror): Define it to return NULL if there's no system strerror.
47440         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47441         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47442         ancient pre-strerror Unix systems well any more.  Saying "unknown
47443         system error" is enough.
47444         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47445         simpler strerror.c implementation.
47446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47447         Simplify the tests to reflect the simpler strerror implementation.
47448         * modules/strerror (Depends-on): Add intprops.
47449
47450 2007-10-09  Eric Blake  <ebb9@byu.net>
47451
47452         Silence test-fpending.
47453         * modules/fpending-tests (Files): Add wrapper script.
47454         * tests/test-fpending.sh: New file.
47455
47456 2007-10-09  Bruno Haible  <bruno@clisp.org>
47457
47458         * MODULES.html.sh (func_module): Don't create a hyperlink for
47459         function names like 'printf_frexp'.
47460         (Misc): Add crc, memxor.
47461         (Characteristics of floating types): New section.
47462         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47463         isnanf-nolibm, signbit, trunc, truncf, truncl.
47464         (Enhancements for ISO C 99 functions): New subsection Input/output.
47465         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47466         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47467         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47468         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47469         (Enhancements for POSIX:2001 functions): Add chdir-long.
47470         (File system functions): Add areadlink, chdir-safer, read-file.
47471         Remove cycle-check.
47472         (File system as inode set): New section.
47473         (Date and time): Add gethrxtime.
47474         (Multithreading): Add openmp.
47475         (Internationalization functions): Add localename.
47476         (Unicode string functions): Add unistr/u*-mbsnlen.
47477         (Support for maintaining and releasing projects): Add git-version-gen.
47478         (Lone files): Remove directories.
47479
47480 2007-10-08  Ben Pfaff  <blp@gnu.org>
47481
47482         * lib/xmalloca.h: Fix typo in comment.
47483
47484 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47487         when avoiding problems with integer overflow.  Use a portable test
47488         instead.
47489
47490 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47491
47492         * modules/dummy (License): Change to LGPLv2+.
47493         * modules/float (License): Likewise
47494         * modules/realloc (License): Likewise
47495         * modules/stdlib (License): Likewise
47496
47497 2007-10-07  Bruno Haible  <bruno@clisp.org>
47498
47499         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47500         * floor.c (TWO_MANT_DIG): Likewise.
47501         * ceil.c (TWO_MANT_DIG): Likewise.
47502         Reported by Ben Pfaff.
47503
47504 2007-10-07  Bruno Haible  <bruno@clisp.org>
47505
47506         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47507         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47508         * lib/frexp.c (FUNC): Likewise.
47509         * lib/printf-frexp.h (printf_frexp): Likewise.
47510         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47511         * lib/printf-frexp.c (FUNC): Likewise.
47512         Suggested by Jim Meyering.
47513
47514 2007-10-07  Jim Meyering  <meyering@redhat.com>
47515
47516         Make xnanosleep's integer overflow test more robust.
47517         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47518         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47519
47520 2007-10-07  Bruno Haible  <bruno@clisp.org>
47521
47522         * NEWS: Mention the license change.
47523
47524         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47525         abbreviations in the modules files.
47526
47527         Change copyright notice from GPLv2+ to GPLv3+.
47528         * README: Change copyright notice.
47529         * MODULES.html.sh: Likewise.
47530         * build-aux/bootstrap.conf: Likewise.
47531         * build-aux/config.libpath: Likewise.
47532         * build-aux/csharpcomp.sh.in: Likewise.
47533         * build-aux/csharpexec.sh.in: Likewise.
47534         * build-aux/install-reloc: Likewise.
47535         * build-aux/javacomp.sh.in: Likewise.
47536         * build-aux/javaexec.sh.in: Likewise.
47537         * build-aux/ldd.sh.in: Likewise.
47538         * build-aux/reloc-ldflags: Likewise.
47539         * build-aux/relocatable.sh.in: Likewise.
47540         * build-aux/x-to-1.in: Likewise.
47541         * check-module: Likewise.
47542         * config/srclistvars.sh: Likewise.
47543         * gnulib-tool: Likewise.
47544         * lib/acl-internal.h: Likewise.
47545         * lib/acl.c: Likewise.
47546         * lib/acl.h: Likewise.
47547         * lib/acl_entries.c: Likewise.
47548         * lib/areadlink-with-size.c: Likewise.
47549         * lib/areadlink.c: Likewise.
47550         * lib/areadlink.h: Likewise.
47551         * lib/argmatch.c: Likewise.
47552         * lib/argmatch.h: Likewise.
47553         * lib/argp-ba.c: Likewise.
47554         * lib/argp-eexst.c: Likewise.
47555         * lib/argp-fmtstream.c: Likewise.
47556         * lib/argp-fmtstream.h: Likewise.
47557         * lib/argp-fs-xinl.c: Likewise.
47558         * lib/argp-help.c: Likewise.
47559         * lib/argp-namefrob.h: Likewise.
47560         * lib/argp-parse.c: Likewise.
47561         * lib/argp-pin.c: Likewise.
47562         * lib/argp-pv.c: Likewise.
47563         * lib/argp-pvh.c: Likewise.
47564         * lib/argp-xinl.c: Likewise.
47565         * lib/argp.h: Likewise.
47566         * lib/at-func.c: Likewise.
47567         * lib/atanl.c: Likewise.
47568         * lib/backupfile.c: Likewise.
47569         * lib/backupfile.h: Likewise.
47570         * lib/basename.c: Likewise.
47571         * lib/binary-io.h: Likewise.
47572         * lib/byteswap.in.h: Likewise.
47573         * lib/c-stack.c: Likewise.
47574         * lib/c-stack.h: Likewise.
47575         * lib/c-strcasestr.c: Likewise.
47576         * lib/c-strcasestr.h: Likewise.
47577         * lib/c-strstr.c: Likewise.
47578         * lib/c-strstr.h: Likewise.
47579         * lib/c-strtod.c: Likewise.
47580         * lib/calloc.c: Likewise.
47581         * lib/canon-host.c: Likewise.
47582         * lib/canon-host.h: Likewise.
47583         * lib/canonicalize-lgpl.c: Likewise.
47584         * lib/canonicalize.c: Likewise.
47585         * lib/canonicalize.h: Likewise.
47586         * lib/ceil.c: Likewise.
47587         * lib/ceilf.c: Likewise.
47588         * lib/ceill.c: Likewise.
47589         * lib/chdir-long.c: Likewise.
47590         * lib/chdir-long.h: Likewise.
47591         * lib/chdir-safer.c: Likewise.
47592         * lib/chdir-safer.h: Likewise.
47593         * lib/chown.c: Likewise.
47594         * lib/classpath.c: Likewise.
47595         * lib/classpath.h: Likewise.
47596         * lib/clean-temp.c: Likewise.
47597         * lib/clean-temp.h: Likewise.
47598         * lib/cloexec.c: Likewise.
47599         * lib/close-stream.c: Likewise.
47600         * lib/closein.c: Likewise.
47601         * lib/closein.h: Likewise.
47602         * lib/closeout.c: Likewise.
47603         * lib/closeout.h: Likewise.
47604         * lib/concat-filename.c: Likewise.
47605         * lib/copy-file.c: Likewise.
47606         * lib/copy-file.h: Likewise.
47607         * lib/count-one-bits.h: Likewise.
47608         * lib/crc.c: Likewise.
47609         * lib/crc.h: Likewise.
47610         * lib/creat-safer.c: Likewise.
47611         * lib/csharpcomp.c: Likewise.
47612         * lib/csharpcomp.h: Likewise.
47613         * lib/csharpexec.c: Likewise.
47614         * lib/csharpexec.h: Likewise.
47615         * lib/cycle-check.c: Likewise.
47616         * lib/cycle-check.h: Likewise.
47617         * lib/diacrit.c: Likewise.
47618         * lib/diacrit.h: Likewise.
47619         * lib/diffseq.h: Likewise.
47620         * lib/dirchownmod.c: Likewise.
47621         * lib/dirent.in.h: Likewise.
47622         * lib/dirfd.c: Likewise.
47623         * lib/dirfd.h: Likewise.
47624         * lib/dirname.c: Likewise.
47625         * lib/dirname.h: Likewise.
47626         * lib/dummy.c: Likewise.
47627         * lib/dup-safer.c: Likewise.
47628         * lib/dup2.c: Likewise.
47629         * lib/eealloc.h: Likewise.
47630         * lib/error.c: Likewise.
47631         * lib/error.h: Likewise.
47632         * lib/euidaccess.c: Likewise.
47633         * lib/exclude.c: Likewise.
47634         * lib/exclude.h: Likewise.
47635         * lib/execute.c: Likewise.
47636         * lib/execute.h: Likewise.
47637         * lib/exitfail.c: Likewise.
47638         * lib/exitfail.h: Likewise.
47639         * lib/expl.c: Likewise.
47640         * lib/fatal-signal.c: Likewise.
47641         * lib/fatal-signal.h: Likewise.
47642         * lib/fbufmode.c: Likewise.
47643         * lib/fbufmode.h: Likewise.
47644         * lib/fchdir.c: Likewise.
47645         * lib/fchmodat.c: Likewise.
47646         * lib/fchownat.c: Likewise.
47647         * lib/fcntl--.h: Likewise.
47648         * lib/fcntl-safer.h: Likewise.
47649         * lib/fcntl.in.h: Likewise.
47650         * lib/fd-safer.c: Likewise.
47651         * lib/fflush.c: Likewise.
47652         * lib/file-has-acl.c: Likewise.
47653         * lib/file-set.c: Likewise.
47654         * lib/file-type.c: Likewise.
47655         * lib/file-type.h: Likewise.
47656         * lib/fileblocks.c: Likewise.
47657         * lib/filemode.c: Likewise.
47658         * lib/filemode.h: Likewise.
47659         * lib/filename.h: Likewise.
47660         * lib/filenamecat.c: Likewise.
47661         * lib/filenamecat.h: Likewise.
47662         * lib/findprog.c: Likewise.
47663         * lib/findprog.h: Likewise.
47664         * lib/float.in.h: Likewise.
47665         * lib/floor.c: Likewise.
47666         * lib/floorf.c: Likewise.
47667         * lib/floorl.c: Likewise.
47668         * lib/fopen-safer.c: Likewise.
47669         * lib/fopen.c: Likewise.
47670         * lib/fpending.c: Likewise.
47671         * lib/fpending.h: Likewise.
47672         * lib/fprintf.c: Likewise.
47673         * lib/fprintftime.h: Likewise.
47674         * lib/fpucw.h: Likewise.
47675         * lib/fpurge.c: Likewise.
47676         * lib/fpurge.h: Likewise.
47677         * lib/freadable.c: Likewise.
47678         * lib/freadable.h: Likewise.
47679         * lib/freadahead.c: Likewise.
47680         * lib/freadahead.h: Likewise.
47681         * lib/freading.c: Likewise.
47682         * lib/freading.h: Likewise.
47683         * lib/free.c: Likewise.
47684         * lib/freopen.c: Likewise.
47685         * lib/frexp.c: Likewise.
47686         * lib/frexpl.c: Likewise.
47687         * lib/fseek.c: Likewise.
47688         * lib/fseterr.c: Likewise.
47689         * lib/fseterr.h: Likewise.
47690         * lib/fstatat.c: Likewise.
47691         * lib/fstrcmp.c: Likewise.
47692         * lib/fstrcmp.h: Likewise.
47693         * lib/fsusage.c: Likewise.
47694         * lib/fsusage.h: Likewise.
47695         * lib/ftell.c: Likewise.
47696         * lib/ftello.c: Likewise.
47697         * lib/fts-cycle.c: Likewise.
47698         * lib/fts.c: Likewise.
47699         * lib/fts_.h: Likewise.
47700         * lib/full-read.c: Likewise.
47701         * lib/full-read.h: Likewise.
47702         * lib/full-write.c: Likewise.
47703         * lib/full-write.h: Likewise.
47704         * lib/fwritable.c: Likewise.
47705         * lib/fwritable.h: Likewise.
47706         * lib/fwriteerror.c: Likewise.
47707         * lib/fwriteerror.h: Likewise.
47708         * lib/fwriting.c: Likewise.
47709         * lib/fwriting.h: Likewise.
47710         * lib/gcd.c: Likewise.
47711         * lib/gcd.h: Likewise.
47712         * lib/getcwd.c: Likewise.
47713         * lib/getdate.h: Likewise.
47714         * lib/getdate.y: Likewise.
47715         * lib/getdomainname.c: Likewise.
47716         * lib/getdomainname.h: Likewise.
47717         * lib/getgroups.c: Likewise.
47718         * lib/gethostname.c: Likewise.
47719         * lib/gethrxtime.c: Likewise.
47720         * lib/gethrxtime.h: Likewise.
47721         * lib/getloadavg.c: Likewise.
47722         * lib/getndelim2.c: Likewise.
47723         * lib/getndelim2.h: Likewise.
47724         * lib/getnline.c: Likewise.
47725         * lib/getnline.h: Likewise.
47726         * lib/getopt.c: Likewise.
47727         * lib/getopt.in.h: Likewise.
47728         * lib/getopt1.c: Likewise.
47729         * lib/getopt_int.h: Likewise.
47730         * lib/getpagesize.h: Likewise.
47731         * lib/getsubopt.c: Likewise.
47732         * lib/gettime.c: Likewise.
47733         * lib/getugroups.c: Likewise.
47734         * lib/getugroups.h: Likewise.
47735         * lib/getusershell.c: Likewise.
47736         * lib/gl_anyavltree_list1.h: Likewise.
47737         * lib/gl_anyavltree_list2.h: Likewise.
47738         * lib/gl_anyhash_list1.h: Likewise.
47739         * lib/gl_anyhash_list2.h: Likewise.
47740         * lib/gl_anylinked_list1.h: Likewise.
47741         * lib/gl_anylinked_list2.h: Likewise.
47742         * lib/gl_anyrbtree_list1.h: Likewise.
47743         * lib/gl_anyrbtree_list2.h: Likewise.
47744         * lib/gl_anytree_list1.h: Likewise.
47745         * lib/gl_anytree_list2.h: Likewise.
47746         * lib/gl_anytree_oset.h: Likewise.
47747         * lib/gl_anytreehash_list1.h: Likewise.
47748         * lib/gl_anytreehash_list2.h: Likewise.
47749         * lib/gl_array_list.c: Likewise.
47750         * lib/gl_array_list.h: Likewise.
47751         * lib/gl_array_oset.c: Likewise.
47752         * lib/gl_array_oset.h: Likewise.
47753         * lib/gl_avltree_list.c: Likewise.
47754         * lib/gl_avltree_list.h: Likewise.
47755         * lib/gl_avltree_oset.c: Likewise.
47756         * lib/gl_avltree_oset.h: Likewise.
47757         * lib/gl_avltreehash_list.c: Likewise.
47758         * lib/gl_avltreehash_list.h: Likewise.
47759         * lib/gl_carray_list.c: Likewise.
47760         * lib/gl_carray_list.h: Likewise.
47761         * lib/gl_linked_list.c: Likewise.
47762         * lib/gl_linked_list.h: Likewise.
47763         * lib/gl_linkedhash_list.c: Likewise.
47764         * lib/gl_linkedhash_list.h: Likewise.
47765         * lib/gl_list.c: Likewise.
47766         * lib/gl_list.h: Likewise.
47767         * lib/gl_oset.c: Likewise.
47768         * lib/gl_oset.h: Likewise.
47769         * lib/gl_rbtree_list.c: Likewise.
47770         * lib/gl_rbtree_list.h: Likewise.
47771         * lib/gl_rbtree_oset.c: Likewise.
47772         * lib/gl_rbtree_oset.h: Likewise.
47773         * lib/gl_rbtreehash_list.c: Likewise.
47774         * lib/gl_rbtreehash_list.h: Likewise.
47775         * lib/gl_sublist.c: Likewise.
47776         * lib/gl_sublist.h: Likewise.
47777         * lib/group-member.c: Likewise.
47778         * lib/group-member.h: Likewise.
47779         * lib/hard-locale.c: Likewise.
47780         * lib/hard-locale.h: Likewise.
47781         * lib/hash-pjw.c: Likewise.
47782         * lib/hash-pjw.h: Likewise.
47783         * lib/hash-triple.c: Likewise.
47784         * lib/hash.c: Likewise.
47785         * lib/hash.h: Likewise.
47786         * lib/human.c: Likewise.
47787         * lib/human.h: Likewise.
47788         * lib/i-ring.c: Likewise.
47789         * lib/i-ring.h: Likewise.
47790         * lib/idcache.c: Likewise.
47791         * lib/imaxabs.c: Likewise.
47792         * lib/imaxdiv.c: Likewise.
47793         * lib/inet_pton.c: Likewise.
47794         * lib/inet_pton.h: Likewise.
47795         * lib/intprops.h: Likewise.
47796         * lib/inttostr.c: Likewise.
47797         * lib/inttostr.h: Likewise.
47798         * lib/inttypes.in.h: Likewise.
47799         * lib/isapipe.c: Likewise.
47800         * lib/isdir.c: Likewise.
47801         * lib/isnan.c: Likewise.
47802         * lib/isnan.h: Likewise.
47803         * lib/isnanf.c: Likewise.
47804         * lib/isnanf.h: Likewise.
47805         * lib/isnanl-nolibm.h: Likewise.
47806         * lib/isnanl.c: Likewise.
47807         * lib/isnanl.h: Likewise.
47808         * lib/javacomp.c: Likewise.
47809         * lib/javacomp.h: Likewise.
47810         * lib/javaexec.c: Likewise.
47811         * lib/javaexec.h: Likewise.
47812         * lib/javaversion.c: Likewise.
47813         * lib/javaversion.h: Likewise.
47814         * lib/javaversion.java: Likewise.
47815         * lib/lbrkprop.h: Likewise.
47816         * lib/lchmod.h: Likewise.
47817         * lib/lchown.c: Likewise.
47818         * lib/ldexpl.c: Likewise.
47819         * lib/linebreak.c: Likewise.
47820         * lib/linebreak.h: Likewise.
47821         * lib/linebuffer.c: Likewise.
47822         * lib/linebuffer.h: Likewise.
47823         * lib/locale.in.h: Likewise.
47824         * lib/logl.c: Likewise.
47825         * lib/long-options.c: Likewise.
47826         * lib/long-options.h: Likewise.
47827         * lib/lstat.c: Likewise.
47828         * lib/lstat.h: Likewise.
47829         * lib/math.in.h: Likewise.
47830         * lib/mbchar.c: Likewise.
47831         * lib/mbchar.h: Likewise.
47832         * lib/mbfile.h: Likewise.
47833         * lib/mbiter.h: Likewise.
47834         * lib/mbscasecmp.c: Likewise.
47835         * lib/mbscasestr.c: Likewise.
47836         * lib/mbschr.c: Likewise.
47837         * lib/mbscspn.c: Likewise.
47838         * lib/mbslen.c: Likewise.
47839         * lib/mbsncasecmp.c: Likewise.
47840         * lib/mbsnlen.c: Likewise.
47841         * lib/mbspbrk.c: Likewise.
47842         * lib/mbspcasecmp.c: Likewise.
47843         * lib/mbsrchr.c: Likewise.
47844         * lib/mbssep.c: Likewise.
47845         * lib/mbsspn.c: Likewise.
47846         * lib/mbsstr.c: Likewise.
47847         * lib/mbstok_r.c: Likewise.
47848         * lib/mbswidth.c: Likewise.
47849         * lib/mbswidth.h: Likewise.
47850         * lib/mbuiter.h: Likewise.
47851         * lib/memcasecmp.c: Likewise.
47852         * lib/memcasecmp.h: Likewise.
47853         * lib/memchr.c: Likewise.
47854         * lib/memcmp.c: Likewise.
47855         * lib/memcoll.c: Likewise.
47856         * lib/memcoll.h: Likewise.
47857         * lib/memcpy.c: Likewise.
47858         * lib/memrchr.c: Likewise.
47859         * lib/mkancesdirs.c: Likewise.
47860         * lib/mkdir-p.c: Likewise.
47861         * lib/mkdir-p.h: Likewise.
47862         * lib/mkdir.c: Likewise.
47863         * lib/mkdirat.c: Likewise.
47864         * lib/mkdtemp.c: Likewise.
47865         * lib/mkstemp-safer.c: Likewise.
47866         * lib/mkstemp.c: Likewise.
47867         * lib/modechange.c: Likewise.
47868         * lib/modechange.h: Likewise.
47869         * lib/mountlist.c: Likewise.
47870         * lib/mountlist.h: Likewise.
47871         * lib/mpsort.c: Likewise.
47872         * lib/nanosleep.c: Likewise.
47873         * lib/obstack.c: Likewise.
47874         * lib/obstack.h: Likewise.
47875         * lib/open-safer.c: Likewise.
47876         * lib/open.c: Likewise.
47877         * lib/openat-die.c: Likewise.
47878         * lib/openat-priv.h: Likewise.
47879         * lib/openat-proc.c: Likewise.
47880         * lib/openat.c: Likewise.
47881         * lib/openat.h: Likewise.
47882         * lib/pagealign_alloc.c: Likewise.
47883         * lib/pagealign_alloc.h: Likewise.
47884         * lib/physmem.c: Likewise.
47885         * lib/physmem.h: Likewise.
47886         * lib/pipe-safer.c: Likewise.
47887         * lib/pipe.c: Likewise.
47888         * lib/pipe.h: Likewise.
47889         * lib/posixtm.c: Likewise.
47890         * lib/posixtm.h: Likewise.
47891         * lib/posixver.c: Likewise.
47892         * lib/printf-frexp.c: Likewise.
47893         * lib/printf-frexp.h: Likewise.
47894         * lib/printf-frexpl.c: Likewise.
47895         * lib/printf-frexpl.h: Likewise.
47896         * lib/printf.c: Likewise.
47897         * lib/progname.c: Likewise.
47898         * lib/progname.h: Likewise.
47899         * lib/progreloc.c: Likewise.
47900         * lib/putenv.c: Likewise.
47901         * lib/quote.c: Likewise.
47902         * lib/quote.h: Likewise.
47903         * lib/quotearg.c: Likewise.
47904         * lib/quotearg.h: Likewise.
47905         * lib/raise.c: Likewise.
47906         * lib/readline.c: Likewise.
47907         * lib/readline.h: Likewise.
47908         * lib/readlink.c: Likewise.
47909         * lib/readtokens.c: Likewise.
47910         * lib/readtokens.h: Likewise.
47911         * lib/readtokens0.c: Likewise.
47912         * lib/readtokens0.h: Likewise.
47913         * lib/readutmp.c: Likewise.
47914         * lib/readutmp.h: Likewise.
47915         * lib/realloc.c: Likewise.
47916         * lib/relocwrapper.c: Likewise.
47917         * lib/rename-dest-slash.c: Likewise.
47918         * lib/rename.c: Likewise.
47919         * lib/rmdir.c: Likewise.
47920         * lib/rpmatch.c: Likewise.
47921         * lib/safe-read.c: Likewise.
47922         * lib/safe-read.h: Likewise.
47923         * lib/safe-write.c: Likewise.
47924         * lib/safe-write.h: Likewise.
47925         * lib/same-inode.h: Likewise.
47926         * lib/same.c: Likewise.
47927         * lib/same.h: Likewise.
47928         * lib/save-cwd.c: Likewise.
47929         * lib/save-cwd.h: Likewise.
47930         * lib/savedir.c: Likewise.
47931         * lib/savedir.h: Likewise.
47932         * lib/savewd.c: Likewise.
47933         * lib/savewd.h: Likewise.
47934         * lib/search.in.h: Likewise.
47935         * lib/setenv.c: Likewise.
47936         * lib/setenv.h: Likewise.
47937         * lib/settime.c: Likewise.
47938         * lib/sh-quote.c: Likewise.
47939         * lib/sh-quote.h: Likewise.
47940         * lib/sig2str.c: Likewise.
47941         * lib/sig2str.h: Likewise.
47942         * lib/signal.in.h: Likewise.
47943         * lib/signbitd.c: Likewise.
47944         * lib/signbitf.c: Likewise.
47945         * lib/signbitl.c: Likewise.
47946         * lib/sigprocmask.c: Likewise.
47947         * lib/sincosl.c: Likewise.
47948         * lib/sleep.c: Likewise.
47949         * lib/sprintf.c: Likewise.
47950         * lib/sqrtl.c: Likewise.
47951         * lib/stat-time.h: Likewise.
47952         * lib/stdio--.h: Likewise.
47953         * lib/stdio-safer.h: Likewise.
47954         * lib/stdlib--.h: Likewise.
47955         * lib/stdlib-safer.h: Likewise.
47956         * lib/stdlib.in.h: Likewise.
47957         * lib/stpcpy.c: Likewise.
47958         * lib/stpncpy.c: Likewise.
47959         * lib/strchrnul.c: Likewise.
47960         * lib/strcspn.c: Likewise.
47961         * lib/strerror.c: Likewise.
47962         * lib/strftime.c: Likewise.
47963         * lib/strftime.h: Likewise.
47964         * lib/striconveh.c: Likewise.
47965         * lib/striconveh.h: Likewise.
47966         * lib/striconveha.c: Likewise.
47967         * lib/striconveha.h: Likewise.
47968         * lib/stripslash.c: Likewise.
47969         * lib/strnlen1.c: Likewise.
47970         * lib/strnlen1.h: Likewise.
47971         * lib/strtod.c: Likewise.
47972         * lib/strtoimax.c: Likewise.
47973         * lib/strtok_r.c: Likewise.
47974         * lib/strtol.c: Likewise.
47975         * lib/strtoll.c: Likewise.
47976         * lib/strtoul.c: Likewise.
47977         * lib/strtoull.c: Likewise.
47978         * lib/sysexits.in.h: Likewise.
47979         * lib/tempname.c: Likewise.
47980         * lib/tempname.h: Likewise.
47981         * lib/timespec.h: Likewise.
47982         * lib/tls.c: Likewise.
47983         * lib/tls.h: Likewise.
47984         * lib/tmpdir.c: Likewise.
47985         * lib/tmpdir.h: Likewise.
47986         * lib/tmpfile-safer.c: Likewise.
47987         * lib/tmpfile.c: Likewise.
47988         * lib/trigl.c: Likewise.
47989         * lib/trigl.h: Likewise.
47990         * lib/trim.c: Likewise.
47991         * lib/trim.h: Likewise.
47992         * lib/trunc.c: Likewise.
47993         * lib/truncf.c: Likewise.
47994         * lib/truncl.c: Likewise.
47995         * lib/tsearch.c: Likewise.
47996         * lib/unicodeio.c: Likewise.
47997         * lib/unicodeio.h: Likewise.
47998         * lib/unistd--.h: Likewise.
47999         * lib/unistd-safer.h: Likewise.
48000         * lib/unistdio/ulc-fprintf.c: Likewise.
48001         * lib/unistdio/ulc-vfprintf.c: Likewise.
48002         * lib/unlinkdir.c: Likewise.
48003         * lib/unlinkdir.h: Likewise.
48004         * lib/unlocked-io.h: Likewise.
48005         * lib/unsetenv.c: Likewise.
48006         * lib/userspec.c: Likewise.
48007         * lib/utime.c: Likewise.
48008         * lib/utimecmp.c: Likewise.
48009         * lib/utimecmp.h: Likewise.
48010         * lib/utimens.c: Likewise.
48011         * lib/verify.h: Likewise.
48012         * lib/verror.c: Likewise.
48013         * lib/verror.h: Likewise.
48014         * lib/version-etc-fsf.c: Likewise.
48015         * lib/version-etc.c: Likewise.
48016         * lib/version-etc.h: Likewise.
48017         * lib/vfprintf.c: Likewise.
48018         * lib/vprintf.c: Likewise.
48019         * lib/vsprintf.c: Likewise.
48020         * lib/w32spawn.h: Likewise.
48021         * lib/wait-process.c: Likewise.
48022         * lib/wait-process.h: Likewise.
48023         * lib/wcwidth.c: Likewise.
48024         * lib/write-any-file.c: Likewise.
48025         * lib/xalloc-die.c: Likewise.
48026         * lib/xalloc.h: Likewise.
48027         * lib/xasprintf.c: Likewise.
48028         * lib/xgetcwd.c: Likewise.
48029         * lib/xgetcwd.h: Likewise.
48030         * lib/xgetdomainname.c: Likewise.
48031         * lib/xgetdomainname.h: Likewise.
48032         * lib/xgethostname.c: Likewise.
48033         * lib/xmalloc.c: Likewise.
48034         * lib/xmalloca.c: Likewise.
48035         * lib/xmalloca.h: Likewise.
48036         * lib/xmemcoll.c: Likewise.
48037         * lib/xnanosleep.c: Likewise.
48038         * lib/xreadlink.c: Likewise.
48039         * lib/xreadlink.h: Likewise.
48040         * lib/xsetenv.c: Likewise.
48041         * lib/xsetenv.h: Likewise.
48042         * lib/xstriconv.c: Likewise.
48043         * lib/xstriconv.h: Likewise.
48044         * lib/xstrndup.c: Likewise.
48045         * lib/xstrndup.h: Likewise.
48046         * lib/xstrtod.c: Likewise.
48047         * lib/xstrtod.h: Likewise.
48048         * lib/xstrtol-error.c: Likewise.
48049         * lib/xstrtol.c: Likewise.
48050         * lib/xstrtol.h: Likewise.
48051         * lib/xtime.h: Likewise.
48052         * lib/xvasprintf.c: Likewise.
48053         * lib/xvasprintf.h: Likewise.
48054         * lib/yesno.c: Likewise.
48055         * lib/yesno.h: Likewise.
48056         * posix-modules: Likewise.
48057         * tests/test-alloca-opt.c: Likewise.
48058         * tests/test-arcfour.c: Likewise.
48059         * tests/test-arctwo.c: Likewise.
48060         * tests/test-argmatch.c: Likewise.
48061         * tests/test-argp-2.sh: Likewise.
48062         * tests/test-argp.c: Likewise.
48063         * tests/test-arpa_inet.c: Likewise.
48064         * tests/test-array_list.c: Likewise.
48065         * tests/test-array_oset.c: Likewise.
48066         * tests/test-atexit.c: Likewise.
48067         * tests/test-avltree_list.c: Likewise.
48068         * tests/test-avltree_oset.c: Likewise.
48069         * tests/test-avltreehash_list.c: Likewise.
48070         * tests/test-base64.c: Likewise.
48071         * tests/test-binary-io.c: Likewise.
48072         * tests/test-byteswap.c: Likewise.
48073         * tests/test-c-ctype.c: Likewise.
48074         * tests/test-c-strcasecmp.c: Likewise.
48075         * tests/test-c-strcasestr.c: Likewise.
48076         * tests/test-c-strncasecmp.c: Likewise.
48077         * tests/test-c-strstr.c: Likewise.
48078         * tests/test-canonicalize-lgpl.c: Likewise.
48079         * tests/test-canonicalize.c: Likewise.
48080         * tests/test-carray_list.c: Likewise.
48081         * tests/test-ceilf.c: Likewise.
48082         * tests/test-ceill.c: Likewise.
48083         * tests/test-count-one-bits.c: Likewise.
48084         * tests/test-crc.c: Likewise.
48085         * tests/test-dirname.c: Likewise.
48086         * tests/test-fbufmode.c: Likewise.
48087         * tests/test-fcntl.c: Likewise.
48088         * tests/test-fflush.c: Likewise.
48089         * tests/test-floorf.c: Likewise.
48090         * tests/test-floorl.c: Likewise.
48091         * tests/test-fopen.c: Likewise.
48092         * tests/test-fprintf-posix.c: Likewise.
48093         * tests/test-fprintf-posix.h: Likewise.
48094         * tests/test-fpurge.c: Likewise.
48095         * tests/test-freadable.c: Likewise.
48096         * tests/test-freadahead.c: Likewise.
48097         * tests/test-freading.c: Likewise.
48098         * tests/test-freopen.c: Likewise.
48099         * tests/test-frexp.c: Likewise.
48100         * tests/test-frexpl.c: Likewise.
48101         * tests/test-fseek.c: Likewise.
48102         * tests/test-fseeko.c: Likewise.
48103         * tests/test-fseterr.c: Likewise.
48104         * tests/test-fstrcmp.c: Likewise.
48105         * tests/test-ftell.c: Likewise.
48106         * tests/test-ftello.c: Likewise.
48107         * tests/test-fwritable.c: Likewise.
48108         * tests/test-fwriting.c: Likewise.
48109         * tests/test-getaddrinfo.c: Likewise.
48110         * tests/test-getpass.c: Likewise.
48111         * tests/test-gettimeofday.c: Likewise.
48112         * tests/test-hmac-md5.c: Likewise.
48113         * tests/test-hmac-sha1.c: Likewise.
48114         * tests/test-iconv.c: Likewise.
48115         * tests/test-iconvme.c: Likewise.
48116         * tests/test-inttypes.c: Likewise.
48117         * tests/test-isnan.c: Likewise.
48118         * tests/test-isnanf.c: Likewise.
48119         * tests/test-isnanl-nolibm.c: Likewise.
48120         * tests/test-isnanl.c: Likewise.
48121         * tests/test-isnanl.h: Likewise.
48122         * tests/test-ldexpl.c: Likewise.
48123         * tests/test-linked_list.c: Likewise.
48124         * tests/test-linkedhash_list.c: Likewise.
48125         * tests/test-locale.c: Likewise.
48126         * tests/test-localename.c: Likewise.
48127         * tests/test-lock.c: Likewise.
48128         * tests/test-lseek.c: Likewise.
48129         * tests/test-malloca.c: Likewise.
48130         * tests/test-math.c: Likewise.
48131         * tests/test-mbscasecmp.c: Likewise.
48132         * tests/test-mbscasestr1.c: Likewise.
48133         * tests/test-mbscasestr2.c: Likewise.
48134         * tests/test-mbscasestr3.c: Likewise.
48135         * tests/test-mbscasestr4.c: Likewise.
48136         * tests/test-mbschr.c: Likewise.
48137         * tests/test-mbscspn.c: Likewise.
48138         * tests/test-mbsncasecmp.c: Likewise.
48139         * tests/test-mbspbrk.c: Likewise.
48140         * tests/test-mbspcasecmp.c: Likewise.
48141         * tests/test-mbsrchr.c: Likewise.
48142         * tests/test-mbsspn.c: Likewise.
48143         * tests/test-mbsstr1.c: Likewise.
48144         * tests/test-mbsstr2.c: Likewise.
48145         * tests/test-mbsstr3.c: Likewise.
48146         * tests/test-md5.c: Likewise.
48147         * tests/test-memmem.c: Likewise.
48148         * tests/test-netinet_in.c: Likewise.
48149         * tests/test-open.c: Likewise.
48150         * tests/test-printf-frexp.c: Likewise.
48151         * tests/test-printf-frexpl.c: Likewise.
48152         * tests/test-printf-posix.c: Likewise.
48153         * tests/test-printf-posix.h: Likewise.
48154         * tests/test-rbtree_list.c: Likewise.
48155         * tests/test-rbtree_oset.c: Likewise.
48156         * tests/test-rbtreehash_list.c: Likewise.
48157         * tests/test-read-file.c: Likewise.
48158         * tests/test-rijndael.c: Likewise.
48159         * tests/test-search.c: Likewise.
48160         * tests/test-signbit.c: Likewise.
48161         * tests/test-sleep.c: Likewise.
48162         * tests/test-snprintf-posix.c: Likewise.
48163         * tests/test-snprintf-posix.h: Likewise.
48164         * tests/test-snprintf.c: Likewise.
48165         * tests/test-sprintf-posix.c: Likewise.
48166         * tests/test-sprintf-posix.h: Likewise.
48167         * tests/test-stat-time.c: Likewise.
48168         * tests/test-stdbool.c: Likewise.
48169         * tests/test-stdint.c: Likewise.
48170         * tests/test-stdio.c: Likewise.
48171         * tests/test-stdlib.c: Likewise.
48172         * tests/test-stpncpy.c: Likewise.
48173         * tests/test-strcasestr.c: Likewise.
48174         * tests/test-striconv.c: Likewise.
48175         * tests/test-striconveh.c: Likewise.
48176         * tests/test-striconveha.c: Likewise.
48177         * tests/test-string.c: Likewise.
48178         * tests/test-sys_select.c: Likewise.
48179         * tests/test-sys_socket.c: Likewise.
48180         * tests/test-sys_stat.c: Likewise.
48181         * tests/test-sys_time.c: Likewise.
48182         * tests/test-sysexits.c: Likewise.
48183         * tests/test-time.c: Likewise.
48184         * tests/test-tls.c: Likewise.
48185         * tests/test-trunc.c: Likewise.
48186         * tests/test-truncf.c: Likewise.
48187         * tests/test-truncl.c: Likewise.
48188         * tests/test-unistd.c: Likewise.
48189         * tests/test-vasnprintf-posix.c: Likewise.
48190         * tests/test-vasnprintf-posix2.c: Likewise.
48191         * tests/test-vasnprintf.c: Likewise.
48192         * tests/test-vasprintf-posix.c: Likewise.
48193         * tests/test-vasprintf.c: Likewise.
48194         * tests/test-verify.c: Likewise.
48195         * tests/test-vfprintf-posix.c: Likewise.
48196         * tests/test-vprintf-posix.c: Likewise.
48197         * tests/test-vsnprintf-posix.c: Likewise.
48198         * tests/test-vsnprintf.c: Likewise.
48199         * tests/test-vsprintf-posix.c: Likewise.
48200         * tests/test-wchar.c: Likewise.
48201         * tests/test-wctype.c: Likewise.
48202         * tests/test-wcwidth.c: Likewise.
48203         * tests/test-xstrtol.c: Likewise.
48204         * tests/test-xvasprintf.c: Likewise.
48205         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48206         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48207         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48208         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48209         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48210         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48211         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48212         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48213         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48214         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48215         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48216         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48217         * tests/uniname/test-uninames.c: Likewise.
48218         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48219         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48220         * tests/unistdio/test-u16-printf1.h: Likewise.
48221         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48222         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48223         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48224         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48225         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48226         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48227         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48228         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48229         * tests/unistdio/test-u32-printf1.h: Likewise.
48230         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48231         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48232         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48233         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48234         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48235         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48236         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48237         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48238         * tests/unistdio/test-u8-printf1.h: Likewise.
48239         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48240         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48241         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48242         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48243         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48244         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48245         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48246         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48247         * tests/unistdio/test-ulc-printf1.h: Likewise.
48248         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48249         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48250         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48251         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48252         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48253         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48254         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48255         * tests/uniwidth/test-u16-width.c: Likewise.
48256         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48257         * tests/uniwidth/test-u32-width.c: Likewise.
48258         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48259         * tests/uniwidth/test-u8-width.c: Likewise.
48260         * tests/uniwidth/test-uc_width.c: Likewise.
48261         * config/srclist-update: Likewise.
48262         (fixlicense): Update to GPLv3+.
48263
48264         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48265         * tests/test-tsearch.c: Change copyright notice.
48266
48267         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48268         * lib/c-strcaseeq.h: Change copyright notice.
48269         * lib/streq.h: Likewise.
48270         * lib/uniconv.h: Likewise.
48271         * lib/uniconv/u-conv-from-enc.h: Likewise.
48272         * lib/uniconv/u-conv-to-enc.h: Likewise.
48273         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48274         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48275         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48276         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48277         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48278         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48279         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48280         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48281         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48282         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48283         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48284         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48285         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48286         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48287         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48288         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48289         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48290         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48291         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48292         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48293         * lib/uniname.h: Likewise.
48294         * lib/uniname/uniname.c: Likewise.
48295         * lib/unistdio.h: Likewise.
48296         * lib/unistdio/u-asnprintf.h: Likewise.
48297         * lib/unistdio/u-asprintf.h: Likewise.
48298         * lib/unistdio/u-printf-args.c: Likewise.
48299         * lib/unistdio/u-printf-args.h: Likewise.
48300         * lib/unistdio/u-printf-parse.h: Likewise.
48301         * lib/unistdio/u-snprintf.h: Likewise.
48302         * lib/unistdio/u-sprintf.h: Likewise.
48303         * lib/unistdio/u-vasprintf.h: Likewise.
48304         * lib/unistdio/u-vsnprintf.h: Likewise.
48305         * lib/unistdio/u-vsprintf.h: Likewise.
48306         * lib/unistdio/u16-asnprintf.c: Likewise.
48307         * lib/unistdio/u16-asprintf.c: Likewise.
48308         * lib/unistdio/u16-printf-parse.c: Likewise.
48309         * lib/unistdio/u16-snprintf.c: Likewise.
48310         * lib/unistdio/u16-sprintf.c: Likewise.
48311         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48312         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48313         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48314         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48315         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48316         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48317         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48318         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48319         * lib/unistdio/u16-vasnprintf.c: Likewise.
48320         * lib/unistdio/u16-vasprintf.c: Likewise.
48321         * lib/unistdio/u16-vsnprintf.c: Likewise.
48322         * lib/unistdio/u16-vsprintf.c: Likewise.
48323         * lib/unistdio/u32-asnprintf.c: Likewise.
48324         * lib/unistdio/u32-asprintf.c: Likewise.
48325         * lib/unistdio/u32-printf-parse.c: Likewise.
48326         * lib/unistdio/u32-snprintf.c: Likewise.
48327         * lib/unistdio/u32-sprintf.c: Likewise.
48328         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48329         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48330         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48331         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48332         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48333         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48334         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48335         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48336         * lib/unistdio/u32-vasnprintf.c: Likewise.
48337         * lib/unistdio/u32-vasprintf.c: Likewise.
48338         * lib/unistdio/u32-vsnprintf.c: Likewise.
48339         * lib/unistdio/u32-vsprintf.c: Likewise.
48340         * lib/unistdio/u8-asnprintf.c: Likewise.
48341         * lib/unistdio/u8-asprintf.c: Likewise.
48342         * lib/unistdio/u8-printf-parse.c: Likewise.
48343         * lib/unistdio/u8-snprintf.c: Likewise.
48344         * lib/unistdio/u8-sprintf.c: Likewise.
48345         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48346         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48347         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48348         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48349         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48350         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48351         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48352         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48353         * lib/unistdio/u8-vasnprintf.c: Likewise.
48354         * lib/unistdio/u8-vasprintf.c: Likewise.
48355         * lib/unistdio/u8-vsnprintf.c: Likewise.
48356         * lib/unistdio/u8-vsprintf.c: Likewise.
48357         * lib/unistdio/ulc-asnprintf.c: Likewise.
48358         * lib/unistdio/ulc-asprintf.c: Likewise.
48359         * lib/unistdio/ulc-printf-parse.c: Likewise.
48360         * lib/unistdio/ulc-snprintf.c: Likewise.
48361         * lib/unistdio/ulc-sprintf.c: Likewise.
48362         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48363         * lib/unistdio/ulc-vasprintf.c: Likewise.
48364         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48365         * lib/unistdio/ulc-vsprintf.c: Likewise.
48366         * lib/unistr.h: Likewise.
48367         * lib/unistr/u-cpy-alloc.h: Likewise.
48368         * lib/unistr/u-cpy.h: Likewise.
48369         * lib/unistr/u-endswith.h: Likewise.
48370         * lib/unistr/u-move.h: Likewise.
48371         * lib/unistr/u-set.h: Likewise.
48372         * lib/unistr/u-startswith.h: Likewise.
48373         * lib/unistr/u-stpcpy.h: Likewise.
48374         * lib/unistr/u-stpncpy.h: Likewise.
48375         * lib/unistr/u-strcat.h: Likewise.
48376         * lib/unistr/u-strcpy.h: Likewise.
48377         * lib/unistr/u-strcspn.h: Likewise.
48378         * lib/unistr/u-strdup.h: Likewise.
48379         * lib/unistr/u-strlen.h: Likewise.
48380         * lib/unistr/u-strncat.h: Likewise.
48381         * lib/unistr/u-strncpy.h: Likewise.
48382         * lib/unistr/u-strnlen.h: Likewise.
48383         * lib/unistr/u-strpbrk.h: Likewise.
48384         * lib/unistr/u-strspn.h: Likewise.
48385         * lib/unistr/u-strstr.h: Likewise.
48386         * lib/unistr/u-strtok.h: Likewise.
48387         * lib/unistr/u16-check.c: Likewise.
48388         * lib/unistr/u16-chr.c: Likewise.
48389         * lib/unistr/u16-cmp.c: Likewise.
48390         * lib/unistr/u16-cpy-alloc.c: Likewise.
48391         * lib/unistr/u16-cpy.c: Likewise.
48392         * lib/unistr/u16-endswith.c: Likewise.
48393         * lib/unistr/u16-mblen.c: Likewise.
48394         * lib/unistr/u16-mbsnlen.c: Likewise.
48395         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48396         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48397         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48398         * lib/unistr/u16-mbtouc.c: Likewise.
48399         * lib/unistr/u16-mbtoucr.c: Likewise.
48400         * lib/unistr/u16-move.c: Likewise.
48401         * lib/unistr/u16-next.c: Likewise.
48402         * lib/unistr/u16-prev.c: Likewise.
48403         * lib/unistr/u16-set.c: Likewise.
48404         * lib/unistr/u16-startswith.c: Likewise.
48405         * lib/unistr/u16-stpcpy.c: Likewise.
48406         * lib/unistr/u16-stpncpy.c: Likewise.
48407         * lib/unistr/u16-strcat.c: Likewise.
48408         * lib/unistr/u16-strchr.c: Likewise.
48409         * lib/unistr/u16-strcmp.c: Likewise.
48410         * lib/unistr/u16-strcpy.c: Likewise.
48411         * lib/unistr/u16-strcspn.c: Likewise.
48412         * lib/unistr/u16-strdup.c: Likewise.
48413         * lib/unistr/u16-strlen.c: Likewise.
48414         * lib/unistr/u16-strmblen.c: Likewise.
48415         * lib/unistr/u16-strmbtouc.c: Likewise.
48416         * lib/unistr/u16-strncat.c: Likewise.
48417         * lib/unistr/u16-strncmp.c: Likewise.
48418         * lib/unistr/u16-strncpy.c: Likewise.
48419         * lib/unistr/u16-strnlen.c: Likewise.
48420         * lib/unistr/u16-strpbrk.c: Likewise.
48421         * lib/unistr/u16-strrchr.c: Likewise.
48422         * lib/unistr/u16-strspn.c: Likewise.
48423         * lib/unistr/u16-strstr.c: Likewise.
48424         * lib/unistr/u16-strtok.c: Likewise.
48425         * lib/unistr/u16-to-u32.c: Likewise.
48426         * lib/unistr/u16-to-u8.c: Likewise.
48427         * lib/unistr/u16-uctomb-aux.c: Likewise.
48428         * lib/unistr/u16-uctomb.c: Likewise.
48429         * lib/unistr/u32-check.c: Likewise.
48430         * lib/unistr/u32-chr.c: Likewise.
48431         * lib/unistr/u32-cmp.c: Likewise.
48432         * lib/unistr/u32-cpy-alloc.c: Likewise.
48433         * lib/unistr/u32-cpy.c: Likewise.
48434         * lib/unistr/u32-endswith.c: Likewise.
48435         * lib/unistr/u32-mblen.c: Likewise.
48436         * lib/unistr/u32-mbsnlen.c: Likewise.
48437         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48438         * lib/unistr/u32-mbtouc.c: Likewise.
48439         * lib/unistr/u32-mbtoucr.c: Likewise.
48440         * lib/unistr/u32-move.c: Likewise.
48441         * lib/unistr/u32-next.c: Likewise.
48442         * lib/unistr/u32-prev.c: Likewise.
48443         * lib/unistr/u32-set.c: Likewise.
48444         * lib/unistr/u32-startswith.c: Likewise.
48445         * lib/unistr/u32-stpcpy.c: Likewise.
48446         * lib/unistr/u32-stpncpy.c: Likewise.
48447         * lib/unistr/u32-strcat.c: Likewise.
48448         * lib/unistr/u32-strchr.c: Likewise.
48449         * lib/unistr/u32-strcmp.c: Likewise.
48450         * lib/unistr/u32-strcpy.c: Likewise.
48451         * lib/unistr/u32-strcspn.c: Likewise.
48452         * lib/unistr/u32-strdup.c: Likewise.
48453         * lib/unistr/u32-strlen.c: Likewise.
48454         * lib/unistr/u32-strmblen.c: Likewise.
48455         * lib/unistr/u32-strmbtouc.c: Likewise.
48456         * lib/unistr/u32-strncat.c: Likewise.
48457         * lib/unistr/u32-strncmp.c: Likewise.
48458         * lib/unistr/u32-strncpy.c: Likewise.
48459         * lib/unistr/u32-strnlen.c: Likewise.
48460         * lib/unistr/u32-strpbrk.c: Likewise.
48461         * lib/unistr/u32-strrchr.c: Likewise.
48462         * lib/unistr/u32-strspn.c: Likewise.
48463         * lib/unistr/u32-strstr.c: Likewise.
48464         * lib/unistr/u32-strtok.c: Likewise.
48465         * lib/unistr/u32-to-u16.c: Likewise.
48466         * lib/unistr/u32-to-u8.c: Likewise.
48467         * lib/unistr/u32-uctomb.c: Likewise.
48468         * lib/unistr/u8-check.c: Likewise.
48469         * lib/unistr/u8-chr.c: Likewise.
48470         * lib/unistr/u8-cmp.c: Likewise.
48471         * lib/unistr/u8-cpy-alloc.c: Likewise.
48472         * lib/unistr/u8-cpy.c: Likewise.
48473         * lib/unistr/u8-endswith.c: Likewise.
48474         * lib/unistr/u8-mblen.c: Likewise.
48475         * lib/unistr/u8-mbsnlen.c: Likewise.
48476         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48477         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48478         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48479         * lib/unistr/u8-mbtouc.c: Likewise.
48480         * lib/unistr/u8-mbtoucr.c: Likewise.
48481         * lib/unistr/u8-move.c: Likewise.
48482         * lib/unistr/u8-next.c: Likewise.
48483         * lib/unistr/u8-prev.c: Likewise.
48484         * lib/unistr/u8-set.c: Likewise.
48485         * lib/unistr/u8-startswith.c: Likewise.
48486         * lib/unistr/u8-stpcpy.c: Likewise.
48487         * lib/unistr/u8-stpncpy.c: Likewise.
48488         * lib/unistr/u8-strcat.c: Likewise.
48489         * lib/unistr/u8-strchr.c: Likewise.
48490         * lib/unistr/u8-strcmp.c: Likewise.
48491         * lib/unistr/u8-strcpy.c: Likewise.
48492         * lib/unistr/u8-strcspn.c: Likewise.
48493         * lib/unistr/u8-strdup.c: Likewise.
48494         * lib/unistr/u8-strlen.c: Likewise.
48495         * lib/unistr/u8-strmblen.c: Likewise.
48496         * lib/unistr/u8-strmbtouc.c: Likewise.
48497         * lib/unistr/u8-strncat.c: Likewise.
48498         * lib/unistr/u8-strncmp.c: Likewise.
48499         * lib/unistr/u8-strncpy.c: Likewise.
48500         * lib/unistr/u8-strnlen.c: Likewise.
48501         * lib/unistr/u8-strpbrk.c: Likewise.
48502         * lib/unistr/u8-strrchr.c: Likewise.
48503         * lib/unistr/u8-strspn.c: Likewise.
48504         * lib/unistr/u8-strstr.c: Likewise.
48505         * lib/unistr/u8-strtok.c: Likewise.
48506         * lib/unistr/u8-to-u16.c: Likewise.
48507         * lib/unistr/u8-to-u32.c: Likewise.
48508         * lib/unistr/u8-uctomb-aux.c: Likewise.
48509         * lib/unistr/u8-uctomb.c: Likewise.
48510         * lib/unitypes.h: Likewise.
48511         * lib/uniwidth.h: Likewise.
48512         * lib/uniwidth/cjk.h: Likewise.
48513         * lib/uniwidth/u16-strwidth.c: Likewise.
48514         * lib/uniwidth/u16-width.c: Likewise.
48515         * lib/uniwidth/u32-strwidth.c: Likewise.
48516         * lib/uniwidth/u32-width.c: Likewise.
48517         * lib/uniwidth/u8-strwidth.c: Likewise.
48518         * lib/uniwidth/u8-width.c: Likewise.
48519         * lib/uniwidth/width.c: Likewise.
48520
48521 2007-10-07  Bruno Haible  <bruno@clisp.org>
48522
48523         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48524         The file is still under LGPL (see modules/inttypes).
48525
48526 2007-10-06  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/trunc (Dependencies): Add 'extensions'.
48529         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48530         Reported by Ben Pfaff <blp@gnu.org>.
48531
48532 2007-10-06  Bruno Haible  <bruno@clisp.org>
48533
48534         * modules/freopen-tests: New file.
48535         * tests/test-freopen.c: New file.
48536
48537         * modules/fopen-tests: New file.
48538         * tests/test-fopen.c: New file.
48539
48540         * modules/fopen: New file.
48541         * lib/fopen.c: New file.
48542         * m4/fopen.m4: New file.
48543         * modules/freopen: New file.
48544         * lib/freopen.c: New file.
48545         * m4/freopen.m4: New file.
48546         * lib/stdio.in.h (fopen, freopen): New declarations.
48547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48548         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48549         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48550         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48551         * doc/functions/fopen.texi: Mention the 'fopen' module.
48552         * doc/functions/freopen.texi: Mention the 'freopen' module.
48553
48554 2007-10-06  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/open-tests: New file.
48557         * tests/test-open.c: New file.
48558
48559         * modules/open: New file.
48560         * lib/open.c: New file.
48561         * m4/open.m4: New file.
48562         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48563         lib/open.c does.
48564         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48565         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48566         macros.
48567         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48568         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48569         REPLACE_OPEN.
48570         * doc/functions/open.texi: Mention the 'open' module.
48571
48572 2007-10-04  Bruno Haible  <bruno@clisp.org>
48573
48574         * modules/ceill-tests: New file.
48575         * tests/test-ceill.c: New file.
48576
48577         * modules/ceill: New file.
48578         * lib/ceill.c: Replace entire file.
48579         * m4/ceill.m4: New file.
48580         * lib/math.in.h (ceill): Replace declaration.
48581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48582         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48583         * doc/functions/ceill.texi: Mention the 'ceill' module.
48584         * modules/mathl (Files): Remove lib/ceill.c.
48585         (Depends-on): Add ceill.
48586
48587 2007-10-04  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/ceilf-tests: New file.
48590         * tests/test-ceilf.c: New file.
48591
48592         * modules/ceilf: New file.
48593         * lib/ceil.c: New file.
48594         * lib/ceilf.c: New file.
48595         * m4/ceilf.m4: New file.
48596         * lib/math.in.h (ceilf): New declaration.
48597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48598         HAVE_DECL_CEILF.
48599         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48600         HAVE_DECL_CEILF.
48601         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48602
48603 2007-10-04  Bruno Haible  <bruno@clisp.org>
48604
48605         * modules/floorl-tests: New file.
48606         * tests/test-floorl.c: New file.
48607
48608         * modules/floorl: New file.
48609         * lib/floorl.c: Replace entire file.
48610         * m4/floorl.m4: New file.
48611         * lib/math.in.h (floorl): Replace declaration.
48612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48613         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48614         * doc/functions/floorl.texi: Mention the 'floorl' module.
48615         * modules/mathl (Files): Remove lib/floorl.c.
48616         (Depends-on): Add floorl.
48617
48618 2007-10-04  Bruno Haible  <bruno@clisp.org>
48619
48620         * modules/floorf-tests: New file.
48621         * tests/test-floorf.c: New file.
48622
48623         * modules/floorf: New file.
48624         * lib/floor.c: New file.
48625         * lib/floorf.c: New file.
48626         * m4/floorf.m4: New file.
48627         * lib/math.in.h (floorf): New declaration.
48628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48629         HAVE_DECL_FLOORF.
48630         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48631         HAVE_DECL_FLOORF.
48632         * doc/functions/floorf.texi: Mention the 'floorf' module.
48633
48634 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48635             Bruno Haible  <bruno@clisp.org>
48636
48637         Advertise for the Git server instead of the CVS server.
48638         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48639         repository instead of the CVS one.
48640         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48641         about all VCS systems generically.
48642         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48643
48644 2007-10-04  Bruno Haible  <bruno@clisp.org>
48645
48646         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48647         means.
48648         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48649
48650 2007-10-04  Bruno Haible  <bruno@clisp.org>
48651
48652         * modules/truncl-tests: New file.
48653         * tests/test-truncl.c: New file.
48654
48655         * modules/truncl: New file.
48656         * lib/truncl.c: New file.
48657         * m4/truncl.m4: New file.
48658         * lib/math.in.h (truncl): New declaration.
48659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48660         HAVE_DECL_TRUNCL.
48661         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48662         HAVE_DECL_TRUNCL.
48663         * doc/functions/truncl.texi: Mention the 'truncl' module.
48664
48665 2007-10-04  Bruno Haible  <bruno@clisp.org>
48666
48667         * modules/truncf-tests: New file.
48668         * tests/test-truncf.c: New file.
48669
48670         * modules/truncf: New file.
48671         * lib/trunc.c: Make paramerizable through USE_* macros.
48672         * lib/truncf.c: New file.
48673         * m4/truncf.m4: New file.
48674         * lib/math.in.h (truncf): New declaration.
48675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48676         HAVE_DECL_TRUNCF.
48677         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48678         HAVE_DECL_TRUNCF.
48679         * doc/functions/truncf.texi: Mention the 'truncf' module.
48680
48681 2007-10-03  Bruno Haible  <bruno@clisp.org>
48682
48683         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48684         augmentation also for tests modules.
48685         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48686         * modules/atexit-tests (Makefile.am): Likewise.
48687         * modules/binary-io-tests (Makefile.am): Likewise.
48688         * modules/c-strcase-tests (Makefile.am): Likewise.
48689         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48690         * modules/canonicalize-tests (Makefile.am): Likewise.
48691         * modules/closein-tests (Makefile.am): Likewise.
48692         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48693         * modules/freadahead-tests (Makefile.am): Likewise.
48694         * modules/fseek-tests (Makefile.am): Likewise.
48695         * modules/fseeko-tests (Makefile.am): Likewise.
48696         * modules/ftell-tests (Makefile.am): Likewise.
48697         * modules/ftello-tests (Makefile.am): Likewise.
48698         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48699         * modules/isnanl-tests (Makefile.am): Likewise.
48700         * modules/lseek-tests (Makefile.am): Likewise.
48701         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48702         * modules/mbscasestr-tests (Makefile.am): Likewise.
48703         * modules/mbschr-tests (Makefile.am): Likewise.
48704         * modules/mbscspn-tests (Makefile.am): Likewise.
48705         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48706         * modules/mbspbrk-tests (Makefile.am): Likewise.
48707         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48708         * modules/mbsrchr-tests (Makefile.am): Likewise.
48709         * modules/mbsspn-tests (Makefile.am): Likewise.
48710         * modules/mbsstr-tests (Makefile.am): Likewise.
48711         * modules/printf-posix-tests (Makefile.am): Likewise.
48712         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48713         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48714         * modules/tsearch-tests (Makefile.am): Likewise.
48715         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48716         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48717         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48718         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48719         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48720         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48721         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48722         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48723         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48724         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48725         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48726         * modules/xstrtol-tests (Makefile.am): Likewise.
48727         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48728         * modules/yesno-tests (Makefile.am): Likewise.
48729
48730 2007-10-03  Bruno Haible  <bruno@clisp.org>
48731
48732         * modules/trunc-tests: New file.
48733         * tests/test-trunc.c: New file.
48734
48735         * modules/trunc: New file.
48736         * lib/trunc.c: New file.
48737         * m4/trunc.m4: New file.
48738         * lib/math.in.h (trunc): New declaration.
48739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48740         HAVE_DECL_TRUNC.
48741         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48742         HAVE_DECL_TRUNC.
48743         * doc/functions/trunc.texi: Mention the 'trunc' module.
48744
48745 2007-10-03  Bruno Haible  <bruno@clisp.org>
48746
48747         * tests/test-fpending.c: New file, mostly copied
48748         from coreutils/lib/t-fpending.c.
48749         * modules/fpending-tests: New file.
48750
48751 2007-10-03  Bruno Haible  <bruno@clisp.org>
48752
48753         Port the stdio extensions to QNX (untested).
48754         * lib/fseterr.c (fseterr): Add support for QNX.
48755         * lib/fbufmode.c (fbufmode): Likewise.
48756         * lib/freadable.c (freadable): Likewise.
48757         * lib/fwritable.c (fwritable): Likewise.
48758         * lib/freading.c (freading): Likewise.
48759         * lib/fwriting.c (fwriting): Likewise.
48760         * lib/freadahead.c (freadahed): Likewise.
48761         * lib/fpurge.c (fpurge): Likewise.
48762         * lib/fseeko.c (rpl_fseeko): Likewise.
48763
48764 2007-10-03  Bruno Haible  <bruno@clisp.org>
48765             Jim Meyering  <jim@meyering.net>
48766             Eric Blake  <ebb9@byu.net>
48767
48768         * doc/relocatable.texi: Use @command instead of @program.
48769
48770 2007-10-02  Jim Meyering  <jim@meyering.net>
48771
48772         Perform one more "_.h" -> ".in.h" substitution.
48773         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48774         instead of unistd_.h here, too.
48775
48776 2007-10-01  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48779         Needed for the alloca-opt module.
48780
48781 2007-09-30  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48784         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48785         alloca_.h.
48786         * lib/argz.in.h: Renamed from lib/argz_.h.
48787         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48788         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48789         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48790         byteswap_.h.
48791         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48792         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48793         dirent_.h.
48794         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48795         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48796         fcntl_.h.
48797         * lib/float.in.h: Renamed from lib/float_.h.
48798         * modules/float (Files, Makefile.am): Use float.in.h instead of
48799         float_.h.
48800         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48801         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48802         fnmatch_.h.
48803         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48804         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48805         getopt_.h.
48806         * lib/glob.in.h: Renamed from lib/glob_.h.
48807         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48808         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48809         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48810         iconv_.h.
48811         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48812         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48813         inttypes_.h.
48814         * lib/locale.in.h: Renamed from lib/locale_.h.
48815         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48816         locale_.h.
48817         * lib/math.in.h: Renamed from lib/math_.h.
48818         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48819         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48820         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48821         of netinet_in_.h. Add dependency.
48822         * lib/poll.in.h: Renamed from lib/poll_.h.
48823         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48824         * lib/search.in.h: Renamed from lib/search_.h.
48825         * modules/search (Files, Makefile.am): Use search.in.h instead of
48826         search_.h.
48827         * lib/signal.in.h: Renamed from lib/signal_.h.
48828         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48829         _signal.h.
48830         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48831         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48832         stdbool_.h.
48833         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48834         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48835         stdint_.h.
48836         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48837         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48838         stdio_.h.
48839         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48840         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48841         stdlib_.h.
48842         * lib/string.in.h: Renamed from lib/string_.h.
48843         * modules/string (Files, Makefile.am): Use string.in.h instead of
48844         string_.h.
48845         * doc/gnulib-tool.texi (Initial import): Update.
48846         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48847         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48848         of sys_select_.h. Add dependency.
48849         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48850         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48851         of sys_socket_.h.
48852         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48853         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48854         sys_stat_.h.
48855         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48856         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48857         sys_time_.h.
48858         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48859         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48860         sysexits_.h.
48861         * lib/time.in.h: Renamed from lib/time_.h.
48862         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48863         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48864         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48865         unistd_.h.
48866         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48867         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48868         wchar_.h.
48869         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48870         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48871         wctype_.h.
48872         * build-aux/bootstrap (slurp): Update.
48873         * lib/.cppi-disable: Update.
48874
48875 2007-09-30  Bruno Haible  <bruno@clisp.org>
48876
48877         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48878         Needed on BeOS.
48879
48880 2007-09-30  Bruno Haible  <bruno@clisp.org>
48881
48882         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48883
48884 2007-09-29  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48887
48888 2007-09-29  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48891         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48892         * build-aux/install-reloc: Compile also areadlink.c.
48893         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48894
48895 2007-09-29  Bruno Haible  <bruno@clisp.org>
48896
48897         * gnulib-tool (func_emit_initmacro_done): Indentation.
48898
48899 2007-09-29  Bruno Haible  <bruno@clisp.org>
48900
48901         * README: Add CVS checkout update instructions.
48902         Info from Bob Proulx <bob@proulx.com>.
48903
48904 2007-09-28  Eric Blake  <ebb9@byu.net>
48905
48906         Provide move-if-change.
48907         * build-aux/move-if-change: New file, based on best practice
48908         rather than any canonical upstream location.
48909
48910 2007-09-28  Jim Meyering  <jim@meyering.net>
48911
48912         Fix canonicalize loop-detection corner case.
48913         Do not attempt to stat the symlink values stored via seen_triple.
48914         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48915         on linux-2.6.18, (but not 2.6.22).
48916         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48917         triple_compare.  The former compares dev,ino,filename, while the latter
48918         would actually stat dirname(filename) when dev and ino were equal.
48919         * lib/hash-triple.c: Install <string.h>.
48920         (STREQ): Define.
48921         (triple_compare_ino_str): New function.
48922         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48923
48924 2007-09-28  Eric Blake  <ebb9@byu.net>
48925
48926         Enforce that AC_REPLACE_FUNCS files exist.
48927         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48928         override check for typos.
48929
48930         Fix test-closein on Solaris 10.
48931         * tests/test-closein.c (main): Don't assume stdin can be inherited
48932         closed on all systems.
48933         * tests/test-closein.sh: Likewise.
48934         Reported by Piotr Tarnowski.
48935
48936 2007-09-28  Jim Meyering  <jim@meyering.net>
48937
48938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48939
48940 2007-09-27  Jim Meyering  <jim@meyering.net>
48941
48942         canonicalize: Avoid a false-positive cycle failure.
48943         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48944         Sort.  Remove cycle-check.
48945         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48946         not cycle-check.h.
48947         (seen_triple): New function.
48948         (canonicalize_filename_mode): Use it instead of cycle-check.
48949         * tests/test-canonicalize.c: Add a test for this bug.
48950         * tests/test-canonicalize.sh: Set up and run the test.
48951
48952         New module, file-set, from coreutils.
48953         * modules/file-set: Define it.
48954         * lib/file-set.c, lib/file-set.h: Implement.
48955
48956         New module, hash-triple, from coreutils.
48957         * modules/hash-triple: Define it.
48958         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48959
48960 2007-09-25  Eric Blake  <ebb9@byu.net>
48961
48962         Fix strerror on Interix.
48963         * lib/string_.h (strerror): Declare replacement.
48964         * doc/functions/strerror.texi (strerror): Document the Interix
48965         shortcoming.
48966         * modules/string (Makefile.am): Support new hooks.
48967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48968         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48969         gl_FUNC_STRERROR_SEPARATE.
48970         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48971         * lib/strerror.c (rpl_strerror): Provide replacement.
48972         * modules/strerror (Depends-on): Add string.
48973         (configure.ac): Detect use of module.
48974         * tests/test-strerror.c: New file.
48975         * modules/strerror-tests: New test module.
48976         * modules/argp (Depends-on): Add strerror.
48977         * modules/error (Depends-on): Likewise.
48978         Reported by Martin Koeppe.
48979
48980 2007-09-24  Bruno Haible  <bruno@clisp.org>
48981
48982         * README: Update git instructions.
48983
48984 2007-09-24  Eric Blake  <ebb9@byu.net>
48985
48986         Revert fpending breakage from 2007-09-08.
48987         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48988         __fpending.c.
48989
48990 2007-09-24  Jim Meyering  <jim@meyering.net>
48991
48992         filenamecat.c: Add a test.
48993         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48994         showing how the function works when DIR is the empty string.
48995
48996 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48997
48998         * tests/test-canonicalize.sh: Turn on executable bit.
48999
49000 2007-09-19  Eric Blake  <ebb9@byu.net>
49001
49002         * README: Update CVS instructions.
49003
49004 2007-09-18  Bruno Haible  <bruno@clisp.org>
49005
49006         * modules/areadlink: New file.
49007         * lib/areadlink.h (areadlink): New declaration.
49008         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49009
49010 2007-09-17  Jim Meyering  <jim@meyering.net>
49011
49012         * lib/savewd.c (ESTALE) [!defined]: Define.
49013         Reported to be required on Interix by Martin Koeppe.
49014
49015 2007-09-17  Bruno Haible  <bruno@clisp.org>
49016
49017         * gnulib-tool (func_version): Use $version.
49018
49019 2007-09-16  Bruno Haible  <bruno@clisp.org>
49020
49021         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49022         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49023         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49024         Reported by Greg Schafer <gschafer@zip.com.au>.
49025
49026 2007-09-15  Bruno Haible  <bruno@clisp.org>
49027
49028         * gnulib-tool (sed): Try a little harder to make bash understand the
49029         alias.
49030         Reported by Bruce Korb <bruce.korb@gmail.com>.
49031
49032 2007-09-13  Eric Blake  <ebb9@byu.net>
49033
49034         * ChangeLog: Remove conflict markers.
49035
49036 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49037
49038         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49039         Reported by Bruno Haible <bruno@clisp.org>.
49040
49041 2007-09-12  Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49044         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49045         is not defined.
49046
49047 2007-09-12  Eric Blake  <ebb9@byu.net>
49048
49049         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49050         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49051         Autoconf definition.
49052         * modules/euidaccess (Depends-on): Add extensions, for
49053         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49054         * modules/fnmatch (Depends-on): Likewise.
49055         * modules/getaddrinfo (Depends-on): Likewise.
49056         * modules/getdelim (Depends-on): Likewise.
49057         * modules/getline (Depends-on): Likewise.
49058         * modules/getsubopt (Depends-on): Likewise.
49059         * modules/gettext (Depends-on): Likewise.
49060         * modules/group-member (Depends-on): Likewise.
49061         * modules/mbchar (Depends-on): Likewise.
49062         * modules/memmem (Depends-on): Likewise.
49063         * modules/mempcpy (Depends-on): Likewise.
49064         * modules/memrchr (Depends-on): Likewise.
49065         * modules/pagealign_alloc (Depends-on): Likewise.
49066         * modules/readutmp (Depends-on): Likewise.
49067         * modules/stpcpy (Depends-on): Likewise.
49068         * modules/stpncpy (Depends-on): Likewise.
49069         * modules/strchrnul (Depends-on): Likewise.
49070         * modules/strndup (Depends-on): Likewise.
49071         * modules/strsep (Depends-on): Likewise.
49072         * modules/strverscmp (Depends-on): Likewise.
49073         * modules/vasprintf (Depends-on): Likewise.
49074         * modules/wcwidth (Depends-on): Likewise.
49075         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49076         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49077         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49081         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49082         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49083         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49084         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49088         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49089         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49090         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49091         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49092         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49094         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49097         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49099         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49101         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49102         so that lock.m4 can be used in gettext without extensions module.
49103
49104 2007-09-11  Bruno Haible  <bruno@clisp.org>
49105
49106         * m4/isc-posix.m4: Remove file.
49107         Suggested by Eric Blake.
49108
49109 2007-09-11  Eric Blake  <ebb9@byu.net>
49110
49111         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49112
49113 2007-09-10  Bruno Haible  <bruno@clisp.org>
49114
49115         * posix-modules: Fix typo in error message.
49116         Reported by Matt <mkraai@beckman.com>.
49117
49118 2007-09-09  Bruno Haible  <bruno@clisp.org>
49119
49120         * doc/functions/getdelim.texi: Update list of platforms lacking the
49121         function.
49122         * doc/functions/getline.texi: Likewise.
49123
49124 2007-09-09  Jim Meyering  <jim@meyering.net>
49125
49126         * lib/hash.c (hash_initialize): Detect calloc failure.
49127         Reported by Bruno Haible.
49128
49129 2007-09-09  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49132         malloc or realloc fails.
49133
49134 2007-09-09  Bruno Haible  <bruno@clisp.org>
49135
49136         * modules/getcwd (Depends-on): Add malloc-posix.
49137         * modules/glob (Depends-on): Likewise.
49138         * modules/putenv (Depends-on): Likewise.
49139         * modules/strdup (Depends-on): Likewise.
49140         * modules/getdelim (Depends-on): Add realloc-posix.
49141         * modules/read-file (Depends-on): Likewise.
49142
49143 2007-09-09  Bruno Haible  <bruno@clisp.org>
49144
49145         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49146         (gl_FUNC_MALLOC_POSIX): Require it.
49147         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49148         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49149         * modules/realloc (Files): Add m4/malloc.m4.
49150         * modules/calloc (Files): Likewise.
49151
49152 2007-09-09  Bruno Haible  <bruno@clisp.org>
49153
49154         * modules/malloc-posix: New file.
49155         * modules/malloc (Depends-on): Add malloc-posix.
49156         * lib/malloc.c: Include errno.h.
49157         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49158         and a POSIX-compatible malloc into a single function. Set ENOMEM
49159         when returning NULL.
49160         * m4/malloc.m4: New file.
49161         * doc/functions/malloc.texi: Mention the malloc-posix module.
49162         * lib/stdlib_.h (malloc): New declaration.
49163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49164         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49165         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49166         and HAVE_MALLOC_POSIX.
49167
49168 2007-09-09  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/realloc-posix: New file.
49171         * modules/realloc (Depends-on): Add realloc-posix.
49172         * lib/realloc.c: Include errno.h.
49173         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49174         and a POSIX-compatible realloc into a single function. Set ENOMEM
49175         when returning NULL.
49176         * m4/realloc.m4: New file.
49177         * doc/functions/realloc.texi: Mention the realloc-posix module.
49178         * lib/stdlib_.h (realloc): New declaration.
49179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49180         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49181         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49182         and HAVE_REALLOC_POSIX.
49183
49184 2007-09-09  Bruno Haible  <bruno@clisp.org>
49185
49186         * modules/calloc-posix: New file.
49187         * modules/calloc (Depends-on): Add calloc-posix.
49188         * lib/calloc.c: Include errno.h.
49189         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49190         and a POSIX-compatible calloc into a single function. Set ENOMEM
49191         when returning NULL.
49192         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49193         * doc/functions/calloc.texi: Mention the calloc-posix module.
49194         * lib/stdlib_.h (calloc): New declaration.
49195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49196         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49197         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49198         and HAVE_CALLOC_POSIX.
49199
49200 2007-09-09  Bruno Haible  <bruno@clisp.org>
49201
49202         Allow for modules to show an arbitrary notice.
49203         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49204         * gnulib-tool: New option --extract-notice.
49205         (func_usage): Document it.
49206         (sed_extract_prog): Update.
49207         (func_get_notice): New function.
49208         (func_modules_notice): New function.
49209         (func_import, func_create_testdir): Invoke it.
49210         Suggested by Jim Meyering.
49211
49212 2007-09-09  Bruno Haible  <bruno@clisp.org>
49213
49214         * gnulib-tool: New options --verbose, --quiet.
49215         (func_usage): Document them.
49216         (verbose): New variable.
49217         (func_execute_command): New function.
49218         (func_import): Don't show the module list and the file list if
49219         $verbose < 0.
49220         (func_create_testdir): Likewise. Use func_execute_command.
49221         (func_create_megatestdir): Use func_execute_command.
49222
49223 2007-09-08  Bruno Haible  <bruno@clisp.org>
49224
49225         * gnulib-tool (func_import): Prefer rsync over wget when available,
49226         for fetching the PO files.
49227
49228 2007-09-08  Bruno Haible  <bruno@clisp.org>
49229
49230         * posix-modules: New file. Portions copied from gnulib-tool.
49231         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49232
49233 2007-09-08  Jim Meyering  <jim@meyering.net>
49234
49235         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49236         * lib/fpending.h: Rename from __fpending.h.
49237         * lib/fpending.c: Rename from __fpending.c.
49238         Include "fpending.h", not "__fpending.h".
49239         * lib/__fpending.h, lib/__fpending.c: Remove files.
49240         * modules/fpending (Files): Reflect new file names.
49241         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49242
49243 2007-09-08  Bruno Haible  <bruno@clisp.org>
49244
49245         * m4/inttypes-h.m4: Remove stub file.
49246
49247 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49248
49249         * doc/headers/stdint.texi: Discuss #include_next issue.
49250
49251 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49254
49255 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49256
49257         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49258         in variable name.
49259
49260 2007-09-03  Jim Meyering  <jim@meyering.net>
49261
49262         New module: git-version-gen.
49263         * modules/git-version-gen: New file.
49264
49265         Import changes from coreutils for bootstrap script.
49266
49267         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49268
49269         bootstrap: uses rsync to download the .po files
49270         * build-aux/bootstrap (po_download_command_format): New global.
49271         (download_po_files): Use rsync.
49272         (update_po_files): Don't remove .po files after download,
49273         so future rsync runs can take advantage of the copies.
49274
49275         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49276
49277         Solve the unnecessary-.po-file-regeneration problem once and for all.
49278         * build-aux/bootstrap (download_po_files): New function, renamed from
49279         get_translations.  Now, downloads, but doesn't update LINGUAS.
49280         (update_po_files): New function.
49281
49282         bootstrap: Ignore more.
49283         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49284         uniwidth to e.g., lib/.gitignore.
49285         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49286
49287         * build-aux/bootstrap: New setting: vc_ignore.
49288         (insert_sorted_if_absent): Create $file if absent.
49289         Adapt to new, possibly empty, list: $vc_ignore.
49290
49291         bootstrap: generate more ignorable names
49292         * build-aux/bootstrap (slurp): When generating ignorable names,
49293         also map .sin to .sed, .gperf to .c, and .y to .c.
49294
49295 2007-09-03  Jim Meyering  <jim@meyering.net>
49296
49297         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49298         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49299
49300 2007-09-02  Bruno Haible  <bruno@clisp.org>
49301
49302         Fix mis-recognition of 'mcs' on QNX 6.
49303         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49304         output contains the string "Mono".
49305         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49306         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49307
49308 2007-09-01  Bruno Haible  <bruno@clisp.org>
49309
49310         Fix collision between uniwidth/* and linebreak modules.
49311         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49312         u32_width): Remove declarations.
49313         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49314         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49315         streq3, streq2, streq1, streq0): Remove functions.
49316         (STREQ): Remove macro.
49317         (is_cjk_encoding): Remove function.
49318         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49319         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49320         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49321         * NEWS: Document the change.
49322
49323 2007-09-01  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/streq.h: Add double-inclusion guard.
49326
49327 2007-09-01  Karl Berry  <karl@gnu.org>
49328
49329         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49330
49331 2007-08-28  Jim Meyering  <jim@meyering.net>
49332
49333         Rename mreadlink_with_size to areadlink_with_size.
49334         * NEWS: Document the change.
49335         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49336         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49337         * lib/mreadlink.h: Rename this to...
49338         * lib/areadlink.h: ...this.
49339         * modules/mreadlink-with-size: Rename this to...
49340         * modules/areadlink-with-size: ...this.
49341         * lib/canonicalize.c: Reflect the renaming.
49342         * modules/canonicalize: Likewise.
49343
49344 2007-08-26  Bruno Haible  <bruno@clisp.org>
49345
49346         * gnulib-tool (func_import): When deciding which files to remove,
49347         consider also dangling symbolic links.
49348         Reported by Eric Blake.
49349
49350 2007-08-26  Bruno Haible  <bruno@clisp.org>
49351
49352         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49353
49354 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49355
49356         * lib/readline.c: Don't include getline.h, the prototype is now
49357         found in stdio.h.
49358
49359 2007-08-23  Jim Meyering  <jim@meyering.net>
49360
49361         Getdelim touchup.
49362         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49363         around the funlockfile call, since funlockfile never sets errno.
49364         Don't set errno upon failed realloc.
49365
49366 2007-08-22  Eric Blake  <ebb9@byu.net>
49367
49368         Getline touchups.
49369         * lib/getdelim.c (getdelim): Revert regression that required *n to
49370         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49371         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49372         getdelim, rather than whether implementation is missing.
49373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49374         * lib/stdio_.h (getline): Also declare if replacement is
49375         required.
49376         * doc/functions/getdelim.texi: New file.
49377         * doc/functions/getline.texi: Likewise.
49378         * doc/gnulib.texi (Function Substitutes): Add new files.
49379         Reported by Bruno Haible.
49380
49381 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49382
49383         * users.txt: Add Guile.
49384
49385 2007-08-22  Eric Blake  <ebb9@byu.net>
49386
49387         * tests/test-getdelim.c (main): Use remove, not unlink.
49388         * tests/test-getline.c (main): Likewise.
49389
49390         Move getline and getdelim into stdio.h, per POSIX 200x.
49391         * modules/getline (Files): Remove getline.h.
49392         (Depends-on): Add stdio.
49393         (configure.ac): Add module indicator.
49394         * modules/getdelim (Files): Remove getdelim.h.
49395         (Depends-on): Add stdio.
49396         (configure.ac): Add module indicator.
49397         * modules/stdio (Makefile.am): Work with new indicators.
49398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49401         * lib/getdelim.h: Delete.
49402         * lib/getline.h: Delete.
49403         * lib/stdio_.h (getdelim, getline): Declare.
49404         * modules/getdelim-tests: New module.
49405         * modules/getline-tests: Likewise.
49406         * tests/test-getdelim.c: New file.
49407         * tests/test-getline.c: Likewise.
49408         * NEWS: Document the change.
49409         * lib/getline.c: Update choice of header.
49410         * lib/csharpcomp.c: Likewise.
49411         * lib/getpass.c: Likewise.
49412         * lib/javacomp.c: Likewise.
49413         * lib/javaversion.c: Likewise.
49414         * lib/yesno.c: Likewise.
49415         * lib/getdelim.c: Likewise.
49416         (getdelim): Set errno on failure, and avoid memory leak.
49417
49418 2007-08-19  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/closein (Depends-on): Add freadahead.
49421         * lib/closein.c: Include freadahead.h.
49422         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49423         is zero.
49424
49425 2007-08-19  Bruno Haible  <bruno@clisp.org>
49426
49427         * modules/freadahead-tests: New file.
49428         * tests/test-freadahead.sh: New file.
49429         * tests/test-freadahead.c: New file.
49430
49431         * modules/freadahead: New file.
49432         * lib/freadahead.h: New file.
49433         * lib/freadahead.c: New file.
49434         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49435         fbufmode, fpurge, freadable, fwritable.
49436
49437 2007-08-19  Eric Blake  <ebb9@byu.net>
49438
49439         Test yesno in combination with closein.
49440         * lib/yesno.c (yesno): Document use of stdin.
49441         * modules/yesno-tests (Files): New module.
49442         * tests/test-yesno.c (main): New file.
49443         * tests/test-yesno.sh: Likewise.
49444
49445 2007-08-19  Bruno Haible  <bruno@clisp.org>
49446
49447         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49448         * lib/fseeko.c (rpl_fseeko): Likewise.
49449         * lib/fseterr.c (fseterr): Likewise.
49450
49451 2007-08-19  Bruno Haible  <bruno@clisp.org>
49452
49453         * tests/test-lseek.c (main): Disable a test for BeOS.
49454         * doc/functions/lseek.texi: Document the BeOS bug.
49455
49456 2007-08-19  Bruno Haible  <bruno@clisp.org>
49457             Eric Blake  <ebb9@byu.net>
49458
49459         * lib/lseek.c: Include <sys/stat.h>.
49460         (rpl_lseek): Add workaround code also for Unix platforms.
49461         Needed for BeOS.
49462         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49463         * doc/functions/lseek.texi: Document BeOS definiency.
49464
49465 2007-08-18  Bruno Haible  <bruno@clisp.org>
49466
49467         * modules/fstrcmp-tests: New file.
49468         * tests/test-fstrcmp.c: New file.
49469
49470 2007-08-18  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/fstrcmp: New file, from GNU gettext with modifications.
49473         * lib/fstrcmp.h: New file, from GNU gettext.
49474         * lib/fstrcmp.c: New file, from GNU gettext.
49475         * MODULES.html.sh (String handling): Add fstrcmp.
49476
49477 2007-08-18  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49480         'bool'.
49481         (diag, compareseq): Remove const from the ctxt argument.
49482         (USE_HEURISTIC): Undefine at the end.
49483
49484 2007-08-18  Jim Meyering  <jim@meyering.net>
49485
49486         New file: lib/idcache.h
49487         * NEWS: Mention the addition.
49488         * modules/idcache (Files): Add lib/idcache.h
49489         * lib/idcache.c: Include "idcache.h".
49490         Don't include <sys/types.h>.
49491         Add a FIXME comment.
49492         Move file-scoped "static" declarations to the top.
49493         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49494
49495 2007-08-17  Bruno Haible  <bruno@clisp.org>
49496         and Paul Eggert  <eggert@cs.ucla.edu>
49497
49498         * MODULES.html.sh: Add diffseq.
49499         * modules/diffseq: New file.
49500         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49501         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49502
49503 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49504
49505         Import changes from coreutils for bootstrap script.
49506
49507         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * build-aux/bootstrap (slurp): Work even in environments where
49510         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49511         current code does not slurp files whose names start with ".", and
49512         this looks like it might be a troublesome area.
49513
49514         2007-07-11  Jim Meyering  <jim@meyering.net>
49515
49516         If there's a GPL vN copyright comment, require that N == 3.
49517
49518         2007-07-08  Jim Meyering  <jim@meyering.net>
49519
49520         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49521         * build-aux/bootstrap (mam_template): Move definition out of loop.
49522
49523         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49524
49525         * build-aux/bootstrap (symlink_to_dir): Rename function from
49526         symlink_to_gnulib.  Add a directory parameter.  Update all
49527         callers.
49528         (cp_mark_as_generated): Also check for -- and link to -- files in
49529         gl/.
49530
49531         2007-07-08  Jim Meyering  <jim@meyering.net>
49532
49533         Adapt to deeper hierarchy in gnulib.
49534         * build-aux/bootstrap (symlink_to_dir): If the destination
49535         directory doesn't exist, create it. This is required at least for
49536         "lib/uniwidth/cjk.h".
49537
49538         2007-05-15  Jim Meyering  <jim@meyering.net>
49539
49540         * build-aux/bootstrap: Now that generated Makefile.am files
49541         are no longer under version control, they must be created at
49542         bootstrap time.
49543
49544 2007-08-14  Ben Pfaff  <blp@gnu.org>
49545
49546         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49547
49548 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49549
49550         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49551         given the changes below.
49552         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49553         even on hosts that have padding bits beyond the supported 64.
49554
49555 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49558         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49559         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49560         depends on it.
49561         (xstrtol_error): Remove.
49562         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49563         but with a different signature.
49564         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49565         * lib/xstrtol-error.c: Include exitfail.h.
49566         (xstrtol_fatal): New function, with a different signature from the
49567         old xstrtol_error, so that the caller need not worry about passing
49568         in an exit status, or about storage management of the option argument.
49569         (xstrtol_error): Now a static function.  Redo signature to
49570         implement xstrtol_fatal.  Output the correct number of hyphens in
49571         front of the option so that the caller need not worry about
49572         storage management.
49573         (N_): New macro.
49574         (_): Remove; not used now.
49575         * modules/xstrtol: Depend on getopt.
49576         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49577         of old STRTOL_FATAL_ERROR macro.
49578         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49579         of test program.
49580         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49581         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49582
49583 2007-08-08  Eric Blake  <ebb9@byu.net>
49584
49585         * lib/xstrtol-error.c: Add missing include.
49586
49587         Move xstrtol messages into gnulib domain, when --pobase is used.
49588         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49589         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49590         * modules/xstrtol (Files): Distribute new file.
49591         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49592         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49593         * tests/test-xstrtol.c: ...into new file.
49594         * tests/test-xstrtoul.c: Also test xstrtoul.
49595         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49596         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49597         * tests/test-xstrtol.sh: Drive the tests.
49598         * tests/test-xstrtoimax.sh: Likewise.
49599         * tests/test-xstrtoumax.sh: Likewise.
49600         * modules/xstrtol-tests: New module.
49601         * modules/xstrtoimax-tests: Likewise.
49602         * modules/xstrtoumax-tests: Likewise.
49603
49604 2007-08-08  Jim Meyering  <jim@meyering.net>
49605
49606         New function: mfile_name_concat.
49607         * lib/filenamecat.c (mfile_name_concat): New function, just like
49608         file_name_concat, but return NULL upon failure rather than exiting
49609         with a diagnostic.
49610         * lib/filenamecat.h: Declare it.
49611
49612 2007-08-07  Bruno Haible  <bruno@clisp.org>
49613
49614         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49615         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49616         warning from gcc.
49617         Reported by Eric Blake.
49618
49619 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49620
49621         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49622         * modules/crypto/arcfour (License): Likewise.
49623         * modules/crypto/des-tests (License): Likewise.
49624         * modules/crypto/gc-arctwo-tests (License): Likewise.
49625         * modules/crypto/gc-des-tests (License): Likewise.
49626         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49627         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49628         * modules/crypto/gc-md2-tests (License): Likewise.
49629         * modules/crypto/gc-md4-tests (License): Likewise.
49630         * modules/crypto/gc-md5-tests (License): Likewise.
49631         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49632         * modules/crypto/gc-rijndael-tests (License): Likewise.
49633         * modules/crypto/gc-sha1-tests (License): Likewise.
49634         * modules/crypto/gc-tests (License): Likewise.
49635         * modules/crypto/hmac-md5 (License): Likewise.
49636         * modules/crypto/hmac-sha1 (License): Likewise.
49637         * modules/crypto/md2-tests (License): Likewise.
49638         * modules/crypto/md4-tests (License): Likewise.
49639         * modules/crypto/md5 (License): Likewise.
49640         * modules/crypto/rijndael (License): Likewise.
49641         * modules/crypto/sha1 (License): Likewise.
49642         * modules/memxor (License): Likewise.
49643
49644 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49645         and Bruno Haible  <bruno@clisp.org>
49646
49647         * NEWS: Describe interface changes to human, xstrtol.
49648         * lib/human.h: Include <xstrtol.h>.
49649         (human_options): Return enum strtol_error, not int.  Remove
49650         bool arg; take int * instead.
49651         * lib/human.c: Don't include "gettext.h".
49652         (_): Remove; no longer used.
49653         Don't include <xstrtol.h>, since human.h does it.
49654         (human_options): Adjust to abovementioned interface changes.
49655         Do not report error to stderr; that's now the caller's
49656         responsibility.
49657         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49658         interface change.
49659         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49660         Str, Argument_type_string.  All uses changed.  Put " argument"
49661         in diagnostics to make them clearer.  Change wording of suffix
49662         message for clarity.
49663         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49664         Argument_type_string.
49665         (STRTOL_FATAL_WARN): Remove; no longer used.
49666         * modules/human (Depends-on): Remove gettext-h.
49667
49668 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49669
49670         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49671
49672 2007-07-31  Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49675         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49676         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49677
49678 2007-07-31  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49681         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49682
49683 2007-07-30  Bruno Haible  <bruno@clisp.org>
49684
49685         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49686         * modules/c-ctype (License): Likewise.
49687         * modules/c-strcase (License): Likewise.
49688         * modules/check-version (License): Likewise.
49689         * modules/iconv (License): Likewise.
49690         * modules/iconv_open (License): Likewise.
49691         * modules/read-file (License): Likewise.
49692         * modules/striconv (License): Likewise.
49693         * modules/strverscmp (License): Likewise.
49694         * modules/vasprintf (License): Likewise.
49695         * modules/crypto/des (License): Likewise.
49696         * modules/crypto/gc (License): Likewise.
49697         * modules/crypto/gc-arcfour (License): Likewise.
49698         * modules/crypto/gc-arctwo (License): Likewise.
49699         * modules/crypto/gc-des (License): Likewise.
49700         * modules/crypto/gc-hmac-md5 (License): Likewise.
49701         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49702         * modules/crypto/gc-md2 (License): Likewise.
49703         * modules/crypto/gc-md4 (License): Likewise.
49704         * modules/crypto/gc-md5 (License): Likewise.
49705         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49706         * modules/crypto/gc-random (License): Likewise.
49707         * modules/crypto/gc-rijndael (License): Likewise.
49708         * modules/crypto/gc-sha1 (License): Likewise.
49709         * modules/crypto/md2 (License): Likewise.
49710         * modules/crypto/md4 (License): Likewise.
49711
49712 2007-07-30  Jim Meyering  <jim@meyering.net>
49713
49714         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49715         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49716         it has valid stat data.  This bug would cause du not to count the
49717         sizes of inaccessible directories.
49718         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49719         in <http://bugzilla.redhat.com/250077>.
49720
49721 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49722             Bruno Haible  <bruno@clisp.org>
49723
49724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49725         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49726         #include_next, gives a diagnostic about it, but reports no error in
49727         the exit code.
49728         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49729
49730 2007-07-24  Ben Pfaff  <blp@gnu.org>
49731
49732         Improve name: "count-one-bits" is better than "popcount".
49733         * MODULES.html.sh: Update name.
49734         * lib/popcount.h: Renamed lib/count-one-bits.h.
49735         (popcount): Renamed count_one_bits.
49736         (popcountl): Renamed count_one_bits_l.
49737         (popcountll): Renamed count_one_bits_ll.
49738         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49739         * modules/popcount: Renamed module/count-one-bits.
49740         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49741         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49742
49743 2007-07-23  Ben Pfaff  <blp@gnu.org>
49744
49745         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49746         better code generation, and add U to large constants to avoid
49747         warnings, in non-GCC case.
49748         Suggested by Bruno Haible.
49749
49750 2007-07-23  Ben Pfaff  <blp@gnu.org>
49751
49752         * lib/popcount.h: Use verify_true instead of if...abort.
49753         * modules/popcount: Depend on verify module.
49754         Suggested by Jim Meyering.
49755
49756 2007-07-23  Bruno Haible  <bruno@clisp.org>
49757
49758         * gnulib-tool (func_import): Create a .cvsignore file also when the
49759         directory is not yet in CVS but the toplevel directory is. When
49760         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49761         Reported by Karl Berry.
49762
49763 2007-07-22  Ben Pfaff  <blp@gnu.org>
49764
49765         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49766         case.
49767         Suggested by Eric Blake.
49768
49769 2007-07-22  Ben Pfaff  <blp@gnu.org>
49770
49771         New module: popcount.
49772         * MODULES.html.sh: Add popcount.
49773         * modules/popcount: New file.
49774         * modules/popcount-tests: New file.
49775         * tests/test-popcount.c: New file.
49776         * lib/popcount.h: New file.
49777         * m4/popcount.m4: New file.
49778
49779 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49780
49781         * build-aux/announce-gen: Update to GPLv3.
49782
49783         * build-aux/config.guess: Update from config.
49784
49785 2007-07-21  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49788         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49789
49790 2007-07-20  Jim Meyering  <jim@meyering.net>
49791
49792         * check-module: Diagnose a self-dependency.
49793
49794 2007-07-19  Bruno Haible  <bruno@clisp.org>
49795
49796         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49797         empty.
49798         Reported by Eric Blake.
49799
49800 2007-07-18  Bruno Haible  <bruno@clisp.org>
49801
49802         * gnulib-tool: New options --po-base, --po-domain.
49803         (func_usage): Document them.
49804         (pobase, po_domain): New variables.
49805         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49806         DEFAULT_TEXT_DOMAIN.
49807         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49808         (func_import): Consider pobase and po_domain. Create a po/ directory.
49809         (func_create_testdir): Set pobase and po_domain to empty.
49810         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49811         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49812
49813 2007-07-18  Bruno Haible  <bruno@clisp.org>
49814
49815         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49816         EXTRA_DIST augmentation for files in build-aux/.
49817
49818 2007-07-16  Bruno Haible  <bruno@clisp.org>
49819
49820         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49821         * modules/getdelim (License): Likewise.
49822
49823 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49824
49825         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49826         * modules/d-type (License): Likewise.
49827         * modules/extensions (License): Likewise.
49828         * modules/fnmatch (License): Likewise.
49829         * modules/fseeko (License): Likewise.
49830         * modules/getaddrinfo (License): Likewise.
49831         * modules/getline (License): Likewise.
49832         * modules/getlogin_r (License): Likewise.
49833         * modules/getpass (License): Likewise.
49834         * modules/gettimeofday (License): Likewise.
49835         * modules/glob (License): Likewise.
49836         * modules/inet_ntop (License): Likewise.
49837         * modules/malloc (License): Likewise.
49838         * modules/malloca (License): Likewise.
49839         * modules/memmem (License): Likewise.
49840         * modules/mempcpy (License): Likewise.
49841         * modules/memset (License): Likewise.
49842         * modules/minmax (License): Likewise.
49843         * modules/mktime (License): Likewise.
49844         * modules/netinet_in (License): Likewise.
49845         * modules/pathmax (License): Likewise.
49846         * modules/poll (License): Likewise.
49847         * modules/regex (License): Likewise.
49848         * modules/snprintf (License): Likewise.
49849         * modules/stdbool (License): Likewise.
49850         * modules/stdint (License): Likewise.
49851         * modules/stdio (License): Likewise.
49852         * modules/strcase (License): Likewise.
49853         * modules/strcasestr (License): Likewise.
49854         * modules/strdup (License): Likewise.
49855         * modules/string (License): Likewise.
49856         * modules/strndup (License): Likewise.
49857         * modules/strnlen (License): Likewise.
49858         * modules/strpbrk (License): Likewise.
49859         * modules/strptime (License): Likewise.
49860         * modules/strsep (License): Likewise.
49861         * modules/sys_select (License): Likewise.
49862         * modules/sys_socket (License): Likewise.
49863         * modules/sys_stat (License): Likewise.
49864         * modules/sys_time (License): Likewise.
49865         * modules/time (License): Likewise.
49866         * modules/time_r (License): Likewise.
49867         * modules/timegm (License): Likewise.
49868         * modules/unistd (License): Likewise.
49869         * modules/vsnprintf (License): Likewise.
49870         * modules/wctype (License): Likewise.
49871
49872 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49873
49874         * modules/argz (License): LGPLv2+.
49875
49876 2007-07-15  Karl Berry  <karl@gnu.org>
49877
49878         * doc/gnulib.texi: revise node structure per new fdl.texi.
49879
49880 2007-07-14  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49883         the output file.
49884         * lib/uniname/uninames.h: Regenerated.
49885
49886 2007-07-14  Karl Berry  <karl@gnu.org>
49887
49888         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49889         omitting sectioning and index commands.
49890
49891 2007-07-13  Bruno Haible  <bruno@clisp.org>
49892
49893         New gnulib-tool option --more-symlinks.
49894         * gnulib-tool (func_usage): Document --more-symlinks.
49895         (do_copyrights): New variable.
49896         Recognize option --more-symlinks.
49897         (func_import): Don't add a copyright notice transform to
49898         sed_transform_lib_file if do_copyrights is empty.
49899
49900 2007-07-13  Bruno Haible  <bruno@clisp.org>
49901
49902         * lib/vasnprintf.c (decimal_point_char): Define also if
49903         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49904         && !NEED_PRINTF_DIRECTIVE_A.
49905         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49906         Gary V. Vaughan <gary@gnu.org>.
49907
49908 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49909
49910         * lib/inttypes_.h: Undo previous change, since it was fixed
49911         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49912
49913 2007-07-13  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49916         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49917
49918 2007-07-13  Jim Meyering  <jim@meyering.net>
49919
49920         df: Don't fail for Tru64's "file-on-file mount".
49921         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49922         so we fall through and use statfs instead.  Details here:
49923         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49924         Reported by Albert Chin.
49925
49926 2007-07-13  Bruno Haible  <bruno@clisp.org>
49927
49928         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49929         * modules/configmake (License): Likewise.
49930         * modules/gettext (License): Likewise.
49931         * modules/gettext-h (License): Likewise.
49932         * modules/include_next (License): Likewise.
49933         * modules/link-warning (License): Likewise.
49934         * modules/localcharset (License): Likewise.
49935         * modules/localename (License): Likewise.
49936         * modules/lock (License): Likewise.
49937         * modules/relocatable-lib-lgpl (License): Likewise.
49938         * modules/size_max (License): Likewise.
49939         * modules/vasnprintf (License): Likewise.
49940         * modules/wchar (License): Likewise.
49941         * modules/xsize (License): Likewise.
49942
49943 2007-07-13  Bruno Haible  <bruno@clisp.org>
49944
49945         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49946         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49947
49948 2007-07-12  Bruno Haible  <bruno@clisp.org>
49949
49950         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49951         in the modules files.
49952
49953 2007-07-11  Karl Berry  <karl@gnu.org>
49954
49955         * MODULES.html.sh (func_module): use
49956          sed -e '\|^'"${includefile}"'$|d'
49957          instead of /.../d, to avoid errors on $includefile's containing /.
49958
49959 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49960
49961         * gnulib-tool (func_import): Avoid duplication of --avoid
49962         statements
49963         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49964         names to `_' in variable names.
49965
49966 2007-07-10  Eric Blake  <ebb9@byu.net>
49967
49968         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49969         * NEWS: Document this change.
49970
49971 2007-07-08  Bruno Haible  <bruno@clisp.org>
49972
49973         Update to Unicode 5.0.
49974         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49975         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49976         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49977         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49978         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49979         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49980         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49981         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49982         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49983         U+10A3F, U+1D242..U+1D244.
49984         (nonspacing_table_ind): Update.
49985         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49986         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49987
49988 2007-07-08  Bruno Haible  <bruno@clisp.org>
49989
49990         Update to Unicode 5.0.
49991         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49992         code transform. Extend the name index field of unicode_name_to_code and
49993         unicode_code_to_name from 16 to 24 bits.
49994         * lib/uniname/uniname.c (unicode_character_name,
49995         unicode_name_character): Add the range 0x12xxx to the code transform.
49996         * lib/uniname/uninames.h: Regenerated.
49997         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49998
49999 2007-07-07  Bruno Haible  <bruno@clisp.org>
50000
50001         * modules/wcwidth-tests: New file.
50002         * tests/test-wcwidth.c: New file.
50003
50004         Work around MacOS X wcwidth() bug.
50005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50006         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50007         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50008         original wcwidth in non-UTF-8 locales.
50009         * modules/wcwidth (Depends-on): Add localcharset, streq,
50010         uniwidth/width.
50011         * doc/functions/wcwidth.texi: Update.
50012
50013 2007-07-07  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50016         (wcwidth): New declaration.
50017         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50018         macros.
50019         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50020         here. Prepare for creating <wchar.h> unconditionally.
50021         * modules/wchar (Depends-on): Add link-warning.
50022         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50023         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50024         * lib/wcwidth.h: Remove file.
50025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50026         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50027         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50028         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50029         (Include): Replace wcwidth.h with <wchar.h>.
50030         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50031         * lib/mbchar.h: Don't include wcwidth.h.
50032         * lib/mbswidth.c: Likewise.
50033         * NEWS: Mention the change.
50034
50035 2007-07-07  Bruno Haible  <bruno@clisp.org>
50036
50037         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50038         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50039         definition with an external declaration.
50040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50041         defined as a function. Remove AC_C_INLINE requirement.
50042         * modules/wcwidth (Files): Add lib/wcwidth.c.
50043         (Makefile.am): Remove redundant statement.
50044
50045 2007-07-07  Bruno Haible  <bruno@clisp.org>
50046
50047         * MODULES.html.sh (Unicode string functions): Add the new modules.
50048
50049         * tests/uniwidth/test-u32-strwidth.c: New file.
50050         * modules/uniwidth/u32-strwidth-tests: New file.
50051
50052         * lib/uniwidth/u32-strwidth.c: New file.
50053         * modules/uniwidth/u32-strwidth: New file.
50054
50055         * tests/uniwidth/test-u16-strwidth.c: New file.
50056         * modules/uniwidth/u16-strwidth-tests: New file.
50057
50058         * lib/uniwidth/u16-strwidth.c: New file.
50059         * modules/uniwidth/u16-strwidth: New file.
50060
50061         * tests/uniwidth/test-u8-strwidth.c: New file.
50062         * modules/uniwidth/u8-strwidth-tests: New file.
50063
50064         * lib/uniwidth/u8-strwidth.c: New file.
50065         * modules/uniwidth/u8-strwidth: New file.
50066
50067         * tests/uniwidth/test-u32-width.c: New file.
50068         * modules/uniwidth/u32-width-tests: New file.
50069
50070         * lib/uniwidth/u32-width.c: New file.
50071         * modules/uniwidth/u32-width: New file.
50072
50073         * tests/uniwidth/test-u16-width.c: New file.
50074         * modules/uniwidth/u16-width-tests: New file.
50075
50076         * lib/uniwidth/u16-width.c: New file.
50077         * modules/uniwidth/u16-width: New file.
50078
50079         * tests/uniwidth/test-u8-width.c: New file.
50080         * modules/uniwidth/u8-width-tests: New file.
50081
50082         * lib/uniwidth/u8-width.c: New file.
50083         * modules/uniwidth/u8-width: New file.
50084
50085         * tests/uniwidth/test-uc_width.c: New file.
50086         * modules/uniwidth/width-tests: New file.
50087
50088         * lib/uniwidth/width.c: New file, from GNU libiconv.
50089         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50090         * modules/uniwidth/width: New file.
50091
50092         * lib/uniwidth.h: New file, from GNU libiconv.
50093         * modules/uniwidth/base: New file.
50094
50095 2007-07-07  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/uniname.h: New file, from GNU gettext.
50098         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50099         * lib/uniname/uninames.h: New file, from GNU gettext.
50100         * lib/uniname/uniname.c: New file, from GNU gettext.
50101         * tests/uniname/test-uninames.sh: New file.
50102         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50103         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50104         * modules/uniname/base: New file.
50105         * modules/uniname/uniname: New file.
50106         * modules/uniname/uniname-tests: New file.
50107         * MODULES.html.sh (Unicode string functions): Add the new modules.
50108
50109 2007-07-06  Bruno Haible  <bruno@clisp.org>
50110
50111         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50112
50113 2007-07-06  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50116         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50117         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50118         include <sys/time.h>.
50119         Reported by Eric Blake.
50120
50121 2007-07-06  Eric Blake  <ebb9@byu.net>
50122
50123         Fix testing canonicalize on cygwin.
50124         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50125         Revert patch from 2007-06-19.
50126         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50127         canonicalize module is also in use.
50128         * tests/test-canonicalize.c: New file.
50129         * tests/test-canonicalize.sh: Likewise.
50130         * modules/canonicalize-tests: Likewise.
50131
50132 2007-07-06  Jim Meyering  <jim@meyering.net>
50133
50134         * lib/getugroups.c (getugroups): Detect getgrent failure.
50135         Adjust comment to reflect reality: this function may return -1.
50136
50137 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50138
50139         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50140         the new TP address.
50141         (usage): Fix typo
50142         (gnulib_mk): New variable.
50143
50144 2007-07-05  Jim Meyering  <jim@meyering.net>
50145
50146         Don't let endgrent clobber errno, no matter how improbable.
50147         * lib/getugroups.c (getugroups): Save and restore errno around
50148         endgrent call.
50149
50150         Close the group DB even when failing with 2^31 or more members.
50151         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50152
50153 2007-07-04  Jim Meyering  <jim@meyering.net>
50154
50155         * lib/getugroups.h: New file.
50156         * lib/getugroups.c: Include "getugroups.h".
50157         Remove uses of "register" keyword.
50158         Move local variable, "cp", down into scope where used.
50159         Give "username" parameter the "const" attribute.
50160         * modules/getugroups (Files): Add lib/getugroups.h
50161
50162 2007-07-04  Karl Berry  <karl@gnu.org>
50163
50164         * MODULES.html.sh (func_all_modules): Complete rename of
50165         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50166
50167 2007-07-02  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50170         mode, when inttypes.h comes from gnulib.
50171         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50172
50173 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50174
50175         * NEWS: Mention lgpl module name change.
50176
50177         * modules/lgpl-2.1: Renamed from lgpl.
50178
50179         * NEWS: Mention gpl module name change.
50180
50181         * modules/gpl-3.0: New file, based on gpl-2.0.
50182
50183         * modules/gpl-2.0: Renamed from gpl.
50184
50185         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50186         doc/gpl-2.0.texi.
50187
50188 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50189
50190         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50191         #define __STDC_LIMIT_MACROS temporarily while including
50192         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50193         Problem reported by Joel E. Denny in
50194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50195
50196 2007-07-01  Bruno Haible  <bruno@clisp.org>
50197
50198         * lib/unistdio.h: New file.
50199         * lib/unistdio/u-asnprintf.h: New file.
50200         * lib/unistdio/u-asprintf.h: New file.
50201         * lib/unistdio/u-printf-args.c: New file.
50202         * lib/unistdio/u-printf-args.h: New file.
50203         * lib/unistdio/u-printf-parse.h: New file.
50204         * lib/unistdio/u-snprintf.h: New file.
50205         * lib/unistdio/u-sprintf.h: New file.
50206         * lib/unistdio/u-vasprintf.h: New file.
50207         * lib/unistdio/u-vsnprintf.h: New file.
50208         * lib/unistdio/u-vsprintf.h: New file.
50209         * lib/unistdio/ulc-asnprintf.c: New file.
50210         * lib/unistdio/ulc-asprintf.c: New file.
50211         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50212         * lib/unistdio/ulc-printf-parse.c: New file.
50213         * lib/unistdio/ulc-snprintf.c: New file.
50214         * lib/unistdio/ulc-sprintf.c: New file.
50215         * lib/unistdio/ulc-vasnprintf.c: New file.
50216         * lib/unistdio/ulc-vasprintf.c: New file.
50217         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50218         * lib/unistdio/ulc-vsnprintf.c: New file.
50219         * lib/unistdio/ulc-vsprintf.c: New file.
50220         * lib/unistdio/u8-asnprintf.c: New file.
50221         * lib/unistdio/u8-asprintf.c: New file.
50222         * lib/unistdio/u8-printf-parse.c: New file.
50223         * lib/unistdio/u8-snprintf.c: New file.
50224         * lib/unistdio/u8-sprintf.c: New file.
50225         * lib/unistdio/u8-vasnprintf.c: New file.
50226         * lib/unistdio/u8-vasprintf.c: New file.
50227         * lib/unistdio/u8-vsnprintf.c: New file.
50228         * lib/unistdio/u8-vsprintf.c: New file.
50229         * lib/unistdio/u8-u8-asnprintf.c: New file.
50230         * lib/unistdio/u8-u8-asprintf.c: New file.
50231         * lib/unistdio/u8-u8-snprintf.c: New file.
50232         * lib/unistdio/u8-u8-sprintf.c: New file.
50233         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50234         * lib/unistdio/u8-u8-vasprintf.c: New file.
50235         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50236         * lib/unistdio/u8-u8-vsprintf.c: New file.
50237         * lib/unistdio/u16-asnprintf.c: New file.
50238         * lib/unistdio/u16-asprintf.c: New file.
50239         * lib/unistdio/u16-printf-parse.c: New file.
50240         * lib/unistdio/u16-snprintf.c: New file.
50241         * lib/unistdio/u16-sprintf.c: New file.
50242         * lib/unistdio/u16-vasnprintf.c: New file.
50243         * lib/unistdio/u16-vasprintf.c: New file.
50244         * lib/unistdio/u16-vsnprintf.c: New file.
50245         * lib/unistdio/u16-vsprintf.c: New file.
50246         * lib/unistdio/u16-u16-asnprintf.c: New file.
50247         * lib/unistdio/u16-u16-asprintf.c: New file.
50248         * lib/unistdio/u16-u16-snprintf.c: New file.
50249         * lib/unistdio/u16-u16-sprintf.c: New file.
50250         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50251         * lib/unistdio/u16-u16-vasprintf.c: New file.
50252         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50253         * lib/unistdio/u16-u16-vsprintf.c: New file.
50254         * lib/unistdio/u32-asnprintf.c: New file.
50255         * lib/unistdio/u32-asprintf.c: New file.
50256         * lib/unistdio/u32-printf-parse.c: New file.
50257         * lib/unistdio/u32-snprintf.c: New file.
50258         * lib/unistdio/u32-sprintf.c: New file.
50259         * lib/unistdio/u32-vasnprintf.c: New file.
50260         * lib/unistdio/u32-vasprintf.c: New file.
50261         * lib/unistdio/u32-vsnprintf.c: New file.
50262         * lib/unistdio/u32-vsprintf.c: New file.
50263         * lib/unistdio/u32-u32-asnprintf.c: New file.
50264         * lib/unistdio/u32-u32-asprintf.c: New file.
50265         * lib/unistdio/u32-u32-snprintf.c: New file.
50266         * lib/unistdio/u32-u32-sprintf.c: New file.
50267         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50268         * lib/unistdio/u32-u32-vasprintf.c: New file.
50269         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50270         * lib/unistdio/u32-u32-vsprintf.c: New file.
50271         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50272         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50273         * tests/unistdio/test-ulc-printf1.h: New file.
50274         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50275         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50276         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50277         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50278         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50279         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50280         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50281         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50282         * tests/unistdio/test-u8-asnprintf1.c: New file.
50283         * tests/unistdio/test-u8-asnprintf1.h: New file.
50284         * tests/unistdio/test-u8-printf1.h: New file.
50285         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50286         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50287         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50288         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50289         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50290         * tests/unistdio/test-u8-vasprintf1.c: New file.
50291         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50292         * tests/unistdio/test-u8-vsprintf1.c: New file.
50293         * tests/unistdio/test-u16-asnprintf1.c: New file.
50294         * tests/unistdio/test-u16-asnprintf1.h: New file.
50295         * tests/unistdio/test-u16-printf1.h: New file.
50296         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50297         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50298         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50299         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50300         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50301         * tests/unistdio/test-u16-vasprintf1.c: New file.
50302         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50303         * tests/unistdio/test-u16-vsprintf1.c: New file.
50304         * tests/unistdio/test-u32-asnprintf1.c: New file.
50305         * tests/unistdio/test-u32-asnprintf1.h: New file.
50306         * tests/unistdio/test-u32-printf1.h: New file.
50307         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50308         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50309         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50310         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50311         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50312         * tests/unistdio/test-u32-vasprintf1.c: New file.
50313         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50314         * tests/unistdio/test-u32-vsprintf1.c: New file.
50315         * modules/unistdio/base: New file.
50316         * modules/unistdio/u-printf-args: New file.
50317         * modules/unistdio/ulc-asnprintf: New file.
50318         * modules/unistdio/ulc-asprintf: New file.
50319         * modules/unistdio/ulc-fprintf: New file.
50320         * modules/unistdio/ulc-printf-parse: New file.
50321         * modules/unistdio/ulc-snprintf: New file.
50322         * modules/unistdio/ulc-sprintf: New file.
50323         * modules/unistdio/ulc-vasnprintf: New file.
50324         * modules/unistdio/ulc-vasprintf: New file.
50325         * modules/unistdio/ulc-vfprintf: New file.
50326         * modules/unistdio/ulc-vsnprintf: New file.
50327         * modules/unistdio/ulc-vsprintf: New file.
50328         * modules/unistdio/u8-asnprintf: New file.
50329         * modules/unistdio/u8-asprintf: New file.
50330         * modules/unistdio/u8-printf-parse: New file.
50331         * modules/unistdio/u8-snprintf: New file.
50332         * modules/unistdio/u8-sprintf: New file.
50333         * modules/unistdio/u8-vasnprintf: New file.
50334         * modules/unistdio/u8-vasprintf: New file.
50335         * modules/unistdio/u8-vsnprintf: New file.
50336         * modules/unistdio/u8-vsprintf: New file.
50337         * modules/unistdio/u8-u8-asnprintf: New file.
50338         * modules/unistdio/u8-u8-asprintf: New file.
50339         * modules/unistdio/u8-u8-snprintf: New file.
50340         * modules/unistdio/u8-u8-sprintf: New file.
50341         * modules/unistdio/u8-u8-vasnprintf: New file.
50342         * modules/unistdio/u8-u8-vasprintf: New file.
50343         * modules/unistdio/u8-u8-vsnprintf: New file.
50344         * modules/unistdio/u8-u8-vsprintf: New file.
50345         * modules/unistdio/u16-asnprintf: New file.
50346         * modules/unistdio/u16-asprintf: New file.
50347         * modules/unistdio/u16-printf-parse: New file.
50348         * modules/unistdio/u16-snprintf: New file.
50349         * modules/unistdio/u16-sprintf: New file.
50350         * modules/unistdio/u16-vasnprintf: New file.
50351         * modules/unistdio/u16-vasprintf: New file.
50352         * modules/unistdio/u16-vsnprintf: New file.
50353         * modules/unistdio/u16-vsprintf: New file.
50354         * modules/unistdio/u16-u16-asnprintf: New file.
50355         * modules/unistdio/u16-u16-asprintf: New file.
50356         * modules/unistdio/u16-u16-snprintf: New file.
50357         * modules/unistdio/u16-u16-sprintf: New file.
50358         * modules/unistdio/u16-u16-vasnprintf: New file.
50359         * modules/unistdio/u16-u16-vasprintf: New file.
50360         * modules/unistdio/u16-u16-vsnprintf: New file.
50361         * modules/unistdio/u16-u16-vsprintf: New file.
50362         * modules/unistdio/u32-asnprintf: New file.
50363         * modules/unistdio/u32-asprintf: New file.
50364         * modules/unistdio/u32-printf-parse: New file.
50365         * modules/unistdio/u32-snprintf: New file.
50366         * modules/unistdio/u32-sprintf: New file.
50367         * modules/unistdio/u32-vasnprintf: New file.
50368         * modules/unistdio/u32-vasprintf: New file.
50369         * modules/unistdio/u32-vsnprintf: New file.
50370         * modules/unistdio/u32-vsprintf: New file.
50371         * modules/unistdio/u32-u32-asnprintf: New file.
50372         * modules/unistdio/u32-u32-asprintf: New file.
50373         * modules/unistdio/u32-u32-snprintf: New file.
50374         * modules/unistdio/u32-u32-sprintf: New file.
50375         * modules/unistdio/u32-u32-vasnprintf: New file.
50376         * modules/unistdio/u32-u32-vasprintf: New file.
50377         * modules/unistdio/u32-u32-vsnprintf: New file.
50378         * modules/unistdio/u32-u32-vsprintf: New file.
50379         * modules/unistdio/ulc-asnprintf-tests: New file.
50380         * modules/unistdio/ulc-vasnprintf-tests: New file.
50381         * modules/unistdio/ulc-vasprintf-tests: New file.
50382         * modules/unistdio/ulc-vsnprintf-tests: New file.
50383         * modules/unistdio/ulc-vsprintf-tests: New file.
50384         * modules/unistdio/u8-asnprintf-tests: New file.
50385         * modules/unistdio/u8-vasnprintf-tests: New file.
50386         * modules/unistdio/u8-vasprintf-tests: New file.
50387         * modules/unistdio/u8-vsnprintf-tests: New file.
50388         * modules/unistdio/u8-vsprintf-tests: New file.
50389         * modules/unistdio/u16-asnprintf-tests: New file.
50390         * modules/unistdio/u16-vasnprintf-tests: New file.
50391         * modules/unistdio/u16-vasprintf-tests: New file.
50392         * modules/unistdio/u16-vsnprintf-tests: New file.
50393         * modules/unistdio/u16-vsprintf-tests: New file.
50394         * modules/unistdio/u32-asnprintf-tests: New file.
50395         * modules/unistdio/u32-vasnprintf-tests: New file.
50396         * modules/unistdio/u32-vasprintf-tests: New file.
50397         * modules/unistdio/u32-vsnprintf-tests: New file.
50398         * modules/unistdio/u32-vsprintf-tests: New file.
50399         * MODULES.html.sh (Unicode string functions): Add the new modules.
50400
50401 2007-07-01  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/sprintf.c (sprintf): Limit the available length estimation,
50404         to avoid address wraparound.
50405         * lib/vsprintf.c (vsprintf): Likewise.
50406         * modules/sprintf-posix (Dependencies): Add stdint.
50407         * modules/vsprintf-posix (Dependencies): Likewise.
50408
50409 2007-07-01  Bruno Haible  <bruno@clisp.org>
50410
50411         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50412         Windows PATH as well. Conservative double-quoting. Comments.
50413
50414 2007-07-01  Bruno Haible  <bruno@clisp.org>
50415             Eric Blake  <ebb9@byu.net>
50416             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50417
50418         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50419         empty components in $PATH, denoting '.'.
50420
50421 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50422
50423         * gnulib-tool: Fix indentation.
50424         (func_create_megatestdir): Likewise.
50425         Report by Bruno Haible.
50426
50427 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50428
50429         Sync from Automake.
50430         * build-aux/gnupload: Fix shell portability issues with for loops.
50431         Report by Karl Berry.
50432
50433 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50434
50435         * build-aux/maint.mk (POURL): Use translationproject.org.
50436
50437 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50438             Bruno Haible  <bruno@clisp.org>
50439
50440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50441         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50442         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50443         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50444         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50445
50446 2007-06-27  Bruno Haible  <bruno@clisp.org>
50447
50448         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50449         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50450
50451 2007-06-26  Karl Berry  <karl@gnu.org>
50452
50453         * MODULES.html.sh: remove xreadlink-with-size.
50454
50455 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50458         method that I hope also handles the double-include problem noted
50459         by Bruno Haible in
50460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50461
50462 2007-06-23  Bruno Haible  <bruno@clisp.org>
50463
50464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50465         Don't let the 'mostlyclean' target fail if the last subdirectory could
50466         not be removed.
50467         Reported by Karl Berry.
50468
50469 2007-06-23  Bruno Haible  <bruno@clisp.org>
50470
50471         * gnulib-tool (echo): Add a speedier workaround for ksh.
50472         * tests/test-echo.sh: Likewise.
50473
50474 2007-06-23  Bruno Haible  <bruno@clisp.org>
50475
50476         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50477         * tests/test-echo.sh: Likewise.
50478
50479 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50480
50481         * gnulib-tool (IFS): Initialize early, so we don't set it to
50482         empty later.
50483         (self_abspathname): Rewrite algorithm to set it, reindent.
50484         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50485         (func_create_megatestdir): Merge some sed scripts.
50486
50487 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50488
50489         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50490         exposed by Sun Studio 11 cc on Solaris 8.
50491
50492 2007-06-22  Bruno Haible  <bruno@clisp.org>
50493
50494         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50495         backslashes.
50496         * tests/test-echo.sh: New file.
50497
50498 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50499
50500         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50501         simplify `sed_replace_build_aux' scripts, they are portable but
50502         echoing them with `echo' is not.
50503         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50504
50505 2007-06-21  Karl Berry  <karl@gnu.org>
50506
50507         * config/srclist.txt: guess we can't handle the licenses via
50508         srclist at the moment.
50509
50510 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50511
50512         * MODULES.html.sh: Add include_next.
50513         * modules/include_next: New file.
50514
50515 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50516
50517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50518         INCLUDE_NEXT.
50519         (gl_CHECK_NEXT_HEADERS): New macro.
50520         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50521         the obsolescent gl_ABSOLUTE_HEADER.
50522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50523         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50524         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50525         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50526         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50527         * m4/math_h.m4 (gl_MATH_H): Likewise.
50528         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50530         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50531         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50532         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50533         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50534         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50535         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50538         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50539         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50540         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50541         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50542         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50543         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50544         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50545         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50546         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50547         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50548         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50549         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50550         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50551         * lib/float_.h: Likewise.
50552         * lib/inttypes_.h: Likewise.
50553         * lib/math_.h: Likewise.
50554         * lib/search_.h: Likewise.
50555         * lib/signal_.h: Likewise.
50556         * lib/stdint_.h: Likewise.
50557         * lib/stdio_.h: Likewise.
50558         * lib/stdlib_.h: Likewise.
50559         * lib/string_.h: Likewise.
50560         * lib/sys_stat_.h: Likewise.
50561         * lib/sys_time_.h: Likewise.
50562         * lib/time_.h: Likewise.
50563         * lib/unistd_.h: Likewise.
50564         * lib/wchar_.h: Likewise.
50565         * lib/wctype_.h: Likewise.
50566         * lib/dirent_.h: Likewise.
50567         * lib/iconv_.h: Likewise.
50568         * lib/locale_.h: Likewise.
50569         * lib/netinet_in_.h: Likewise.
50570         * lib/sys_select_.h: Likewise.
50571         * lib/sys_socket_.h: Likewise.
50572         * lib/sysexits_.h: Likewise.
50573         * modules/fcntl (Depends-on): Depend on include_next, not
50574         absolute_header.
50575         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50576         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50577         * modules/fchdir: Likewise.
50578         * modules/float: Likewise.
50579         * modules/iconv_open: Likewise.
50580         * modules/inttypes: Likewise.
50581         * modules/locale: Likewise.
50582         * modules/math: Likewise.
50583         * modules/netinet_in: Likewise.
50584         * modules/search: Likewise.
50585         * modules/signal: Likewise.
50586         * modules/stdint: Likewise.
50587         * modules/stdio: Likewise.
50588         * modules/stdlib: Likewise.
50589         * modules/string: Likewise.
50590         * modules/sys_select: Likewise.
50591         * modules/sys_socket: Likewise.
50592         * modules/sys_stat: Likewise.
50593         * modules/sys_time: Likewise.
50594         * modules/sysexits: Likewise.
50595         * modules/time: Likewise.
50596         * modules/unistd: Likewise.
50597         * modules/wchar: Likewise.
50598         * modules/wctype: Likewise.
50599         * modules/sys_stat: Change maintainer to "all".
50600         * modules/unistd: Likewise.
50601
50602 2007-06-20  Karl Berry  <karl@gnu.org>
50603
50604         * config/srclist.txt: track www changes in license files.
50605
50606 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50607
50608         * build-aux/bootstrap: Remove stray dot.
50609         Make sure build_aux settings are honored when linking
50610         gnulib_extra_files.
50611
50612 2007-06-19  Eric Blake  <ebb9@byu.net>
50613
50614         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50615         Allow compilation on cygwin.
50616
50617 2007-06-19  Jim Meyering  <jim@meyering.net>
50618
50619         xreadlink-with-size: Remove module.  No longer used.
50620         Ex-callers now use xreadlink or mreadlink-with-size.
50621         * modules/xreadlink-with-size: Remove module.
50622         * lib/xreadlink-with-size.c: Remove file.
50623         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50624         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50625         just before the function definition *is* accurate.
50626
50627         Eliminate one way canonicalize_filename_mode could exit.
50628         * lib/canonicalize.c (canonicalize_filename_mode):
50629         Use mreadlink_with_size, not xreadlink_with_size.
50630
50631 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50632
50633         Detect porting problems to FreeBSD/arm, which has time_t wider than
50634         long int.  Original problem reported for GNU diff by Xin Li in
50635         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50636         * modules/getdate (Depends-on): Add intprops, verify.
50637         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50638         is an integer type no wider than long int.
50639
50640 2007-06-18  Jim Meyering  <jim@meyering.net>
50641
50642         New module: mreadlink-with-size.
50643         * MODULES.html.sh: Add mreadlink-with-size.
50644         * modules/mreadlink-with-size: New module
50645         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50646         not xreadlink-with-size.
50647         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50648
50649 2007-06-16  Bruno Haible  <bruno@clisp.org>
50650
50651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50652         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50653         Reported by Gary V. Vaughan <gary@gnu.org>.
50654
50655 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         Revamp lchown so that it lives in unistd.h where it belongs.
50658         * lib/lchown.h: Remove.
50659         * lib/dirchownmod.c: Don't include lib/lchown.h.
50660         * lib/fchownat.c: Likewise.
50661         * lib/openat.c: Likewise.
50662         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50663         does not follow symlinks.
50664         (EOPNOTSUPP): Define if not defined.
50665         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50666         is defined to 0.
50667         (lchown): New decl.
50668         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50669         Do not check for lchown decl.
50670         Set REPLACE_LCHOWN.
50671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50672         REPLACE_LCHOWN.
50673         * modules/chown: Make it clear it follows symlinks.
50674         * modules/lchown: Make it clear it doesn't follow symlinks.
50675         (Files): Remove lib/lchown.h
50676         (Depends-on): Add unistd.
50677         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50678         (Include): Include <unistd.h>, not "lchown.h".
50679         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50680         REPLACE_LCHOWN.
50681
50682 2007-06-15  Jim Meyering  <jim@meyering.net>
50683
50684         Change license (GPL to LGPL) of fsusage and dependents.
50685         * modules/fsusage (License): Change to LGPL.
50686         * modules/full-read (License): Likewise.
50687         * modules/full-write (License): Likewise.
50688         * modules/safe-read (License): Likewise.
50689         * modules/safe-write (License): Likewise.
50690
50691 2007-06-14  Ben Pfaff  <blp@gnu.org>
50692
50693         Missing part of allocsa -> malloca transition.
50694         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50695         gl_MALLOCA.
50696
50697 2007-06-12  Bruno Haible  <bruno@clisp.org>
50698
50699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50700         to ia64, x86_64, i386.
50701         Reported by Eric Blake.
50702
50703 2007-06-12  Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50706         cross-compiling to x86_64.
50707
50708 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50711         glitch reported by Ralf Wildenhues in
50712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50713
50714         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50715         Vin Shelton.
50716
50717 2007-06-11  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50720         replacement string.
50721         Reported by Eric Blake.
50722
50723 2007-06-10  Bruno Haible  <bruno@clisp.org>
50724
50725         Prepare vasnprintf code for use with Unicode strings.
50726         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50727         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50728         TYPE_U32_STRING.
50729         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50730         a_u32_string variants.
50731         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50732         * lib/printf-args.c: Don't include config.h and the specification
50733         header if PRINTF_FETCHARGS is already defined.
50734         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50735         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50736         TYPE_U16_STRING, TYPE_U32_STRING.
50737         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50738         u16_directive, u16_directives, u32_directive, u32_directives): New
50739         types.
50740         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50741         New declarations.
50742         * lib/printf-parse.c: Don't include config.h and the specification
50743         header if PRINTF_PARSE is already defined. Eliminate the set of
50744         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50745         them now. Include c-ctype.h.
50746         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50747         directive and CHAR_T_ONLY_ASCII.
50748         * lib/vasnprintf.c: Don't include config.h and the specification header
50749         if VASNPRINTF is already defined.
50750         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50751         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50752         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50753         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50754         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50755         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50756         code accordingly.
50757         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50758         pad_ourselves also in this case, with the 'c' and 's' directives, and
50759         with a different notion of "width".
50760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50761
50762 2007-06-10  Bruno Haible  <bruno@clisp.org>
50763
50764         * modules/unistr/u32-mbsnlen: New file.
50765         * lib/unistr/u32-mbsnlen.c: New file.
50766
50767         * modules/unistr/u16-mbsnlen: New file.
50768         * lib/unistr/u16-mbsnlen.c: New file.
50769
50770         * modules/unistr/u8-mbsnlen: New file.
50771         * lib/unistr/u8-mbsnlen.c: New file.
50772
50773         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50774         declarations.
50775
50776 2007-06-10  Bruno Haible  <bruno@clisp.org>
50777
50778         * lib/string_.h (mbsnlen): New declaration.
50779         * lib/mbsnlen.c: New file.
50780         * m4/mbsnlen.m4: New file.
50781         * modules/mbsnlen: New file.
50782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50783         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50784         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50785
50786 2007-06-10  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50789
50790 2007-06-10  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50793         * lib/mbuiter.h: Likewise.
50794
50795 2007-06-10  Bruno Haible  <bruno@clisp.org>
50796
50797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50798         declaration.
50799
50800 2007-06-10  Karl Berry  <karl@gnu.org>
50801
50802         * config/srclist.txt: remove gettext entries, Bruno prefers
50803         to update individually.
50804
50805 2007-06-10  Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50808         'maxlen'. Ensure only length + width bytes are allocated, not
50809         length + 1 + width.
50810
50811 2007-06-09  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50814         (CHAR_T): Remove macro.
50815         (VASNPRINTF): Update.
50816
50817 2007-06-09  Bruno Haible  <bruno@clisp.org>
50818
50819         * MODULES.html.sh (Unicode string functions): Add the new modules.
50820
50821         * modules/uniconv/u32-conv-to-enc: New file.
50822         * lib/uniconv/u32-conv-to-enc.c: New file.
50823         * modules/uniconv/u32-conv-to-enc-tests: New file.
50824         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50825
50826         * modules/uniconv/u16-conv-to-enc: New file.
50827         * lib/uniconv/u16-conv-to-enc.c: New file.
50828         * lib/uniconv/u-conv-to-enc.h: New file.
50829         * modules/uniconv/u16-conv-to-enc-tests: New file.
50830         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50831
50832         * modules/uniconv/u8-conv-to-enc: New file.
50833         * lib/uniconv/u8-conv-to-enc.c: New file.
50834         * modules/uniconv/u8-conv-to-enc-tests: New file.
50835         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50836
50837         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50838         u32_conv_to_encoding): New declarations.
50839
50840 2007-06-09  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50843
50844 2007-06-09  Bruno Haible  <bruno@clisp.org>
50845
50846         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50847         * modules/malloca: Renamed from modules/allocsa, updated.
50848         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50849         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50850         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50851         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50852         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50853         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50854         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50855         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50856         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50857         * modules/c-strcasestr (Depends-on): Update.
50858         * lib/c-strcasestr.c: Update.
50859         * modules/c-strstr (Depends-on): Update.
50860         * lib/c-strstr.c: Update.
50861         * modules/canonicalize-lgpl (Depends-on): Update.
50862         * lib/canonicalize-lgpl.c: Update.
50863         * modules/clean-temp (Depends-on): Update.
50864         * lib/clean-temp.c: Update.
50865         * modules/csharpcomp (Depends-on): Update.
50866         * lib/csharpcomp.c: Update.
50867         * modules/csharpexec (Depends-on): Update.
50868         * lib/csharpexec.c: Update.
50869         * modules/javacomp (Depends-on): Update.
50870         * lib/javacomp.c: Update.
50871         * modules/javaexec (Depends-on): Update.
50872         * lib/javaexec.c: Update.
50873         * modules/mbscasestr (Depends-on): Update.
50874         * lib/mbscasestr.c: Update.
50875         * modules/mbsstr (Depends-on): Update.
50876         * lib/mbsstr.c: Update.
50877         * modules/setenv (Depends-on): Update.
50878         * lib/setenv.c: Update.
50879         * modules/strcasestr (Depends-on): Update.
50880         * lib/strcasestr.c: Update.
50881         * modules/striconveha (Depends-on): Update.
50882         * lib/striconveha.c: Update.
50883         * modules/relocatable-prog-wrapper (Files): Update.
50884         * lib/relocwrapper.c: Update.
50885         * build-aux/install-reloc: Update.
50886         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50887
50888 2007-06-08  Bruno Haible  <bruno@clisp.org>
50889
50890         Port to uClibc.
50891         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50892         * lib/fpurge.c (fpurge): Likewise.
50893         * lib/freading.c (freading): Likewise.
50894         * lib/fseeko.c (rpl_fseeko): Likewise.
50895         * lib/fseterr.c (fseterr): Likewise.
50896         * lib/fwriting.c (fwriting): Likewise.
50897         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50898
50899 2007-06-08  Bruno Haible  <bruno@clisp.org>
50900
50901         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50902         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50903         * modules/gettext (Files): Add m4/intlmacosx.m4.
50904
50905 2007-06-07  Bruno Haible  <bruno@clisp.org>
50906
50907         * modules/localename-tests: New file.
50908         * tests/test-localename.c: New file.
50909
50910         New module 'localename'.
50911         * lib/localename.h: New file.
50912         * lib/localename.c: New file, from GNU gettext.
50913         * m4/localename.m4: New file.
50914         * modules/localename: New file.
50915
50916 2007-06-07  Bruno Haible  <bruno@clisp.org>
50917
50918         Work around the lack of <wchar.h> on some builds of uClibc.
50919         * doc/headers/wchar.texi: Update.
50920         * lib/wchar_.h: Include <wchar.h> only if it exists.
50921         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50922         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50923         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50924         doesn't exist.
50925         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50926         * modules/mbfile (Depends-on): Add wchar.
50927         * modules/mbiter (Depends-on): Likewise.
50928         * modules/mbuiter (Depends-on): Likewise.
50929         Reported by Simon Josefsson.
50930
50931 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50932
50933         Work around problem reported by Steven M. Schweda in
50934         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50935         Tru64 5.1B with the Compaq compiler environment installed declares
50936         an 'isblank' function but does not define it in the C library.
50937         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50938         * lib/regex_internal.h (isblank): Likewise.
50939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50940         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50941
50942 2007-06-05  Bruno Haible  <bruno@clisp.org>
50943
50944         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50945         ia64.
50946         * modules/printf-safe: New file.
50947         * modules/fprintf-posix (Depends-on): Add printf-safe.
50948         * modules/printf-posix (Depends-on): Likewise.
50949         * modules/snprintf-posix (Depends-on): Likewise.
50950         * modules/sprintf-posix (Depends-on): Likewise.
50951         * modules/vasnprintf-posix (Depends-on): Likewise.
50952         * modules/vasprintf-posix (Depends-on): Likewise.
50953         * modules/vfprintf-posix (Depends-on): Likewise.
50954         * modules/vprintf-posix (Depends-on): Likewise.
50955         * modules/vsnprintf-posix (Depends-on): Likewise.
50956         * modules/vsprintf-posix (Depends-on): Likewise.
50957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50958         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50959         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50960         "no" on i386, x86_64, ia64.
50961         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50962         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50963         on i386, x86_64, ia64.
50964         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50965         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50966         on i386, x86_64, ia64.
50967         * tests/test-vasnprintf-posix.c: Include float.h.
50968         (LDBL80_WORDS): New macro.
50969         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50970         on i386, x86_64, ia64.
50971         * tests/test-vasprintf-posix.c: Include float.h.
50972         (LDBL80_WORDS): New macro.
50973         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50974         on i386, x86_64, ia64.
50975         * tests/test-snprintf-posix.c: Include float.h.
50976         * tests/test-sprintf-posix.c: Likewise.
50977         * tests/test-vsnprintf-posix.c: Likewise.
50978         * tests/test-vsprintf-posix.c: Likewise.
50979
50980 2007-06-05  Bruno Haible  <bruno@clisp.org>
50981
50982         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50983         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50984         non-IEEE numbers on i386, x86_64, ia64.
50985         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50986         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50987         * tests/test-isnanl.h: Include float.h.
50988         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50989
50990 2007-06-05  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50993         also the %a / %A. Handle the %a / %A code before this extra handling.
50994
50995 2007-06-05  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50998         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50999
51000 2007-06-05  Bruno Haible  <bruno@clisp.org>
51001
51002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51003         typo in variable name.
51004
51005 2007-06-05  Eric Blake  <ebb9@byu.net>
51006
51007         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51008         Reported by Simon Josefsson.
51009
51010 2007-06-04  Bruno Haible  <bruno@clisp.org>
51011
51012         Avoid test failures on some PowerPC platforms.
51013         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51014         Define differently for PowerPC.
51015         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51016         Reported by Gary V. Vaughan <gary@gnu.org>.
51017
51018 2007-06-02  Bruno Haible  <bruno@clisp.org>
51019
51020         Fix test-stdint failure on FreeBSD/ia64.
51021         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51022         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51023         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51024         * doc/headers/stdint.texi: Update.
51025
51026 2007-06-01  Bruno Haible  <bruno@clisp.org>
51027
51028         * tests/test-binary-io.c (main): Pass a third argument to open().
51029         Reported by Gary V. Vaughan <gary@gnu.org>.
51030
51031 2007-06-01  Bruno Haible  <bruno@clisp.org>
51032
51033         * doc/functions/frexpl.texi: Update for mingw.
51034
51035 2007-06-01  Bruno Haible  <bruno@clisp.org>
51036
51037         * tests/test-lseek.c (main): Disable test of errno for invalid third
51038         argument.
51039         * doc/functions/lseek.texi: Update.
51040         Reported by Gary V. Vaughan <gary@gnu.org>.
51041
51042 2007-05-28  Bruno Haible  <bruno@clisp.org>
51043
51044         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51045
51046 2007-05-31  Eric Blake  <ebb9@byu.net>
51047
51048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51049         cross compiling.
51050
51051 2007-05-30  Eric Blake  <ebb9@byu.net>
51052         and Bruno Haible  <bruno@clisp.org>
51053
51054         Work around mingw test failures exposed by m4-1.4.9b.
51055         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51056         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51057         moment.
51058
51059 2007-05-30  Bruno Haible  <bruno@clisp.org>
51060
51061         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51062         assuming that they are closed. Needed on HP-UX 11.
51063
51064 2007-05-29  Bruno Haible  <bruno@clisp.org>
51065
51066         Fix a problem with #include_next.
51067         * lib/dirent_.h: Split the double-inclusion guard.
51068         * lib/fcntl_.h: Likewise.
51069         * lib/float_.h: Likewise.
51070         * lib/iconv_.h: Likewise.
51071         * lib/inttypes_.h: Likewise.
51072         * lib/locale_.h: Likewise.
51073         * lib/math_.h: Likewise.
51074         * lib/netinet_in_.h: Likewise.
51075         * lib/search_.h: Likewise.
51076         * lib/signal_.h: Likewise.
51077         * lib/stdint_.h: Likewise.
51078         * lib/stdio_.h: Likewise.
51079         * lib/stdlib_.h: Likewise.
51080         * lib/string_.h: Likewise.
51081         * lib/sys_select_.h: Likewise.
51082         * lib/sys_socket_.h: Likewise.
51083         * lib/sys_stat_.h: Likewise.
51084         * lib/sys_time_.h: Likewise.
51085         * lib/sysexits_.h: Likewise.
51086         * lib/time_.h: Likewise.
51087         * lib/unistd_.h: Likewise.
51088         * lib/wchar_.h: Likewise.
51089         * lib/wctype_.h: Likewise.
51090
51091 2007-05-29  Bruno Haible  <bruno@clisp.org>
51092
51093         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51094         for the moment.
51095
51096 2007-05-29  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51099         invocation.
51100         Reported by Eric Blake.
51101
51102 2007-05-29  Bruno Haible  <bruno@clisp.org>
51103
51104         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51105         compiling case.
51106
51107 2007-05-29  Eric Blake  <ebb9@byu.net>
51108             Bruno Haible  <bruno@clisp.org>
51109
51110         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51111         cross compiles.
51112
51113 2007-05-28  Eric Blake  <ebb9@byu.net>
51114
51115         * modules/closein-tests (test_closein_LDADD): Support test on
51116         cygwin with libtool.
51117
51118 2007-05-28  Bruno Haible  <bruno@clisp.org>
51119
51120         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51121         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51122         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51123         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51124         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51125         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51126         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51127         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51128         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51129
51130 2007-05-28  Eric Blake  <ebb9@byu.net>
51131
51132         Unconditionally include <config.h> in unit tests.
51133         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51134         * tests/test-allocsa.c, tests/test-arcfour.c,
51135         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51136         tests/test-array_list.c, tests/test-array_oset.c,
51137         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51138         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51139         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51140         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51141         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51142         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51143         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51144         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51145         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51146         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51147         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51148         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51149         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51150         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51151         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51152         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51153         test-md5.c, test-memmem.c, test-printf-posix.c,
51154         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51155         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51156         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51157         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51158         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51159         test-vasnprintf-posix2.c, test-vasnprintf.c,
51160         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51161         test-vfprintf-posix.c, test-vprintf-posix.c,
51162         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51163         test-xvasprintf.c: Likewise.
51164
51165 2007-05-28  Bruno Haible  <bruno@clisp.org>
51166
51167         * gnulib-tool (func_import): Remember the --with-tests command-line
51168         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51169         Reported by Eric Blake.
51170
51171 2007-05-28  Bruno Haible  <bruno@clisp.org>
51172
51173         * modules/ftell-tests: New file.
51174         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51175         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51176
51177         * lib/ftell.c: New file.
51178         * modules/ftell: New file.
51179         * m4/ftell.m4: New file.
51180         * doc/functions/ftell.texi: Update.
51181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51182         REPLACE_FTELL.
51183         * lib/stdio_.h (rpl_ftell): New declaration.
51184         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51185         REPLACE_FTELL.
51186
51187 2007-05-28  Eric Blake  <ebb9@byu.net>
51188
51189         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51190
51191 2007-05-28  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/fseek-tests: New file.
51194         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51195         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51196
51197         * lib/fseek.c: New file.
51198         * modules/fseek: New file.
51199         * m4/fseek.m4: New file.
51200         * doc/functions/fseek.texi: Update.
51201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51202         REPLACE_FSEEK.
51203         * lib/stdio_.h (rpl_fseek): New declaration.
51204         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51205         REPLACE_FSEEK.
51206
51207 2007-05-28  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/stdio_.h (fflush): More comments.
51210
51211 2007-05-28  Bruno Haible  <bruno@clisp.org>
51212
51213         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51214         runtime test.
51215
51216 2007-05-28  Eric Blake  <ebb9@byu.net>
51217
51218         Improve lseek module.
51219         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51220         * lib/unistd_.h (lseek): Scale back link warning message.
51221         * tests/test-lseek.c: Beef up test.
51222         * tests/test-lseek.sh: Exercise more facets of lseek.
51223         Reported by Bruno Haible.
51224
51225 2007-05-28  Bruno Haible  <bruno@clisp.org>
51226
51227         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51228         to define.
51229
51230 2007-05-27  Bruno Haible  <bruno@clisp.org>
51231
51232         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51233
51234 2007-05-27  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/openmp: New file.
51237         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51238         Noah Misch.
51239
51240 2007-05-26  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/chdir-long (Depends-on): Add fchdir.
51243         * modules/chdir-safer (Depends-on): Likewise.
51244         * modules/fts (Depends-on): Likewise.
51245         * modules/fts-lgpl (Depends-on): Likewise.
51246         * modules/openat (Depends-on): Likewise.
51247         * modules/savewd (Depends-on): Likewise.
51248
51249 2007-05-24  Eric Blake  <ebb9@byu.net>
51250
51251         Fix lseek on mingw.
51252         * modules/lseek: New module.
51253         * m4/lseek.m4: New file.
51254         * lib/lseek.c: New file.
51255         * modules/lseek-tests: New file.
51256         * tests/test-lseek.c: New file.
51257         * tests/test-lseek.sh: New file.
51258         * MODULES.html.sh: Document lseek module.
51259         * modules/fflush (Depends-on): Add lseek, fseeko.
51260         * modules/fseeko (Depends-on): Likewise.
51261         * modules/ftello (Depends-on): Likewise.
51262         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51263         broken.
51264         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51265         broken.
51266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51267         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51268         * lib/ftello.c (rpl_ftello): Likewise.
51269         * tests/test-fseeko.c (main): Test this.
51270         * tests/test-fseeko.sh: Likewise.
51271         * tests/test-ftello.c (main): Likewise.
51272         * tests/test-ftello.sh: Likewise.
51273         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51274         implies replacing fseek.
51275         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51276         HAVE_FTELLO.
51277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51278         * modules/unistd (Makefile.am): Likewise.
51279         * lib/unistd_.h (lseek): Declare a replacement.
51280         * doc/functions/lseek.texi (lseek): Document this fix.
51281         * doc/functions/fseek.texi (fseek): Likewise.
51282         * doc/functions/ftell.texi (ftell): Likewise.
51283
51284 2007-05-24  Bruno Haible  <bruno@clisp.org>
51285
51286         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51287         in the printed representation of a NaN.
51288         * tests/test-vasprintf-posix.c (test_function): Likewise.
51289         * tests/test-snprintf-posix.h (test_function): Likewise.
51290         * tests/test-sprintf-posix.h (test_function): Likewise.
51291         Reported by Eric Blake.
51292
51293 2007-05-23  Eric Blake  <ebb9@byu.net>
51294
51295         Fix fseeko/ftello on cygwin 1.5.24.
51296         * doc/functions/fseeko.texi (fseeko): Document the fix.
51297         * doc/functions/ftello.texi (ftello): Document the fix.
51298         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51299         * doc/functions/stdout.text (stdout): New file.
51300         * doc/functions/stderr.text (stderr): New file.
51301         * doc/gnulib.texi (Function Substitutes): Use new files.
51302         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51303         prior to 1.7.0.
51304         * tests/test-ftello.c (main): Likewise for ftello.
51305         * tests/test-fseeko.sh: New file.
51306         * tests/test-ftello.sh: New file.
51307         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51308         with seekable stdin.
51309         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51310         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51311         (gl_REPLACE_FSEEKO): New macro.
51312         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51313         * modules/fseeko (Files): Distribute fseeko.c.
51314         * modules/ftello (Files): Distribute ftello.c.
51315         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51316         mode.
51317         * lib/ftello.c (rpl_ftello): New file.
51318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51319         fseeko, ftello.
51320         (gl_STDIN_LARGE_OFFSET): New macro.
51321         * modules/stdio (Makefile.am): Perform the replacement.
51322         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51323
51324 2007-05-23  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51327         GNULIB_POSIXCHECK is defined.
51328
51329 2007-05-21  Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51332         Check also the output for NaN arguments. When cross-compiling, guess
51333         no on IRIX.
51334         * lib/vasnprintf.c: Update comments.
51335         * tests/test-vasnprintf-posix.c (strisnan): New function.
51336         (test_function): Use it.
51337         * tests/test-vasprintf-posix.c (strisnan): New function.
51338         (test_function): Use it.
51339         * tests/test-snprintf-posix.h (strisnan): New function.
51340         (test_function): Use it.
51341         * tests/test-sprintf-posix.h (strisnan): New function.
51342         (test_function): Use it.
51343         Reported by Eric Blake.
51344
51345 2007-05-20  Bruno Haible  <bruno@clisp.org>
51346
51347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51348         numbers that fails on BeOS.
51349         * doc/functions/frexpl.texi: Update.
51350
51351 2007-05-20  Jim Meyering  <jim@meyering.net>
51352
51353         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51354         forced upon us by glibc-2.6.
51355
51356 2007-05-20  Bruno Haible  <bruno@clisp.org>
51357
51358         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51359         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51360         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51361         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51362         NEED_PRINTF_INFINITE.
51363         (is_infinitel): New function.
51364         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51366         gl_PREREQ_VASNPRINTF_INFINITE.
51367         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51369         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51370         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51371         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51372         gl_PREREQ_VASNPRINTF_INFINITE.
51373         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51374         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51380         * doc/functions/fprintf.texi: Update.
51381         * doc/functions/printf.texi: Update.
51382         * doc/functions/snprintf.texi: Update.
51383         * doc/functions/sprintf.texi: Update.
51384         * doc/functions/vfprintf.texi: Update.
51385         * doc/functions/vprintf.texi: Update.
51386         * doc/functions/vsnprintf.texi: Update.
51387         * doc/functions/vsprintf.texi: Update.
51388
51389 2007-05-20  Bruno Haible  <bruno@clisp.org>
51390
51391         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51392         was not found in libc.
51393         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51394
51395 2007-05-20  Bruno Haible  <bruno@clisp.org>
51396
51397         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51398         printed as "-nan" instead of "nan".
51399         * tests/test-vasprintf-posix.c (test_function): Likewise.
51400         * tests/test-snprintf-posix.h (test_function): Likewise.
51401         * tests/test-sprintf-posix.h (test_function): Likewise.
51402         Needed for HP-UX 11.
51403
51404 2007-05-20  Jim Meyering  <jim@meyering.net>
51405
51406         Fix buggy test for the fchownat-deref bug.
51407         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51408         symlink required for the run-test.  Without it, this test would
51409         always declare that fchownat doesn't work, and client code would
51410         unnecessarily use the replacement function with fixed libc.
51411         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51412         Reported by Greg Schafer.
51413
51414 2007-05-19  Bruno Haible  <bruno@clisp.org>
51415
51416         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51417         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51418         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51419         Needed for IRIX 6.5 and Solaris 2.5.1.
51420
51421 2007-05-19  Bruno Haible  <bruno@clisp.org>
51422
51423         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51424         (test_function): Skip tests involving -0.0 on platforms where
51425         -0.0 = 0.0.
51426         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51427         (test_function): Skip tests involving -0.0 on platforms where
51428         -0.0 = 0.0.
51429         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51430         (test_function): Skip tests involving -0.0 on platforms where
51431         -0.0 = 0.0.
51432         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51433         (test_function): Skip tests involving -0.0 on platforms where
51434         -0.0 = 0.0.
51435         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51436         tests.
51437         * tests/test-printf-posix.h (test_function): Likewise.
51438         * tests/test-printf-posix.output: Remove all -0.0 related results.
51439         Needed for IRIX 6.5.
51440
51441 2007-05-19  Bruno Haible  <bruno@clisp.org>
51442
51443         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51444         printed as "nan0x7fffffff" instead of "nan".
51445         * tests/test-vasprintf-posix.c (test_function): Likewise.
51446         * tests/test-snprintf-posix.h (test_function): Likewise.
51447         * tests/test-sprintf-posix.h (test_function): Likewise.
51448         * tests/test-fprintf-posix.h (NaN): Remove macro.
51449         (test_function): Remove all NaN related tests.
51450         * tests/test-printf-posix.h (NaN): Remove macro.
51451         (test_function): Remove all NaN related tests.
51452         * tests/test-printf-posix.output: Remove all NaN related results.
51453         Needed for IRIX 6.5.
51454
51455 2007-05-19  Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51458         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51459
51460 2007-05-19  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/float_.h: New file.
51463         * m4/float_h.m4: New file.
51464         * modules/float: New file.
51465         * modules/isnanl (Dependencies): Add float.
51466         * modules/isnanl-nolibm (Dependencies): Likewise.
51467         * modules/mathl (Dependencies): Likewise.
51468         * modules/printf-frexpl (Dependencies): Likewise.
51469         * modules/signbit (Dependencies): Likewise.
51470         * modules/vasnprintf (Dependencies): Likewise.
51471         * doc/headers/float.texi: Update.
51472
51473 2007-05-19  Jim Meyering  <jim@meyering.net>
51474
51475         * lib/utimens.c (gl_futimens): Rename from futimens,
51476         now that glibc-2.6 declares futimens.
51477         * lib/utimens.h: Likewise.
51478
51479 2007-05-19  Bruno Haible  <bruno@clisp.org>
51480
51481         Avoid test failures on mingw.
51482         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51483         * tests/test-printf-posix.sh: Likewise.
51484         * tests/test-vfprintf-posix.sh: Likewise.
51485         * tests/test-vprintf-posix.sh: Likewise.
51486
51487 2007-05-19  Bruno Haible  <bruno@clisp.org>
51488
51489         Fix *printf result for NaN, Inf, -0.0 on mingw.
51490         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51491         * lib/vasnprintf.c: Include math.h and isnan.h.
51492         (is_infinite_or_zero): New function.
51493         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51494         values in the %f, %F, %e, %E, %g, %G directives.
51495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51497         gl_PRINTF_INFINITE and test its result. Invoke
51498         gl_PREREQ_VASNPRINTF_INFINITE.
51499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51506         * doc/functions/fprintf.texi: Update.
51507         * doc/functions/printf.texi: Update.
51508         * doc/functions/snprintf.texi: Update.
51509         * doc/functions/sprintf.texi: Update.
51510         * doc/functions/vfprintf.texi: Update.
51511         * doc/functions/vprintf.texi: Update.
51512         * doc/functions/vsnprintf.texi: Update.
51513         * doc/functions/vsprintf.texi: Update.
51514
51515 2007-05-19  Bruno Haible  <bruno@clisp.org>
51516
51517         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51518         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51519         Instead of multiplying with 10^k, set extra_zeroes to k.
51520         (scale10_round_long_double): Remove function.
51521
51522 2007-05-18  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51525         introduced on 2007-05-06.
51526
51527 2007-05-18  Bruno Haible  <bruno@clisp.org>
51528
51529         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51530         %g directives.
51531         * tests/test-vasprintf-posix.c (test_function): Likewise.
51532         * tests/test-snprintf-posix.h (test_function): Likewise.
51533         * tests/test-sprintf-posix.h (test_function): Likewise.
51534
51535 2007-05-18  Bruno Haible  <bruno@clisp.org>
51536
51537         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51538         (strmatch): New function.
51539         (test_function): Test the %f directive on numbers of various exponents.
51540         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51541         (strmatch): New function.
51542         (test_function): Test the %f directive on numbers of various exponents.
51543         * tests/test-snprintf-posix.h (strmatch): New function.
51544         (test_function): Test the %f directive on numbers of various exponents.
51545         * tests/test-sprintf-posix.h (strmatch): New function.
51546         (test_function): Test the %f directive on numbers of various exponents.
51547         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51548         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51549         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51550         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51551
51552 2007-05-18  Bruno Haible  <bruno@clisp.org>
51553
51554         Add support for 'long double' number output.
51555         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51556         * lib/vasnprintf.c: Include math.h and float+.h.
51557         (mp_limb_t): New type.
51558         (GMP_LIMB_BITS): New macro.
51559         (mp_twolimb_t): New type.
51560         (GMP_TWOLIMB_BITS): New macro.
51561         (mpn_t): New type.
51562         (multiply, divide, convert_to_decimal, decode_long_double,
51563         scale10_round_long_double, scale10_round_decimal_long_double,
51564         floorlog10l): New functions.
51565         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51566         for the %f, %F, %e, %E, %g, %G directives.
51567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51569         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51570         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51578         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51579         * modules/snprintf-posix (Depends-on): Likewise.
51580         * modules/sprintf-posix (Depends-on): Likewise.
51581         * modules/vasnprintf-posix (Depends-on): Likewise.
51582         * modules/vasprintf-posix (Depends-on): Likewise.
51583         * modules/vfprintf-posix (Depends-on): Likewise.
51584         * modules/vsnprintf-posix (Depends-on): Likewise.
51585         * modules/vsprintf-posix (Depends-on): Likewise.
51586         * modules/vasnprintf (Files): Add lib/float+.h.
51587         * doc/functions/fprintf.texi: Update.
51588         * doc/functions/printf.texi: Update.
51589         * doc/functions/snprintf.texi: Update.
51590         * doc/functions/sprintf.texi: Update.
51591         * doc/functions/vfprintf.texi: Update.
51592         * doc/functions/vprintf.texi: Update.
51593         * doc/functions/vsnprintf.texi: Update.
51594         * doc/functions/vsprintf.texi: Update.
51595
51596 2007-05-18  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51599
51600 2007-05-18  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51603         for printing 64-bit integers. Needed for mingw.
51604
51605 2007-05-18  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51608         gl_FUNC_FREXPL_WORKS.
51609         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51610
51611 2007-05-18  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/frexpl-nolibm-tests: New file.
51614
51615         * modules/frexpl-nolibm: New file.
51616         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51617
51618 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51619
51620         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51621         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51622         GCC 4.2, which otherwise issues a lot of warnings.
51623         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51624         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51625         Likewise.
51626         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51627         * modules/iconv_open (iconv.h): Likewise.
51628         * modules/locale (locale.h): Likewise.
51629         * modules/netinet_in (netinet/in.h): Likewise.
51630         * modules/sys_select (sys_select.h): Likewise.
51631         * modules/sys_socket (sys/socket.h): Likewise.
51632         * modules/sys_stat (sys/stat.h): Likewise.
51633         * modules/sysexits (sysexits.h): Likewise.
51634         * modules/unistd (unistd.h): Likewise.
51635
51636 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51637
51638         * modules/closein-tests (Makefile.am): Distribute
51639         `test-closein.sh'.
51640
51641 2007-05-17  Bruno Haible  <bruno@clisp.org>
51642
51643         * tests/test-printf-posix.output: Renamed from
51644         tests/test-fprintf-posix.out.
51645         * modules/fprintf-posix-tests: Update.
51646         * modules/printf-posix-tests: Update.
51647         * modules/vfprintf-posix-tests: Update.
51648         * modules/vprintf-posix-tests: Update.
51649         * tests/test-fprintf-posix.sh: Update.
51650         * tests/test-printf-posix.sh: Update.
51651         * tests/test-vfprintf-posix.sh: Update.
51652         * tests/test-vprintf-posix.sh: Update.
51653         Reported by Ralf Wildenhues.
51654
51655 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51658         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51659         GCC 4.2, which otherwise issues a lot of warnings.
51660         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51661         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51662         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51663         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51664         it should no longer be needed.
51665         * lib/string_.h: Likewise.
51666         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51667         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51668         * modules/inttypes (inttypes.h): Likewise.
51669         * modules/math (math.h): Likewise.
51670         * modules/search (search.h): Likewise.
51671         * modules/signal (signal.h): Likewise.
51672         * modules/stdint (stdint.h): Likewise.
51673         * modules/stdio (stdio.h): Likewise.
51674         * modules/stdlib (stdlib.h): Likewise.
51675         * modules/string (string.h): Likewise.
51676         * modules/sys_time (sys/time.h): Likewise.
51677         * modules/time (time.h): Likewise.
51678         * modules/wchar (wchar.h): Likewise.
51679         * modules/wctype (wtype.h): Likewise.
51680
51681 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51682
51683         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51684
51685 2007-05-13  Bruno Haible  <bruno@clisp.org>
51686
51687         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51688         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51689         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51690         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51691         (gl_PREREQ_STRTOK_R): Don't require it here.
51692
51693 2007-05-13  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51696         when used in C++ mode.
51697
51698 2007-05-12  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/linebuffer.h: Tweak doc.
51701         * lib/linebuffer.c: Likewise.
51702
51703 2007-05-12  James Youngman  <jay@gnu.org>
51704
51705         * lib/linebuffer.c (readlinebuffer_delim): New function,
51706         like readlinebuffer, but use a caller-specified delimiter.
51707         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51708         as the delimiter.
51709         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51710
51711 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51712
51713         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51714         * modules/openat (Files): Remove openat-die.c.
51715         (Depends-on): Add openat-die.
51716         * modules/openat-die: New module.
51717
51718 2007-05-06  Bruno Haible  <bruno@clisp.org>
51719
51720         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51721         Update with info about Cygwin.
51722         * doc/functions/fprintf.texi: Update.
51723         * doc/functions/printf.texi: Update.
51724         * doc/functions/snprintf.texi: Update.
51725         * doc/functions/sprintf.texi: Update.
51726         * doc/functions/vfprintf.texi: Update.
51727         * doc/functions/vprintf.texi: Update.
51728         * doc/functions/vsnprintf.texi: Update.
51729         * doc/functions/vsprintf.texi: Update.
51730         Reported by Eric Blake.
51731
51732 2007-05-06  Bruno Haible  <bruno@clisp.org>
51733
51734         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51735         padding ourselves for the floating-point directives.
51736         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51739         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51740         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51748         * tests/test-snprintf-posix.h (test_function): Also check the width
51749         and some flags in the %f directive.
51750         * tests/test-sprintf-posix.h (test_function): Likewise.
51751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51752         * tests/test-vasprintf-posix.c (test_function): Likewise.
51753         * doc/functions/fprintf.texi: Update.
51754         * doc/functions/printf.texi: Update.
51755         * doc/functions/snprintf.texi: Update.
51756         * doc/functions/sprintf.texi: Update.
51757         * doc/functions/vfprintf.texi: Update.
51758         * doc/functions/vprintf.texi: Update.
51759         * doc/functions/vsnprintf.texi: Update.
51760         * doc/functions/vsprintf.texi: Update.
51761
51762 2007-05-06  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51765         pass the ' flag character to sprintf or snprintf.
51766         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51769         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51770         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51778         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51779         flag.
51780         * tests/test-sprintf-posix.h (test_function): Likewise.
51781         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51782         * tests/test-vasprintf-posix.c (test_function): Likewise.
51783         * doc/functions/fprintf.texi: Update.
51784         * doc/functions/printf.texi: Update.
51785         * doc/functions/snprintf.texi: Update.
51786         * doc/functions/sprintf.texi: Update.
51787         * doc/functions/vfprintf.texi: Update.
51788         * doc/functions/vprintf.texi: Update.
51789         * doc/functions/vsnprintf.texi: Update.
51790         * doc/functions/vsprintf.texi: Update.
51791
51792 2007-05-01  Bruno Haible  <bruno@clisp.org>
51793
51794         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51795
51796 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51797
51798         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51799         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51800
51801 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51804         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51805         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51806
51807 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51808
51809         * lib/argp-help.c (struct hol_entry): New member `ord'.
51810         (HOL_ENTRY_PTRCMP): Use ord for comparison
51811         (hol_sort): Initialize ord.
51812
51813 2007-05-01  Bruno Haible  <bruno@clisp.org>
51814
51815         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51816         Reported by Eric Blake.
51817         * doc/gnulib.texi (Function Substitutes): Update.
51818
51819 2007-05-01  Bruno Haible  <bruno@clisp.org>
51820
51821         * doc/functions.texi: Remove file, now redundant through
51822         doc/functions/*.texi.
51823
51824 2007-05-01  Bruno Haible  <bruno@clisp.org>
51825
51826         * modules/argp (Depends-on): Add sleep.
51827
51828 2007-05-01  Bruno Haible  <bruno@clisp.org>
51829
51830         * modules/sleep-tests: New file.
51831         * tests/test-sleep.c: New file.
51832
51833         * modules/sleep: New file.
51834         * lib/sleep.c: New file.
51835         * m4/sleep.m4: New file.
51836         * lib/unistd_.h (sleep): New declaration.
51837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51838         HAVE_SLEEP.
51839         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51840         * doc/functions/sleep.texi: Document the sleep module.
51841
51842 2007-05-01  Bruno Haible  <bruno@clisp.org>
51843
51844         * lib/sigprocmask.h: Remove file.
51845         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51846         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51847         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51848         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51849         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51850         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51851         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51852         HAVE_SIGSET_T as a shell variable.
51853         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51854         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51855         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51856         (Depends-on): Add signal. Remove verify.
51857         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51858         (Include): Mention <signal.h> instead of sigprocmask.h.
51859         * NEWS: Mention the change.
51860         * lib/fatal-signal.c: Don't include sigprocmask.h.
51861
51862 2007-05-01  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/signal: New file.
51865         * lib/signal_.h: New file.
51866         * m4/signal_h.m4: New file.
51867
51868 2007-05-01  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51871         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51872         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51873         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51874
51875 2007-05-01  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51878         configure time.
51879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51880         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51881         * modules/sys_stat (Makefile.am): Substitute their values into
51882         sys/stat.h.
51883
51884 2007-05-01  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51887         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51888         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51889
51890 2007-05-01  Bruno Haible  <bruno@clisp.org>
51891
51892         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51893         'assert' module here.
51894
51895 2007-05-01  Bruno Haible  <bruno@clisp.org>
51896
51897         * doc/functions/*.texi: New files.
51898         * doc/functions/google-ranking.txt: New file.
51899         * doc/gnulib.texi (Function Substitutes): New chapter.
51900         (ctime, inet_ntoa): Remove sections.
51901         * doc/ctime.texi: Remove file.
51902         * doc/inet_ntoa.texi: Remove file.
51903         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51904         dependencies.
51905         (%.info): New rule, specifying a --reference-limit.
51906
51907 2007-05-01  Bruno Haible  <bruno@clisp.org>
51908
51909         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51910
51911 2007-05-01  Bruno Haible  <bruno@clisp.org>
51912
51913         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51914         the portability of 'mkdir' to mingw systems.
51915
51916 2007-05-01  Bruno Haible  <bruno@clisp.org>
51917
51918         * doc/headers/google-ranking.txt: New file.
51919
51920 2007-04-30  Eric Blake  <ebb9@byu.net>
51921
51922         Prefer fseeko to fseek.
51923         * modules/getpass (Depends-on): Add fseeko.
51924         * lib/getpass.c (getpass): Use fseeko, not fseek.
51925
51926 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51927
51928         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51929         assumes the sorting is stable, while most qsort implementations
51930         are not.  Use argument addresses to ensure they never compare as
51931         equal.
51932
51933         * tests/test-argp-2.sh (usage-indent test): Fix output
51934         (func_compare): Restore diff options
51935         * tests/test-argp.c: Restore #include "progname.h"
51936
51937 2007-04-29  Bruno Haible  <bruno@clisp.org>
51938
51939         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51941         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51943         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51944         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51945         (TESTS, check_PROGRAMS): Add test-snprintf.
51946         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51947         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51948         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51949         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51950         assertions that fail on HP-UX, OSF/1, or IRIX.
51951         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51952
51953 2007-04-29  Bruno Haible  <bruno@clisp.org>
51954
51955         * MODULES.html.sh (posix_functions): Remove 'contents'.
51956
51957 2007-04-29  Karl Berry  <karl@gnu.org>
51958
51959         * config/srclist.txt (gendocs_template_min): new entry.
51960
51961 2007-04-29  Bruno Haible  <bruno@clisp.org>
51962
51963         Work around fpurge bug on BSD systems.
51964         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51965         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51966         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51967         fpurge to rpl_fpurge if the system already has this function.
51968         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51969         the case where the system already has this function. Correct invariants
51970         on BSD systems.
51971         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51972         BSD systems.
51973
51974 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51975
51976         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51977         proposed by Sven Verdoolaege.
51978
51979         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51980         options.
51981         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51982         (usage and help tests): Update
51983
51984 2007-04-29  Bruno Haible  <bruno@clisp.org>
51985
51986         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51987         Print more information in case of failure. Disable a test on BeOS.
51988
51989 2007-04-29  Bruno Haible  <bruno@clisp.org>
51990
51991         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51992         This helps debugging on systems on which no gdb is available.
51993
51994 2007-04-29  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/freading.h: Improve comments.
51997         * lib/fwriting.h: Likewise.
51998         * tests/test-freading.c (main): Don't check freading immediately after
51999         repositioning. Needed for glibc.
52000
52001 2007-04-29  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/freading.c (freading): Trivial simplification.
52004
52005 2007-04-28  Bruno Haible  <bruno@clisp.org>
52006
52007         * tests/test-fwriting.c (main): Also test the interaction between
52008         fflush and fwriting.
52009         * modules/fwriting-tests (Depends-on): Add fflush.
52010
52011         * tests/test-freading.c (main): Also test the interaction between
52012         fflush and freading.
52013         * modules/freading-tests (Depends-on): Add fflush.
52014
52015 2007-04-28  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52018         fseeko and ftello.
52019         Suggested by Eric Blake.
52020
52021 2007-04-28  Jim Meyering  <jim@meyering.net>
52022
52023         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52024         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52025         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52026
52027 2007-04-27  Eric Blake  <ebb9@byu.net>
52028
52029         * doc/headers/assert.texi (assert.h): Document assert module use.
52030
52031 2007-04-27  Bruno Haible  <bruno@clisp.org>
52032
52033         * doc/headers/*.texi: New files.
52034         * doc/gnulib.texi (Header File Substitutes): New chapter.
52035         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52036         dependencies.
52037         (standards.info ,standards.html, standards.dvi): Update dependencies.
52038         (mostlyclean, clean): New targets.
52039
52040 2007-04-27  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52043         * modules/sysexits (Files, Makefile.am): Update.
52044
52045         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52046         * modules/sys_socket (Files, Makefile.am): Update.
52047
52048         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52049         * modules/sys_stat (Files, Makefile.am): Update.
52050
52051 2007-04-27  Eric Blake  <ebb9@byu.net>
52052
52053         * lib/freading.h: Improve comments.
52054         * lib/fwriting.h: Likewise.
52055         * lib/fflush.c: Likewise.
52056
52057         Fix closein for mingw.
52058         * modules/closein-tests: Add tests for closein.
52059         * tests/test-closein.c: New file.
52060         * tests/test-closein.sh: Likewise.
52061         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52062         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52063
52064 2007-04-27  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52067         version is < 6.
52068         * lib/math_.h [__DECC]: Likewise.
52069         * lib/stdio_.h [__DECC]: Likewise.
52070         * lib/stdlib_.h [__DECC]: Likewise.
52071         * lib/string_.h [__DECC]: Likewise.
52072         * lib/time_.h [__DECC]: Likewise.
52073         * lib/wchar_.h [__DECC]: Likewise.
52074         * lib/wctype_.h [__DECC]: Likewise.
52075
52076 2007-04-27  Bruno Haible  <bruno@clisp.org>
52077
52078         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52079
52080 2007-04-27  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/fflush.c: Add comments.
52083         * modules/fpurge-tests (Depends-on): Add fflush.
52084         * modules/freadable-tests (Depends-on): Likewise.
52085         * modules/fwritable-tests (Depends-on): Likewise.
52086
52087 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52088
52089         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52090         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52091         Report by Bruno Haible <bruno@clisp.org>.
52092
52093 2007-04-26  Eric Blake  <ebb9@byu.net>
52094
52095         Fix fflush on mingw.
52096         * modules/fflush (Depends-on): Add freading.
52097         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52098         but unread data.
52099
52100 2007-04-26  Eric Blake  <ebb9@byu.net>
52101         and Bruno Haible  <bruno@clisp.org>
52102
52103         Implement freading and fwriting.
52104         * lib/freading.c: New file.
52105         * lib/freading.h: Likewise.
52106         * m4/freading.m4: Likewise.
52107         * modules/freading: Likewise.
52108         * modules/freading-tests: Likewise.
52109         * tests/test-freading.c: Likewise.
52110         * lib/fwriting.c: New file.
52111         * lib/fwriting.h: Likewise.
52112         * m4/fwriting.m4: Likewise.
52113         * modules/fwriting: Likewise.
52114         * modules/fwriting-tests: Likewise.
52115         * tests/test-fwriting.c: Likewise.
52116         * MODULES.html.sh (File stream based Input/Output): Mention them.
52117
52118 2007-04-26  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52121         'long' when we assume it.
52122         Suggested by Eric Blake.
52123
52124 2007-04-26  Bruno Haible  <bruno@clisp.org>
52125
52126         Ensure fseeko, ftello are declared on glibc systems.
52127         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52128         * modules/fseeko (configure.ac-early): Likewise.
52129         * modules/ftello (configure.ac-early): Likewise.
52130         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52131         AC_FUNC_FSEEKO for this.
52132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52133         (gl_CHECK_FSEEKO): Remove macro.
52134
52135 2007-04-26  Bruno Haible  <bruno@clisp.org>
52136
52137         * tests/test-fflush.c (main): Also check the ftell result after
52138         fflush and fseek/fseeko.
52139         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52140         file descriptor position cache in the stream.
52141         * lib/fseeko.c (rpl_fseeko): Likewise.
52142
52143 2007-04-26  Bruno Haible  <bruno@clisp.org>
52144
52145         * modules/fflush-tests (Depends-on): Add fseeko.
52146
52147 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52148             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52149
52150         * lib/argz_.h: ensure error_t definition is obtained in same
52151         mechanism system argz.h would have.
52152         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52153         argz facilities are known bad.  Err on the side of caution if
52154         cross-compiling.
52155
52156 2007-04-25  Eric Blake  <ebb9@byu.net>
52157
52158         * lib/fpurge.c (includes): Use stdlib.h for free.
52159         * tests/test-fflush.c (main): Also test fflush-fseeko.
52160
52161 2007-04-25  Bruno Haible  <bruno@clisp.org>
52162
52163         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52164         * lib/fseeko.c: New file.
52165         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52166         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52167         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52168         gl_FUNC_FSEEKO.
52169         (gl_FUNC_FSEEKO): Invoke it.
52170         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52171         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52172         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52173
52174 2007-04-25  Bruno Haible  <bruno@clisp.org>
52175
52176         * modules/fflush (Depends-on): Add ftello.
52177
52178 2007-04-25  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/ftello-tests: New file.
52181         * tests/test-ftello.c: New file.
52182
52183         * modules/ftello: New file.
52184         * m4/ftello.m4: New file.
52185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52186         HAVE_FTELLO.
52187         * lib/stdio_.h (ftello): New declaration.
52188         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52189         HAVE_FTELLO.
52190
52191 2007-04-25  Bruno Haible  <bruno@clisp.org>
52192
52193         * modules/fseeko-tests: New file.
52194         * tests/test-fseeko.c: New file.
52195
52196         * modules/fseeko: New file.
52197         * m4/fseeko.m4: New file.
52198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52199         HAVE_FSEEKO.
52200         * lib/stdio_.h (fseeko): New declaration.
52201         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52202         HAVE_FSEEKO.
52203
52204 2007-04-25  Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52207
52208 2007-04-25  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52211         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52212         * tests/test-unistd.c: Likewise.
52213         * tests/test-fcntl.c: Likewise.
52214
52215 2007-04-23  Eric Blake  <ebb9@byu.net>
52216
52217         * lib/fflush.c: Fix missing include.
52218         Reported by Bruno Haible.
52219
52220 2007-04-23  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52223         Reported by Eric Blake.
52224
52225 2007-04-23  Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52228
52229 2007-04-23  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52232
52233 2007-04-23  Bruno Haible  <bruno@clisp.org>
52234
52235         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52236         Needed on HP-UX 11.
52237
52238 2007-04-16  Eric Blake  <ebb9@byu.net>
52239
52240         Make fflush rely on fpurge.
52241         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52242         open coding all variants.
52243         * modules/fflush (Depends-on): Add fpurge and unistd.
52244         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52246
52247         Fix --with-tests compilation on cygwin.
52248         * modules/argmatch-tests (Makefile.am): List gnulib library first
52249         in LDADD.
52250         * modules/argp-tests (Makefile.am): Likewise.
52251         * modules/array-list-tests (Makefile.am): Likewise.
52252         * modules/array-oset-tests (Makefile.am): Likewise.
52253         * modules/avltree-list-tests (Makefile.am): Likewise.
52254         * modules/avltree-oset-tests (Makefile.am): Likewise.
52255         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52256         * modules/carray-list-tests (Makefile.am): Likewise.
52257         * modules/dirname-tests (Makefile.am): Likewise.
52258         * modules/frexp-tests (Makefile.am): Likewise.
52259         * modules/isnanl-tests (Makefile.am): Likewise.
52260         * modules/linked-list-tests (Makefile.am): Likewise.
52261         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52262         * modules/lock-tests (Makefile.am): Likewise.
52263         * modules/rbtree-list-tests (Makefile.am): Likewise.
52264         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52265         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52266         * modules/tls-tests (Makefile.am): Likewise.
52267         * modules/tsearch-tests (Makefile.am): Likewise.
52268         * modules/xvasprintf-tests (Makefile.am): Likewise.
52269
52270         Fix fpurge for cygwin.
52271         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52272         value.
52273         * modules/fpurge-tests (Depends-on): Clean up trash.
52274
52275 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52276
52277         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52278
52279         * m4/autobuild.m4: Re-indent.
52280
52281 2007-04-13  Bruno Haible  <bruno@clisp.org>
52282
52283         * modules/fpurge-tests: New file.
52284         * tests/test-fpurge.c: New file.
52285
52286         * modules/fpurge: New file.
52287         * lib/fpurge.h: New file.
52288         * lib/fpurge.c: New file.
52289         * m4/fpurge.m4: New file.
52290
52291 2007-04-13  Bruno Haible  <bruno@clisp.org>
52292
52293         * modules/fbufmode-tests: New file.
52294         * tests/test-fbufmode.c: New file.
52295
52296         * modules/fbufmode: New file.
52297         * lib/fbufmode.h: New file.
52298         * lib/fbufmode.c: New file.
52299         * m4/fbufmode.m4: New file.
52300
52301 2007-04-13  Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/fwritable-tests: New file.
52304         * tests/test-fwritable.c: New file.
52305
52306         * modules/fwritable: New file.
52307         * lib/fwritable.h: New file.
52308         * lib/fwritable.c: New file.
52309         * m4/fwritable.m4: New file.
52310
52311 2007-04-13  Bruno Haible  <bruno@clisp.org>
52312
52313         * modules/freadable-tests: New file.
52314         * tests/test-freadable.c: New file.
52315
52316         * modules/freadable: New file.
52317         * lib/freadable.h: New file.
52318         * lib/freadable.c: New file.
52319         * m4/freadable.m4: New file.
52320
52321 2007-04-13  Bruno Haible  <bruno@clisp.org>
52322
52323         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52324         MOSTLYCLEANFILES.
52325
52326 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52327
52328         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52329         gzip bootstrap.conf to avoid dragging in i18n machinery.
52330         (gnulib_tool_option): Use it.
52331
52332 2007-04-13  Bruno Haible  <bruno@clisp.org>
52333
52334         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52335         %F directives.
52336         * tests/test-vasprintf-posix.c (test_function): Likewise.
52337         * tests/test-snprintf-posix.h (test_function): Likewise.
52338         * tests/test-sprintf-posix.h (test_function): Likewise.
52339         * tests/test-fprintf-posix.h (test_function): Likewise.
52340         * tests/test-printf-posix.h (test_function): Likewise.
52341         * tests/test-fprintf-posix.out: Likewise.
52342
52343 2007-04-13  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52346         * modules/tls-tests (configure.ac): Likewise.
52347         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52348
52349 2007-04-13  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/tls.c (glthread_tls_get): Fix return type.
52352         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52353
52354 2007-04-12  Eric Blake  <ebb9@byu.net>
52355
52356         * modules/gettime (Depends-on): Remove gettime.
52357         Reported by Dmitry V. Levin.
52358
52359 2007-04-12  Bruno Haible  <bruno@clisp.org>
52360
52361         * modules/fflush (Include): Mention <stdio.h>.
52362         * modules/strtoimax (Include): Mention <inttypes.h>.
52363         * modules/strtoumax (Include): Likewise.
52364
52365 2007-04-12  Eric Blake  <ebb9@byu.net>
52366
52367         * .cvsignore: New file.
52368         * .gitignore: Likewise.
52369
52370 2007-04-12  Bruno Haible  <bruno@clisp.org>
52371
52372         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52373         not before, since $(LDADD) often contains libgnu.a.
52374         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52375         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52376         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52377         Needed on Cygwin.
52378
52379 2007-04-12  Eric Blake  <ebb9@byu.net>
52380
52381         Work around glibc's failure to flush stdin on fclose.
52382         * lib/closein.c (close_stdin): Flush stdin before closing.
52383
52384         Work around glibc's failure to reset seekable stdin on exit.
52385         * modules/closein: New module.
52386         * lib/closein.c: New file.
52387         * lib/closein.h: Likewise.
52388         * m4/closein.m4: Likewise.
52389         * MODULES.html.sh (File stream based Input/Output): Document it.
52390
52391 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52392
52393         * gnulib-tool: Rename generated 'autobuild' script to
52394         'do-autobuild' in --create-megatestdir output.
52395
52396         * doc/gnulib.texi (Build robot for gnulib): Fix.
52397
52398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52399
52400         * modules/sysexits (Depends-on): Add absolute-header.
52401
52402 2007-04-12  Eric Blake  <ebb9@byu.net>
52403
52404         No need to preserve errno on success.
52405         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52406         Reported by Bruno Haible.
52407
52408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52409
52410         * MODULES.html.sh (Support for maintaining and releasing
52411         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52412
52413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52414
52415         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52416
52417 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52418
52419         * modules/autobuild: New module.
52420
52421         * m4/autobuild.m4: New file.
52422
52423 2007-04-11  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52426         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52427         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52435         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52445         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52446         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52453         Reported by Eric Blake.
52454
52455 2007-04-11  Bruno Haible  <bruno@clisp.org>
52456
52457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52458
52459 2007-04-10  Bruno Haible  <bruno@clisp.org>
52460
52461         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52462         for NaN and Infinity. Needed on FreeBSD 6.1.
52463         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52464         regarding results for "%010a" of Infinity and NaN.
52465         * tests/test-vasprintf-posix.c (test_function): Likewise.
52466         * tests/test-snprintf-posix.h (test_function): Likewise.
52467         * tests/test-sprintf-posix.h (test_function): Likewise.
52468         * tests/test-fprintf-posix.h (test_function): Likewise.
52469         * tests/test-printf-posix.h (test_function): Likewise.
52470         * tests/test-fprintf-posix.out: Likewise.
52471
52472 2007-04-10  Bruno Haible  <bruno@clisp.org>
52473
52474         * modules/locale-tests: New file.
52475         * tests/test-locale.c: New file.
52476
52477         * modules/locale: New file.
52478         * lib/locale_.h: New file.
52479         * m4/locale_h.m4: New file.
52480
52481 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52482             Bruno Haible  <bruno@clisp.org>
52483
52484         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52485         be determined, test for availability of the copysignf, copysign,
52486         copysignl functions.
52487         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52488         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52489         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52490
52491 2007-04-09  Eric Blake  <ebb9@byu.net>
52492
52493         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52494         * modules/stdio (Makefile.am): Support fflush.
52495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52496         * modules/fflush: New file.
52497         * lib/fflush.c: Likewise.
52498         * m4/fflush.m4: Likewise.
52499         * modules/fflush-tests: New test.
52500         * tests/test-fflush.c: Likewise.
52501         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52502
52503 2007-04-06  Bruno Haible  <bruno@clisp.org>
52504
52505         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52506         (VASNPRINTF): Use signbit for faster determination whether to print a
52507         minus sign.
52508         * modules/vasnprintf (Files): Remove lib/float+.h.
52509         * modules/fprintf-posix (Depends-on): Add signbit.
52510         * modules/snprintf-posix (Depends-on): Likewise.
52511         * modules/sprintf-posix (Depends-on): Likewise.
52512         * modules/vasnprintf-posix (Depends-on): Likewise.
52513         * modules/vasprintf-posix (Depends-on): Likewise.
52514         * modules/vfprintf-posix (Depends-on): Likewise.
52515         * modules/vsnprintf-posix (Depends-on): Likewise.
52516         * modules/vsprintf-posix (Depends-on): Likewise.
52517
52518 2007-04-06  Bruno Haible  <bruno@clisp.org>
52519
52520         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52521         * tests/test-frexpl.c (main): Likewise.
52522         * tests/test-ldexpl.c (main): Likewise.
52523         * modules/frexp-tests (Depends-on): Add signbit.
52524         * modules/frexpl-tests (Depdends-on): Likewise.
52525         * modules/ldexpl-tests (Depdends-on): Likewise.
52526
52527 2007-04-06  Bruno Haible  <bruno@clisp.org>
52528
52529         * modules/signbit-tests: New file.
52530         * tests/test-signbit.c: New file.
52531
52532         * modules/signbit: New file.
52533         * lib/signbitf.c: New file.
52534         * lib/signbitd.c: New file.
52535         * lib/signbitl.c: New file.
52536         * m4/signbit.m4: New file.
52537         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52538         (signbit): New macro.
52539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52540         REPLACE_SIGNBIT.
52541         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52542         REPLACE_FREXPL into math.h.
52543
52544 2007-04-06  Bruno Haible  <bruno@clisp.org>
52545
52546         * modules/isnanf-nolibm-tests: New file.
52547         * tests/test-isnanf.c: New file.
52548
52549         * modules/isnanf-nolibm: New file.
52550         * lib/isnanf.h: New file.
52551         * lib/isnanf.c: New file.
52552         * lib/isnan.c: Consider the USE_FLOAT macro.
52553         * m4/isnanf.m4: New file.
52554
52555 2007-04-06  Bruno Haible  <bruno@clisp.org>
52556
52557         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52558         (Link): New section.
52559
52560         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52561
52562 2007-04-06  Bruno Haible  <bruno@clisp.org>
52563
52564         Assume the 'long double' type.
52565         * m4/longdouble.m4: Remove file.
52566         * config/srclist.txt: Don't mention longdouble.m4.
52567         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52568         * lib/float+.h: Likewise.
52569         * lib/frexp.c: Likewise.
52570         * lib/printf-args.h: Likewise.
52571         * lib/printf-args.c: Likewise.
52572         * lib/printf-frexp.c: Likewise.
52573         * lib/printf-parse.c: Likewise.
52574         * lib/vasnprintf.c: Likewise.
52575         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52576         * m4/intl.m4: Likewise.
52577         * m4/isnanl.m4: Likewise.
52578         * m4/printf.m4: Likewise.
52579         * m4/printf-frexpl.m4: Likewise.
52580         * m4/vasnprintf.m4: Likewise.
52581         * modules/allocsa (Files): Remove m4/longdouble.m4.
52582         * modules/gettext (Files): Likewise.
52583         * modules/relocatable-prog-wrapper (Files): Likewise.
52584         * modules/vasnprintf (Files): Likewise.
52585         * modules/isnanl (Files): Likewise.
52586         (Include): Simplify.
52587         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52588         (Include): Simplify.
52589         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52590         (Include): Simplify.
52591         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52593         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52595         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52596         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52597         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52598         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52599         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52600         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52601         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52603         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52604         * tests/test-isnanl.c: Likewise.
52605         * tests/test-snprintf-posix.h: Likewise.
52606         * tests/test-sprintf-posix.h: Likewise.
52607         * tests/test-vasnprintf-posix.c: Likewise.
52608         * tests/test-vasnprintf-posix2.c: Likewise.
52609         * tests/test-vasprintf-posix.c: Likewise.
52610
52611 2007-04-06  Bruno Haible  <bruno@clisp.org>
52612
52613         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52614         * lib/math_.h [__DECC]: Include the overridden include file through
52615         #include_next, outside the double-inclusion guard.
52616         * lib/stdio_.h [__DECC]: Likewise.
52617         * lib/stdlib_.h [__DECC]: Likewise.
52618         * lib/string_.h [__DECC]: Likewise.
52619         * lib/time_.h [__DECC]: Likewise.
52620         * lib/wchar_.h [__DECC]: Likewise.
52621         * lib/wctype_.h [__DECC]: Likewise.
52622         * lib/inttypes_.h [__DECC]: Likewise.
52623         Reported by Albert Chin <china@thewrittenword.com> in
52624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52625
52626 2007-04-04  Eric Blake  <ebb9@byu.net>
52627
52628         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52629         1.5.x.
52630
52631 2007-04-04  Bruno Haible  <bruno@clisp.org>
52632
52633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52634         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52635
52636 2007-04-04  Bruno Haible  <bruno@clisp.org>
52637
52638         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52639         results for "%010a" of Infinity and NaN.
52640         * tests/test-vasprintf-posix.c (test_function): Likewise.
52641         * tests/test-snprintf-posix.h (test_function): Likewise.
52642         * tests/test-sprintf-posix.h (test_function): Likewise.
52643         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52644         * tests/test-printf-posix.h (test_function): Likewise.
52645         * tests/test-fprintf-posix.out: Update.
52646         Needed for FreeBSD 6.1.
52647
52648 2007-04-04  Bruno Haible  <bruno@clisp.org>
52649
52650         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52651         directly used by the gnulib modules nor by gnulib-tool.
52652
52653 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * DEPENDENCIES: Give overall description of version dependency
52656         desirability.  Use more-typical names for apps.
52657         Add shell, coreutils, diffutils, grep, tar, gzip.
52658
52659 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52660
52661         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52662
52663 2007-04-04  Karl Berry  <karl@gnu.org>
52664
52665         * MODULES.html.sh (func_module): missing '.
52666
52667 2007-04-03  Bruno Haible  <bruno@clisp.org>
52668
52669         * modules/argmatch-tests (Makefile.am): New variable
52670         test_argmatch_LDADD.
52671         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52672         * modules/array-list-tests (Makefile.am): New variable
52673         test_array_list_LDADD.
52674         * modules/array-oset-tests (Makefile.am): New variable
52675         test_array_oset_LDADD.
52676         * modules/avltree-list-tests (Makefile.am): New variable
52677         test_avltree_list_LDADD.
52678         * modules/avltree-oset-tests (Makefile.am): New variable
52679         test_avltree_oset_LDADD.
52680         * modules/avltreehash-list-tests (Makefile.am): New variable
52681         test_avltreehash_list_LDADD.
52682         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52683         test_canonicalize_lgpl_LDADD.
52684         * modules/carray-list-tests (Makefile.am): New variable
52685         test_carray_list_LDADD.
52686         * modules/dirname-tests (Makefile.am): New variable
52687         test_dirname_LDADD.
52688         * modules/linked-list-tests (Makefile.am): New variable
52689         test_linked_list_LDADD.
52690         * modules/linkedhash-list-tests (Makefile.am): New variable
52691         test_linkedhash_list_LDADD.
52692         * modules/rbtree-list-tests (Makefile.am): New variable
52693         test_rbtree_list_LDADD.
52694         * modules/rbtree-oset-tests (Makefile.am): New variable
52695         test_rbtree_oset_LDADD.
52696         * modules/rbtreehash-list-tests (Makefile.am): New variable
52697         test_rbtreehash_list_LDADD.
52698         * modules/xvasprintf-tests (Makefile.am): New variable
52699         test_xvasprintf_LDADD.
52700         Reported by Eric Blake.
52701
52702 2007-04-03  Eric Blake  <ebb9@byu.net>
52703
52704         * DEPENDENCIES: Weaken m4 requirements.
52705
52706 2007-04-03  Bruno Haible  <bruno@clisp.org>
52707
52708         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52709         * modules/isnanl-tests (configure.ac): Likewise.
52710
52711 2007-04-03  Ben Pfaff  <blp@gnu.org>
52712
52713         * modules/iconv_open: Add $(srcdir)/ to source directory
52714         references in Makefile fragments that call gperf, to fix VPATH
52715         builds.
52716
52717 2007-04-03  Bruno Haible  <bruno@clisp.org>
52718
52719         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52720         * lib/ldexpl.c: Undo last change.
52721
52722 2007-04-03  Bruno Haible  <bruno@clisp.org>
52723
52724         * modules/printf-frexpl (Depends-on): Undo last change.
52725         (Files): Add m4/ldexpl.m4.
52726
52727 2007-04-03  Bruno Haible  <bruno@clisp.org>
52728
52729         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52730         * modules/isnanl (Link): New section.
52731
52732         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52733         * modules/frexp (Link): New section.
52734
52735         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52736         * modules/frexpl (Link): New section.
52737
52738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52739         * modules/ldexpl (Link): New section.
52740
52741 2007-04-03  Bruno Haible  <bruno@clisp.org>
52742
52743         * modules/TEMPLATE-EXTENDED: New file.
52744         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52745
52746 2007-04-03  Bruno Haible  <bruno@clisp.org>
52747
52748         * DEPENDENCIES: New file.
52749         Suggested by Simon Josefsson.
52750
52751 2007-04-03  Bruno Haible  <bruno@clisp.org>
52752
52753         * doc/gnulib.texi: Escape @.
52754
52755 2007-04-03  James Youngman  <jay@gnu.org>
52756         and Paul Eggert  <eggert@cs.ucla.edu>
52757
52758         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52759         birthtime on all systems that have birthtime, not just those which
52760         use st_birthtimensec rather than st_birthtim.  Putting zero in
52761         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52762         that the birth time is not available for files on an NFS mount.
52763
52764 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52765
52766         * modules/memxor: Move back from crypto/, suggested by Bruno.
52767         * modules/crypto/hmac-sha1: Fix memxor dependency.
52768
52769         * modules/crypto/gc: Moved from ../.
52770
52771 2007-04-02  Eric Blake  <ebb9@byu.net>
52772
52773         * lib/ldexpl.c (includes): Avoid libm.
52774
52775         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52776
52777 2007-04-02  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52780         on IRIX.
52781
52782 2007-04-02  Bruno Haible  <bruno@clisp.org>
52783
52784         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52785         x86 or x86_64 platforms running MacOS X.
52786         Reported by Ryan Schmidt <@ryandesign.com>.
52787
52788 2007-04-02  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52791         i386.
52792
52793 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52794
52795         * modules/crypto/arcfour: Moved from ../.
52796         * modules/crypto/arcfour-tests: Moved from ../.
52797         * modules/crypto/arctwo: Moved from ../.
52798         * modules/crypto/arctwo-tests: Moved from ../.
52799         * modules/crypto/des: Moved from ../.
52800         * modules/crypto/des-tests: Moved from ../.
52801         * modules/crypto/gc-arcfour: Moved from ../.
52802         * modules/crypto/gc-arcfour-tests: Moved from ../.
52803         * modules/crypto/gc-arctwo: Moved from ../.
52804         * modules/crypto/gc-arctwo-tests: Moved from ../.
52805         * modules/crypto/gc-des: Moved from ../.
52806         * modules/crypto/gc-des-tests: Moved from ../.
52807         * modules/crypto/gc-hmac-md5: Moved from ../.
52808         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52809         * modules/crypto/gc-hmac-sha1: Moved from ../.
52810         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52811         * modules/crypto/gc-md2: Moved from ../.
52812         * modules/crypto/gc-md2-tests: Moved from ../.
52813         * modules/crypto/gc-md4: Moved from ../.
52814         * modules/crypto/gc-md4-tests: Moved from ../.
52815         * modules/crypto/gc-md5: Moved from ../.
52816         * modules/crypto/gc-md5-tests: Moved from ../.
52817         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52818         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52819         * modules/crypto/gc-random: Moved from ../.
52820         * modules/crypto/gc-rijndael: Moved from ../.
52821         * modules/crypto/gc-rijndael-tests: Moved from ../.
52822         * modules/crypto/gc-sha1: Moved from ../.
52823         * modules/crypto/gc-sha1-tests: Moved from ../.
52824         * modules/crypto/gc-tests: Moved from ../.
52825         * modules/crypto/hmac-md5: Moved from ../.
52826         * modules/crypto/hmac-md5-tests: Moved from ../.
52827         * modules/crypto/hmac-sha1: Moved from ../.
52828         * modules/crypto/hmac-sha1-tests: Moved from ../.
52829         * modules/crypto/md2: Moved from ../.
52830         * modules/crypto/md2-tests: Moved from ../.
52831         * modules/crypto/md4: Moved from ../.
52832         * modules/crypto/md4-tests: Moved from ../.
52833         * modules/crypto/md5: Moved from ../.
52834         * modules/crypto/md5-tests: Moved from ../.
52835         * modules/crypto/memxor: Moved from ../.
52836         * modules/crypto/rijndael: Moved from ../.
52837         * modules/crypto/rijndael-tests: Moved from ../.
52838         * modules/crypto/sha1: Moved from ../.
52839
52840 2007-03-30  James Youngman  <jay@gnu.org>
52841
52842         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52843         rename() to change the ctime of a file (because ctime is unaffected
52844         by rename on jfs2 on AIX 5.1).
52845         (main): Start by doing cleanup, in case a previous run failed leaving
52846         test files behind.
52847
52848 2007-03-31  Bruno Haible  <bruno@clisp.org>
52849
52850         Support old proprietary implementations of iconv.
52851         * modules/iconv_open: New file.
52852         * lib/iconv_.h: New file.
52853         * m4/iconv_h.m4: New file.
52854         * lib/iconv_open.c: New file.
52855         * lib/iconv_open-aix.gperf: New file.
52856         * lib/iconv_open-hpux.gperf: New file.
52857         * lib/iconv_open-irix.gperf: New file.
52858         * lib/iconv_open-osf.gperf: New file.
52859         * m4/iconv_open.m4: New file.
52860         * modules/linebreak (Depends-on): Add iconv_open.
52861         * modules/striconv (Depends-on): Likewise.
52862         * modules/striconveh (Depends-on): Likewise.
52863         * modules/unicodeio (Depends-on): Likewise.
52864         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52865         (iconv_t)(-1).
52866         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52867         conversion if cd is (iconv_t)(-1).
52868         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52869         is not possible.
52870
52871 2007-03-31  Bruno Haible  <bruno@clisp.org>
52872
52873         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52874         work on Solaris either. Protect also second use of "autodetect_jp".
52875
52876 2007-03-31  Bruno Haible  <bruno@clisp.org>
52877
52878         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52879         the function is not present.
52880
52881 2007-03-31  Bruno Haible  <bruno@clisp.org>
52882
52883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52884         the function is not present.
52885
52886 2007-03-31  Bruno Haible  <bruno@clisp.org>
52887
52888         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52889         a bug in HP-UX iconv_open().
52890
52891 2007-03-31  Bruno Haible  <bruno@clisp.org>
52892
52893         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52894         (Mathematics <math.h>): New section, add fpieee.
52895         (Input/output <stdio.h>): Add fseterr.
52896         (Mathematics <math.h>): New section, add printf-frexp.
52897         (Container data structures): Add sublist.
52898         (Core language properties): Add fpucw, inline.
52899         (Functions for greatest-width integer types <inttypes.h>): Add
52900         imaxabs, imaxdiv, inttypes.
52901         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52902         isnanl-nolibm, ldexp.
52903         (Mathematics <math.h>): New section, add printf-frexpl.
52904         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52905         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52906         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52907         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52908         (Unicode string functions): Add unistr/u*-mbtoucr.
52909         (Java): Add javacomp-script, javaexec-script.
52910         (C#): Add csharpcomp-script, csharpexec-script.
52911         (Support for building libraries and executables): Add havelib,
52912         relocatable-*.
52913         (Support for maintaining and releasing projects): Renamed from
52914         'Support for maintaining and release projects'. Add announce-gen.
52915
52916 2007-03-31  Bruno Haible  <bruno@clisp.org>
52917
52918         * README: Talk primarily about git.
52919         (git and CVS): Renamed from CVS.
52920         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52921         gnulib is available through git.
52922         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52923
52924 2007-03-30  Bruno Haible  <bruno@clisp.org>
52925
52926         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52927         * lib/poll_.h: Likewise.
52928         * lib/stat_.h: Likewise.
52929         * lib/sys_time_.h: Likewise.
52930         * lib/sysexit_.h: Likewise.
52931         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52932         * lib/stdbool_.h: Likewise.
52933         * lib/byteswap_.h: Add double-inclusion guard.
52934
52935 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52936
52937         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52938
52939 2007-03-30  Karl Berry  <karl@gnu.org>
52940
52941         * config/srclist-update: double space after USA in the license
52942         substitution, since that's how it's usually (?) written.
52943
52944 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52947         reported by Bruno Haible.
52948
52949 2007-03-29  Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52952         a bug in AIX iconv().
52953
52954 2007-03-29  Bruno Haible  <bruno@clisp.org>
52955
52956         * modules/ldexpl-tests: New file.
52957         * tests/test-ldexpl.c: New file.
52958
52959 2007-03-29  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/ldexpl.c: Include fpucw.h.
52962         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52963         multiplication.
52964         * modules/ldexpl (Depends-on): Add fpucw.
52965
52966 2007-03-29  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/ldexpl: New file.
52969         * m4/ldexpl.m4: New file.
52970         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52971         set.
52972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52973         REPLACE_LDEXPL.
52974         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52975         REPLACE_LDEXPL.
52976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52977         gl_FUNC_LDEXPL_WORKS.
52978         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52979         * modules/mathl (Files): Remove lib/ldexpl.c.
52980         (Depends-on): Add ldexpl.
52981
52982 2007-03-29  Bruno Haible  <bruno@clisp.org>
52983
52984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52985
52986 2007-03-29  Bruno Haible  <bruno@clisp.org>
52987
52988         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52989         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52990         and possibly also HP-UX.
52991         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52992         work on AIX, IRIX, HP-UX, OSF/1.
52993         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52994         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52995         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52996         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52997         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52998         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52999
53000 2007-03-29  Bruno Haible  <bruno@clisp.org>
53001
53002         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53003
53004 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53005
53006         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53007         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53008
53009 2007-03-29  Eric Blake  <ebb9@byu.net>
53010
53011         * lib/acl-internal.h: Remove redundant include.
53012         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53013         Cygwin when a file is locked.
53014
53015 2007-03-29  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53018         file.
53019         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53020
53021 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53024         try to remove a parent directory if the child couldn't be removed
53025         (except for the first rmdir, which could fail because the child
53026         doesn't exist).  Problem reported by Jeff Blaine in
53027         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53028
53029 2007-03-28  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/striconveh.c (utf8conv_carefully): New function.
53032         (mem_cd_iconveh_internal): Invoke it.
53033
53034 2007-03-28  Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53037         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53038         input.
53039         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53040         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53041         unistr/u8-uctomb.
53042
53043 2007-03-28  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/unistr/u8-mbtoucr: New file.
53046         * lib/unistr/u8-mbtoucr.c: New file.
53047         * modules/unistr/u16-mbtoucr: New file.
53048         * lib/unistr/u16-mbtoucr.c: New file.
53049         * modules/unistr/u16-mbtoucr: New file.
53050         * lib/unistr/u16-mbtoucr.c: New file.
53051         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53052
53053 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53054             Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53057         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53058         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53059
53060         * m4/stdio_h.m4: Add stubs for vasprintf too.
53061
53062         * modules/stdio: Support vasprintf in sed command.
53063
53064         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53065         vasprintf.h.  Add stdio module indicator.
53066
53067         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53068         vasprintf.h.
53069
53070         * lib/vasprintf.h: File removed.
53071
53072         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53073         * lib/vasprintf.c: Ditto.
53074         * lib/xvasprintf.c: Ditto.
53075         * tests/test-vasprintf-posix.c: Ditto.
53076         * tests/test-vasprintf.c: Ditto.
53077
53078 2007-03-27  Bruno Haible  <bruno@clisp.org>
53079
53080         Make vasnprintf multithread-safe.
53081         * lib/vasnprintf.c (decimal_point_char): New function.
53082         (VASNPRINTF): Use it.
53083         Suggested by Simon Josefsson.
53084
53085 2007-03-27  Eric Blake  <ebb9@byu.net>
53086
53087         Support sub-second birthtime on cygwin.
53088         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53089         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53090         (get_stat_birthtime): Also work with st_birthtim.
53091
53092 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53093
53094         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53095         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53096         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53097         (get_stat_birthtime_ns): Simplify compile-time tests.
53098         (get_stat_birthtime): Change the API to look like
53099         get_stat_mtime etc., except return a negative tv_nsec on error.
53100         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53101         Don't check for "spare" fields.
53102         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53103         or for struct stat.st_birthtime, as these tests aren't used.
53104         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53105
53106 2007-03-27  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/stat-time.h: Include <sys/stat.h>.
53109
53110 2007-03-27  James Youngman  <jay@gnu.org>
53111
53112         * lib/stat-time.h (get_stat_birthtime): New function for
53113           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53114         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53115           and its variants.
53116         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53117         * modules/stat-time-test: New file.
53118         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53119
53120 2007-03-26  Bruno Haible  <bruno@clisp.org>
53121
53122         Better support of signalling NaNs.
53123         * lib/atanl.c: Include isnanl.h.
53124         (atanl): Perform test for NaN at the beginning of the function and
53125         through a call to isnanl.
53126         * lib/cosl.c: Include isnanl.h.
53127         (cosl): Perform test for NaN at the beginning of the function and
53128         through a call to isnanl.
53129         * lib/ldexpl.c: Include isnanl.h.
53130         (ldexpl): Perform test for NaN through a call to isnanl.
53131         * lib/logl.c: Include isnanl.h.
53132         (logl): Perform test for NaN at the beginning of the function and
53133         through a call to isnanl.
53134         * lib/sinl.c: Include isnanl.h.
53135         (sinl): Perform test for NaN at the beginning of the function and
53136         through a call to isnanl.
53137         * lib/sqrtl.c: Include isnanl.h.
53138         (sqrtl): Perform test for NaN at the beginning of the function and
53139         through a call to isnanl.
53140         * lib/tanl.c: Include isnanl.h.
53141         (tanl): Perform test for NaN at the beginning of the function and
53142         through a call to isnanl.
53143         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53144         * modules/mathl (Depends-on): Add isnanl.
53145
53146 2007-03-26  Eric Blake  <ebb9@byu.net>
53147
53148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53149         regression in logic sense of previous patch.
53150
53151 2007-03-26  Bruno Haible  <bruno@clisp.org>
53152
53153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53154         unportable shell command "if ! ...".
53155         Reported by Ralf Wildenhues.
53156
53157 2007-03-25  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53160         <sysexits.h> file, and only add EX_CONFIG.
53161         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53162         absolute file name and whether it is sufficient. Substitute also
53163         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53164         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53165         ABSOLUTE_SYSEXITS_H into sysexits.h.
53166
53167 2007-03-25  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53170         hints is NULL.
53171
53172 2007-03-25  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53175         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53176
53177 2007-03-25  Bruno Haible  <bruno@clisp.org>
53178
53179         * lib/vasnprintf.c: Include langinfo.h.
53180         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53181         multithread-safe.
53182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53191         Reported by Simon Josefsson.
53192
53193 2007-03-25  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53196         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53197         * modules/vasnprintf (Depends-on): Add stdint.
53198
53199 2007-03-25  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/fpieee: New file.
53202         * m4/fpieee.m4: New file.
53203         * modules/isnan-nolibm (Depends-on): Add fpieee.
53204         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53205         * modules/isnanl (Depends-on): Add fpieee.
53206
53207 2007-03-25  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53210
53211 2007-03-25  Bruno Haible  <bruno@clisp.org>
53212
53213         Avoid test failures on IRIX 6.5.
53214         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53215         (main): Use it.
53216         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53217         macros.
53218         (main): Use them.
53219
53220 2007-03-25  Bruno Haible  <bruno@clisp.org>
53221
53222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53223         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53224         exists but doesn't work.
53225         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53226         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53228         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53229         math.h.
53230
53231 2007-03-25  Bruno Haible  <bruno@clisp.org>
53232
53233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53234         returns inf. Needed on IRIX 6.5.
53235
53236 2007-03-25  Bruno Haible  <bruno@clisp.org>
53237
53238         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53239         (main): Use isnanl instead of x != x idiom.
53240         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53241
53242         * tests/test-frexp.c: Include isnan.h.
53243         (main): Use isnan instead of x != x idiom.
53244         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53245
53246 2007-03-25  Bruno Haible  <bruno@clisp.org>
53247
53248         * tests/test-frexp.c (NaN): New function/macro.
53249         (main): Use it instead of 0.0 / 0.0.
53250         * tests/test-isnan.c (NaN): New function/macro.
53251         (main): Use it instead of 0.0 / 0.0.
53252         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53253         (test_function): Use it instead of 0.0 / 0.0.
53254         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53255         (test_function): Use it instead of 0.0 / 0.0.
53256         * tests/test-snprintf-posix.h (NaN): New function/macro.
53257         (test_function): Use it instead of 0.0 / 0.0.
53258         * tests/test-sprintf-posix.h (NaN): New function/macro.
53259         (test_function): Use it instead of 0.0 / 0.0.
53260         * tests/test-fprintf-posix.h (NaN): New function/macro.
53261         (test_function): Use it instead of 0.0 / 0.0.
53262         * tests/test-printf-posix.h (NaN): New function/macro.
53263         (test_function): Use it instead of 0.0 / 0.0.
53264
53265         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53266
53267 2007-03-25  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53270
53271 2007-03-25  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/regexec.c (merge_state_with_log): Make static.
53274
53275 2007-03-25  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/trigl.c (kernel_rem_pio2): Make static.
53278
53279 2007-03-25  Bruno Haible  <bruno@clisp.org>
53280
53281         * lib/sincosl.c (sincosl_table): Make static.
53282
53283 2007-03-25  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53286         if the compiler does not support C99.
53287
53288 2007-03-25  Bruno Haible  <bruno@clisp.org>
53289
53290         * modules/time (Makefile.am): Ensure all rule action lines start with a
53291         tab.
53292
53293 2007-03-24  Bruno Haible  <bruno@clisp.org>
53294
53295         * modules/tsearch-tests: New file.
53296         * tests/test-tsearch.sh: New file.
53297         * tests/test-tsearch.c: New file, mostly copied from glibc.
53298
53299         * modules/search-tests: New file.
53300         * tests/test-search.c: New file.
53301
53302         * modules/search: New file.
53303         * lib/search_.h: New file, incorporating lib/tsearch.h.
53304         * m4/search_h.m4: New file.
53305         * lib/tsearch.h: Remove file.
53306         * lib/tsearch.c: Include search.h instead of tsearch.h.
53307         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53308         HAVE_TSEARCH.
53309         * modules/tsearch (Files): Remove lib/tsearch.h.
53310         (Depends-on): Add search.
53311         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53312         (Include): Change tsearch.h into search.h.
53313
53314 2007-03-24  Bruno Haible  <bruno@clisp.org>
53315
53316         * modules/fpucw: New file.
53317         * lib/fpucw.h: New file.
53318         * lib/frexp.c: Include fpucw.h.
53319         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53320         (FUNC): Use them.
53321         * lib/printf-frexp.c: Include fpucw.h.
53322         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53323         (FUNC): Use them.
53324         * lib/vasnprintf.c: Include fpucw.h.
53325         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53326         'long double' calculations.
53327         * tests/test-frexpl.c: Include fpucw.h.
53328         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53329         * tests/test-printf-frexpl.c: Include fpucw.h.
53330         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53331         * modules/frexpl (Depends-on): Add fpucw.
53332         * modules/printf-frexpl (Depends-on): Likewise.
53333         * modules/fprintf-posix (Depends-on): Likewise.
53334         * modules/snprintf-posix (Depends-on): Likewise.
53335         * modules/sprintf-posix (Depends-on): Likewise.
53336         * modules/vasnprintf-posix (Depends-on): Likewise.
53337         * modules/vasprintf-posix (Depends-on): Likewise.
53338         * modules/vfprintf-posix (Depends-on): Likewise.
53339         * modules/vsnprintf-posix (Depends-on): Likewise.
53340         * modules/vsprintf-posix (Depends-on): Likewise.
53341         * modules/frexpl-tests (Depends-on): Likewise.
53342         * modules/printf-frexpl-tests (Depends-on): Likewise.
53343
53344 2007-03-24  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/float+.h: New file.
53347         * lib/isnan.c: Include float+.h.
53348         (SIZE): New macro.
53349         (FUNC): Compare only SIZE bytes of the value.
53350         * lib/vasnprintf.c: Include float+.h.
53351         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53352         SIZEOF_LDBL or SIZEOF_DBL bytes.
53353         * modules/isnan-nolibm (Files): Add lib/float+.h.
53354         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53355         * modules/isnanl (Files): Add lib/float+.h.
53356         * modules/vasnprintf (Files): Add lib/float+.h.
53357
53358 2007-03-24  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53361         include isnanl-nolibm.h.
53362
53363 2007-03-24  Bruno Haible  <bruno@clisp.org>
53364
53365         * tests/test-read-file.c (main): Don't produce spurious output for
53366         expected situations. Make the test fail if it encountered unexpected
53367         results.
53368
53369 2007-03-24  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53372         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53373
53374 2007-03-24  Bruno Haible  <bruno@clisp.org>
53375
53376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53377
53378 2007-03-24  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53381         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53382
53383         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53384         * modules/utf8-ucs4: Turn into a symbolic link to module
53385         unistr/u8-mbtouc.
53386
53387         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53388         utf8-ucs4-unsafe.
53389         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53390         unistr/u8-mbtouc-unsafe.
53391
53392         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53393         * modules/utf16-ucs4: Turn into a symbolic link to module
53394         unistr/u16-mbtouc.
53395
53396         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53397         utf16-ucs4-unsafe.
53398         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53399         unistr/u16-mbtouc-unsafe.
53400
53401         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53402         * modules/ucs4-utf8: Turn into a symbolic link to module
53403         unistr/u8-ubtomb.
53404
53405         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53406         * modules/ucs4-utf16: Turn into a symbolic link to module
53407         unistr/u16-ubtomb.
53408
53409 2007-03-24  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53412         Enable the function only if HAVE_INLINE.
53413         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53414         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53415         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53416         Enable the function only if HAVE_INLINE.
53417         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53418         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53419         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53420         Enable the function only if HAVE_INLINE.
53421         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53422         Enable the function only if HAVE_INLINE.
53423         * modules/utf8-ucs4: Update.
53424         * modules/utf8-ucs4-unsafe: Update.
53425         * modules/utf16-ucs4: Update.
53426         * modules/utf16-ucs4-unsafe: Update.
53427         * modules/ucs4-utf8: Update.
53428         * modules/ucs4-utf16: Update.
53429
53430 2007-03-24  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/utf8-ucs4.h: Remove file.
53433         * lib/utf8-ucs4-unsafe.h: Remove file.
53434         * lib/utf16-ucs4.h: Remove file.
53435         * lib/utf16-ucs4-unsafe.h: Remove file.
53436         * lib/ucs4-utf8.h: Remove file.
53437         * lib/ucs4-utf16.h: Remove file.
53438         * lib/unistr.h: Include their previous contents.
53439         * m4/utf-ucs4.m4: Remove file.
53440         * m4/ucs4-utf.m4: Remove file.
53441         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53442         (Depends-on): Add unistr/base.
53443         (configure.ac): Remove gl_UTF_UCS4.
53444         (Makefile.am): Update.
53445         (Include): Change to unistr.h.
53446         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53447         (Depends-on): Add unistr/base.
53448         (configure.ac): Remove gl_UTF_UCS4.
53449         (Makefile.am): Update.
53450         (Include): Change to unistr.h.
53451         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53452         (Depends-on): Add unistr/base.
53453         (configure.ac): Remove gl_UTF_UCS4.
53454         (Makefile.am): Update.
53455         (Include): Change to unistr.h.
53456         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53457         (Depends-on): Add unistr/base.
53458         (configure.ac): Remove gl_UTF_UCS4.
53459         (Makefile.am): Update.
53460         (Include): Change to unistr.h.
53461         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53462         (Depends-on): Add unistr/base.
53463         (configure.ac): Remove gl_UCS4_UTF.
53464         (Makefile.am): Update.
53465         (Include): Change to unistr.h.
53466         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53467         (Depends-on): Add unistr/base.
53468         (configure.ac): Remove gl_UCS4_UTF.
53469         (Makefile.am): Update.
53470         (Include): Change to unistr.h.
53471         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53472         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53473         utf8-ucs4-unsafe.h.
53474         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53475         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53476         utf16-ucs4-unsafe.h.
53477         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53478         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53479         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53480         * lib/unistr/u8-strchr.c: Likewise.
53481         * lib/unistr/u8-strrchr.c: Likewise.
53482         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53483         * lib/unistr/u16-strchr.c: Likewise.
53484         * lib/unistr/u16-strrchr.c: Likewise.
53485         * lib/striconveh.c: Update.
53486         * lib/linebreak.c: Update.
53487
53488 2007-03-24  Bruno Haible  <bruno@clisp.org>
53489
53490         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53491         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53492
53493 2007-03-22  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53496
53497 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         * MODULES.html.sh (File system functions): New module write-any-file.
53500         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53501         * m4/write-any-file.m4: New files.
53502
53503 2007-03-23  Eric Blake  <ebb9@byu.net>
53504
53505         * gnulib-tool: Rearrange space-tab sequences, since some editors
53506         like to eat them.
53507
53508 2007-03-23  Eric Blake  <ebb9@byu.net>
53509
53510         * lib/version-etc.c (version_etc_va): Update license wording to
53511         be more concise.  Recommended by Richard Stallman.
53512
53513 2007-03-22  Bruno Haible  <bruno@clisp.org>
53514
53515         * lib/poll.c (MSG_PEEK): New fallback definition.
53516
53517 2007-03-22  Bruno Haible  <bruno@clisp.org>
53518
53519         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53520         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53521         (main): Update.
53522         Fixes a compilation error on BeOS.
53523
53524 2007-03-22  Bruno Haible  <bruno@clisp.org>
53525
53526         * modules/frexpl-tests: New file.
53527         * tests/test-frexpl.c: New file.
53528
53529         * modules/frexpl: New file.
53530         * m4/frexpl.m4: New file.
53531         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53532         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53534         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53535         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53536         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53537
53538 2007-03-22  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/frexpl.c: Share code with lib/frexp.c.
53541         * modules/mathl (Files): Add lib/frexp.c.
53542         (Depends-on): Add isnanl-nolibm.
53543
53544 2007-03-22  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/printf-frexp (Files): Add m4/frexp.m4.
53547         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53548         only if the found frexp function actually works.
53549
53550 2007-03-22  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/frexp.c: Remove older implementation that uses divisions.
53553
53554 2007-03-21  Bruno Haible  <bruno@clisp.org>
53555
53556         * modules/frexp-tests: New file.
53557         * tests/test-frexp.c: New file.
53558
53559         * modules/frexp: New file.
53560         * lib/frexp.c: New file.
53561         * m4/frexp.m4: New file.
53562         * lib/math_.h (frexp): New declaration.
53563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53564         REPLACE_FREXP.
53565         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53566
53567 2007-03-21  Bruno Haible  <bruno@clisp.org>
53568
53569         * modules/isnanl-tests: New file.
53570         * tests/test-isnanl.c: New file.
53571
53572         * modules/isnanl: New file.
53573         * lib/isnanl.h: New file.
53574         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53575         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53576         gl_FUNC_ISNANL_WORKS.
53577         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53578         New macros.
53579
53580 2007-03-21  Bruno Haible  <bruno@clisp.org>
53581
53582         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53583         lib/isnanl.h.
53584         (Include): Update.
53585         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53586         * lib/vasnprintf.c: Update.
53587         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53588         tests/test-isnanl.h, remove tests/test-isnanl.c.
53589         (Makefile.am): Update.
53590         * tests/test-isnanl-nolibm.c: New file.
53591         * tests/test-isnanl.h: New file.
53592         * tests/test-isnanl.c: Remove file.
53593
53594 2007-03-21  Jim Meyering  <jim@meyering.net>
53595
53596         When trying to open ".", treat ESTALE like EACCES.
53597         * lib/savewd.c (savewd_save): Resort to forking not just upon
53598         failure with EACCES, but also when errno is ESTALE.
53599
53600 2007-03-20  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53603         Needed on AIX 5.1. Reported by Matthew Woehlke.
53604
53605 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         Suggestions by Bruno Haible:
53608         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53609         our own.
53610         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53611         * modules/acl (Depends-on): Add gettext.
53612
53613 2007-03-19  Bruno Haible  <bruno@clisp.org>
53614
53615         * modules/iconvme: Remove file.
53616         * lib/iconvme.h: Remove file.
53617         * lib/iconvme.c: Remove file.
53618         * m4/iconvme.m4: Remove file.
53619
53620 2007-03-19  Bruno Haible  <bruno@clisp.org>
53621
53622         * doc/relocatable-maint.texi: Break long shell script line.
53623         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53624
53625 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53626
53627         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53628         handle file_has_acl.
53629         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53630         * lib/acl.c: Move header inclusions and related macro defns into
53631         lib/acl-internal.h.
53632         (S_ISLNK): Remove defn, since that's now done for us.
53633         (file_has_acl): Move to lib/file-has-acl.c.
53634         Call acl_trivial if available.  This is the crucial part of the fix.
53635         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53636         shared within the library.  Rewrite a bit, partly to make it compatible
53637         with the GNU coding style.
53638         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53639         Remove unnecessary double-quotes.
53640         Don't test for acl_to_text; the build will catch that.
53641         Replace acl_entries if it doesn't exist and it is needed.
53642         Check for -lsec and acl_trivial (as used on Solaris 10).
53643         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53644         lib/file-has-acl.c.
53645         (Depends-on): Add sys_stat, for S_ISLNK.
53646
53647 2007-03-19  Ben Pfaff  <blp@gnu.org>
53648
53649         * doc/gnulib.texi: Fix typos.
53650         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53651
53652 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53653
53654         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53655         If size is zero here, buf must be zero.
53656
53657 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53658
53659         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53660         <bruno@clisp.org>.
53661
53662 2007-03-18  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53665         Suggested by Eric Blake.
53666
53667 2007-03-18  Ben Pfaff  <blp@gnu.org>
53668
53669         * doc/relocatable.texi: Recommend using as prefix a directory
53670         that does not exist and will never be created.  Based on
53671         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53672         and others.
53673
53674 2007-03-17  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/fchownat.c: Include lchown.h.
53677
53678 2007-03-17  Bruno Haible  <bruno@clisp.org>
53679
53680         Fix endless loop when the given allocated size was > INT_MAX.
53681         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53682         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53683         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53684         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53685         * lib/sprintf.c (sprintf): Likewise.
53686
53687 2007-03-17  Bruno Haible  <bruno@clisp.org>
53688
53689         * tests/test-argp-2.sh (func_compare): Output a context diff.
53690
53691 2007-03-17  Bruno Haible  <bruno@clisp.org>
53692
53693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53694         locale's decimal-point character.
53695
53696 2007-03-17  Bruno Haible  <bruno@clisp.org>
53697
53698         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53699         before comparing it. Needed because on some platforms (e.g. x86) a
53700         'long double' occupies less bytes than sizeof (long double).
53701
53702 2007-03-17  Bruno Haible  <bruno@clisp.org>
53703
53704         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53705         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53706         * tests/test-getaddrinfo.c (simple): Likewise.
53707         * tests/test-read-file.c (main): Likewise.
53708
53709 2007-03-17  Bruno Haible  <bruno@clisp.org>
53710
53711         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53712
53713 2007-03-17  Bruno Haible  <bruno@clisp.org>
53714
53715         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53716         unused variable.
53717
53718 2007-03-17  Bruno Haible  <bruno@clisp.org>
53719
53720         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53721         * tests/test-c-strncasecmp.c: Likewise.
53722
53723 2007-03-17  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/stdlib (Depends-on): Add unistd.
53726         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53727         Needed for MacOS X 10.3.
53728
53729 2007-03-17  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53732
53733 2007-03-17  Bruno Haible  <bruno@clisp.org>
53734
53735         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53736
53737 2007-03-17  Bruno Haible  <bruno@clisp.org>
53738
53739         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53740         to reflect files copied from gnulib (with or without modifications).
53741         Suggested by Jim Meyering.
53742
53743 2007-03-17  Eric Blake  <ebb9@byu.net>
53744
53745         * NEWS: Document stdlib change from 2007-02-18.
53746
53747 2007-03-17  Jim Meyering  <jim@meyering.net>
53748
53749         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53750         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53751         someone uses a name containing shell meta-characters.
53752         Reported by Alfred M. Szmidt.
53753
53754         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53755
53756 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53757
53758         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53759         and copy gettext configuration files only if configure.ac contains
53760         a use of AM_GNU_GETTEXT_VERSION.
53761
53762 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53763
53764         * build-aux/bootstrap (gnulib_name): New variable.
53765         (gnulib_tool_options): Use it.
53766
53767 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53768
53769         * tests/test-des.c: Use new namespace.
53770
53771 2007-03-15  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53774         Reported by James Youngman <jay@gnu.org>.
53775
53776 2007-03-15  Bruno Haible  <bruno@clisp.org>
53777
53778         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53779         declared prototype. Needed with cc on OSF/1 5.1.
53780
53781 2007-03-15  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53784         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53785         (struct gl_list_implementation): Add dispose_fn argument to the
53786         'create_empty', 'create' methods.
53787         (struct gl_list_impl_base): Add field 'dispose_fn'.
53788         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53789         argument.
53790         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53791         dispose_fn argument.
53792         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53793         dispose_fn on the dropped values.
53794         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53795         dispose_fn argument.
53796         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53797         dropped values.
53798         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53799         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53800         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53801         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53802         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53803         argument.
53804         (gl_tree_list_free): Call dispose_fn on the dropped values.
53805         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53806         the dropped values.
53807         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53808         Add dispose_fn argument.
53809         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53810         Call dispose_fn on the dropped values.
53811         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53812         Add dispose_fn argument.
53813         (gl_sublist_create): Initialize the 'dispose_fn' field.
53814         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53815         * tests/test-array_list.c (main): Update.
53816         * tests/test-carray_list.c (main): Update.
53817         * tests/test-avltree_list.c (main): Update.
53818         * tests/test-rbtree_list.c (main): Update.
53819         * tests/test-avltreehash_list.c (main): Update.
53820         * tests/test-rbtreehash_list.c (main): Update.
53821         * tests/test-linked_list.c (main): Update.
53822         * tests/test-linkedhash_list.c (main): Update.
53823         * tests/test-array_oset.c (main): Update.
53824
53825 2007-03-15  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53828         (gl_oset_create_empty): Add dispose_fn argument.
53829         (struct gl_oset_implementation): Add dispose_fn argument to
53830         'create_empty' method.
53831         (struct gl_oset_impl_base): Add dispose_fn field.
53832         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53833         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53834         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53835         values.
53836         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53837         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53838         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53839         dropped value.
53840         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53841         dropped value.
53842         * tests/test-array_oset.c (main): Update.
53843         * tests/test-avltree_oset.c (main): Update.
53844         * tests/test-rbtree_oset.c (main): Update.
53845         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53846
53847 2007-03-13  Bruno Haible  <bruno@clisp.org>
53848
53849         * tests/test-stdbool.c (i): Update after last patch.
53850
53851 2007-03-12  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53854         the iswprint macro. Needed on Solaris 2.5.1.
53855
53856 2007-03-12  Bruno Haible  <bruno@clisp.org>
53857
53858         * tests/test-printf-frexp.c (main): Declare x as volatile.
53859
53860 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53861
53862         * doc/gnulib.texi (Build robot for gnulib): New section.
53863
53864 2007-03-12  Jim Meyering  <jim@meyering.net>
53865
53866         * build-aux/bootstrap: New file.
53867         * build-aux/bootstrap.conf: New file, from coreutils.
53868
53869 2007-03-11  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53872
53873 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53874
53875         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53876         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53877         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53878
53879 2007-03-11  Bruno Haible  <bruno@clisp.org>
53880
53881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53882         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53883
53884 2007-03-11  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53887         formula. Needed for SunPRO C 5.0.
53888
53889 2007-03-11  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/long-options (Depends-on): Add getopt.
53892
53893 2007-03-11  Bruno Haible  <bruno@clisp.org>
53894
53895         * modules/modechange (Depends-on): Add stdbool.
53896
53897 2007-03-11  Bruno Haible  <bruno@clisp.org>
53898
53899         * modules/i-ring (Depends-on): Add stdbool.
53900
53901 2007-03-11  Bruno Haible  <bruno@clisp.org>
53902
53903         * modules/gc-des (Depends-on): Add stdbool.
53904
53905 2007-03-11  Bruno Haible  <bruno@clisp.org>
53906
53907         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53908
53909 2007-03-11  Bruno Haible  <bruno@clisp.org>
53910
53911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53912
53913 2007-03-11  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53916
53917 2007-03-11  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/vasnprintf.c (sprintf): Undefine.
53920
53921 2007-03-11  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53924         initializers in SunPRO C and Compaq C compilers.
53925
53926 2007-03-11  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53929         decrementing code ANSI C compliant.
53930
53931 2007-03-11  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53934         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53935
53936 2007-03-11  Bruno Haible  <bruno@clisp.org>
53937
53938         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53939         <stdbool.h> substitute doesn't pass.
53940
53941 2007-03-11  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53944
53945 2007-03-11  Bruno Haible  <bruno@clisp.org>
53946
53947         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53948         script, for submission to autobuild.josefsson.org.
53949
53950 2007-03-10  Bruno Haible  <bruno@clisp.org>
53951
53952         * modules/canonicalize-lgpl-tests: New file.
53953         * tests/test-canonicalize-lgpl.sh: New file.
53954         * tests/test-canonicalize-lgpl.c: New file.
53955
53956         * modules/c-strcase-tests: New file.
53957         * tests/test-c-strcase.sh: New file.
53958         * tests/test-c-strcasecmp.c: New file.
53959         * tests/test-c-strncasecmp.c: New file.
53960
53961         * modules/atexit-tests: New file.
53962         * tests/test-atexit.sh: New file.
53963         * tests/test-atexit.c: New file.
53964
53965 2007-03-10  Bruno Haible  <bruno@clisp.org>
53966
53967         * tests/test-binary-io.sh: Use temporary filenames that are not so
53968         likely to clash with those of other tests (in a parallel make).
53969         * tests/test-binary-io.c: Likewise.
53970
53971 2007-03-10  Bruno Haible  <bruno@clisp.org>
53972
53973         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53974         fallback; use #error instead.
53975         Suggested by Simon Josefsson.
53976
53977 2007-03-10  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53980         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53981         first and the last.
53982
53983 2007-03-10  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53986
53987 2007-03-10  Bruno Haible  <bruno@clisp.org>
53988
53989         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53990         "make distcheck".
53991         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53992         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53993         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53994
53995 2007-03-10  Bruno Haible  <bruno@clisp.org>
53996
53997         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53998         variable.
53999         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54000         variable.
54001
54002 2007-03-09  Eric Blake  <ebb9@byu.net>
54003         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54004
54005         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54006         types are not being provided by gnulib.
54007         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54008         types are supported.
54009
54010 2007-03-10  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/stdio_.h (__attribute__): New macro.
54013         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54014         vsprintf): Specify __attribute__ __format__ for GCC.
54015         Suggested by Eric Blake.
54016
54017 2007-03-09  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/printf-posix-tests: New file.
54020         * tests/test-printf-posix.sh: New file.
54021         * tests/test-printf-posix.c: New file.
54022
54023         * modules/printf-posix: New file.
54024         * lib/printf.c: New file.
54025         * m4/printf-posix-rpl.m4: New file.
54026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54027         REPLACE_PRINTF.
54028         * lib/stdio_.h (printf): New declaration.
54029         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54030         ____strfmon____): New macros.
54031         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54032         REPLACE_PRINTF.
54033
54034 2007-03-09  Bruno Haible  <bruno@clisp.org>
54035
54036         * tests/test-vasnprintf-posix2.sh: New file.
54037         * tests/test-vasnprintf-posix2.c: New file.
54038         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54039         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54040         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54041
54042         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54043         a locale dependent decimal point, rather than always '.'.
54044
54045 2007-03-09  Eric Blake  <ebb9@byu.net>
54046
54047         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54048         spite of platforms like Tandem/NSK that define it to -1.
54049
54050 2007-03-08  Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/vprintf-posix-tests: New file.
54053         * tests/test-vprintf-posix.sh: New file.
54054         * tests/test-vprintf-posix.c: New file.
54055         * tests/test-printf-posix.h: New file.
54056
54057         * modules/vprintf-posix: New file.
54058         * lib/vprintf.c: New file.
54059         * m4/vprintf-posix.m4: New file.
54060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54061         REPLACE_VPRINTF.
54062         * lib/stdio_.h (vprintf): New declaration.
54063         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54064         REPLACE_VPRINTF.
54065
54066 2007-03-08  Bruno Haible  <bruno@clisp.org>
54067
54068         * modules/fprintf-posix-tests: New file.
54069         * tests/test-fprintf-posix.sh: New file.
54070         * tests/test-fprintf-posix.c: New file.
54071
54072         * modules/fprintf-posix: New file.
54073         * lib/fprintf.c: New file.
54074         * m4/fprintf-posix.m4: New file.
54075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54076         REPLACE_FPRINTF.
54077         * lib/stdio_.h (fprintf): New declaration.
54078         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54079         REPLACE_FPRINTF.
54080
54081 2007-03-08  Bruno Haible  <bruno@clisp.org>
54082
54083         * modules/vfprintf-posix-tests: New file.
54084         * tests/test-vfprintf-posix.sh: New file.
54085         * tests/test-vfprintf-posix.c: New file.
54086         * tests/test-fprintf-posix.h: New file.
54087         * tests/test-fprintf-posix.out: New file.
54088
54089         * modules/vfprintf-posix: New file.
54090         * lib/vfprintf.c: New file.
54091         * m4/vfprintf-posix.m4: New file.
54092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54093         REPLACE_VFPRINTF.
54094         * lib/stdio_.h (vfprintf): New declaration.
54095         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54096         REPLACE_VFPRINTF.
54097
54098 2007-03-08  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54101
54102 2007-03-08  Bruno Haible  <bruno@clisp.org>
54103
54104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54105         instead of 'expr' invocations.
54106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54111         Suggested by Paul Eggert.
54112
54113 2007-03-08  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/fseterr-tests: New file.
54116         * tests/test-fseterr.c: New file.
54117
54118         * modules/fseterr: New file.
54119         * lib/fseterr.h: New file.
54120         * lib/fseterr.c: New file.
54121
54122 2007-03-08  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54125         * lib/getopt_.h: Likewise.
54126         * lib/mbswidth.h: Likewise.
54127         * lib/setenv.h: Likewise.
54128         * lib/vasnprintf.h: Likewise.
54129         * lib/vasprintf.h: Likewise.
54130         * lib/verror.h: Likewise.
54131         * lib/xsetenv.h: Likewise.
54132         * lib/xvasprintf.h: Likewise.
54133
54134 2007-03-08  Jim Meyering  <jim@meyering.net>
54135
54136         * users.txt: Add parted.
54137
54138         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54139
54140 2007-03-07  Bruno Haible  <bruno@clisp.org>
54141
54142         * m4/printf.m4: Make the shell script snippets copy&pastable.
54143
54144 2007-03-02  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/netinet_in_.h: New file.
54147         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54148         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54149         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54150         (Depends-on): Add absolute-header.
54151         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54152         into netinet/in.h.
54153
54154 2007-03-03  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/sys_select_.h: New file.
54157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54158         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54159         * modules/sys_select (Files): Add lib/sys_select_.h.
54160         (Depends-on): Add absolute-header.
54161         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54162         into sys/select.h.
54163
54164 2007-03-02  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54167         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54168         values.
54169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54170         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54171         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54172         * modules/sys_socket (Depends-on): Add absolute-header.
54173         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54174         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54175         (Include): Remove requirement of inclusion of <sys/types.h>.
54176
54177 2007-03-02  Bruno Haible  <bruno@clisp.org>
54178
54179         * lib/byteswap_.h (bswap_32): Fix formula.
54180
54181 2007-03-06  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/sprintf-posix-tests: New file.
54184         * tests/test-sprintf-posix.c: New file.
54185
54186         * modules/sprintf-posix: New file.
54187         * lib/sprintf.c: New file.
54188         * m4/sprintf-posix.m4: New file.
54189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54190         REPLACE_SPRINTF.
54191         * lib/stdio_.h (sprintf): New declaration.
54192         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54193         REPLACE_SPRINTF.
54194
54195 2007-03-06  Bruno Haible  <bruno@clisp.org>
54196
54197         * modules/vsprintf-posix-tests: New file.
54198         * tests/test-vsprintf-posix.c: New file.
54199         * tests/test-sprintf-posix.h: New file.
54200
54201         * modules/vsprintf-posix: New file.
54202         * lib/vsprintf.c: New file.
54203         * m4/vsprintf-posix.m4: New file.
54204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54205         REPLACE_VSPRINTF.
54206         * lib/stdio_.h (vsprintf): New declaration.
54207         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54208         REPLACE_VSPRINTF.
54209
54210 2007-03-06  Bruno Haible  <bruno@clisp.org>
54211
54212         * modules/vsnprintf (Depend-on): Remove minmax.
54213
54214 2007-03-06  Bruno Haible  <bruno@clisp.org>
54215
54216         * modules/snprintf-posix-tests: New file.
54217         * tests/test-snprintf-posix.c: New file.
54218
54219         * modules/snprintf-posix: New file.
54220         * m4/snprintf-posix.m4: New file.
54221         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54222         gl_FUNC_SNPRINTF.
54223         (gl_FUNC_SNPRINTF): Invoke it.
54224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54225         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54226         is set.
54227         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54228
54229 2007-03-06  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/vsnprintf-posix-tests: New file.
54232         * tests/test-vsnprintf-posix.c: New file.
54233         * tests/test-snprintf-posix.h: New file.
54234
54235         * modules/vsnprintf-posix: New file.
54236         * m4/vsnprintf-posix.m4: New file.
54237         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54238         gl_FUNC_VSNPRINTF.
54239         (gl_FUNC_VSNPRINTF): Invoke it.
54240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54241         * lib/stdio_.h (vsnprintf): Define as a replacement if
54242         REPLACE_VSNPRINTF is set.
54243         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54244
54245 2007-03-06  Bruno Haible  <bruno@clisp.org>
54246
54247         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54249
54250 2007-03-06  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54253         (asinl): Declare also if HAVE_DECL_ASINL is set.
54254         (atanl): Declare also if HAVE_DECL_ATANL is set.
54255         (ceill): Declare also if HAVE_DECL_CEILL is set.
54256         (cosl): Declare also if HAVE_DECL_COSL is set.
54257         (expl): Declare also if HAVE_DECL_EXPL is set.
54258         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54259         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54260         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54261         (logl): Declare also if HAVE_DECL_LOGL is set.
54262         (sinl): Declare also if HAVE_DECL_SINL is set.
54263         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54264         (tanl): Declare also if HAVE_DECL_TANL is set.
54265         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54268         declaration of frexpl, ldexpl.
54269         * modules/printf-frexpl (Depends-on): Add math.
54270         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54271
54272 2007-03-05  Bruno Haible  <bruno@clisp.org>
54273
54274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54275         frexpl and ldexpl are declared.
54276         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54277
54278 2007-03-05  Bruno Haible  <bruno@clisp.org>
54279
54280         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54281         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54282
54283 2007-03-05  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/stdio_.h: Include <stddef.h>.
54286
54287 2007-03-05  Bruno Haible  <bruno@clisp.org>
54288
54289         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54290
54291 2007-03-05  Bruno Haible  <bruno@clisp.org>
54292
54293         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54294         NetBSD 4, from Ralf Wildenhues.
54295
54296 2007-03-04  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/vasprintf.h: Update #if logic for the case when the functions
54299         exist but are overridden.
54300
54301 2007-03-04  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54304         implementations: glibc-2.4 and MacOS X 10.3.
54305         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54306         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54307         * tests/test-vasprintf-posix.c (test_function): Likewise.
54308
54309 2007-03-04  Bruno Haible  <bruno@clisp.org>
54310
54311         * modules/vasprintf-posix-tests: New file.
54312         * tests/test-vasprintf-posix.c: New file.
54313
54314         * modules/vasprintf-posix: New file.
54315         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54316         defined.
54317         * m4/vasprintf-posix.m4: New file.
54318         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54319         gl_FUNC_VASPRINTF.
54320         (gl_FUNC_VASPRINTF): Invoke it.
54321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54322         here.
54323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54324
54325 2007-03-04  Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54328         REPLACE_GETTIMEOFDAY.
54329         * modules/sys_time (Makefile.am): Likewise.
54330         * m4/sys_time_h.m4: Likewise.
54331         * m4/gettimeofday.m4: Likewise.
54332
54333 2007-03-04  Bruno Haible  <bruno@clisp.org>
54334
54335         * modules/vasnprintf-posix-tests: New file.
54336         * tests/test-vasnprintf-posix.c: New file.
54337
54338         * modules/vasnprintf-posix: New file.
54339         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54340         printf-frexpl.h.
54341         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54342         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54343         REPLACE_VASNPRINTF is defined.
54344         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54345         gl_FUNC_VASNPRINTF.
54346         (gl_FUNC_VASNPRINTF): Invoke it.
54347         * m4/vasnprintf-posix.m4: New file.
54348         * m4/printf.m4: New file.
54349
54350 2007-03-04  Bruno Haible  <bruno@clisp.org>
54351
54352         Compile progreloc.c only if --enable-relocatable is specified.
54353         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54354         if --enable-relocatable was specified.
54355         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54356         lib_SOURCES.
54357
54358 2007-03-04  Jim Meyering  <jim@meyering.net>
54359
54360         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54361         Use it consistently, rather than enumerating errno constants.
54362
54363 2007-03-04  Bruno Haible  <bruno@clisp.org>
54364
54365         * modules/xvasprintf-tests: New file.
54366         * tests/test-xvasprintf.c: New file.
54367
54368         * modules/vasprintf-tests: New file.
54369         * tests/test-vasprintf.c: New file.
54370
54371         * modules/vasnprintf-tests: New file.
54372         * tests/test-vasnprintf.c: New file.
54373
54374         * modules/vsnprintf-tests: New file.
54375         * tests/test-vsnprintf.c: New file.
54376
54377         * modules/snprintf-tests: New file.
54378         * tests/test-snprintf.c: New file.
54379
54380 2007-03-04  Bruno Haible  <bruno@clisp.org>
54381
54382         Compile relocatable.c only if --enable-relocatable is specified.
54383         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54384         gl_RELOCATABLE_LIBRARY.
54385         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54386         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54387         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54388         gl_RELOCATABLE_LIBRARY.
54389         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54390         (Makefile.am): Remove lib_SOURCES.
54391         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54392         gl_RELOCATABLE_LIBRARY.
54393         (Makefile.am): Remove lib_SOURCES.
54394         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54395         always.
54396         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54397         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54398
54399 2007-03-04  Bruno Haible  <bruno@clisp.org>
54400
54401         * modules/argmatch-tests: New file.
54402         * tests/test-argmatch.c: New file.
54403
54404         * tests/test-allocsa.c (main): Halve the number of loop runs.
54405
54406         * modules/alloca-opt-tests: New file.
54407         * tests/test-alloca-opt.c: New file.
54408
54409 2007-03-04  Jim Meyering  <jim@meyering.net>
54410
54411         Work around difference between Linux ACLs and Solaris 10 ZFS.
54412         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54413         for EINVAL.
54414
54415 2007-03-03  Bruno Haible  <bruno@clisp.org>
54416
54417         * modules/relocatable-prog (Depends-on): Add back progreloc's
54418         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54419
54420 2007-03-03  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54423         * modules/relocatable-lib: New file.
54424
54425 2007-03-03  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/relocatable-prog: Renamed from modules/relocatable.
54428         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54429
54430 2007-03-03  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54433         m4/relocatable-lib.m4.
54434         (Depends-on): Remove 'relocatable'.
54435         (configure.ac): Add gl_RELOCATABLE_NOP.
54436
54437 2007-03-03  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/relocatable-prog-wrapper: New file.
54440         * modules/relocatable (Depends-on): Add it. Remove all other
54441         dependencies except progname.
54442         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54443
54444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54445         (gl_FUNC_STRERROR): Nop.
54446         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54447
54448         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54449         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54450
54451         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54452         (gl_FUNC_READLINK): Update.
54453
54454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54455
54456 2007-03-03  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54459         * modules/xreadlink (Depends-on): Add unistd.
54460         * modules/xreadlink-with-size (Depends-on): Likewise.
54461
54462 2007-03-03  Bruno Haible  <bruno@clisp.org>
54463
54464         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54465         extracted from gt_FUNC_SETENV.
54466         (gt_FUNC_SETENV): Remove macro.
54467         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54468         remove gt_FUNC_SETENV.
54469
54470 2007-03-03  Bruno Haible  <bruno@clisp.org>
54471
54472         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54473         ENABLE_RELOCATABLE here.
54474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54475
54476 2007-03-03  Bruno Haible  <bruno@clisp.org>
54477
54478         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54479         * tests/test-rbtreehash_list.c: Include progname.h.
54480         (main): Call set_program_name.
54481
54482         * modules/rbtree-oset-tests (Depends-on): Add progname.
54483         * tests/test-rbtree_oset.c: Include progname.h.
54484         (main): Call set_program_name.
54485
54486         * modules/rbtree-list-tests (Depends-on): Add progname.
54487         * tests/test-rbtree_list.c: Include progname.h.
54488         (main): Call set_program_name.
54489
54490         * modules/linked-list-tests (Depends-on): Add progname.
54491         * tests/test-linked_list.c: Include progname.h.
54492         (main): Call set_program_name.
54493
54494 2007-03-03  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54497         All uses of __restrict changed to _Restrict_.
54498         * lib/glob_.h (__restrict): Remove macro.
54499
54500 2007-03-02  Bruno Haible  <bruno@clisp.org>
54501
54502         * modules/gettext (configure.ac): Require gettext infrastructure
54503         from version 0.16.1.
54504
54505 2007-03-02  Bruno Haible  <bruno@clisp.org>
54506
54507         * modules/linkedhash-list-tests (Depends-on): Add progname.
54508         * tests/test-linkedhash_list.c: Include progname.h.
54509         (main): Call set_program_name.
54510
54511         * modules/carray-list-tests (Depends-on): Add progname.
54512         * tests/test-carray_list.c: Include progname.h.
54513         (main): Call set_program_name.
54514
54515         * modules/avltreehash-list-tests (Depends-on): Add progname.
54516         * tests/test-avltreehash_list.c: Include progname.h.
54517         (main): Call set_program_name.
54518
54519         * modules/avltree-oset-tests (Depends-on): Add progname.
54520         * tests/test-avltree_oset.c: Include progname.h.
54521         (main): Call set_program_name.
54522
54523         * modules/avltree-list-tests (Depends-on): Add progname.
54524         * tests/test-avltree_list.c: Include progname.h.
54525         (main): Call set_program_name.
54526
54527         * modules/array-oset-tests (Depends-on): Add progname.
54528         * tests/test-array_oset.c: Include progname.h.
54529         (main): Call set_program_name.
54530
54531         * modules/array-list-tests (Depends-on): Add progname.
54532         * tests/test-array_list.c: Include progname.h.
54533         (main): Call set_program_name.
54534
54535         * modules/argp-tests (Depends-on): Add progname.
54536         * tests/test-argp.c: Include argp.h first. Include progname.h.
54537         (main): Call set_program_name.
54538
54539 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54540
54541         * doc/gnulib-tool.texi (Initial import): Reword description of
54542         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54543         limited effect even if defined after the first system include.
54544
54545 2007-03-01  Bruno Haible  <bruno@clisp.org>
54546
54547         * build-aux/config.libpath: Update to libtool-1.5.22.
54548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54549
54550 2007-03-01  Bruno Haible  <bruno@clisp.org>
54551
54552         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54553         foo_CFLAGS.
54554         Reported by Ralf Wildenhues.
54555
54556 2007-03-01  Bruno Haible  <bruno@clisp.org>
54557
54558         * build-aux/install-reloc: Remove object files left over by some
54559         compilers.
54560         Reported by Ralf Wildenhues.
54561
54562 2007-03-01  Bruno Haible  <bruno@clisp.org>
54563
54564         * build-aux/install-reloc: Break long lines.
54565
54566 2007-03-01  Bruno Haible  <bruno@clisp.org>
54567
54568         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54569         Reported by Ralf Wildenhues.
54570
54571 2007-03-01  Bruno Haible  <bruno@clisp.org>
54572
54573         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54574         include ordering constraints.
54575
54576 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54580         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54581         as another example.
54582         * lib/time_.h: Fix misspelling.
54583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54584         Require gl_HEADER_TIME_H_DEFAULTS.
54585         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54586         * m4/time_r.m4 (gl_TIME_R): Likewise.
54587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54588
54589 2007-03-01  Bruno Haible  <bruno@clisp.org>
54590
54591         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54592         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54593
54594 2007-03-01  Jim Meyering  <jim@meyering.net>
54595
54596         * modules/xreadlink (Maintainer): Add my name.
54597         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54598
54599 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54600             Bruno Haible  <bruno@clisp.org>
54601
54602         * build-aux/install-reloc: Compile also c-ctype.c.
54603         * build-aux/relocatable.sh.in: New file.
54604         * doc/relocatable.texi: New file.
54605         * doc/relocatable-maint.texi: New file.
54606         * doc/gnulib.texi: Include relocatable-maint.texi.
54607         * lib/progreloc.c: Include unistd.h unconditionally.
54608         * lib/relocwrapper.c: Include unistd.h unconditionally.
54609         Include c-ctype.h.
54610         (add_dotbin): Use c_tolower.
54611         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54612         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54613         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54614         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54615         to m4/relocatable-lib.m4.
54616         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54617         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54618         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54619         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54620         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54621         * modules/relocatable: New file.
54622         * modules/relocatable-lib: New file.
54623         * modules/relocatable-script: New file.
54624
54625 2007-02-28  Bruno Haible  <bruno@clisp.org>
54626
54627         Import --enable-relocatable infrastructure.
54628         * build-aux/config.libpath: New file, from GNU gettext.
54629         * build-aux/install-reloc: New file, from GNU gettext.
54630         * build-aux/reloc-ldflags: New file, from GNU gettext.
54631         * lib/relocatable.h: New file, from GNU gettext.
54632         * lib/relocatable.c: New file, from GNU gettext.
54633         * lib/relocwrapper.c: New file, from GNU gettext.
54634         * m4/relocatable.m4: New file, from GNU gettext.
54635
54636 2007-02-28  Bruno Haible  <bruno@clisp.org>
54637
54638         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54639
54640         * modules/xreadlink: New file, from GNU gettext with modifications.
54641         * lib/xreadlink.c: New file, from GNU gettext.
54642         * lib/xreadlink.h: Add comments.
54643         (xreadlink): New declaration.
54644
54645         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54646         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54647         lib/xreadlink-with-size.c.
54648         (configure.ac): Remove gl_XREADLINK invocation.
54649         (Makefile.am): Augment lib_SOURCES.
54650         * m4/xreadlink.m4: Remove file.
54651         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54652         (xreadlink_with_size): Renamed from xreadink.
54653         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54654         * modules/canonicalize (Depends-on): Replace xreadlink with
54655         xreadlink-with-size.
54656         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54657
54658 2007-02-25  Jim Meyering  <jim@meyering.net>
54659
54660         * build-aux/announce-gen: When complaining about excess arguments,
54661         list them.
54662
54663 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         * README: Document signed integer overflow situation more
54666         accurately.
54667
54668 2007-02-25  Bruno Haible  <bruno@clisp.org>
54669
54670         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54671         'a' or 'A' conversion.
54672
54673 2007-02-25  Bruno Haible  <bruno@clisp.org>
54674
54675         * modules/filename: Renamed from modules/pathname.
54676         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54677         lib/concatpath.c with lib/concat-filename.c.
54678         (Makefile.am): Update.
54679         (Include): Replace pathname.h with filename.h.
54680         * lib/filename.h: Renamed from lib/pathname.h.
54681         (concatenated_filename): Renamed from concatenated_pathname.
54682         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54683         (concatenated_filename): Renamed from concatenated_pathname.
54684         * lib/findprog.c: Include filename.h instead of pathname.h.
54685         (find_in_path): Update.
54686         * lib/javacomp.c: Include filename.h instead of pathname.h.
54687         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54688         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54689         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54690         is_oldgcj_14_13_usable, is_javac_usable): Update.
54691         * lib/javaexec.c: Include filename.h instead of pathname.h.
54692         (execute_java_class): Update.
54693         * modules/findprog: Update.
54694         * modules/javacomp: Update.
54695         * modules/javaexec: Update.
54696         * MODULES.html.sh (File system functions): Add 'filename', remove
54697         'pathname'.
54698
54699 2007-02-25  Bruno Haible  <bruno@clisp.org>
54700
54701         * modules/printf-frexpl-tests: New file.
54702         * tests/test-printf-frexpl.c: New file.
54703
54704         * modules/printf-frexpl: New file.
54705         * lib/printf-frexpl.h: New file.
54706         * lib/printf-frexpl.c: New file.
54707         * m4/printf-frexpl.m4: New file.
54708
54709 2007-02-25  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/printf-frexp-tests: New file.
54712         * tests/test-printf-frexp.c: New file.
54713
54714         * modules/printf-frexp: New file.
54715         * lib/printf-frexp.h: New file.
54716         * lib/printf-frexp.c: New file.
54717         * m4/printf-frexp.m4: New file.
54718
54719 2007-02-25  Bruno Haible  <bruno@clisp.org>
54720
54721         Assume automake >= 1.10 for the tests.
54722         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54723         * modules/arctwo-tests: Likewise.
54724         * modules/argp-tests: Likewise.
54725         * modules/avltree-list-tests: Likewise.
54726         * modules/avltree-oset-tests: Likewise.
54727         * modules/avltreehash-list-tests: Likewise.
54728         * modules/carray-list-tests: Likewise.
54729         * modules/crc-tests: Likewise.
54730         * modules/des-tests: Likewise.
54731         * modules/gc-arcfour-tests: Likewise.
54732         * modules/gc-arctwo-tests: Likewise.
54733         * modules/gc-des-tests: Likewise.
54734         * modules/gc-hmac-md5-tests: Likewise.
54735         * modules/gc-hmac-sha1-tests: Likewise.
54736         * modules/gc-md2-tests: Likewise.
54737         * modules/gc-md4-tests: Likewise.
54738         * modules/gc-md5-tests: Likewise.
54739         * modules/gc-pbkdf2-sha1-tests: Likewise.
54740         * modules/gc-rijndael-tests: Likewise.
54741         * modules/gc-sha1-tests: Likewise.
54742         * modules/gc-tests: Likewise.
54743         * modules/getaddrinfo-tests: Likewise.
54744         * modules/hmac-md5-tests: Likewise.
54745         * modules/hmac-sha1-tests: Likewise.
54746         * modules/linked-list-tests: Likewise.
54747         * modules/linkedhash-list-tests: Likewise.
54748         * modules/lock-tests: Likewise.
54749         * modules/md2-tests: Likewise.
54750         * modules/md4-tests: Likewise.
54751         * modules/md5-tests: Likewise.
54752         * modules/rbtree-list-tests: Likewise.
54753         * modules/rbtree-oset-tests: Likewise.
54754         * modules/rbtreehash-list-tests: Likewise.
54755         * modules/read-file-tests: Likewise.
54756         * modules/rijndael-tests: Likewise.
54757         * modules/stdint-tests: Likewise.
54758         * modules/tls-tests: Likewise.
54759
54760 2007-02-24  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54763         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54764         function; instead check whether isnan with a double argument links.
54765         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54766         function; instead check whether isnan with a 'long double' argument
54767         links.
54768         Reported by Eric Blake <ebb9@byu.net>.
54769
54770 2007-02-24  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54773         defined.
54774         * lib/isnanl.c: Remove all code. Just include isnan.c.
54775         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54776
54777 2007-02-25  Jim Meyering  <jim@meyering.net>
54778
54779         Avoid conflicting types for 'unsetenv' on FreeBSD.
54780         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54781         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54782         in stdlib.h.
54783
54784 2007-02-24  Bruno Haible  <bruno@clisp.org>
54785
54786         * modules/isnanl-nolibm-tests: New file.
54787         * tests/test-isnanl.c: New file.
54788
54789         * modules/isnanl-nolibm: New file.
54790         * lib/isnanl.h: New file.
54791         * lib/isnanl.c: New file.
54792         * m4/isnanl.m4: New file.
54793
54794 2007-02-24  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/isnan-nolibm-tests: New file.
54797         * tests/test-isnan.c: New file.
54798
54799         * modules/isnan-nolibm: New file.
54800         * lib/isnan.h: New file.
54801         * lib/isnan.c: New file.
54802         * m4/isnan.m4: New file.
54803
54804 2007-02-24  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54807         assume that an exponent fits in 20 bits.
54808
54809 2007-02-24  Jim Meyering  <jim@meyering.net>
54810
54811         * m4/regex.m4: Update the description of the configure-time option,
54812         --without-included-regex, to state accurately what the defaults are,
54813         and perhaps to give people an idea why using this option is risky.
54814
54815 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54816
54817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54818         loops on small arguments.  This attempts to avoid the problem
54819         Bruno Haible reported for AIX 4.3.2 in
54820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54821
54822 2007-02-23  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54825         Needed for help2man.
54826
54827 2007-02-23  Karl Berry  <karl@gnu.org>
54828
54829         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54830         exists, foo.h should be cvs-ignored, not committed.
54831
54832 2007-02-23  Eric Blake  <ebb9@byu.net>
54833
54834         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54835         * lib/stat-time.h (includes): Likewise.
54836         * lib/utimecmp.c (includes): Likewise.
54837         * lib/utimens.h (includes): Likewise.
54838         * lib/getdate.y (includes): Also include "timespec.h" for use
54839         internal to the module.
54840         * modules/utimens (Depends-on): Revert yesterday's patch.
54841         * modules/nanosleep (Depends-on): Add missing dependency.
54842
54843 2007-02-22  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/glob.c: Don't include getlogin_r.h.
54846
54847 2007-02-22  Jim Meyering  <jim@meyering.net>
54848
54849         * modules/utimens (Depends-on): Add timespec, required for
54850         utimens.h's inclusion of timespec.h.
54851
54852 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54853
54854         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54855         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54856         Schwab in
54857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54858         I'll try to think of a better way to fix the Solaris problem.
54859
54860         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54861         like glibc; on Solaris 10, it fails with errno == EINVAL.
54862         POSIX says the behavior is unspecified if the first argument is NULL,
54863         so play it safe and never pass NULL to the system getcwd.
54864
54865 2007-02-21  Jim Meyering  <jim@meyering.net>
54866
54867         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54868         of gettimeofday.  It would conflict with the one now always
54869         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54870         an IRIX 6.5 build failure.
54871
54872 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         Minor fixups to port to Solaris 10 with Sun C 5.8.
54875         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54876         * modules/getcwd (Depends-on): Add dirfd.
54877         * lib/putenv.c (putenv): #undef it.
54878         (rpl_putenv): New decl.
54879         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54880
54881 2007-02-20  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/stdio-tests: New file.
54884         * tests/test-stdio.c: New file.
54885
54886         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54887         (Depends-on): Add stdio.
54888         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54889         (Include): Use <stdio.h> instead of vsnprintf.h.
54890         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54891         HAVE_DECL_VSNPRINTF.
54892         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54893
54894         * modules/snprintf (Files): Remove lib/snprintf.h.
54895         (Depends-on): Add stdio.
54896         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54897         (Include): Use <stdio.h> instead of snprintf.h.
54898         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54899         HAVE_DECL_SNPRINTF.
54900         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54901         * lib/getaddrinfo.c: Likewise.
54902
54903         * modules/stdio: New file.
54904         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54905         * lib/snprintf.h: Remove file.
54906         * lib/vsnprintf.h: Remove file.
54907         * lib/.cppi-disable: Remove snprintf.h.
54908         * m4/stdio_h.m4: New file.
54909         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54910
54911 2007-02-20  Jim Meyering  <jim@meyering.net>
54912
54913         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54914         used by e.g., mingw.  From Bruno Haible.
54915
54916 2007-02-19  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54919         warnings.
54920         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54921
54922 2007-02-19  Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54925         from mingw users.
54926
54927 2007-02-19  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54930         warnings.
54931         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54932
54933 2007-02-19  Jim Meyering  <jim@meyering.net>
54934
54935         Don't use FD after a successful "fdopendir (fd)".
54936         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54937         Reset it by calling dirfd on the just-obtained DIR*.
54938
54939         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54940         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54941
54942 2007-02-18  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/readlink.c: Include <unistd.h>.
54945         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54946         HAVE_READLINK.
54947         * modules/readlink (Depends-on): Add unistd.
54948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54949         (Include): Add <unistd.h>.
54950
54951         * lib/getlogin_r.h: Remove file.
54952         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54954         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54955         HAVE_DECL_GETLOGIN_R.
54956         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54958         (Include): Use <unistd.h> instead of getlogin_r.h.
54959
54960         * lib/getcwd.h: Remove file.
54961         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54962         * lib/xgetcwd.c: Likewise.
54963         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54964         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54965         * modules/getcwd (Files): Remove lib/getcwd.h.
54966         (Depends-on): Add unistd.
54967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54968         (Include): Use <unistd.h> instad of getcwd.h.
54969
54970         * lib/ftruncate.c: Include <unistd.h> first.
54971         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54972         Set HAVE_FTRUNCATE.
54973         * modules/ftruncate (Depends-on): Add unistd.
54974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54975
54976         * lib/fchdir.c: Include <unistd.h> first.
54977         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54979         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54980         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54981         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54982
54983         * lib/dup2.c: Include <unistd.h> first.
54984         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54985         HAVE_DUP2.
54986         * modules/dup2 (Depends-on): Add unistd.
54987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54988
54989         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54990         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54991         REPLACE_CHOWN. Don't define chown as a macro here.
54992         * modules/chown (Depends-on): Add unistd.
54993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54994
54995         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54996         Add definition for GL_LINK_WARNING.
54997         (chown, dup2): New declarations.
54998         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54999         link warning.
55000         (ftruncate): New declaration.
55001         (getcwd): New declaration, taken from old getcwd.h.
55002         (getlogin_r): New declaration, taken from old getlogin_r.h.
55003         (readlink): New declaration.
55004         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55005         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55006         (gl_PREREQ_UNISTD): Remove macro.
55007         (gl_UNISTD_MODULE_INDICATOR): New macro.
55008         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55009         many new variables. Don't set UNISTD_H.
55010         * modules/unistd (Description): Change.
55011         (Depends-on): Add link-warning.
55012         (configure.ac): Update.
55013         (Makefile.am): Create unistd.h always. Substitute many new variables
55014         into it.
55015
55016 2007-02-18  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55019         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55020         HAVE_GETSUBOPT.
55021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55022         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55023         * lib/getsubopt.h: Remove file.
55024         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55025         (Depends-on): Add stdlib.
55026         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55027         (Includes): Use <stdlib.h> instead of getsubopt.h.
55028         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55029         Set HAVE_GETSUBOPT.
55030         * lib/getsubopt.c: Don't include getsubopt.h.
55031
55032 2007-02-18  Bruno Haible  <bruno@clisp.org>
55033
55034         * modules/fchdir (Depends-on): Add dup2.
55035
55036 2007-02-18  Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/stdlib_.h: Handle glibc's special invocation convention
55039         specially.
55040
55041 2007-02-18  Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/stdlib-tests: New file.
55044         * tests/test-stdlib.c: New file.
55045
55046         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55047         (Depends-on): Add stdlib.
55048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55049         (Includes): Use <stdlib.h> instead of mkstemp.h.
55050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55051         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55052         * lib/mkstemp.c: Don't include mkstemp.h.
55053         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55054         * lib/stdlib--.h: Don't include mkstemp.h.
55055
55056         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55057         (Depends-on): Add stdlib.
55058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55059         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55060         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55061         HAVE_MKDTEMP.
55062         * lib/mkdtemp.c: Don't include mkdtemp.h.
55063         * lib/clean-temp.c: Don't include mkdtemp.h.
55064
55065         * modules/exit (Files): Remove lib/exit.h.
55066         (Depends-on): Add stdlib.
55067         (Makefile.am): Remove lib_SOURCES.
55068         (Include): Use <stdlib.h> instead of exit.h.
55069         * lib/argmatch.c: Don't include exit.h.
55070         * lib/execute.c: Likewise.
55071         * lib/pagealign_alloc.c: Likewise.
55072         * lib/pipe.c: Likewise.
55073         * lib/wait-process.c: Likewise.
55074         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55075         * lib/exitfail.c: Likewise.
55076         * lib/savewd.c: Likewise.
55077         * lib/xsetenv.c: Likewise.
55078
55079         * modules/stdlib: New file.
55080         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55081         and extra comments about mkstemp().
55082         * lib/exit.h: Remove file.
55083         * lib/mkdtemp.h: Remove file.
55084         * lib/mkstemp.h: Remove file.
55085         * m4/stdlib_h.m4: New file.
55086         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55087
55088 2007-02-18  Bruno Haible  <bruno@clisp.org>
55089
55090         * modules/math-tests: New file.
55091         * tests/test-math.c: New file.
55092
55093         * modules/math: New file.
55094         * modules/mathl (Files): Remove lib/mathl.h.
55095         (Depends-on): Add math.
55096         (Makefile.am): Don't mention mathl.h.
55097         (Include): Use <math.h> instead of mathl.h.
55098         * lib/math_.h: New file.
55099         * lib/mathl.h: Remove file.
55100         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55101         mathl.h.
55102         * lib/asinl.c: Likewise.
55103         * lib/atanl.c: Likewise.
55104         * lib/ceill.c: Likewise.
55105         * lib/cosl.c: Likewise.
55106         * lib/expl.c: Likewise.
55107         * lib/floorl.c: Likewise.
55108         * lib/frexpl.c: Likewise.
55109         * lib/ldexpl.c: Likewise.
55110         * lib/logl.c: Likewise.
55111         * lib/sincosl.c: Likewise.
55112         * lib/sinl.c: Likewise.
55113         * lib/sqrtl.c: Likewise.
55114         * lib/tanl.c: Likewise.
55115         * lib/trigl.c: Likewise.
55116         * m4/math_h.m4: New file.
55117         * MODULES.html.sh (Mathematics): Add math.
55118
55119 2007-02-17  Bruno Haible  <bruno@clisp.org>
55120
55121         * modules/wctype-tests: New file.
55122         * tests/test-wctype.c: New file.
55123
55124         * modules/wchar-tests: New file.
55125         * tests/test-wchar.c: New file.
55126
55127         * modules/unistd-tests: New file.
55128         * tests/test-unistd.c: New file.
55129
55130         * modules/time-tests: New file.
55131         * tests/test-time.c: New file.
55132
55133         * modules/sysexits-tests: New file.
55134         * tests/test-sysexits.c: New file.
55135
55136         * modules/sys_time-tests: New file.
55137         * tests/test-sys_time.c: New file.
55138
55139         * modules/sys_stat-tests: New file.
55140         * tests/test-sys_stat.c: New file.
55141
55142         * modules/sys_socket-tests: New file.
55143         * tests/test-sys_socket.c: New file.
55144
55145         * modules/sys_select-tests: New file.
55146         * tests/test-sys_select.c: New file.
55147
55148         * modules/string-tests: New file.
55149         * tests/test-string.c: New file.
55150
55151         * modules/stdbool-tests: New file.
55152         * tests/test-stdbool.c: New file.
55153
55154         * modules/netinet_in-tests: New file.
55155         * tests/test-netinet_in.c: New file.
55156
55157         * modules/inttypes-tests: New file.
55158         * tests/test-inttypes.c: New file.
55159
55160         * modules/fcntl-tests: New file.
55161         * tests/test-fcntl.c: New file.
55162
55163         * modules/byteswap-tests: New file.
55164         * tests/test-byteswap.c: New file.
55165
55166         * modules/arpa_inet-tests: New file.
55167         * tests/test-arpa_inet.c: New file.
55168
55169 2007-02-17  Bruno Haible  <bruno@clisp.org>
55170
55171         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55172         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55173         if the corresponding module is not enabled. Emit link warnings if
55174         the function is used nevertheless.
55175         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55176         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55177         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55178         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55179         * modules/inttypes (Depends-on): Add link-warning.
55180         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55181         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55182         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55183         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55184         * modules/imaxdiv (configure.ac): Likewise.
55185         * modules/strtoimax (configure.ac): Likewise.
55186         * modules/strtoumax (configure.ac): Likewise.
55187
55188 2007-02-17  Bruno Haible  <bruno@clisp.org>
55189
55190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55191         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55192         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55193         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55194
55195 2007-02-17  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/link-warning: New file.
55198         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55199         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55200         * modules/string (Depends-on): Add link-warning.
55201         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55202         string.h.
55203         * MODULES.html.sh (Support for building libraries and executables): Add
55204         link-warning.
55205
55206 2007-02-17  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55209         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55210         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55211         long lines.
55212
55213 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55214             Bruno Haible  <bruno@clisp.org>
55215
55216         * modules/tmpfile: New file.
55217         * lib/tmpfile.c: New file.
55218         * m4/tmpfile.m4: New file.
55219         * MODULES.html.sh (func_all_modules): New section "Input/output".
55220
55221 2007-02-15  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55224         (supports_delete_on_close): New function.
55225         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55226
55227 2007-02-14  Bruno Haible  <bruno@clisp.org>
55228
55229         * modules/mbspcasecmp-tests: New file.
55230         * tests/test-mbspcasecmp.sh: New file.
55231         * tests/test-mbspcasecmp.c: New file.
55232
55233         New module mbspcasecmp.
55234         * modules/mbspcasecmp: New file.
55235         * lib/mbspcasecmp.c: New file.
55236         * lib/string_.h (strncasecmp): Change warning message.
55237         (mbspcasecmp): New declaration.
55238         * m4/mbspcasecmp.m4: New file.
55239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55240         GNULIB_MBSPCASECMP.
55241         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55242         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55243
55244 2007-02-14  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/mbsncasecmp-tests: New file.
55247         * tests/test-mbsncasecmp.sh: New file.
55248         * tests/test-mbsncasecmp.c: New file.
55249
55250         New module mbsncasecmp.
55251         * modules/mbsncasecmp: New file.
55252         * lib/mbsncasecmp.c: New file.
55253         * lib/string_.h (mbsncasecmp): New declaration.
55254         * m4/mbsncasecmp.m4: New file.
55255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55256         GNULIB_MBSNCASECMP.
55257         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55258         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55259
55260 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55263         Verify that it doesn't overlap with our flags.
55264         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55265         do not have the desired effect in multibyte locales; instead, use
55266         mbscasecmp.
55267         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55268         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55269         we don't require GNU fnmatch ourselves (if our users require it, they
55270         should do so explicitly).
55271
55272         Fix regex code so it doesn't rely on strcasecmp.
55273         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55274         Otherwise, include gnulib's langinfo.h.
55275         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55276         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55277         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55278         * modules/regex (FILES): Remove m4/codeset.m4.
55279         (Depends-on): Add localcharset.  Remove strcase.
55280
55281 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55282
55283         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55284         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55285
55286 2007-02-13  Bruno Haible  <bruno@clisp.org>
55287
55288         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55290
55291 2007-02-12  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55294         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55295         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55296         time warning rather than a link error.
55297
55298 2007-02-12  Bruno Haible  <bruno@clisp.org>
55299
55300         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55303
55304 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55305
55306         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55307         args, not 2.
55308
55309 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55310
55311         New module 'time', so that apps can include <time.h> as per
55312         POSIX and GNU instead of separate include files like time_r.h
55313         and timegm.h.  This implementation tries out a simpler approach
55314         for replacing decls in standard include files (as compared to
55315         the string module), somewhat as an experiment.
55316
55317         * config/srclist.txt: Comment out mktime.c for now.
55318         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55319         since it doesn't apply any more.  Use generic wording instead.
55320         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55321         'time'.
55322         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55323         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55324         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55325         Don't include <sys/types.h>; no longer needed since we assume C89.
55326         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55327         * lib/strftime.c: Likewise.
55328         * lib/time_r.c: Likewise.
55329         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55330         * lib/nanosleep.c: Include <time.h> first, to check interface.
55331         * lib/strptime.c: Likewise.
55332         * lib/time_r.c: Likewise.
55333         * lib/timegm.c: Likewise.
55334         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55335         needed.
55336         * lib/timegm.c: Don't include timegm.h; no longer needed.
55337         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55338         time.h now handles any problems in that area.
55339         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55340         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55341         that time.h defines struct timespec.
55342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55343         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55344         handles that.
55345         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55346         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55347         needed.  Set REPLACE_LOCALTIME.
55348         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55349         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55350         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55351         nanosleep; time_h.m4 now does that.  Don't require
55352         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55353         module handles this now.
55354         * modules/getdate (Depends-on): Remove timespec.  Add time.
55355         * modules/nanosleep (Depends-on): Likewise.
55356         * modules/stat-time (Depends-on): Likewise.
55357         * modules/nanosleep (Include): Include time.h, not timespec.h.
55358         * modules/strptime (Files): Remove lib/strptime.h.
55359         (Depends-on): Add extensions, time.
55360         (Include): Include time.h, not strptime.h.
55361         * modules/time_r (Files): Remove lib/time_r.h.
55362         (Depends-on): Add time.
55363         (Include): Include time.h, not time_r.h.
55364         * modules/timegm: Likewise.
55365         * modules/timespec (Description): Now does timespec-related decls
55366         of our own, instead of struct timespec itself.
55367         (Depends-on): Add time; remove extensions.
55368         (Maintainer): Add self.
55369         * modules/utimecmp (Depends-on): Add time; remove timespec.
55370         * modules/utimens (Depends-on): Likewise.
55371         * modules/xnanosleep (Depends-on): Likewise.
55372
55373 2007-02-11  Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/c-strstr.c: Include allocsa.h.
55376         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55377         * lib/c-strcasestr.c: Include allocsa.h.
55378         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55379         * lib/strcasestr.c: Include allocsa.h.
55380         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55381         * lib/mbsstr.c: Include allocsa.h.
55382         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55383         allocsa/freesa instead of malloc/free.
55384         * lib/mbscasestr.c: Include allocsa.h.
55385         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55386         allocsa/freesa instead of malloc/free.
55387         * modules/c-strstr (Depends-on): Add allocsa.
55388         * modules/c-strcasestr (Depends-on): Likewise.
55389         * modules/strcasestr (Depends-on): Likewise.
55390         * modules/mbsstr (Depends-on): Likewise.
55391         * modules/mbscasestr (Depends-on): Likewise.
55392
55393 2007-02-11  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55396
55397         * modules/mbsspn-tests: New file.
55398         * tests/test-mbsspn.sh: New file.
55399         * tests/test-mbsspn.c: New file.
55400
55401 2007-02-11  Bruno Haible  <bruno@clisp.org>
55402
55403         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55404
55405         * modules/mbspbrk-tests: New file.
55406         * tests/test-mbspbrk.sh: New file.
55407         * tests/test-mbspbrk.c: New file.
55408
55409 2007-02-11  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55412         unneeded cast.
55413
55414         * modules/mbscspn-tests: New file.
55415         * tests/test-mbscspn.sh: New file.
55416         * tests/test-mbscspn.c: New file.
55417
55418 2007-02-11  Bruno Haible  <bruno@clisp.org>
55419
55420         * modules/mbscasecmp-tests: New file.
55421         * tests/test-mbscasecmp.sh: New file.
55422         * tests/test-mbscasecmp.c: New file.
55423
55424 2007-02-11  Bruno Haible  <bruno@clisp.org>
55425
55426         Ensure O(n) worst-case complexity of mbscasestr.
55427         * lib/mbscasestr.c: Include stdbool.h.
55428         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55429         functions.
55430         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55431         the bookkeeping indicates that it's worth it.
55432         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55433
55434         * modules/mbscasestr-tests: New file.
55435         * tests/test-mbscasestr1.c: New file.
55436         * tests/test-mbscasestr2.sh: New file.
55437         * tests/test-mbscasestr2.c: New file.
55438         * tests/test-mbscasestr3.sh: New file.
55439         * tests/test-mbscasestr3.c: New file.
55440         * tests/test-mbscasestr4.sh: New file.
55441         * tests/test-mbscasestr4.c: New file.
55442         * m4/locale-tr.m4: New file.
55443
55444 2007-02-11  Bruno Haible  <bruno@clisp.org>
55445
55446         Ensure O(n) worst-case complexity of mbsstr.
55447         * lib/mbsstr.c: Include stdbool.h.
55448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55449         functions.
55450         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55451         bookkeeping indicates that it's worth it.
55452         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55453
55454         * modules/mbsstr-tests: New file.
55455         * tests/test-mbsstr1.c: New file.
55456         * tests/test-mbsstr2.sh: New file.
55457         * tests/test-mbsstr2.c: New file.
55458         * tests/test-mbsstr3.sh: New file.
55459         * tests/test-mbsstr3.c: New file.
55460         * m4/locale-fr.m4: New file.
55461
55462 2007-02-11  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/mbsrchr.c (mbsrchr): Fix bug.
55465
55466         * modules/mbsrchr-tests: New file.
55467         * tests/test-mbsrchr.sh: New file.
55468         * tests/test-mbsrchr.c: New file.
55469
55470 2007-02-11  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/mbschr.c (mbschr): Fix bug.
55473
55474         * modules/mbschr-tests: New file.
55475         * tests/test-mbschr.sh: New file.
55476         * tests/test-mbschr.c: New file.
55477         * m4/locale-zh.m4: New file.
55478
55479 2007-02-11  Bruno Haible  <bruno@clisp.org>
55480
55481         Support for copying multibyte string iterators.
55482         * lib/mbiter.h: Include <string.h>.
55483         (mbiter_multi_copy): New function.
55484         (mbi_copy): New macro.
55485         * lib/mbuiter.h: Include <string.h>.
55486         (mbuiter_multi_copy): New function.
55487         (mbui_copy): New macro.
55488
55489 2007-02-11  Bruno Haible  <bruno@clisp.org>
55490
55491         New module mbslen.
55492         * modules/mbslen: New file.
55493         * lib/mbslen.c: New file.
55494         * lib/string_.h (mbslen): New declaration.
55495         * m4/mbslen.m4: New file.
55496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55497         GNULIB_MBSLEN.
55498         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55499         * MODULES.html.sh (Internationalization functions): Add mbslen.
55500
55501 2007-02-11  Bruno Haible  <bruno@clisp.org>
55502
55503         Ensure O(n) worst-case complexity of strcasestr substitute.
55504         * lib/strcasestr.c: Include stdbool.h.
55505         (knuth_morris_pratt): New function.
55506         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55507         bookkeeping indicates that it's worth it.
55508         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55509
55510         * modules/strcasestr-tests: New file.
55511         * tests/test-strcasestr.c: New file.
55512
55513 2007-02-11  Bruno Haible  <bruno@clisp.org>
55514
55515         Ensure O(n) worst-case complexity of c_strcasestr.
55516         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55517         (knuth_morris_pratt): New function.
55518         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55519         the bookkeeping indicates that it's worth it.
55520         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55521
55522         * modules/c-strcasestr-tests: New file.
55523         * tests/test-c-strcasestr.c: New file.
55524
55525 2007-02-11  Bruno Haible  <bruno@clisp.org>
55526
55527         Ensure O(n) worst-case complexity of c_strstr.
55528         * lib/c-strstr.c: Include stdbool.h, string.h.
55529         (knuth_morris_pratt): New function.
55530         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55531         bookkeeping indicates that it's worth it.
55532         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55533
55534         * lib/c-strstr.c: Complete rewrite for maintainability.
55535
55536         * modules/c-strstr-tests: New file.
55537         * tests/test-c-strstr.c: New file.
55538
55539 2007-02-11  Bruno Haible  <bruno@clisp.org>
55540
55541         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55542         5.2.1 and earlier, whereby \055 was treated just like the range
55543         delimiter '-'.
55544         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55545
55546 2007-02-08  Bruno Haible  <bruno@clisp.org>
55547
55548         * modules/regex (Depends-on): Add stdbool.
55549         Reported by Dalibor Topic <robilad@kaffe.org>.
55550
55551 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55552
55553         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55554         Prefer returning from main to exiting from it.
55555         Remove unnecessary parens after sizeof.
55556
55557 2007-02-05  Bruno Haible  <bruno@clisp.org>
55558
55559         New module mbssep.
55560         * modules/mbssep: New file.
55561         * lib/mbssep.c: New file.
55562         * lib/string_.h (strsep): Add a conditional link warning.
55563         (mbssep): New declaration.
55564         * m4/mbssep.m4: New file.
55565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55566         GNULIB_MBSSEP.
55567         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55568         * MODULES.html.sh (Internationalization functions): Add mbssep.
55569
55570 2007-02-05  Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55573         Optimize search in case of 1 delimiter.
55574
55575 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55576
55577         * lib/acl.h: Include sys/types.h before sys/acl.h.
55578
55579 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55580
55581         Merge upstream fix for glibc bugzilla #3957:
55582
55583         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55584
55585         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55586         bit for RE_HAT_LISTS_NOT_NEWLINE.
55587         (build_charclass_op): Remove bogus comment.
55588
55589 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55590
55591         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55592
55593 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55596         * lib/memmem.c [!defined _LIBC]: Include config.h.
55597
55598 2007-02-04  Bruno Haible  <bruno@clisp.org>
55599
55600         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55601         warning message.
55602
55603 2007-02-04  Bruno Haible  <bruno@clisp.org>
55604
55605         New module mbstok_r.
55606         * modules/mbstok_r: New file.
55607         * lib/mbstok_r.c: New file.
55608         * lib/string_.h (strtok_r): Change argument names to match the
55609         comments. Add a conditional link warning.
55610         (mbstok_r): New declaration.
55611         * m4/mbstok_r.m4: New file.
55612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55613         GNULIB_MBSTOK_R.
55614         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55615         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55616
55617 2007-02-04  Bruno Haible  <bruno@clisp.org>
55618
55619         New module mbsspn.
55620         * modules/mbsspn: New file.
55621         * lib/mbsspn.c: New file.
55622         * lib/string_.h (strspn): Add a conditional link warning.
55623         (mbsspn): New declaration.
55624         * m4/mbsspn.m4: New file.
55625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55626         GNULIB_MBSSPN.
55627         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55628         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55629
55630 2007-02-04  Bruno Haible  <bruno@clisp.org>
55631
55632         New module mbspbrk.
55633         * modules/mbspbrk: New file.
55634         * lib/mbspbrk.c: New file.
55635         * lib/string_.h (strpbrk): Add a conditional link warning.
55636         (mbspbrk): New declaration.
55637         * m4/mbspbrk.m4: New file.
55638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55639         GNULIB_MBSPBRK.
55640         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55641         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55642
55643 2007-02-04  Bruno Haible  <bruno@clisp.org>
55644
55645         New module mbscspn.
55646         * modules/mbscspn: New file.
55647         * lib/mbscspn.c: New file.
55648         * lib/string_.h (strcspn): Add a conditional link warning.
55649         (mbscspn): New declaration.
55650         * m4/mbscspn.m4: New file.
55651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55652         GNULIB_MBSCSPN.
55653         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55654         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55655
55656 2007-02-04  Bruno Haible  <bruno@clisp.org>
55657
55658         New module mbscasestr, reduced goal of strcasestr.
55659         * modules/mbscasestr: New file.
55660         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55661         (mbscasestr): Renamed from strcasestr.
55662         * lib/strcasestr.c: Don't include mbuiter.h.
55663         (strcasestr): Remove support for multibyte locales.
55664         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55665         Change the conditional link warning.
55666         (mbscasestr): New declaration.
55667         * m4/mbscasestr.m4: New file.
55668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55669         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55670         REPLACE_STRCASESTR.
55671         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55673         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55674         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55675         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55676         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55677         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55678         (Depends-on): Remove mbuiter.
55679         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55680
55681 2007-02-04  Bruno Haible  <bruno@clisp.org>
55682
55683         Simplify handling of strncasecmp.
55684         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55685         the conditional link warning.
55686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55687         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55689         * modules/strcase (configure.ac): Don't invoke
55690         gl_STRING_MODULE_INDICATOR.
55691         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55692
55693 2007-02-04  Bruno Haible  <bruno@clisp.org>
55694
55695         New module mbscasecmp, reduced goal of strcasecmp.
55696         * modules/mbscasecmp: New file.
55697         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55698         (mbscasecmp): Renamed from strcasecmp.
55699         * lib/strcasecmp.c: Don't include mbuiter.h.
55700         (strcasecmp): Remove support for multibyte locales.
55701         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55702         Change the conditional link warning.
55703         (mbscasecmp): New declaration.
55704         * m4/mbscasecmp.m4: New file.
55705         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55706         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55707         REPLACE_STRCASECMP.
55708         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55710         GNULIB_MBSCASECMP.
55711         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55712         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55713         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55714         (Depends-on): Remove mbuiter.
55715         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55716
55717 2007-02-04  Bruno Haible  <bruno@clisp.org>
55718
55719         New module mbsstr. Remove module strstr.
55720         * modules/mbsstr: New file.
55721         * modules/strstr: Remove file.
55722         * lib/mbsstr.c: Renamed from lib/strstr.c.
55723         (mbsstr): Renamed from strstr.
55724         * lib/string_.h (strstr): Remove declaration. Change the conditional
55725         link warning.
55726         (mbsstr): New declaration.
55727         * m4/mbsstr.m4: New file.
55728         * m4/strstr.m4: Remove file.
55729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55730         REPLACE_STRSTR.
55731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55732         Don't initialize GNULIB_STRSTR.
55733         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55734         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55735         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55736         (Support for systems lacking ANSI C 89): Remove strstr.
55737
55738 2007-02-04  Bruno Haible  <bruno@clisp.org>
55739
55740         New module mbsrchr.
55741         * modules/mbsrchr: New file.
55742         * lib/mbsrchr.c: New file.
55743         * lib/string_.h (strrchr): Add a conditional link warning.
55744         (mbsrchr): New declaration.
55745         * m4/mbsrchr.m4: New file.
55746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55747         GNULIB_MBSRCHR.
55748         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55749         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55750
55751 2007-02-04  Bruno Haible  <bruno@clisp.org>
55752
55753         New module mbschr.
55754         * modules/mbschr: New file.
55755         * lib/mbschr.c: New file.
55756         * lib/string_.h (strchr): Add a conditional link warning.
55757         (mbschr): New declaration.
55758         * m4/mbschr.m4: New file.
55759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55760         GNULIB_MBSCHR.
55761         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55762         * MODULES.html.sh (Internationalization functions): Add mbschr.
55763
55764 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55767
55768         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55769
55770 2007-02-04  Bruno Haible  <bruno@clisp.org>
55771
55772         New module description section 'configure.ac-early'.
55773         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55774         (func_get_autoconf_early_snippet): New function.
55775         (func_import, func_create_testdir): Use it. Remove special cases for
55776         modules 'extensions' and 'lock'.
55777         * modules/extensions (configure.ac-early): Require
55778         gl_USE_SYSTEM_EXTENSIONS.
55779         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55780
55781 2007-02-04  Bruno Haible  <bruno@clisp.org>
55782
55783         Make use of gcj-4.3's -fsource and -ftarget option.
55784         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55785         and if so try the options -fsource and -ftarget.
55786         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55787         source_version, ftarget_option, target_version arguments.
55788         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55789         (is_envjavac_oldgcj_14_14_usable): Renamed from
55790         is_envjavac_gcj_14_14_usable.
55791         (is_envjavac_oldgcj_14_13_usable): Renamed from
55792         is_envjavac_gcj_14_13_usable.
55793         (is_gcj_present): Update.
55794         (is_gcj_43, is_gcj43_usable): New functions.
55795         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55796         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55797         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55798         try the options -fsource and -ftarget.
55799
55800 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55801
55802         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55803         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55804         larger value.
55805
55806 2007-02-03  Jim Meyering  <jim@meyering.net>
55807
55808         Give tools a better chance to allocate space for very large buffers.
55809         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55810
55811         Make pwd and readlink work also when run with an unreadable parent dir
55812         on systems with openat support.
55813         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55814         provided getcwd function, even when we have openat support.
55815         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55816
55817 2007-02-02  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55820         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55821         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55822         portability problems if one of these functions is only used on specific
55823         platforms.
55824         Reported by Paul Eggert.
55825
55826 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55829         is causing more trouble than it's curing.
55830         * lib/regex_internal.h (__mempcpy): Remove.
55831         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55832         (and make the code a tad smaller to boot).
55833         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55834
55835 2007-02-02  Jim Meyering  <jim@meyering.net>
55836
55837         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55838         section, not in the Makefile.am: one.
55839
55840 2007-02-02  Eric Blake  <ebb9@byu.net>
55841
55842         * lib/strchrnul.c: Always include config.h first.
55843
55844         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55845         gnulib strstr is not necessary here.
55846
55847 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55848
55849         * m4/socklen.m4: Fix typo.
55850
55851 2007-02-02  Eric Blake  <ebb9@byu.net>
55852
55853         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55854         * modules/netinet_in (Makefile.am): Likewise.
55855
55856 2007-02-01  Bruno Haible  <bruno@clisp.org>
55857
55858         * lib/string_.h (GL_LINK_WARNING): New macro.
55859         (strcasecmp, strstr, strcasestr): If provided by the system,
55860         conditionally define as a macro that leads to a warning instead of to
55861         an error.
55862         (strncasecmp): Conditionally define as a macro that leads to a warning.
55863
55864 2007-02-01  Karl Berry  <karl@gnu.org>
55865
55866         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55867
55868 2007-02-01  Bruno Haible  <bruno@clisp.org>
55869
55870         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55871         renamings.
55872
55873 2007-02-01  Eric Blake  <ebb9@byu.net>
55874
55875         * modules/regex (Depends-on): Revert dependence on mempcpy.
55876         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55877         module's definition of mempcpy.
55878         Reported by Paul Eggert.
55879
55880 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55881
55882         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55883         the symbol XYZ before redefining it.  This fixes a problem with
55884         programs that don't use XYZ, when compiled on systems that define
55885         XYZ to something else.
55886
55887 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55888
55889         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55890         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55891         writeable to group or other and (2) is intended to have a special
55892         mode bit that is set or cleared.  In such a case, the directory
55893         should be neither group- nor other-writeable until the special
55894         mode bits are right.
55895
55896 2007-01-31  Eric Blake  <ebb9@byu.net>
55897
55898         * modules/mountlist (Depends-on): Add strstr.
55899
55900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55901         bug.
55902         * modules/string (Makefile.am): Remove redundant replacement.
55903         * modules/regex (Depends-on): Add mempcpy.
55904
55905 2007-01-31  Bruno Haible  <bruno@clisp.org>
55906
55907         New module description field 'Link'.
55908         * gnulib-tool (func_usage): Document --extract-link-directive.
55909         (sed_extract_prog): Recognize 'Link' directive.
55910         (func_get_link_directive): New function.
55911         (func_import): Show summary of link directives.
55912         Handle --extract-link-directive option.
55913         * modules/acl (Link): New section.
55914         * modules/clock-time (Link): New section.
55915         * modules/euidaccess (Link): New section.
55916         * modules/gettext (Link): New section.
55917         * modules/iconv (Link): New section.
55918         * modules/lock (Link): New section.
55919         * modules/nanosleep (Link): New section.
55920         * modules/readline (Link): New section.
55921
55922 2007-01-27  Bruno Haible  <bruno@clisp.org>
55923
55924         Enforce the use of gnulib modules for unportable <string.h> functions.
55925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55926         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55927         (gl_HEADER_STRING_H_BODY): Require it.
55928         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55929         the symbol XYZ to one that gives a link error.
55930         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55931         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55932         * modules/mempcpy (configure.ac): Likewise.
55933         * modules/memrchr (configure.ac): Likewise.
55934         * modules/stpcpy (configure.ac): Likewise.
55935         * modules/stpncpy (configure.ac): Likewise.
55936         * modules/strcase (configure.ac): Likewise.
55937         * modules/strcasestr (configure.ac): Likewise.
55938         * modules/strchrnul (configure.ac): Likewise.
55939         * modules/strdup (configure.ac): Likewise.
55940         * modules/strndup (configure.ac): Likewise.
55941         * modules/strnlen (configure.ac): Likewise.
55942         * modules/strpbrk (configure.ac): Likewise.
55943         * modules/strsep (configure.ac): Likewise.
55944         * modules/strstr (configure.ac): Likewise.
55945         * modules/strtok_r (configure.ac): Likewise.
55946
55947 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55948
55949         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55950
55951 2007-01-30  Jim Meyering  <jim@meyering.net>
55952
55953         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55954
55955 2007-01-29  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55958         * lib/execute.c: Likewise.
55959         * lib/pipe.c: Likewise.
55960         * lib/printf-args.h: Likewise.
55961         * lib/printf-args.c: Likewise.
55962         * lib/printf-parse.c: Likewise.
55963         * lib/vasnprintf.c: Likewise.
55964
55965 2007-01-29  Eric Blake  <ebb9@byu.net>
55966
55967         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55968         declaration.
55969
55970 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         * lib/strptime.h (strptime): Use 'restrict' for args where
55973         POSIX requires this.
55974         * lib/strptime.c (strptime): Likewise.
55975         Change license notice from LGPL to GPL, since gnulib-tool will
55976         change this as needed.
55977         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55978         defined.
55979         Include "strptime.h" first, to check interface.
55980         Do not #undef _LIBC and _NL_CURRENT.
55981         Do not include <stdlib.h>; no longer needed.
55982         Include "time_r.h" and declare ptime_locale_status
55983         only if _LIBC is not defined.
55984         (__P): Remove unused macro.
55985         (match_string): Bring back glibc version, but use it only if _LIBC
55986         is defined.
55987         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55988         Remove unnecessary assertion and abort() call.
55989         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55990         * m4/strptime.m4: Fix serial number comment.
55991         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55992         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55993         (Depends-on): Add time_r.
55994
55995 2007-01-29  Bruno Haible  <bruno@clisp.org>
55996
55997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55998         strptime.
55999         * modules/strptime (Depends-on): Add stdbool.
56000         * lib/strptime.h: Include <time.h> always. Add comments.
56001
56002 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56003
56004         * modules/strptime: New file.
56005         * lib/strptime.h: New file.
56006         * lib/strptime.c: New file.
56007         * m4/strptime.m4: New file.
56008
56009 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         * MODULES.html.sh: New module mpsort.
56012         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56013
56014         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56015         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56017         All uses changed.
56018         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56019         All uses changed.
56020         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56021         to _Restrict_.
56022         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56023         the parameter matches the prototype.
56024
56025 2007-01-28  Jim Meyering  <jim@meyering.net>
56026
56027         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56028         sys/time.h here, reverting that part of the previous patch:
56029         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56030
56031 2007-01-28  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56034         value of $(SYS_TIME_H).
56035         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56036         remove it conditionally, too. [added by Jim Meyering]
56037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56039         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56040         GETTIMEOFDAY_REPLACEMENT to 1.
56041
56042 2007-01-28  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56045         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56047         Set UNISTD_H instead of UNISTD_H2.
56048         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56049
56050 2007-01-28  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56053         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56054
56055 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56056
56057         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56058         (func_create_testdir): Ensure C locale for `grep' and `tr'
56059         character ranges.
56060         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56061         ACLOCAL_AMFLAGS parsing state machine.
56062
56063 2007-01-27  Bruno Haible  <bruno@clisp.org>
56064
56065         * modules/unistr/base: Update.
56066
56067 2007-01-27  Bruno Haible  <bruno@clisp.org>
56068
56069         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56070         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56071         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56072         modules/unistr/u32-mbtouc.
56073         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56074         * lib/unistr.h: Update.
56075         * lib/linebreak.c: Update.
56076         * modules/unistr/u32-mbtouc: Renamed from
56077         modules/unistr/u32-mbtouc-safe.
56078         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56079         * lib/unistr.h: Update.
56080         * lib/unistr/u32-to-u8.c: Update.
56081         * lib/unistr/u32-to-u16.c: Update.
56082
56083 2007-01-27  Bruno Haible  <bruno@clisp.org>
56084
56085         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56086         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56087         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56088         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56089         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56090         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56091         modules/unistr/u16-mbtouc.
56092         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56093         * lib/unistr.h: Update.
56094         * lib/linebreak.c: Update.
56095         * modules/linebreak: Update.
56096         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56097         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56098         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56099         * modules/unistr/u16-mbtouc: Renamed from
56100         modules/unistr/u16-mbtouc-safe.
56101         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56102         * lib/unistr.h: Update.
56103         * lib/unistr/u16-to-u8.c: Update.
56104         * modules/unistr/u16-to-u8: Update.
56105         * lib/unistr/u16-to-u32.c: Update.
56106         * modules/unistr/u16-to-u32: Update.
56107
56108 2007-01-27  Bruno Haible  <bruno@clisp.org>
56109
56110         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56111         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56112         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56113         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56114         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56115         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56116         modules/unistr/u8-mbtouc.
56117         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56118         * lib/unistr.h: Update.
56119         * lib/striconveh.c: Update.
56120         * modules/striconveh: Update.
56121         * lib/linebreak.c: Update.
56122         * modules/linebreak: Update.
56123         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56124         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56125         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56126         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56127         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56128         * lib/unistr.h: Update.
56129         * lib/striconveh.c: Update.
56130         * modules/striconveh: Update.
56131         * lib/unistr/u8-to-u16.c: Update.
56132         * modules/unistr/u8-to-u16: Update.
56133         * lib/unistr/u8-to-u32.c: Update.
56134         * modules/unistr/u8-to-u32: Update.
56135
56136 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56137
56138         Sync from Libtool.
56139         * lib/argz.c: Do not include strings.h nor memory.h, include
56140         string.h unconditionally.  Patch by Simon Josefsson.
56141
56142 2007-01-27  Bruno Haible  <bruno@clisp.org>
56143
56144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56145         from gl_HEADER_STRING_H_BODY.
56146         (gl_HEADER_STRING_H_BODY): Require it.
56147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56149         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56150         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56152         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56155         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56158         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56159         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56160         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56162
56163 2007-01-27  Bruno Haible  <bruno@clisp.org>
56164
56165         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56166         check_PROGRAMS into noinst_PROGRAMS.
56167         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56168         check_PROGRAMS in this case.
56169         (func_import): Set for_test to false.
56170         (func_create_testdir): Set for_test to true.
56171
56172 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56173             Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56176         (Depends-on): Add string.
56177         (Includes): Use <string.h> instead of strcasestr.h.
56178         * modules/string (Makefile.am): Also substitute the value of
56179         REPLACE_STRCASESTR.
56180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56181         assume strcasestr is declared in <string.h> not <strings.h>. Also
56182         set REPLACE_STRCASESTR.
56183         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56184         REPLACE_STRCASESTR.
56185         * lib/strcasestr.h: Remove file.
56186         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56187         * lib/string_.h (strcasestr): New declaration.
56188
56189 2007-01-27  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/string_.h: Use 'extern'.
56192
56193 2007-01-27  Jim Meyering  <jim@meyering.net>
56194
56195         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56196         of set-but-not-used local, "q".
56197
56198         * lib/mempcpy.c: Include <config.h> before <string.h>.
56199         This fixes a compilation error on HP-UX, due to the system's
56200         "restrict"-using mempcpy prototype.
56201
56202 2007-01-26  Bruno Haible  <bruno@clisp.org>
56203
56204         Small optimization.
56205         * lib/javacomp.c: Include c-strstr.h.
56206          (is_envjavac_gcj): Use c_strstr instead of strstr.
56207         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56208
56209 2007-01-26  Bruno Haible  <bruno@clisp.org>
56210
56211         * MODULES.html.sh (Unicode string functions): Add the new modules.
56212
56213         * modules/uniconv/u32-strconv-to-locale: New file.
56214         * lib/uniconv/u32-strconv-to-locale.c: New file.
56215
56216         * modules/uniconv/u16-strconv-to-locale: New file.
56217         * lib/uniconv/u16-strconv-to-locale.c: New file.
56218
56219         * modules/uniconv/u8-strconv-to-locale: New file.
56220         * lib/uniconv/u8-strconv-to-locale.c: New file.
56221
56222         * modules/uniconv/u32-strconv-from-locale: New file.
56223         * lib/uniconv/u32-strconv-from-locale.c: New file.
56224
56225         * modules/uniconv/u16-strconv-from-locale: New file.
56226         * lib/uniconv/u16-strconv-from-locale.c: New file.
56227
56228         * modules/uniconv/u8-strconv-from-locale: New file.
56229         * lib/uniconv/u8-strconv-from-locale.c: New file.
56230
56231         * modules/uniconv/u32-strconv-to-enc: New file.
56232         * lib/uniconv/u32-strconv-to-enc.c: New file.
56233         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56234         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56235
56236         * modules/uniconv/u16-strconv-to-enc: New file.
56237         * lib/uniconv/u16-strconv-to-enc.c: New file.
56238         * lib/uniconv/u-strconv-to-enc.h: New file.
56239         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56240         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56241
56242         * modules/uniconv/u8-strconv-to-enc: New file.
56243         * lib/uniconv/u8-strconv-to-enc.c: New file.
56244         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56245         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56246
56247         * modules/uniconv/u32-strconv-from-enc: New file.
56248         * lib/uniconv/u32-strconv-from-enc.c: New file.
56249         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56250         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56251
56252         * modules/uniconv/u16-strconv-from-enc: New file.
56253         * lib/uniconv/u16-strconv-from-enc.c: New file.
56254         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56255         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56256
56257         * modules/uniconv/u8-strconv-from-enc: New file.
56258         * lib/uniconv/u8-strconv-from-enc.c: New file.
56259         * lib/uniconv/u-strconv-from-enc.h: New file.
56260         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56261         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56262
56263         * modules/uniconv/u32-conv-from-enc: New file.
56264         * lib/uniconv/u32-conv-from-enc.c: New file.
56265         * modules/uniconv/u32-conv-from-enc-tests: New file.
56266         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56267
56268         * modules/uniconv/u16-conv-from-enc: New file.
56269         * lib/uniconv/u16-conv-from-enc.c: New file.
56270         * lib/uniconv/u-conv-from-enc.h: New file.
56271         * modules/uniconv/u16-conv-from-enc-tests: New file.
56272         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56273
56274         * modules/uniconv/u8-conv-from-enc: New file.
56275         * lib/uniconv/u8-conv-from-enc.c: New file.
56276         * modules/uniconv/u8-conv-from-enc-tests: New file.
56277         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56278
56279         * modules/uniconv/base: New file.
56280         * lib/uniconv.h: New file.
56281
56282 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56283
56284         * doc/gnulib-tool.texi (Initial import): Update to match current
56285         behavior with strdup module.
56286         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56287         * lib/memmem.h: Remove; all uses removed.  This is now done
56288         by <string.h>.
56289         * lib/mempcpy.h: Likewise.
56290         * lib/memrchr.h: Likewise.
56291         * lib/stpcpy.h: Likewise.
56292         * lib/stpncpy.h: Likewise.
56293         * lib/strcase.h: Likewise.
56294         * lib/strchrnul.h: Likewise.
56295         * lib/strdup.h: Likewise.
56296         * lib/strndup.h: Likewise.
56297         * lib/strnlen.h: Likewise.
56298         * lib/strpbrk.h: Likewise.
56299         * lib/strsep.h: Likewise.
56300         * lib/strstr.h: Likewise.
56301         * lib/strtok_r.h: Likewise.
56302         * lib/string_.h: New file.
56303         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56304         Rely on <string.h> instead.
56305         * lib/canon-host.c: Likewise.
56306         * lib/chdir-long.c: Likewise.
56307         * lib/concatpath.c: Likewise.
56308         * lib/exclude.c: Likewise.
56309         * lib/fchdir.c: Likewise.
56310         * lib/getaddrinfo.c: Likewise.
56311         * lib/getcwd.c: Likewise.
56312         * lib/getsubopt.c: Likewise.
56313         * lib/glob.c: Likewise.
56314         * lib/hard-locale.c: Likewise.
56315         * lib/iconvme.c: Likewise.
56316         * lib/javacomp.c: Likewise.
56317         * lib/mempcpy.c: Likewise.
56318         * lib/memrchr.c: Likewise.
56319         * lib/regex_internal.h: Likewise.
56320         * lib/stpncpy.c: Likewise.
56321         * lib/strcasecmp.c: Likewise.
56322         * lib/strchrnul.c: Likewise.
56323         * lib/strdup.c: Likewise.
56324         * lib/striconv.c: Likewise.
56325         * lib/striconveh.c: Likewise.
56326         * lib/striconveha.c: Likewise.
56327         * lib/strncasecmp.c: Likewise.
56328         * lib/strndup.c: Likewise.
56329         * lib/strnlen.c: Likewise.
56330         * lib/strsep.c: Likewise.
56331         * lib/strstr.c: Likewise.
56332         * lib/strtok_r.c: Likewise.
56333         * lib/userspec.c: Likewise.
56334         * lib/w32spawn.h: Likewise.
56335         * lib/xstrndup.c: Likewise.
56336         * lib/mountlist.c (strstr): Remove decl.
56337         * m4/string_h.m4: New file.
56338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56339         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56341         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56342         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56343         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56344         Set REPLACE_STRCASECMP if necessary.
56345         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56347         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56349         HAVE_DECL_STRDUP if necessary.
56350         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56351         since gl_FUNC_STRNDUP does that now.
56352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56353         Check for decl here...
56354         (gl_PREREQ_STRNLEN): ... not here.
56355         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56356         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56357         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56359         necessary.
56360         * modules/string: New file.
56361         * modules/memmem (Files): Remove special-purpose include file.
56362         (Depends-on): Add string.
56363         (Include): Include <string.h>, not the removed file.
56364         * modules/mempcpy: Likewise.
56365         * modules/memrchr: Likewise.
56366         * modules/stpcpy: Likewise.
56367         * modules/stpncpy: Likewise.
56368         * modules/strcase: Likewise.
56369         * modules/strchrnul: Likewise.
56370         * modules/strdup: Likewise.
56371         * modules/strndup: Likewise.
56372         * modules/strnlen: Likewise.
56373         * modules/strpbrk: Likewise.
56374         * modules/strsep: Likewise.
56375         * modules/strstr: Likewise.
56376         * modules/strtok_r: Likewise.
56377         * tests/test-dirname.c: Don't include "strdup.h", since
56378         <string.h> now suffices.
56379         * tests/test-memmem.c: Don't include "memmem.h", since
56380         <string.h> now suffices.
56381
56382 2007-01-25  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56385         *resultp is 0.
56386
56387         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56388         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56389         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56390         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56391
56392         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56393         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56394         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56395         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56396         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56397         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56398
56399 2007-01-24  Bruno Haible  <bruno@clisp.org>
56400
56401         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56403         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56404         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56405         gl_FUNC_FTS_CORE.
56406         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56407         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56408         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56409         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56410         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56411         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56412         gl_FUNC_FCHOWNAT.
56413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56414         gl_FUNC_STRFTIME.
56415         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56416         Reported by Ralf Wildenhues.
56417
56418 2007-01-24  Bruno Haible  <bruno@clisp.org>
56419
56420         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56421         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56422         gl_GETADDRINFO.
56423         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56424         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56425         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56426
56427 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56430         Don't use 'exit'; just return from 'main'.
56431         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56432
56433         * lib/fnmatch_.h: Readjust white space and comments to match
56434         glibc, to avoid spurious diffs.
56435
56436 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56439         2004-12-01 change by Jakub Jelinek, since this code won't compile
56440         if !LIBC.  Problem reported by Bob Proulx.
56441
56442 2007-01-23  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/striconveh.c: Include c-strcaseeq.h.
56445         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56446         * modules/striconveh (Depends-on): Add c-strcaseeq.
56447
56448 2007-01-23  Bruno Haible  <bruno@clisp.org>
56449
56450         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56451
56452         * modules/c-strcaseeq: New file.
56453         * lib/c-strcaseeq.h: New file.
56454
56455         * modules/streq: New file.
56456         * lib/streq.h: New file.
56457
56458 2007-01-23  Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/striconveha-tests: New file.
56461         * tests/test-striconveha.c: New file.
56462
56463         * lib/striconveha.h: Include <stdbool.h>.
56464         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56465         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56466         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56467         (mem_iconveha): New function.
56468         (str_iconveha_notranslit): Renamed from str_iconveha.
56469         (str_iconveha): New function.
56470         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56471         c-strcase.
56472
56473 2007-01-23  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56476         encodings without forgiving before trying any encoding with handler.
56477         (str_iconveha): Try all encodings without forgiving before trying any
56478         encoding with handler.
56479
56480 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56481
56482         Import the following changes from libc.
56483
56484         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56485
56486         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56487
56488         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56489
56490         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56491         normal_bracket label.
56492
56493         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56494
56495         [BZ #361]
56496         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56497         to normal_bracket after fetching the next character.
56498
56499 2007-01-22  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56502         argument.
56503         * lib/striconveh.c (iconv_carefully_1): New function.
56504         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56505         argument.
56506         (str_cd_iconveh): Update.
56507         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56508         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56509         * tests/test-striconveh.c (MAGIC): New macro.
56510         (new_offsets): New function.
56511         (main): Test call with and without offsets.
56512
56513 2007-01-22  Bruno Haible  <bruno@clisp.org>
56514
56515         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56516         * modules/sys_select (Makefile.am): Likewise.
56517         * modules/sys_socket (Makefile.am): Likewise.
56518         * modules/sys_time (Makefile.am): Likewise.
56519
56520 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56521
56522         * modules/gettimeofday (License): Change from GPL to LGPL, since
56523         gettimeofday is a library function.
56524
56525 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56526
56527         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56528
56529 2007-01-21  Bruno Haible  <bruno@clisp.org>
56530
56531         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56532
56533 2007-01-21  Bruno Haible  <bruno@clisp.org>
56534
56535         * modules/striconveha: New file.
56536         * lib/striconveha.h: New file.
56537         * lib/striconveha.c: New file.
56538         * MODULES.html.sh (Internationalization functions): Add striconveha.
56539         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56540         string.
56541         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56542
56543 2007-01-21  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56546         * lib/striconveh.c (str_iconveh): Likewise.
56547
56548 2007-01-21  Bruno Haible  <bruno@clisp.org>
56549
56550         * lib/striconveh.h (mem_iconveh): New declaration.
56551         * lib/striconveh.c (mem_iconveh): New function.
56552         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56553
56554 2007-01-21  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56557
56558         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56559         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56560         original result buffer.
56561         (str_cd_iconveh): Update.
56562         * tests/test-striconveh.c (main): Update.
56563
56564         * lib/striconv.h (mem_cd_iconv): Change specification.
56565         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56566         result buffer.
56567         (str_cd_iconv): Update.
56568         * tests/test-striconv.c (main): Update.
56569
56570 2007-01-21  Bruno Haible  <bruno@clisp.org>
56571
56572         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56573
56574 2007-01-20  Jim Meyering  <jim@meyering.net>
56575
56576         * lib/userspec.c (parse_with_separator): If a user or group string
56577         starts with "+", skip the corresponding name-to-ID look-up, since
56578         such a look-up must fail: user and group names may not include "+".
56579
56580 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56583         since we now assume the sys_time module.
56584         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56585         check for sys/time.h; no longer needed.
56586         * modules/poll (Depends-on): Depend on sys_time.
56587
56588 2007-01-18  Bruno Haible  <bruno@clisp.org>
56589
56590         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56592
56593         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56594         gettimeofday.
56595
56596         * tests/test-gettimeofday.c: Include <time.h>.
56597         (dummy): Remove variable.
56598
56599         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56600         gl_HEADER_SYS_TIME_H.
56601         (gl_HEADER_SYS_TIME_H): New macro.
56602
56603         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56604         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56605         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56606         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56607         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56608         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56609         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56610         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56611         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56612         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56613         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56614
56615         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56616         last change; it caused a compilation error when cross-compiling to
56617         Cygwin.
56618
56619 2007-01-18  Jim Meyering  <jim@meyering.net>
56620
56621         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56622         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56623         than the race-prone "test -d sys || mkdir sys".
56624         (configure.ac): Use AC_PROG_MKDIR_P.
56625         * modules/sys_select: Likewise.
56626         * modules/sys_socket: Likewise.
56627         * modules/sys_time: Likewise.
56628
56629 2007-01-18  Eric Blake  <ebb9@byu.net>
56630
56631         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56632         replace gettimeofday.
56633         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56634         name, to avoid infinite recursion.
56635
56636 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56639         module sys_time.
56640         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56641         assume timespec.h defines struct timeval.
56642         * lib/settime.c: Likewise.
56643         * lib/utimens.c: Likewise.
56644         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56645         since we now assume the gettimeofday module.
56646         * lib/tempname.c (__gen_tempname): Likewise.
56647         * lib/gettimeofday.h: Remove.
56648         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56649         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56650         Include <time.h>, for 'time()'.
56651         (localtime_buffer_addr): Also use this workaround if
56652         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56653         to simplify the uses.  All uses changed.
56654         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56655         that #undef is inside {}, and 'const' follows type name consistently.
56656         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56657         (gettimeofday): Do not use the maximum possible value for
56658         tv->tv_usec, since that might break usages other than ls.c.
56659         Instead, we'll leave ls.c alone.  This undoes today's patch
56660         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56661         we've never observed the problem but might as well keep the
56662         canary.
56663         * lib/nanosleep.c: Include timespec.h first, for interface check.
56664         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56665         now assume the sys_time module.
56666         * lib/tempname.c: Likewise.
56667         * lib/timespec.h: Likewise.
56668         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56669         needed.
56670         * lib/strftime.c: Likewise.
56671         * lib/timespec.h: Likewise.
56672         * lib/posixtm.c: Include posixtm.h first, for interface check.
56673         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56674         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56675         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56676         * lib/sys_time_.h: New file.
56677         * lib/timespec.h (struct timespec): Use long int, not long.
56678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56679         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56680         Remove obsolescent call to AC_HEADER_TIME.
56681         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56683         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56684         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56685         Likewise.
56686         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56687         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56688         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56689         into the sys_time module.  Check for gettimeofday just once.
56690         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56691         for gettimeofday signature to just check the signature.  Merely
56692         compile it, since linking doesn't test signature.  Improve test for
56693         whether gettimeofday.o is actually needed.
56694         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56695         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56696         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56697         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56698         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56699         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56700         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56701         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56702         than worrying about sys/time.h.
56703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56704         Don't bother worrying about TIME_WITH_SYS_TIME.
56705         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56706         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56707         * m4/sys_time_h.m4: New file.
56708         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56709         Don't include sys/time.h.  Return from main rather than exiting.
56710         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56711         all uses changed.
56712         * modules/gethrxtime (Depends-on): Add sys_time.
56713         * modules/gettime (Depends-on): Likewise.
56714         * modules/gettimeofday (Depends-on): Likewise.
56715         * modules/nanosleep (Depends-on): Likewise.
56716         * modules/settime (Depends-on): Likewise.
56717         * modules/tempname (Depends-on): Likewise.
56718         * modules/utimens (Depends-on): Likewise.
56719         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56720         (Include): Change back to <sys/time.h>.
56721         (Maintainer): Add self.
56722         * modules/sys_time: New file.
56723         * modules/tempname (Depends-on): Add gettimeofday.
56724         * tests/test-gettimeofday.c: Include <sys/time.h>
56725         rather than gettimeofday.h.
56726
56727 2007-01-17  Bruno Haible  <bruno@clisp.org>
56728
56729         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56730         the license default to GPL.
56731         (func_create_testdir): Don't complain if a module is LGPL and its
56732         tests module depends on GPLed modules.
56733
56734 2007-01-17  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/gettimeofday.c (gettimeofday): Add code for the case
56737         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56738         maximum possible value for tv->tv_usec, rather than the minimum one.
56739
56740 2005-10-08  Martin Lambers  <marlam@marlam.de>
56741 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56742 2007-01-16  Bruno Haible  <bruno@clisp.org>
56743
56744         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56745         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56746         gl_FUNC_GETTIMEOFDAY.
56747         (Include): Add gettimeofday.h.
56748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56749         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56750         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56751         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56752         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56753         * lib/gettimeofday.h: New file.
56754         * lib/gettimeofday.c: Include <sys/timeb.h>.
56755         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56756         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56757         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56758         fall back on time().
56759
56760         * tests/test-gettimeofday.c: New file.
56761         * modules/gettimeofday-tests: New file.
56762
56763 2007-01-16  Eric Blake  <ebb9@byu.net>
56764
56765         * modules/fnmatch (Depends-on): Depend on wchar.
56766         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56767         * m4/fnmatch.m4: Likewise.
56768         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56769         * m4/mbchar.m4: Likewise.
56770         * modules/mbswidth (Depends-on): Depend on wchar.
56771         * lib/mbswidth.c: Assume <wchar.h>.
56772         * m4/mbswidth.m4: Likewise.
56773         * modules/quotearg (Depends-on): Depend on wchar.
56774         * lib/quotearg.c: Assume <wchar.h>.
56775         * m4/quotearg.m4: Likewise.
56776         * modules/regex (Depends-on): Depend on wchar.
56777         * lib/regex_internal.h: Assume <wchar.h>.
56778         * m4/regex.m4: Likewise.
56779         * modules/stdint (Depends-on): Depend on wchar.
56780         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56781         * m4/stdint.m4: Likewise.
56782         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56783         * modules/strftime (Depends-on): Depend on wchar.
56784         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56785         * modules/strtol (Depends-on): Depend on wchar.
56786         * lib/strtol.c: Assume <wchar.h>.
56787         * modules/wcwidth (Depends-on): Depend on wchar.
56788         * lib/wcwidth.h: Assume <wchar.h>.
56789         * m4/wcwidth.m4: Likewise.
56790
56791 2007-01-16  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/csharpexec-script: New, created from...
56794         * modules/csharpexec: ... this.
56795
56796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56797
56798         * modules/javaexec-script: New, created from...
56799         * modules/javaexec: ... this.
56800
56801 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56802
56803         * modules/poll (Dependencies): Add sys_select.
56804
56805 2007-01-15  Jim Meyering  <jim@meyering.net>
56806
56807         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56808         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56809         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56810         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56811
56812 2007-01-15  Bruno Haible  <bruno@clisp.org>
56813
56814         * modules/striconveh: New file.
56815         * lib/striconveh.h: New file.
56816         * lib/striconveh.c: New file.
56817         * MODULES.html.sh (Internationalization functions): Add striconveh.
56818
56819         * modules/striconveh-tests: New file.
56820         * tests/test-striconveh.c: New file.
56821
56822 2007-01-15  Bruno Haible  <bruno@clisp.org>
56823
56824         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56825         not from GNU libiconv or GNU libc.
56826
56827 2007-01-15  Bruno Haible  <bruno@clisp.org>
56828
56829         * doc/gnulib-intro.texi (Copyright): Explain the different license
56830         terms for module descriptions, autoconf macros, tests, documentation.
56831
56832 2007-01-14  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/striconv-tests: New file.
56835         * tests/test-striconv.c: New file.
56836
56837 2007-01-14  Bruno Haible  <bruno@clisp.org>
56838
56839         * modules/iconv-tests: New file.
56840         * tests/test-iconv.c: New file.
56841
56842 2007-01-14  Bruno Haible  <bruno@clisp.org>
56843
56844         * gnulib-tool (func_get_license): For test modules, use the license of
56845         the main module.
56846
56847 2007-01-14  Bruno Haible  <bruno@clisp.org>
56848
56849         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56850         if iconv is found to exist.
56851
56852 2007-01-14  Bruno Haible  <bruno@clisp.org>
56853
56854         * modules/c-ctype-tests: New file.
56855         * tests/test-c-ctype.c: New file.
56856
56857 2007-01-14  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/binary-io-tests: New file.
56860         * tests/test-binary-io.sh: New file.
56861         * tests/test-binary-io.c: New file.
56862
56863 2007-01-14  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/array-oset-tests: New file.
56866         * tests/test-array_oset.c: New file.
56867
56868 2007-01-14  Bruno Haible  <bruno@clisp.org>
56869
56870         * modules/array-list-tests: New file.
56871         * tests/test-array_list.c: New file.
56872
56873 2007-01-14  Bruno Haible  <bruno@clisp.org>
56874
56875         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56876         and make.
56877         Reported by Simon Josefsson in
56878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56879
56880 2007-01-14  Bruno Haible  <bruno@clisp.org>
56881
56882         * modules/allocsa-tests: New file.
56883         * tests/test-allocsa.c: New file.
56884
56885 2007-01-14  Bruno Haible  <bruno@clisp.org>
56886
56887         * modules/fchdir (Depends-on): Add absolute-header.
56888         * modules/unistd (Depends-on): Likewise.
56889
56890 2006-12-30  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/fchdir: New file.
56893         * modules/unistd (Files): Add lib/unistd_.h.
56894         (Makefile.am): Generate unistd.h from unistd_.h.
56895         * lib/fchdir.c: New file.
56896         * lib/dirent_.h: New file.
56897         * lib/unistd_.h: New file.
56898         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56899         * m4/fchdir.m4: New file.
56900         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56901         (gl_HEADER_UNISTD): Invoke it.
56902         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56903         function.
56904         * lib/backupfile.c (opendir, closedir): Undefine.
56905         * lib/chown.c (open, close): Undefine.
56906         * lib/clean-temp.c (open, close): Undefine.
56907         * lib/copy-file.c (open, close): Undefine.
56908         * lib/execute.c (open, close): Undefine.
56909         * lib/fsusage.c (open, close): Undefine.
56910         * lib/gc-gnulib.c (open, close): Undefine.
56911         * lib/getcwd.c (opendir, closedir): Undefine.
56912         * lib/glob.c (opendir, closedir): Undefine.
56913         * lib/javacomp.c (open, close): Undefine.
56914         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56915         * lib/openat-proc.c (open, close): Undefine.
56916         * lib/pagealign_alloc.c (open, close): Undefine.
56917         * lib/pipe.c (open, close): Undefine.
56918         * lib/progreloc.c (open, close): Undefine.
56919         * lib/savedir.c (opendir, closedir): Undefine.
56920         * lib/utime.c (open, close): Undefine.
56921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56922
56923 2007-01-10  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56926
56927 2007-01-12  Eric Blake  <ebb9@byu.net>
56928
56929         Provide a robust <wchar.h>.  Further simplifications are now
56930         possible in other modules, but not included here.
56931         * modules/wchar: New module.
56932         * m4/wchar.m4: New file.
56933         * lib/wchar_.h: Likewise.
56934         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56935         of the new module.
56936         * MODULES.html.sh (Extended multibyte and wide character utilities):
56937         New section.
56938
56939 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56940
56941         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56942         to a reasonable default for memory allocation.
56943         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56944         file system that reports garbage st_size values for symlinks.
56945         Problem reported by Liyang Hu.
56946
56947 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56948
56949         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56950         Emacs .#* auto-save files).
56951
56952 2007-01-11  Bruno Haible  <bruno@clisp.org>
56953
56954         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56955         directory.
56956
56957 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         Use @...@ consistently in lib/wctype_.h.
56960         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56961         on it being set to 1 or 0.
56962         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56963         go back to AC_SUBSTing it.
56964         * modules/wctype (Makefile.am): Undo previous change.
56965
56966 2007-01-10  Eric Blake  <ebb9@byu.net>
56967
56968         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56969         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56970         * modules/wctype (Makefile.am): Likewise.
56971         Reported by Chris McGuire.
56972
56973 2007-01-10  Jim Meyering  <jim@meyering.net>
56974
56975         fts.c: a small readability/maintainability improvement
56976         * lib/fts.c (fts_read): Make this code slightly more readable and
56977         maintainable by hoisting the "sp->fts_cur = p" assignments to
56978         immediately follow the statements that set P.  Derived from
56979         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56980
56981 2007-01-10  Eric Blake  <ebb9@byu.net>
56982
56983         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56984         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56986         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56987         Reported by Chris McGuire.
56988
56989 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56990
56991         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56992         in sed script.
56993
56994 2007-01-09  Bruno Haible  <bruno@clisp.org>
56995
56996         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56997         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56998         variables.
56999         (func_module): Use them.
57000
57001 2007-01-09  Bruno Haible  <bruno@clisp.org>
57002
57003         * modules/unistr/base: New file.
57004         * lib/unistr.h: New file.
57005
57006         * modules/unistr/u8-to-u16: New file.
57007         * lib/unistr/u8-to-u16.c: New file.
57008
57009         * modules/unistr/u8-to-u32: New file.
57010         * lib/unistr/u8-to-u32.c: New file.
57011
57012         * modules/unistr/u16-to-u8: New file.
57013         * lib/unistr/u16-to-u8.c: New file.
57014
57015         * modules/unistr/u16-to-u32: New file.
57016         * lib/unistr/u16-to-u32.c: New file.
57017
57018         * modules/unistr/u32-to-u8: New file.
57019         * lib/unistr/u32-to-u8.c: New file.
57020
57021         * modules/unistr/u32-to-u16: New file.
57022         * lib/unistr/u32-to-u16.c: New file.
57023
57024         * modules/unistr/u8-check: New file.
57025         * modules/unistr/u16-check: New file.
57026         * modules/unistr/u32-check: New file.
57027         * lib/unistr/u8-check.c: New file.
57028         * lib/unistr/u16-check.c: New file.
57029         * lib/unistr/u32-check.c: New file.
57030
57031         * modules/unistr/u8-chr: New file.
57032         * modules/unistr/u16-chr: New file.
57033         * modules/unistr/u32-chr: New file.
57034         * lib/unistr/u8-chr.c: New file.
57035         * lib/unistr/u16-chr.c: New file.
57036         * lib/unistr/u32-chr.c: New file.
57037
57038         * modules/unistr/u8-cmp: New file.
57039         * modules/unistr/u16-cmp: New file.
57040         * modules/unistr/u32-cmp: New file.
57041         * lib/unistr/u8-cmp.c: New file.
57042         * lib/unistr/u16-cmp.c: New file.
57043         * lib/unistr/u32-cmp.c: New file.
57044
57045         * modules/unistr/u8-cpy: New file.
57046         * modules/unistr/u16-cpy: New file.
57047         * modules/unistr/u32-cpy: New file.
57048         * lib/unistr/u8-cpy.c: New file.
57049         * lib/unistr/u16-cpy.c: New file.
57050         * lib/unistr/u32-cpy.c: New file.
57051         * lib/unistr/u-cpy.h: New file.
57052
57053         * modules/unistr/u8-cpy-alloc: New file.
57054         * modules/unistr/u16-cpy-alloc: New file.
57055         * modules/unistr/u32-cpy-alloc: New file.
57056         * lib/unistr/u8-cpy-alloc.c: New file.
57057         * lib/unistr/u16-cpy-alloc.c: New file.
57058         * lib/unistr/u32-cpy-alloc.c: New file.
57059         * lib/unistr/u-cpy-alloc.h: New file.
57060
57061         * modules/unistr/u8-endswith: New file.
57062         * modules/unistr/u16-endswith: New file.
57063         * modules/unistr/u32-endswith: New file.
57064         * lib/unistr/u8-endswith.c: New file.
57065         * lib/unistr/u16-endswith.c: New file.
57066         * lib/unistr/u32-endswith.c: New file.
57067         * lib/unistr/u-endswith.h: New file.
57068
57069         * modules/unistr/u8-mblen: New file.
57070         * modules/unistr/u16-mblen: New file.
57071         * modules/unistr/u32-mblen: New file.
57072         * lib/unistr/u8-mblen.c: New file.
57073         * lib/unistr/u16-mblen.c: New file.
57074         * lib/unistr/u32-mblen.c: New file.
57075
57076         * modules/unistr/u8-mbtouc: New file.
57077         * modules/unistr/u16-mbtouc: New file.
57078         * modules/unistr/u32-mbtouc: New file.
57079         * lib/unistr/u8-mbtouc.c: New file.
57080         * lib/unistr/u16-mbtouc.c: New file.
57081         * lib/unistr/u32-mbtouc.c: New file.
57082
57083         * modules/unistr/u8-mbtouc-safe: New file.
57084         * modules/unistr/u16-mbtouc-safe: New file.
57085         * modules/unistr/u32-mbtouc-safe: New file.
57086         * lib/unistr/u8-mbtouc-safe.c: New file.
57087         * lib/unistr/u16-mbtouc-safe.c: New file.
57088         * lib/unistr/u32-mbtouc-safe.c: New file.
57089
57090         * modules/unistr/u8-move: New file.
57091         * modules/unistr/u16-move: New file.
57092         * modules/unistr/u32-move: New file.
57093         * lib/unistr/u8-move.c: New file.
57094         * lib/unistr/u16-move.c: New file.
57095         * lib/unistr/u32-move.c: New file.
57096         * lib/unistr/u-move.h: New file.
57097
57098         * modules/unistr/u8-next: New file.
57099         * modules/unistr/u16-next: New file.
57100         * modules/unistr/u32-next: New file.
57101         * lib/unistr/u8-next.c: New file.
57102         * lib/unistr/u16-next.c: New file.
57103         * lib/unistr/u32-next.c: New file.
57104
57105         * modules/unistr/u8-prev: New file.
57106         * modules/unistr/u16-prev: New file.
57107         * modules/unistr/u32-prev: New file.
57108         * lib/unistr/u8-prev.c: New file.
57109         * lib/unistr/u16-prev.c: New file.
57110         * lib/unistr/u32-prev.c: New file.
57111
57112         * modules/unistr/u8-set: New file.
57113         * modules/unistr/u16-set: New file.
57114         * modules/unistr/u32-set: New file.
57115         * lib/unistr/u8-set.c: New file.
57116         * lib/unistr/u16-set.c: New file.
57117         * lib/unistr/u32-set.c: New file.
57118         * lib/unistr/u-set.h: New file.
57119
57120         * modules/unistr/u8-startswith: New file.
57121         * modules/unistr/u16-startswith: New file.
57122         * modules/unistr/u32-startswith: New file.
57123         * lib/unistr/u8-startswith.c: New file.
57124         * lib/unistr/u16-startswith.c: New file.
57125         * lib/unistr/u32-startswith.c: New file.
57126         * lib/unistr/u-startswith.h: New file.
57127
57128         * modules/unistr/u8-stpcpy: New file.
57129         * modules/unistr/u16-stpcpy: New file.
57130         * modules/unistr/u32-stpcpy: New file.
57131         * lib/unistr/u8-stpcpy.c: New file.
57132         * lib/unistr/u16-stpcpy.c: New file.
57133         * lib/unistr/u32-stpcpy.c: New file.
57134         * lib/unistr/u-stpcpy.h: New file.
57135
57136         * modules/unistr/u8-stpncpy: New file.
57137         * modules/unistr/u16-stpncpy: New file.
57138         * modules/unistr/u32-stpncpy: New file.
57139         * lib/unistr/u8-stpncpy.c: New file.
57140         * lib/unistr/u16-stpncpy.c: New file.
57141         * lib/unistr/u32-stpncpy.c: New file.
57142         * lib/unistr/u-stpncpy.h: New file.
57143
57144         * modules/unistr/u8-strcat: New file.
57145         * modules/unistr/u16-strcat: New file.
57146         * modules/unistr/u32-strcat: New file.
57147         * lib/unistr/u8-strcat.c: New file.
57148         * lib/unistr/u16-strcat.c: New file.
57149         * lib/unistr/u32-strcat.c: New file.
57150         * lib/unistr/u-strcat.h: New file.
57151
57152         * modules/unistr/u8-strchr: New file.
57153         * modules/unistr/u16-strchr: New file.
57154         * modules/unistr/u32-strchr: New file.
57155         * lib/unistr/u8-strchr.c: New file.
57156         * lib/unistr/u16-strchr.c: New file.
57157         * lib/unistr/u32-strchr.c: New file.
57158
57159         * modules/unistr/u8-strcmp: New file.
57160         * modules/unistr/u16-strcmp: New file.
57161         * modules/unistr/u32-strcmp: New file.
57162         * lib/unistr/u8-strcmp.c: New file.
57163         * lib/unistr/u16-strcmp.c: New file.
57164         * lib/unistr/u32-strcmp.c: New file.
57165
57166         * modules/unistr/u8-strcpy: New file.
57167         * modules/unistr/u16-strcpy: New file.
57168         * modules/unistr/u32-strcpy: New file.
57169         * lib/unistr/u8-strcpy.c: New file.
57170         * lib/unistr/u16-strcpy.c: New file.
57171         * lib/unistr/u32-strcpy.c: New file.
57172         * lib/unistr/u-strcpy.h: New file.
57173
57174         * modules/unistr/u8-strcspn: New file.
57175         * modules/unistr/u16-strcspn: New file.
57176         * modules/unistr/u32-strcspn: New file.
57177         * lib/unistr/u8-strcspn.c: New file.
57178         * lib/unistr/u16-strcspn.c: New file.
57179         * lib/unistr/u32-strcspn.c: New file.
57180         * lib/unistr/u-strcspn.h: New file.
57181
57182         * modules/unistr/u8-strdup: New file.
57183         * modules/unistr/u16-strdup: New file.
57184         * modules/unistr/u32-strdup: New file.
57185         * lib/unistr/u8-strdup.c: New file.
57186         * lib/unistr/u16-strdup.c: New file.
57187         * lib/unistr/u32-strdup.c: New file.
57188         * lib/unistr/u-strdup.h: New file.
57189
57190         * modules/unistr/u8-strlen: New file.
57191         * modules/unistr/u16-strlen: New file.
57192         * modules/unistr/u32-strlen: New file.
57193         * lib/unistr/u8-strlen.c: New file.
57194         * lib/unistr/u16-strlen.c: New file.
57195         * lib/unistr/u32-strlen.c: New file.
57196         * lib/unistr/u-strlen.h: New file.
57197
57198         * modules/unistr/u8-strmblen: New file.
57199         * modules/unistr/u16-strmblen: New file.
57200         * modules/unistr/u32-strmblen: New file.
57201         * lib/unistr/u8-strmblen.c: New file.
57202         * lib/unistr/u16-strmblen.c: New file.
57203         * lib/unistr/u32-strmblen.c: New file.
57204
57205         * modules/unistr/u8-strmbtouc: New file.
57206         * modules/unistr/u16-strmbtouc: New file.
57207         * modules/unistr/u32-strmbtouc: New file.
57208         * lib/unistr/u8-strmbtouc.c: New file.
57209         * lib/unistr/u16-strmbtouc.c: New file.
57210         * lib/unistr/u32-strmbtouc.c: New file.
57211
57212         * modules/unistr/u8-strncat: New file.
57213         * modules/unistr/u16-strncat: New file.
57214         * modules/unistr/u32-strncat: New file.
57215         * lib/unistr/u8-strncat.c: New file.
57216         * lib/unistr/u16-strncat.c: New file.
57217         * lib/unistr/u32-strncat.c: New file.
57218         * lib/unistr/u-strncat.h: New file.
57219
57220         * modules/unistr/u8-strncmp: New file.
57221         * modules/unistr/u16-strncmp: New file.
57222         * modules/unistr/u32-strncmp: New file.
57223         * lib/unistr/u8-strncmp.c: New file.
57224         * lib/unistr/u16-strncmp.c: New file.
57225         * lib/unistr/u32-strncmp.c: New file.
57226
57227         * modules/unistr/u8-strncpy: New file.
57228         * modules/unistr/u16-strncpy: New file.
57229         * modules/unistr/u32-strncpy: New file.
57230         * lib/unistr/u8-strncpy.c: New file.
57231         * lib/unistr/u16-strncpy.c: New file.
57232         * lib/unistr/u32-strncpy.c: New file.
57233         * lib/unistr/u-strncpy.h: New file.
57234
57235         * modules/unistr/u8-strnlen: New file.
57236         * modules/unistr/u16-strnlen: New file.
57237         * modules/unistr/u32-strnlen: New file.
57238         * lib/unistr/u8-strnlen.c: New file.
57239         * lib/unistr/u16-strnlen.c: New file.
57240         * lib/unistr/u32-strnlen.c: New file.
57241         * lib/unistr/u-strnlen.h: New file.
57242
57243         * modules/unistr/u8-strpbrk: New file.
57244         * modules/unistr/u16-strpbrk: New file.
57245         * modules/unistr/u32-strpbrk: New file.
57246         * lib/unistr/u8-strpbrk.c: New file.
57247         * lib/unistr/u16-strpbrk.c: New file.
57248         * lib/unistr/u32-strpbrk.c: New file.
57249         * lib/unistr/u-strpbrk.h: New file.
57250
57251         * modules/unistr/u8-strrchr: New file.
57252         * modules/unistr/u16-strrchr: New file.
57253         * modules/unistr/u32-strrchr: New file.
57254         * lib/unistr/u8-strrchr.c: New file.
57255         * lib/unistr/u16-strrchr.c: New file.
57256         * lib/unistr/u32-strrchr.c: New file.
57257
57258         * modules/unistr/u8-strspn: New file.
57259         * modules/unistr/u16-strspn: New file.
57260         * modules/unistr/u32-strspn: New file.
57261         * lib/unistr/u8-strspn.c: New file.
57262         * lib/unistr/u16-strspn.c: New file.
57263         * lib/unistr/u32-strspn.c: New file.
57264         * lib/unistr/u-strspn.h: New file.
57265
57266         * modules/unistr/u8-strstr: New file.
57267         * modules/unistr/u16-strstr: New file.
57268         * modules/unistr/u32-strstr: New file.
57269         * lib/unistr/u8-strstr.c: New file.
57270         * lib/unistr/u16-strstr.c: New file.
57271         * lib/unistr/u32-strstr.c: New file.
57272         * lib/unistr/u-strstr.h: New file.
57273
57274         * modules/unistr/u8-strtok: New file.
57275         * modules/unistr/u16-strtok: New file.
57276         * modules/unistr/u32-strtok: New file.
57277         * lib/unistr/u8-strtok.c: New file.
57278         * lib/unistr/u16-strtok.c: New file.
57279         * lib/unistr/u32-strtok.c: New file.
57280         * lib/unistr/u-strtok.h: New file.
57281
57282         * modules/unistr/u8-uctomb: New file.
57283         * modules/unistr/u16-uctomb: New file.
57284         * modules/unistr/u32-uctomb: New file.
57285         * lib/unistr/u8-uctomb.c: New file.
57286         * lib/unistr/u16-uctomb.c: New file.
57287         * lib/unistr/u32-uctomb.c: New file.
57288
57289         * MODULES.html.sh (Unicode string functions): Add the new modules.
57290
57291 2007-01-08  Bruno Haible  <bruno@clisp.org>
57292
57293         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57294         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57295         subdirectories.
57296
57297 2007-01-08  Karl Berry  <karl@gnu.org>
57298
57299         * doc/error.texi: mention that main() fns must set program_name
57300         when progname is used.
57301
57302 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57305         WCTYPE_H is empty, for the benefit of builds from non-distclean
57306         directories.  Problem reported by Eric Blake in
57307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57308
57309 2007-01-08  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57312         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57313         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57314         PROVIDE_CANONICALIZE_FILENAME_MODE.
57315         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57316
57317 2007-01-08  Bruno Haible  <bruno@clisp.org>
57318
57319         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57320         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57321         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57322         * lib/fts.c: Likewise.
57323         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57324
57325 2006-12-25  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/utf8-ucs4-safe: New file.
57328         * lib/utf8-ucs4-safe.h: New file.
57329         * lib/unistr/utf8-ucs4-safe.c: New file.
57330
57331         * modules/utf16-ucs4-safe: New file.
57332         * lib/utf16-ucs4-safe.h: New file.
57333         * lib/unistr/utf16-ucs4-safe.c: New file.
57334
57335         * MODULES.html.sh (Unicode string functions): Add the new modules.
57336
57337 2007-01-08  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57340         (Depends-on): Add unitypes.
57341         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57342         (u8_mbtouc_aux): Move out to separate file.
57343         (u8_mbtouc): Use ucs4_t, uint8_t types.
57344         * lib/unistr/utf8-ucs4.c: New file.
57345
57346         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57347         (Depends-on): Add unitypes.
57348         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57349         (u16_mbtouc_aux): Move out to separate file.
57350         (u16_mbtouc): Use ucs4_t, uint16_t types.
57351         * lib/unistr/utf16-ucs4.c: New file.
57352
57353         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57354         (Depends-on): Add unitypes.
57355         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57356         (u8_uctomb_aux): Move out to separate file.
57357         (u8_uctomb): Use ucs4_t, uint8_t types.
57358         * lib/unistr/ucs4-utf8.c: New file.
57359
57360         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57361         (Depends-on): Add unitypes.
57362         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57363         (u16_uctomb_aux): Move out to separate file.
57364         (u16_uctomb): Use ucs4_t, uint16_t types.
57365         * lib/unistr/ucs4-utf16.c: New file.
57366
57367 2006-12-25  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/unitypes: New file.
57370         * lib/unitypes.h: New file.
57371         * MODULES.html.sh (func_all_modules): New section "Unicode string
57372         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57373         this section. Add unitypes.
57374
57375 2007-01-08  Bruno Haible  <bruno@clisp.org>
57376
57377         Avoid variable names that conflict with those from libtool.
57378         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57379         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57380         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57381         library_names_spec to acl_library_names_spec, hardcode_* to
57382         acl_hardcode_*.
57383         Reported by Ralf Wildenhues.
57384
57385 2007-01-08  Bruno Haible  <bruno@clisp.org>
57386
57387         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57388         definition.
57389         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57390         definition.
57391         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57392         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57393         definition.
57394         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57395         definition.
57396         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57397         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57398         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57399         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57400         definition.
57401         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57402         definition.
57403         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57404         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57405         GC_USE_<algorithm>.
57406         * lib/gc-libgcrypt.c: Likewise.
57407         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57408         * modules/gc-arctwo (configure.ac): Likewise.
57409         * modules/gc-des (configure.ac): Likewise.
57410         * modules/gc-hmac-md5 (configure.ac): Likewise.
57411         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57412         * modules/gc-md2 (configure.ac): Likewise.
57413         * modules/gc-md4 (configure.ac): Likewise.
57414         * modules/gc-md5 (configure.ac): Likewise.
57415         * modules/gc-random (configure.ac): Likewise.
57416         * modules/gc-rijndael (configure.ac): Likewise.
57417         * modules/gc-sha1 (configure.ac): Likewise.
57418
57419 2007-01-08  Bruno Haible  <bruno@clisp.org>
57420
57421         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57422         macro definition.
57423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57424         definition.
57425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57426         definition.
57427         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57428         * modules/fcntl-safer (configure.ac): Likewise.
57429         * modules/fopen-safer (configure.ac): Likewise.
57430         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57431         GNULIB_FWRITEERROR macro definition.
57432
57433 2007-01-08  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/gnulib-common.m4: New file.
57436         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57437         (func_get_filelist): Add m4/gnulib-common.m4.
57438
57439 2007-01-08  Bruno Haible  <bruno@clisp.org>
57440
57441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57442         command.
57443
57444 2007-01-08  Jim Meyering  <jim@meyering.net>
57445
57446         Use a more robust test for a "can't happen" condition.
57447         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57448         narrowed the st_size value.  Presuming the "can't happen" condition
57449         is true, that narrowing could conceivably convert an invalid st_size
57450         value into a valid one.  Instead, use a change based on Matthew
57451         Woehlke's original patch.
57452
57453         Slight readability improvement: use an assert-like macro
57454         in place of literal "abort ()" uses.
57455         * lib/fts.c (fts_assert): Define.
57456         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57457         Use this macro instead of a bare 'abort'.
57458
57459 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57462         simply work around them.
57463         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57464         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57465         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57466         declaring.
57467         Don't bother to define as macros, since the standard doesn't require it.
57468         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57469         longer worry about IRIX 5.3.
57470         (HAVE_WCTYPE_CTMP_BUG): Remove.
57471
57472 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57473
57474         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57475         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57476         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57477         Problems reported by Georg Schwarz for IRIX 5.3.
57478
57479         * gnulib-tool (autoconf_minversion): Take the maximum version number
57480         found, not the minimum.  Problem reported by James Youngman.
57481
57482 2007-01-03  Karl Berry  <karl@gnu.org>
57483
57484         * doc/error.texi: new file, explaining interaction with progname.
57485         * doc/gnulib.texi: include it.  Update copyright.
57486
57487 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57488
57489         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57490         AC_CANONICAL_HOST, to improve autobuild outputs.
57491
57492 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57493             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57494
57495         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57496         sockets, server sockets, and other file descriptors.  Count errors
57497         to compute the return value.  Reorder the code a bit to be easier
57498         to follow.  Don't set event bits that were not requested (except
57499         POLLERR and POLLHUP).
57500
57501 2007-01-01  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57504
57505 2007-01-03  Jim Meyering  <jim@meyering.net>
57506
57507         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57508
57509 2007-01-02  Bruno Haible  <bruno@clisp.org>
57510
57511         * modules/settime (Include): Require timespec.h.
57512         * modules/nanosleep (Include): Likewise.
57513
57514 2007-01-01  Bruno Haible  <bruno@clisp.org>
57515
57516         * gnulib-tool (func_emit_copyright_notice): Bump year.
57517         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57518
57519 2007-01-01  Bruno Haible  <bruno@clisp.org>
57520
57521         Improve support for OpenBSD.
57522         * build-aux/config.rpath (libname_spec): Export.
57523         (library_names_spec): New variable. Export.
57524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57525         library_names_spec from the config.rpath output. Locate shared library
57526         through the name pattern in library_names_spec.
57527
57528 2007-01-01  Eric Blake  <ebb9@byu.net>
57529
57530         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57531
57532 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57535         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57536         assume the C locale, and avoid an "eval" that could cause trouble.
57537         Problem with SORT reported by Bob Proulx.
57538
57539         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57540         Define.  Trivial patch from Henning Nielsen Lund, originally
57541         sent to bug-grep@gnu.org today.
57542
57543 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57546         struct stat.  Problem reported by Henning Nielsen Lund.
57547         * lib/acl.c: Include acl.h first, to check interface.  Don't
57548         bother to include sys/types.h and sys/stat.h again.
57549
57550 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57551
57552         Import the following change from libc; problem reported by
57553         Sven Verdoolaege.
57554
57555         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57556
57557         [BZ #1373]
57558         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57559
57560 2006-12-28  Jim Meyering  <jim@meyering.net>
57561
57562         * build-aux/announce-gen: Do not assume that the package
57563         builds any of tar.gz, tar.bz2, and .xdelta files.
57564         Suggestion from Simon Josefsson.
57565
57566 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57567
57568         * modules/announce-gen: New file.
57569
57570 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57573         handles its gotchas now.
57574         * lib/mbswidth.c: Likewise.
57575         * lib/wcwidth.h: Likewise.
57576         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57577         and iswcntrl; the wctype module does this stuff now.
57578         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57580         * modules/mbchar (Depends-on): Add wctype.
57581         * modules/mbswidth (Depends-on): Likewise.
57582         * modules/wcwidth (Depends-on): Likewise.
57583
57584 2006-12-27  Eric Blake  <ebb9@byu.net>
57585
57586         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57587         module uses more than what <wctype.h> is required to provide.
57588
57589 2006-12-26  Eric Blake  <ebb9@byu.net>
57590
57591         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57592
57593 2006-12-26  Eric Blake  <ebb9@byu.net>
57594
57595         * modules/absolute-header: New module.
57596         * modules/fcntl (Depends-on): Depend on it.
57597         * modules/inttypes (Depends-on): Likewise.
57598         * modules/stdint (Depends-on): Likewise.
57599         * modules/sys_stat (Depends-on): Likewise.
57600         * modules/wctype (Depends-on): Likewise.
57601         * MODULES.html.sh (Support for building libraries and
57602         executables): Document it.
57603
57604 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         * gnulib-tool (SED): Remove, undoing previous change.
57607         The problem was that it broke coreutils on Solaris, because
57608         "sed --posix" leaked into a makefile.
57609         (sed): New alias, if 'alias' and GNU sed.
57610
57611 2006-12-24  Jim Meyering  <jim@meyering.net>
57612
57613         Work around an fchownat bug in glibc-2.4:
57614         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57615         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57616         in spite of the -P option.
57617         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57618         New macros.
57619         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57620         * modules/openat (Files): Add lib/fchownat.c.
57621         * lib/openat.c (fchownat): Don't define here.  Move to...
57622         * lib/fchownat.c: ...this new file.
57623
57624 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57625
57626         Fix bug reported by Bruno Haible in
57627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57628         where quotearg.c didn't compile on Mac OS X 10.2 because it
57629         lacks <wchar.h> and wint_t.
57630         * lib/wctype_.h (__wctype_wint_t): New type.
57631         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57632         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57633         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57634         Arg is now of type __wctype_wint_t, not wint_t.
57635         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57636         substitute HAVE_WINT_T.
57637         * modules/wctype (Files): Add m4/wint_t.m4.
57638         (wctype.h): Substitute HAVE_WINT_T.
57639
57640 2006-12-23  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57643
57644 2006-12-23  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57647         S_ISLNK.
57648         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57649         mingw.
57650
57651 2006-12-22  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/copy-file.c: Include acl.h.
57654         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57655         Close the file descriptors only after being done with copy_acl.
57656         * modules/copy-file (Depends-on): Add acl.
57657
57658 2006-12-22  Bruno Haible  <bruno@clisp.org>
57659
57660         * gnulib-tool (SED): New variable.
57661         Use $SED instead of sed everywhere.
57662
57663 2006-12-22  Bruno Haible  <bruno@clisp.org>
57664
57665         * modules/no-c++: New file.
57666         * m4/no-c++.m4: New file.
57667         * MODULES.html.sh (Support for building libraries and executables):
57668         Add no-c++.
57669
57670 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57671
57672         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57673         Include <limits.h>, and use its INT_MAX to rewrite the
57674         j loop so that it does not overflow 'int'.  Problem reported by
57675         Ralf Wildenhues in
57676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57677         Play it safe by shifting left by 1 rather than multiplying by 2,
57678         as GCC is less likely to optimize this away when the value
57679         is signed (when it assumes overflow leads to undefined behavior).
57680         Also, don't assume time_t uses two's complement.
57681
57682 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * MODULES.html.sh: New module wctype.
57685         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57686         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57687         <wctype.h>, since the new wctype module should fix this.
57688         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57689         the wctype module should arrange for it.
57690         * lib/regex_internal.h: Likewise.
57691         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57692         since the wctype module should handle this now.
57693         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57694         * modules/fnmatch (Depends-on): Add wctype.
57695         * modules/quotearg (Depends-on): Likewise.
57696         * modules/regex (Depends-on): Likewise.
57697
57698 2006-12-19  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57701         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57702
57703 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57704
57705         * modules/savewd (Depends-on): Fix dependency on fcntl.
57706
57707 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57708
57709         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57710         conforms to C99, rather than relying on the user's environment
57711         setting of STDINT_H.
57712
57713 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57714         and Eric Blake  <ebb9@byu.net>
57715
57716         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57717         This is more consistent with the other defines here.
57718         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57719         Port to z/OS.  Problem reported by Paul Gilmartin.
57720         Change local vars to use gl_ prefix rather than ac_.
57721         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57722         with other defines.
57723         * modules/double-slash-root: New module.
57724         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57725         (Depends-on): Add double-slash-root.
57726         * MODULES.html.sh (File system functions): Mention new module.
57727
57728 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57729
57730         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57731         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57732         This is for the benefit of gzip, which doesn't do i18n.
57733
57734 2006-12-12  Jim Meyering  <jim@meyering.net>
57735
57736         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57737         Reported by Andreas Schwab <schwab@suse.de>.
57738
57739 2006-12-12  Bruno Haible  <bruno@clisp.org>
57740
57741         Merge these changes.
57742         2006-09-05  Bruno Haible  <bruno@clisp.org>
57743         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57744         iconv_alloc succeeded.
57745         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57746         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57747         test for " && dest " at the end - dest is always != NULL there. Call
57748         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57749         with 2xNULL arguments, also to flush the state storage. Handle the
57750         IRIX iconv behaviour. Realloc the final result, to throw away unused
57751         memory.
57752
57753 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57756         and fchmodat unconditionally, since glibc 2.4 has them.
57757         Problem reported by Arkadiusz Miskiewicz.
57758
57759 2006-12-10  Bruno Haible  <bruno@clisp.org>
57760
57761         * gnulib-tool (func_import): Show the include files only for those
57762         modules that are copied and specified.
57763         Reported by Karl Berry.
57764
57765 2006-12-08  Jim Meyering  <jim@meyering.net>
57766
57767         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57768         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57769
57770         * build-aux/announce-gen: Add two new options, both optional:
57771         --bootstrap-tools=TOOL_LIST
57772               a comma-separated list of tools, e.g.,
57773               autoconf,automake,bison,gnulib
57774         --gnulib-snapshot-date=DATE
57775               if gnulib is in the bootstrap tool list,
57776               then report this as the snapshot date.
57777               If not specified, use the current date/time.
57778               If you specify a date here, be sure it's UTC.
57779
57780 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57781
57782         * tests/test-argp-2.sh: Fix test to match actual output.
57783         (func_compare): Fix sed script to be portable.
57784
57785 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57786
57787         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57788         workaround for this case.  It is not autoconfigured now; offhand
57789         it's hard to see how to autoconfigure it.
57790
57791 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57794         a directory that is about to be chowned.  Such a directory's
57795         initial file permissions should permit the owner only and this
57796         should not be changed until after the chown, since the group and
57797         other bits would be incorrect if they granted permission before
57798         the chown.
57799
57800         Fix porting problem for iswctype reported by Georg Schwarz in:
57801         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57802         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57803         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57806
57807 2006-12-03  Jim Meyering  <jim@meyering.net>
57808
57809         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57810         p->fts_statp may not yet be defined.
57811         (fts_read): Instead, set it in the caller, once p->fts_statp is
57812         sure to be defined, and corresponds to a top-level directory.
57813         This bug made du -x fail.  Here's the coreutils test case:
57814         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57815         Reported by Mike Frysinger.
57816
57817 2006-12-01  Jim Meyering  <jim@meyering.net>
57818
57819         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57820         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57821         Reported by Simon Josefsson.
57822
57823 2006-11-30  Jim Meyering  <jim@meyering.net>
57824
57825         * m4/warning.m4: Use the all-permissive copyright notice
57826         recommended by RMS (rather than LGPL).
57827         * m4/vararrays.m4: Likewise.
57828         * m4/flexmember.m4: Likewise.
57829
57830 2006-11-29  Bruno Haible  <bruno@clisp.org>
57831
57832         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57833         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57834         using +=.
57835         Reported by Simon Josefsson <simon@josefsson.org>.
57836
57837 2006-11-28  James Youngman <jay@gnu.org>
57838
57839         * README: Advise users that they might find the bug-gnulib@gnu.org
57840         and autotools-announce@gnu.org mailing lists useful.
57841
57842 2006-11-28  Bruno Haible  <bruno@clisp.org>
57843
57844         * m4/ptrdiff_max.m4: Remove file.
57845
57846 2006-11-21  Bruno Haible  <bruno@clisp.org>
57847
57848         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57849         _AC_COMPUTE_INT.
57850         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57851         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57852         _AC_COMPUTE_INT.
57853         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57854         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57855         _AC_COMPUTE_INT.
57856         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57857
57858 2006-11-28  Jim Meyering  <jim@meyering.net>
57859
57860         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57861         warning from "gcc -Wshadow" about shadowing the builtin.
57862
57863 2006-11-27  Bruno Haible  <bruno@clisp.org>
57864
57865         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57866         _AC_COMPUTE_INT.
57867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57868
57869 2006-11-27  Bruno Haible  <bruno@clisp.org>
57870             Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57873
57874 2006-11-26  Bruno Haible  <bruno@clisp.org>
57875
57876         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57877         noinst_LTLIBRARIES.
57878
57879 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57880             Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57883         if compiling with "gcc -ansi".
57884
57885 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         Fix some incompatibilities with gcc -ansi -pedantic.
57888         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57889         if compiling pedantically with GCC, unless it's C99 or later.
57890         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57891         it mishandles gcc -ansi -pedantic as well.
57892         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57893         if gcc -pedantic.
57894         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57895         initializers for struct if -pedantic, unless it's C99 or later.
57896
57897 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57898
57899         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57900         Don't close an fd more than once. Identical atimes indicate
57901         success, not failure.
57902
57903 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57904
57905         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57906
57907 2006-11-23  Jim Meyering  <jim@meyering.net>
57908
57909         * build-aux/announce-gen: New file.  From coreutils.
57910
57911 2006-11-22  Jim Meyering  <jim@meyering.net>
57912
57913         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57914         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57915         (fts_read): Use a temporary to narrow the overused st_size member
57916         before using it in a switch statement.  Reported by Matthew Woehlke.
57917
57918         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57919         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57920
57921 2006-11-20  Bruno Haible  <bruno@clisp.org>
57922
57923         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57924         changequote instead of pairs of brackets.
57925         Reported by Andreas Schwab <schwab@suse.de>.
57926
57927 2006-11-21  Jim Meyering  <jim@meyering.net>
57928
57929         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57930         so as to remain compatible with older compilers.
57931         Patch from Michael Deutschmann.
57932
57933 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * MODULES.html.sh (File system functions): Add openat.
57936
57937         * lib/openat.h (rpl_fstatat): New macro, if
57938         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57939         (fstatat): Define to rpl_fstatat under the same conditions,
57940         unless COMPILING_FSTATAT.
57941         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57942         seems to have the bug.
57943         * lib/fstatat.c: New file.
57944         * modules/openat (Files): Add it.
57945
57946 2006-11-20  Bruno Haible  <bruno@clisp.org>
57947
57948         * Makefile: New file.
57949
57950 2006-11-20  Jim Meyering  <jim@meyering.net>
57951
57952         The beginnings of syntax-related checks for gnulib.
57953         * lib/Makefile: New file.
57954         * lib/t-idcache: New script.  Ensure that the two halves of
57955         idcache.c stay in sync.
57956
57957         * lib/idcache.c: Adjust comments in user- and group- portions to
57958         be more accurate, and to be consistent with one another.
57959
57960 2006-11-20  Jim Meyering  <jim@meyering.net>
57961
57962         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57963         continue using the flexible array member (thus, this module performs
57964         half as many malloc calls), with the addition that...
57965         (getgroup, getuser): Consistently record a non-match via an empty
57966         "name" string, and map an empty string match to a NULL return value.
57967         * modules/idcache (Depends-on): Re-add flexmember.
57968
57969         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57970         (getuidbyname, getgroup, getgidbyname): Likewise.
57971
57972         Use cleaner syntax: NULL rather than 0.
57973         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57974
57975 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57978         It mishandled the case where the group was missing.
57979         Problem reported by Greg Schafer.
57980         * modules/idcache: Likewise.
57981
57982 2006-11-18  Jim Meyering  <jim@meyering.net>
57983
57984         * check-module (%exempt_header): Add exception for some
57985         conditionally-included headers.
57986
57987         * modules/i-ring (Depends-on): Add verify.
57988         (License): Change to LGPL.
57989
57990 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57993         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57994         and inttostr.h.  Use snprintf rather than uinttostr, so that
57995         LGPLed code doesn't depend on GPLed.
57996
57997 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         * modules/inline (License): Change from GPL to LGPL.
58000
58001 2006-11-17  Jim Meyering  <jim@meyering.net>
58002
58003         * modules/d-type (License): Switch to LGPL.
58004
58005 2006-11-15  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58008
58009 2006-11-15  Eric Blake  <ebb9@byu.net>
58010
58011         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58012         the module dependency.
58013
58014 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58015             Bruno Haible  <bruno@clisp.org>
58016
58017         * gnulib-tool (func_create_testdir): Add license consistency check.
58018
58019 2006-11-15  Eric Blake  <ebb9@byu.net>
58020
58021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58022         random "(cached)" in configure output.
58023
58024 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58025
58026         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58027         test for conforming inttypes.h is both announced and cached.
58028
58029         * MODULES.html.sh (seen_modules, seen_files): New variables.
58030         (func_module): Rewrite to use a few less gnulib-tool and sed
58031         invocations.  Avoid a couple of quadratic algorithms for ...
58032         (missed_modules, missed_files): ... these, with ...
58033         (func_append, func_tmpdir): ... these new functions, from
58034         gnulib-tool.  Analogously, install traps for cleanup.
58035
58036         * tests/test-gc.c (main): Remove unused variables.
58037         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58038
58039 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         * modules/inttostr (License): Change to LGPL.
58042
58043 2006-11-14  Eric Blake  <ebb9@byu.net>
58044
58045         * modules/tempname (License): Change to LGPL.
58046
58047 2006-11-14  Eric Blake  <ebb9@byu.net>
58048
58049         * doc/functions.texi (Function Portability): *printf functions on
58050         Cygwin now understand all POSIX size specifiers.
58051
58052 2006-11-14  Bruno Haible  <bruno@clisp.org>
58053
58054         * modules/c-ctype (License): Change to LGPL.
58055
58056 2006-11-12  Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58059         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58060         for GNOME libraries, for which the include files are installed in
58061         subdirectories of $prefix/include.
58062
58063 2006-11-12  Bruno Haible  <bruno@clisp.org>
58064
58065         * m4/lib-link.m4: Require at least autoconf-2.54.
58066         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58067         name to underscores for the --with option.
58068
58069 2006-11-13  Bruno Haible  <bruno@clisp.org>
58070
58071         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58072         the tests directory.
58073         Reported by Ralf Wildenhues.
58074
58075 2006-11-13  Bruno Haible  <bruno@clisp.org>
58076
58077         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58078         (func_emit_initmacro_end): Undo the override here.
58079         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58080         Works around the famous automake error in coreutils.
58081
58082 2006-11-13  Eric Blake  <ebb9@byu.net>
58083
58084         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58085         element, not its node.
58086
58087 2006-11-12  Bruno Haible  <bruno@clisp.org>
58088
58089         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58090         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58091
58092 2006-11-12  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool: New option --local-symlink.
58095         (func_usage): Document it.
58096         (lsymbolic): New variable.
58097         (func_import, func_create_testdir): If --symlink was not specified,
58098         test whether --local-symlink was specified and the file comes from
58099         the local_gnulib_dir.
58100
58101 2006-11-12  Bruno Haible  <bruno@clisp.org>
58102
58103         * gnulib-tool (func_ln): New function.
58104         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58105
58106 2006-11-12  Bruno Haible  <bruno@clisp.org>
58107
58108         Finish support for source files in subdirectories.
58109         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58110         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58111         AUTOMAKE_OPTIONS.
58112         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58113
58114 2006-11-12  Bruno Haible  <bruno@clisp.org>
58115
58116         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58117         EXTRA_lib_SOURCES augmentation.
58118         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58119
58120 2006-11-12  Jim Meyering  <jim@meyering.net>
58121
58122         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58123         file descriptors.  This also averts a failure on systems with
58124         native openat support when a traversed directory lacks "x" access.
58125         * lib/fts_.h: Include "i-ring.h"
58126         (struct FTS) [fts_fd_ring]: New member.
58127         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58128         (FCHDIR): Add parentheses.
58129         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58130         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58131         When descending, rather than simply closing the previous
58132         fts_cwd_fd value, push that file descriptor onto the ring.
58133         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58134         (fts_open): Initialize the new fd_ring member.
58135         (fts_close): Clear the ring.
58136         (fts_safe_changedir): When possible, use our new fd_ring to skip
58137         the diropen and fstat and dev/ino comparison that would normally
58138         accompany a virtual `chdir ("..")'.
58139
58140         * modules/fts (Depends-on): Add i-ring.
58141         * modules/i-ring: New module.
58142         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58143         * m4/i-ring.m4: New file.
58144
58145 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58146
58147         * gnulib-tool (func_create_testdir): Fix replacement of
58148         `build-aux' in configure.ac.  Run autotools in gltests
58149         subdirectory.
58150         (func_create_testdir, func_create_megatestdir, test): There is
58151         no need for '--force' in most autotool invocations in a new
58152         tree.  Actually fail the whole test if any of the tools, or the
58153         configure or make stages fail.
58154
58155         Sync from Automake.
58156         * build-aux/gnupload: Revert last change.  Add pointer to upload
58157         instructions of the GNU Maintenance Instructions.
58158         Suggestion by Karl Berry.
58159
58160 2006-11-10  Jim Meyering  <jim@meyering.net>
58161
58162         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58163
58164 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58165
58166         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58167         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58168         (bind_textdomain_codeset) [! ENABLE_NLS]:
58169         Evaluate all the arguments.  That way, callers get compatible behavior
58170         if the arguments have side effects.  Also, it avoids some GCC
58171         diagnostics in some cases; Joel E. Denny reported problems when Bison
58172         was configured with --enable-gcc-warnigs.
58173
58174 2006-11-10  Jim Meyering  <jim@meyering.net>
58175
58176         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58177         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58178         account.
58179
58180 2006-11-10  Jim Meyering  <jim@meyering.net>
58181
58182         * modules/inline: New file/module.
58183         * modules/xalloc (Files): Remove m4/inline.m4.
58184         (Depends-on): Add inline, instead.
58185         * modules/oset: Likewise.
58186         * modules/list: Likewise.
58187
58188 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58191         Problem reported by Matthew Woehlke.
58192
58193 2006-11-09  Bruno Haible  <bruno@clisp.org>
58194
58195         * lib/tempname.c (gen_tempname): Remove variant that invokes
58196         __gen_tempname.
58197         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58198         __gen_tempname.
58199
58200 2006-11-08  Bruno Haible  <bruno@clisp.org>
58201
58202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58203         to 'yes' instead of 'cross-compiling'.
58204
58205 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * lib/quotearg.h (quotearg_free): New decl.
58208         * lib/quotearg.c (quotearg_free): New function.
58209         (slot0, nslots, slotvec0, slotvec):
58210         Now file-scope so that quotearg_free can get at them.
58211
58212 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58213
58214         Sync from Automake.
58215         * build-aux/gnupload: Add missing 'gnu' to example URL.
58216         Report by Karl Berry.
58217
58218 2006-11-08  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58221         Suggested by Paul Eggert.
58222
58223 2006-11-08  Jim Meyering  <jim@meyering.net>
58224
58225         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58226         It's already included if !_LIBC.
58227         (fts_safe_changedir): Add a comment.
58228
58229 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58232         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58233         Matthew Woehlke.
58234
58235         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58236         definitions up, to avoid colliding with change below.
58237         (static_inline) [HAVE_INLINE]: New macro.
58238         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58239         Provide extern decls when !HAVE_INLINE.  Do not define unless
58240         static_inline is defined, either by us or by xmalloc.c.  Use
58241         static_inline rather than static inline.
58242         (XCALLOC): Optimize sizeof(T) = 1 case.
58243         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58244
58245 2006-11-07  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58249         AC_C_INLINE.
58250         * modules/xalloc (Files): Add m4/inline.m4.
58251
58252 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58253
58254         * README: Fix typo.
58255         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58256         (Miscellanous Notes): ...from this.
58257
58258 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58259
58260         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58261         Mention that offsetof should be used instead of sizeof.
58262         From Bruno Haible.
58263
58264 2006-11-07  Bruno Haible  <bruno@clisp.org>
58265
58266         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58267
58268 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58271         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58272         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58273         (gl_tree_add_before, gl_tree_add_after):
58274         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58275         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58276         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58277         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58278         (gl_linked_add_after, gl_linked_add_at): Likewise.
58279         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58280         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58281         (gl_tree_add_before, gl_tree_add_after): Likewise.
58282         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58283         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58284         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58285
58286 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58287
58288         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58289
58290 2006-11-06  Bruno Haible  <bruno@clisp.org>
58291
58292         * m4/inline.m4: New file.
58293         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58294         * modules/list (Files): Add m4/inline.m4.
58295         * modules/oset (Files): Likewise.
58296
58297 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58298
58299         * lib/idcache.c: Include <stddef.h>, for offsetof.
58300         (struct userid.name): Change from char * to a flexible array member.
58301         All uses changed.
58302         * modules/idcache (Depends-on): Add flexmember.
58303
58304         * MODULES.html.sh (Core language properties): New module flexmember.
58305         * modules/flexmember, m4/flexmember.m4: New files.
58306
58307         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58308         inline functions that are identical with the old xnmalloc_inline,
58309         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58310         that we can avoid some unnecessary integer multiplications and
58311         divisions in the common case where the element size is known at
58312         compile time.
58313         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58314         needed.
58315         (xnboundedmalloc): Remove.
58316         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58317         arguments, for consistency with rest of this header.
58318         (xcharalloc): Rewrite using XNMALLOC.
58319         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58320         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58321         versions have been moved to lib/xalloc.h and renamed to be the
58322         non-*_inline versions.
58323         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58324         and xnrealloc functions, since those functions are now inline and
58325         now call us.
58326         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58327         renaming described above.
58328         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58329         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58330         captures the dependency in AC_C_INLINE.
58331
58332         New module canonicalize-lgpl, proposed by Charles Wilson in
58333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58334         with a few small changes afterwards.
58335         * MODULES.html.sh (File system functions): New module
58336         canonicalize-lgpl.
58337         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58338         and canonicalize_file_name.
58339         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58340         * modules/canonicalize-lgpl: New files.
58341
58342 2006-11-05  Bruno Haible  <bruno@clisp.org>
58343
58344         * gnulib-tool (func_import, func_create_testdir): Create directories
58345         also for files in subdirectories of lib/.
58346
58347 2006-11-05  Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58350         ANSI C compliant.
58351
58352 2006-11-03  Bruno Haible  <bruno@clisp.org>
58353
58354         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58356         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58357         (xnboundedmalloc): New inline function.
58358         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58359         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58360         xmalloc.
58361         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58362         xmalloc.
58363         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58364         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58365         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58366         xmalloc.
58367         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58368         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58369         xmalloc.
58370         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58371         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58372         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58373         xmalloc.
58374         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58375         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58376         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58377         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58378         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58379         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58380         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58381
58382 2006-11-03  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/c-ctype.h [C++]: Define functions without name mangling.
58385         * lib/fwriteerror.h [C++]: Likewise.
58386         * lib/gcd.h [C++]: Likewise.
58387         * lib/linebreak.h [C++]: Likewise.
58388
58389 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58392         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58393         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58394         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58395         Check for functions and headers just once.
58396         Check for declaration of canonicalize_file_name.
58397         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58398
58399 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58400
58401         * gnulib-tool (func_import): Fix typo in actioncmd.
58402
58403 2006-11-02  Bruno Haible  <bruno@clisp.org>
58404
58405         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58406         newline sequence in the Makefile.am snippet as a space, like "make"
58407         does.
58408         Reported by Roger Persson <perrog@gmail.com>.
58409
58410 2006-11-01  Bruno Haible  <bruno@clisp.org>
58411
58412         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58413         already declared in <string.h>.
58414         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58415
58416 2006-11-01  Bruno Haible  <bruno@clisp.org>
58417
58418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58419         * lib/strcase.h: Include <string.h>.
58420         (strcasecmp): Define to rpl_strcasecmp here.
58421
58422 2006-11-01  Bruno Haible  <bruno@clisp.org>
58423
58424         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58425
58426 2006-11-01  Eric Blake  <ebb9@byu.net>
58427
58428         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58429
58430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58431
58432 2006-10-29  Bruno Haible  <bruno@clisp.org>
58433
58434         Make it compile in C++ mode.
58435         * lib/full-write.c (full_rw): Add a cast.
58436
58437 2006-11-01  Bruno Haible  <bruno@clisp.org>
58438
58439         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58440         be POSIX compliant.
58441         Reported by Roger Persson <perrog@gmail.com>.
58442
58443 2006-11-01  Eric Blake  <ebb9@byu.net>
58444
58445         * lib/getopt_.h: Fix comments.
58446
58447 2006-10-31  Eric Blake  <ebb9@byu.net>
58448
58449         * modules/tmpdir (Depends-on): Add sys_stat.
58450         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58451         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58452         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58453         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58454         tempname.
58455
58456 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         Avoid some C++ diagnostics reported by Bruno Haible.
58459         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58460         xmalloc.
58461         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58462         (struct slotvec): Move to top level.
58463         (quotearg_n_options): Rewrite to avoid xmalloc.
58464         * lib/xalloc.h (xcharalloc): New function.
58465         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58466         [defined __cplusplus]: Add function template that provides result
58467         type propagation.  This part of the change is from Bruno Haible.
58468
58469 2006-10-29  Bruno Haible  <bruno@clisp.org>
58470
58471         Make it compile in C++ mode.
58472         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58473         * lib/strnlen1.c (strnlen1): Cast memchr result.
58474         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58475         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58476         (create_temp_dir): Rename local variable 'template'.
58477         (compile_csharp_using_sscli): Add cast.
58478         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58479         * lib/findprog.c (find_in_path): Likewise.
58480         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58481         * lib/wait-process.c (register_slave_subprocess): Likewise.
58482
58483 2006-10-22  Bruno Haible  <bruno@clisp.org>
58484
58485         * modules/tsearch: New file.
58486         * lib/tsearch.h: New file.
58487         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58488         * m4/tsearch.m4: New file.
58489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58490
58491 2006-10-29  Eric Blake  <ebb9@byu.net>
58492
58493         * lib/arcfour.c: Assume config.h.
58494         * lib/arctwo.c: Likewise.
58495         * lib/base64.c: Likewise.
58496         * lib/check-version.c: Likewise.
58497         * lib/crc.c: Likewise.
58498         * lib/des.c: Likewise.
58499         * lib/gc-gnulib.c: Likewise.
58500         * lib/gc-libgcrypt.c: Likewise.
58501         * lib/gc-pbkdf2-sha1.c: Likewise.
58502         * lib/getaddrinfo.c: Likewise.
58503         * lib/getdelim.c: Likewise.
58504         * lib/getline.c: Likewise.
58505         * lib/hmac-md5.c: Likewise.
58506         * lib/hmac-sha1.c: Likewise.
58507         * lib/iconvme.c: Likewise.
58508         * lib/md2.c: Likewise.
58509         * lib/md4.c: Likewise.
58510         * lib/memxor.c: Likewise.
58511         * lib/read-file.c: Likewise.
58512         * lib/readline.c: Likewise.
58513         * lib/rijndael-alg-fst.c: Likewise.
58514         * lib/rijndael-api-fst.c: Likewise.
58515         * lib/xgetdomainname.c: Likewise.
58516
58517 2006-10-28  Eric Blake  <ebb9@byu.net>
58518
58519         * lib/xstrndup.c: Assume config.h.
58520
58521 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58524         stat-macros.h is now for our own macros, whereas stat_h is for
58525         macros in the <sys/stat.h> name space.
58526         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58527         (STAT_MACROS_H): Remove.
58528         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58529         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58530         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58531         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58532         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58533         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58534         Move these macros to ...
58535         * lib/stat_.h: here.  Don't include stat-macros.h.
58536         * lib/canonicalize.c: Don't include stat-macros.h.
58537         * lib/chown.c: Likewise.
58538         * lib/euidaccess.c: Likewise.
58539         * lib/file-type.c: Likewise.
58540         * lib/filemode.c: Likewise.
58541         * lib/glob.c: Likewise.
58542         * lib/isapipe.c: Likewise.
58543         * lib/lchown.c: Likewise.
58544         * lib/lstat.c: Likewise.
58545         * lib/mkdir-p.c: Likewise.
58546         * lib/rmdir.c: Likewise.
58547         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58549         unless mkdir isn't declared, to speed up 'configure'.
58550         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58551         would define all the S_* symbols.
58552         * modules/canonicalize (Depends-on):
58553         Depend on sys_stat, not stat-macros.
58554         * modules/chown: Likewise.
58555         * modules/euidaccess: Likewise.
58556         * modules/filemode: Likewise.
58557         * modules/file-type: Likewise.
58558         * modules/glob: Likewise.
58559         * modules/isapipe: Likewise.
58560         * modules/lchown: Likewise.
58561         * modules/lstat: Likewise.
58562         * modules/mkancesdirs: Likewise.
58563         * modules/rmdir: Likewise.
58564         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58565         * modules/modechange: Likewise.
58566         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58567         (configure.ac): Remove gl_STAT_MACROS.
58568         * modules/sys_stat (Depends-on): Remove stat-macros.
58569
58570 2006-10-27  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/signed.m4: Remove file.
58573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58574         invocation.
58575         * modules/vasnprintf (Files): Remove m4/signed.m4.
58576
58577 2006-10-27  Bruno Haible  <bruno@clisp.org>
58578
58579         Update to GNU gettext 0.16.
58580         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58581         m4/inttypes-h.m4, m4/signed.m4.
58582         * m4/gettext.m4: Update to GNU gettext 0.16.
58583         * m4/intl.m4: New file, from GNU gettext.
58584         * m4/intldir.m4: New file, from GNU gettext.
58585         * config/srclist.txt: Update
58586
58587 2006-10-27  Eric Blake  <ebb9@byu.net>
58588
58589         * MODULES.html.sh: Document tempname.
58590         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58591         dependencies.
58592         (Files): Move lib/tempname.c...
58593         * modules/tempname: ...to this new module.
58594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58595         (gl_PREREQ_TEMPNAME): Move...
58596         * m4/tempname.m4: ...to this new file.
58597         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58598         * modules/sys_stat (Depends-on): Add stat-macros.
58599         * lib/stat_.h (includes): Pick up stat macros.
58600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58601         if stat macros are broken.
58602         * lib/tempname.c (includes): No need to include "stat-macros.h".
58603         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58604         (direxists, __path_search) [!_LIBC]: Don't compile these in
58605         gnulib; the tmpdir module covers that.
58606         * lib/tempname.h: New file.
58607
58608 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         * COPYING: Explain how gnulib-tool converts licence headers.
58611         Almost all wording by Eric Blake.
58612
58613 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * lib/mbchar.h (is_basic_table): Make read-only.
58616         * lib/mbchar.c (is_basic_table): Likewise.
58617         Reported by John Darrington.
58618
58619 2006-10-25  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/progname.h (set_program_name): Undefine before defining.
58622
58623 2006-10-25  Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58626         false for non-gcc C++ compilers.
58627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58628
58629 2006-10-24  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58632         iconv implementations like Irix iconv.
58633
58634 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * modules/vararrays: New file.
58637         * m4/vararrays.m4: New file, taken from diffutils.
58638         * MODULES.html.sh: New module vararrays.
58639
58640 2006-10-24  Karl Berry  <karl@gnu.org>
58641
58642         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58643         Don't call GNU Unix.
58644
58645 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58646
58647         * users.txt: Add Libtool.
58648
58649         Sync from Libtool:
58650
58651         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58654         to gnulib's policy of including config.h unconditionally.
58655
58656 2006-10-24  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/wcwidth (Files): Add m4/wint_t.m4.
58659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58660         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58661
58662 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58665         to pacify GCC with some -W flags enabled.  Problem reported by
58666         Bruno Haible.
58667
58668 2006-10-24  Jim Meyering  <jim@meyering.net>
58669
58670         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58671         Reported by Karl Berry.
58672
58673 2006-10-23  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58676
58677 2006-10-24  Bruno Haible  <bruno@clisp.org>
58678
58679         * lib/gl_list.h: Use C comment style, not C++ comment style.
58680
58681 2006-10-23  Eric Blake  <ebb9@byu.net>
58682
58683         * lib/getaddrinfo.c (includes): Add missing include.
58684
58685 2006-10-23  Bruno Haible  <bruno@clisp.org>
58686             Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         Ability to rename obstack_free.
58689         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58690         obstack_free.
58691         (obstack_free): Invoke the __obstack_free macro.
58692         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58693
58694 2006-10-23  Bruno Haible  <bruno@clisp.org>
58695             Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58698         __argc, __argv from the declaration. (They are defined as macros on
58699         mingw.)
58700
58701 2006-10-22  Bruno Haible  <bruno@clisp.org>
58702
58703         * doc/gnulib-intro.texi: New file.
58704         * doc/gnulib.texi: Include it.
58705
58706 2006-10-21  Bruno Haible  <bruno@clisp.org>
58707
58708         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58709         "Introduction", "Miscellanous Notes", "Particular Modules".
58710
58711 2006-10-21  Bruno Haible  <bruno@clisp.org>
58712
58713         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58714         Change mostlyclean-local rule to avoid sh syntax error from bash
58715         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58716
58717 2006-10-23  Jim Meyering  <jim@meyering.net>
58718
58719         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58720         in place of snprintf.
58721
58722         * modules/inttostr (Files): Add lib/uinttostr.c.
58723         * lib/uinttostr.c (inttostr): New file/function.
58724         * lib/inttostr.h (uinttostr): Declare.
58725         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58726         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58727         Add uinttostr.
58728         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58729
58730 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * lib/canonicalize.c (ELOOP): Define if not already defined.
58733         Problem reported by Bruno Haible in
58734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58735
58736 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58739         Problem reported by Perry Smith and Ville Laurikari.
58740
58741         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58742         uses.
58743
58744 2006-10-19  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58747         for mingw.
58748
58749 2006-10-19  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58752         Needed for mingw.
58753
58754 2006-10-19  Bruno Haible  <bruno@clisp.org>
58755
58756         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58757
58758 2006-10-19  Bruno Haible  <bruno@clisp.org>
58759
58760         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58761         it.
58762
58763 2006-10-19  Bruno Haible  <bruno@clisp.org>
58764
58765         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58766         invocation.
58767
58768 2006-10-19  Bruno Haible  <bruno@clisp.org>
58769
58770         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58771         mountlist by default.
58772
58773 2006-10-16  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/c-strstr.c: Include c-strstr.h.
58776
58777 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58778
58779         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58780         in a slash.
58781
58782 2006-10-18  Bruno Haible  <bruno@clisp.org>
58783
58784         * lib/lock.h [C++]: Wrap definitions in extern "C".
58785
58786 2006-10-18  Bruno Haible  <bruno@clisp.org>
58787
58788         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58789         gl_LIBOBJS list.
58790
58791 2006-10-18  Bruno Haible  <bruno@clisp.org>
58792
58793         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58794
58795 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * lib/xstrtol.h: Include gettext.h.
58798         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58799         Problem reported by Eric Blake.
58800         * modules/xstrtol (Depends-on): Add gettext-h.
58801
58802 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58803
58804         * lib/strftime.c (advance): New macro.
58805         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58806         incomplete type, so you can't add 0 to it.  Problem and patch
58807         reported by Eelco Dolstra for dietlibc.
58808
58809 2006-10-18  Jim Meyering  <jim@meyering.net>
58810
58811         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58812         type for a local, and rename it: s/up/user_proc/.
58813
58814 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58815
58816         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58817         READ_UTMP_USER_PROCESS.
58818         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58819
58820 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58821
58822         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58823         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58824
58825 2006-10-17  Eric Blake  <ebb9@byu.net>
58826
58827         * lib/sigprocmask.c (sigprocmask): Fix typo.
58828
58829         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58830
58831         * modules/clean-temp (Makefile.am): Don't add to make output...
58832         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58833         config.h.
58834
58835 2006-10-17  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58838         differently if DEFAULT_TEXT_DOMAIN is set.
58839
58840 2006-10-16  Bruno Haible  <bruno@clisp.org>
58841
58842         * lib/clean-temp.c: Include fwriteerror.h.
58843
58844 2006-10-16  Bruno Haible  <bruno@clisp.org>
58845
58846         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58847
58848 2006-10-16  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58851         * lib/sigprocmask.h: Include <sys/types.h>.
58852         (sigset_t): Use the system's definition if present.
58853
58854 2006-10-17  Eric Blake  <ebb9@byu.net>
58855
58856         * lib/xvasprintf.c (includes): Assume config.h.
58857         * lib/xasprintf.c (includes): Likewise.
58858
58859 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58862         at least as wide as intmax_t.
58863
58864 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58865
58866         (Imported from Automake.)
58867         * build-aux/gnupload: Update to version 1.1 of directive file.
58868
58869 2006-10-16  Eric Blake  <ebb9@byu.net>
58870
58871         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58872         match Automake 1.10a.
58873
58874 2006-10-14  Bruno Haible  <bruno@clisp.org>
58875
58876         * modules/sigprocmask: New file.
58877         * lib/sigprocmask.h: New file.
58878         * lib/sigprocmask.c: New file.
58879         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58880         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58881         request sigprocmask.o.
58882         (gl_PREREQ_SIGPROCMASK): New macro.
58883         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58884         (Depends-on): Add sigprocmask.
58885         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58886         gt_SIGNALBLOCKING. Test for 'raise' only once.
58887         * lib/fatal-signal.c: Include sigprocmask.h.
58888         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58889         unblock_fatal_signals): Define always.
58890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58891         sigprocmask.
58892
58893 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         Sync from Automake.
58896         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58897         which incorrectly sets the mode of an existing destination
58898         directory.  In some cases the unpatched install-sh could do the
58899         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58900         system.  We hope this is rare in practice, but it's clearly worth
58901         fixing.  Problem reported by Alex Unleashed in
58902         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58903         Also, don't bother to check for -m bugs unless we're using -m;
58904         suggested by Stepan Kasal.
58905
58906 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58907
58908         Sync from Automake.
58909         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58910         `-c' flag, so they appear at the same position as in %FASTDEP%
58911         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58912         which ignores unknown options only after the first non-option.
58913         Bug report against M4 by Nelson H. F. Beebe.
58914
58915 2006-10-13  Jim Meyering  <jim@meyering.net>
58916
58917         Fix a bug in yesterday's change.
58918         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58919         p->fts_statp->st_dev would be used uninitialized.
58920         Ensures that we always call fts_stat on the very first entry.
58921         Miklos Szeredi reported that find -xdev stopped working.
58922
58923 2006-10-12  Bruno Haible  <bruno@clisp.org>
58924
58925         * gnulib-tool (func_get_automake_snippet): Append an automatically
58926         computed EXTRA_DIST augmentation.
58927         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58928         * modules/alloca-opt (Makefile.am): Likewise.
58929         * modules/allocsa (Makefile.am): Likewise.
58930         * modules/arcfour (Makefile.am): Likewise.
58931         * modules/arctwo (Makefile.am): Likewise.
58932         * modules/argmatch (Makefile.am): Likewise.
58933         * modules/argz (Makefile.am): Likewise.
58934         * modules/atexit (Makefile.am): Likewise.
58935         * modules/backupfile (Makefile.am): Likewise.
58936         * modules/byteswap (Makefile.am): Likewise.
58937         * modules/c-strtod (Makefile.am): Likewise.
58938         * modules/c-strtold (Makefile.am): Likewise.
58939         * modules/calloc (Makefile.am): Likewise.
58940         * modules/canon-host (Makefile.am): Likewise.
58941         * modules/canonicalize (Makefile.am): Likewise.
58942         * modules/chdir-long (Makefile.am): Likewise.
58943         * modules/chdir-safer (Makefile.am): Likewise.
58944         * modules/check-version (Makefile.am): Likewise.
58945         * modules/chown (Makefile.am): Likewise.
58946         * modules/cloexec (Makefile.am): Likewise.
58947         * modules/close-stream (Makefile.am): Likewise.
58948         * modules/closeout (Makefile.am): Likewise.
58949         * modules/crc (Makefile.am): Likewise.
58950         * modules/csharpexec (Makefile.am): Likewise.
58951         * modules/cycle-check (Makefile.am): Likewise.
58952         * modules/des (Makefile.am): Likewise.
58953         * modules/dev-ino (Makefile.am): Likewise.
58954         * modules/dirfd (Makefile.am): Likewise.
58955         * modules/dirname (Makefile.am): Likewise.
58956         * modules/dup2 (Makefile.am): Likewise.
58957         * modules/eealloc (Makefile.am): Likewise.
58958         * modules/error (Makefile.am): Likewise.
58959         * modules/euidaccess (Makefile.am): Likewise.
58960         * modules/exclude (Makefile.am): Likewise.
58961         * modules/exitfail (Makefile.am): Likewise.
58962         * modules/fcntl-safer (Makefile.am): Likewise.
58963         * modules/fcntl (Makefile.am): Likewise.
58964         * modules/file-type (Makefile.am): Likewise.
58965         * modules/fileblocks (Makefile.am): Likewise.
58966         * modules/filemode (Makefile.am): Likewise.
58967         * modules/filenamecat (Makefile.am): Likewise.
58968         * modules/fnmatch (Makefile.am): Likewise.
58969         * modules/fopen-safer (Makefile.am): Likewise.
58970         * modules/fpending (Makefile.am): Likewise.
58971         * modules/fprintftime (Makefile.am): Likewise.
58972         * modules/free (Makefile.am): Likewise.
58973         * modules/fsusage (Makefile.am): Likewise.
58974         * modules/ftruncate (Makefile.am): Likewise.
58975         * modules/fts (Makefile.am): Likewise.
58976         * modules/gc-arcfour (Makefile.am): Likewise.
58977         * modules/gc-des (Makefile.am): Likewise.
58978         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58979         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58980         * modules/gc-md4 (Makefile.am): Likewise.
58981         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58982         * modules/gc-sha1 (Makefile.am): Likewise.
58983         * modules/gc (Makefile.am): Likewise.
58984         * modules/getaddrinfo (Makefile.am): Likewise.
58985         * modules/getcwd (Makefile.am): Likewise.
58986         * modules/getdelim (Makefile.am): Likewise.
58987         * modules/getdomainname (Makefile.am): Likewise.
58988         * modules/getgroups (Makefile.am): Likewise.
58989         * modules/gethostname (Makefile.am): Likewise.
58990         * modules/gethrxtime (Makefile.am): Likewise.
58991         * modules/getline (Makefile.am): Likewise.
58992         * modules/getloadavg (Makefile.am): Likewise.
58993         * modules/getlogin_r (Makefile.am): Likewise.
58994         * modules/getndelim2 (Makefile.am): Likewise.
58995         * modules/getopt (Makefile.am): Likewise.
58996         * modules/getpagesize (Makefile.am): Likewise.
58997         * modules/getpass-gnu (Makefile.am): Likewise.
58998         * modules/getpass (Makefile.am): Likewise.
58999         * modules/getsubopt (Makefile.am): Likewise.
59000         * modules/gettime (Makefile.am): Likewise.
59001         * modules/gettimeofday (Makefile.am): Likewise.
59002         * modules/getugroups (Makefile.am): Likewise.
59003         * modules/getusershell (Makefile.am): Likewise.
59004         * modules/glob (Makefile.am): Likewise.
59005         * modules/group-member (Makefile.am): Likewise.
59006         * modules/hard-locale (Makefile.am): Likewise.
59007         * modules/hash (Makefile.am): Likewise.
59008         * modules/hmac-md5 (Makefile.am): Likewise.
59009         * modules/hmac-sha1 (Makefile.am): Likewise.
59010         * modules/human (Makefile.am): Likewise.
59011         * modules/idcache (Makefile.am): Likewise.
59012         * modules/imaxabs (Makefile.am): Likewise.
59013         * modules/imaxdiv (Makefile.am): Likewise.
59014         * modules/inet_ntop (Makefile.am): Likewise.
59015         * modules/inet_pton (Makefile.am): Likewise.
59016         * modules/intprops (Makefile.am): Likewise.
59017         * modules/inttostr (Makefile.am): Likewise.
59018         * modules/inttypes (Makefile.am): Likewise.
59019         * modules/isapipe (Makefile.am): Likewise.
59020         * modules/javaversion (Makefile.am): Likewise.
59021         * modules/lchmod (Makefile.am): Likewise.
59022         * modules/lchown (Makefile.am): Likewise.
59023         * modules/localcharset (Makefile.am): Likewise.
59024         * modules/long-options (Makefile.am): Likewise.
59025         * modules/lstat (Makefile.am): Likewise.
59026         * modules/malloc (Makefile.am): Likewise.
59027         * modules/mathl (Makefile.am): Likewise.
59028         * modules/mbchar (Makefile.am): Likewise.
59029         * modules/md2 (Makefile.am): Likewise.
59030         * modules/md4 (Makefile.am): Likewise.
59031         * modules/md5 (Makefile.am): Likewise.
59032         * modules/memcasecmp (Makefile.am): Likewise.
59033         * modules/memchr (Makefile.am): Likewise.
59034         * modules/memcmp (Makefile.am): Likewise.
59035         * modules/memcoll (Makefile.am): Likewise.
59036         * modules/memcpy (Makefile.am): Likewise.
59037         * modules/memmem (Makefile.am): Likewise.
59038         * modules/memmove (Makefile.am): Likewise.
59039         * modules/mempcpy (Makefile.am): Likewise.
59040         * modules/memrchr (Makefile.am): Likewise.
59041         * modules/memset (Makefile.am): Likewise.
59042         * modules/memxor (Makefile.am): Likewise.
59043         * modules/mkancesdirs (Makefile.am): Likewise.
59044         * modules/mkdir-p (Makefile.am): Likewise.
59045         * modules/mkdir (Makefile.am): Likewise.
59046         * modules/mkdtemp (Makefile.am): Likewise.
59047         * modules/mkstemp (Makefile.am): Likewise.
59048         * modules/mktime (Makefile.am): Likewise.
59049         * modules/modechange (Makefile.am): Likewise.
59050         * modules/mountlist (Makefile.am): Likewise.
59051         * modules/nanosleep (Makefile.am): Likewise.
59052         * modules/obstack (Makefile.am): Likewise.
59053         * modules/openat (Makefile.am): Likewise.
59054         * modules/pagealign_alloc (Makefile.am): Likewise.
59055         * modules/pathmax (Makefile.am): Likewise.
59056         * modules/physmem (Makefile.am): Likewise.
59057         * modules/poll (Makefile.am): Likewise.
59058         * modules/posixtm (Makefile.am): Likewise.
59059         * modules/posixver (Makefile.am): Likewise.
59060         * modules/putenv (Makefile.am): Likewise.
59061         * modules/quote (Makefile.am): Likewise.
59062         * modules/quotearg (Makefile.am): Likewise.
59063         * modules/raise (Makefile.am): Likewise.
59064         * modules/read-file (Makefile.am): Likewise.
59065         * modules/readline (Makefile.am): Likewise.
59066         * modules/readlink (Makefile.am): Likewise.
59067         * modules/readtokens (Makefile.am): Likewise.
59068         * modules/readutmp (Makefile.am): Likewise.
59069         * modules/realloc (Makefile.am): Likewise.
59070         * modules/regex (Makefile.am): Likewise.
59071         * modules/rename-dest-slash (Makefile.am): Likewise.
59072         * modules/rename (Makefile.am): Likewise.
59073         * modules/rijndael (Makefile.am): Likewise.
59074         * modules/rmdir (Makefile.am): Likewise.
59075         * modules/rpmatch (Makefile.am): Likewise.
59076         * modules/safe-read (Makefile.am): Likewise.
59077         * modules/safe-write (Makefile.am): Likewise.
59078         * modules/same-inode (Makefile.am): Likewise.
59079         * modules/same (Makefile.am): Likewise.
59080         * modules/save-cwd (Makefile.am): Likewise.
59081         * modules/savedir (Makefile.am): Likewise.
59082         * modules/setenv (Makefile.am): Likewise.
59083         * modules/settime (Makefile.am): Likewise.
59084         * modules/sha1 (Makefile.am): Likewise.
59085         * modules/sig2str (Makefile.am): Likewise.
59086         * modules/snprintf (Makefile.am): Likewise.
59087         * modules/stat-macros (Makefile.am): Likewise.
59088         * modules/stat-time (Makefile.am): Likewise.
59089         * modules/stdbool (Makefile.am): Likewise.
59090         * modules/stdint (Makefile.am): Likewise.
59091         * modules/stdlib-safer (Makefile.am): Likewise.
59092         * modules/stpcpy (Makefile.am): Likewise.
59093         * modules/stpncpy (Makefile.am): Likewise.
59094         * modules/strcase (Makefile.am): Likewise.
59095         * modules/strcasestr (Makefile.am): Likewise.
59096         * modules/strchrnul (Makefile.am): Likewise.
59097         * modules/strcspn (Makefile.am): Likewise.
59098         * modules/strdup (Makefile.am): Likewise.
59099         * modules/strerror (Makefile.am): Likewise.
59100         * modules/strftime (Makefile.am): Likewise.
59101         * modules/strndup (Makefile.am): Likewise.
59102         * modules/strnlen (Makefile.am): Likewise.
59103         * modules/strpbrk (Makefile.am): Likewise.
59104         * modules/strsep (Makefile.am): Likewise.
59105         * modules/strstr (Makefile.am): Likewise.
59106         * modules/strtod (Makefile.am): Likewise.
59107         * modules/strtoimax (Makefile.am): Likewise.
59108         * modules/strtok_r (Makefile.am): Likewise.
59109         * modules/strtol (Makefile.am): Likewise.
59110         * modules/strtoll (Makefile.am): Likewise.
59111         * modules/strtoul (Makefile.am): Likewise.
59112         * modules/strtoull (Makefile.am): Likewise.
59113         * modules/strtoumax (Makefile.am): Likewise.
59114         * modules/strverscmp (Makefile.am): Likewise.
59115         * modules/sys_socket (Makefile.am): Likewise.
59116         * modules/sys_stat (Makefile.am): Likewise.
59117         * modules/sysexits (Makefile.am): Likewise.
59118         * modules/time_r (Makefile.am): Likewise.
59119         * modules/timegm (Makefile.am): Likewise.
59120         * modules/timespec (Makefile.am): Likewise.
59121         * modules/tmpfile-safer (Makefile.am): Likewise.
59122         * modules/trim (Makefile.am): Likewise.
59123         * modules/unistd-safer (Makefile.am): Likewise.
59124         * modules/unlinkdir (Makefile.am): Likewise.
59125         * modules/unlocked-io (Makefile.am): Likewise.
59126         * modules/userspec (Makefile.am): Likewise.
59127         * modules/utime (Makefile.am): Likewise.
59128         * modules/utimecmp (Makefile.am): Likewise.
59129         * modules/utimens (Makefile.am): Likewise.
59130         * modules/vasnprintf (Makefile.am): Likewise.
59131         * modules/vasprintf (Makefile.am): Likewise.
59132         * modules/vsnprintf (Makefile.am): Likewise.
59133         * modules/xalloc (Makefile.am): Likewise.
59134         * modules/xgetcwd (Makefile.am): Likewise.
59135         * modules/xnanosleep (Makefile.am): Likewise.
59136         * modules/xreadlink (Makefile.am): Likewise.
59137         * modules/xstrtod (Makefile.am): Likewise.
59138         * modules/xstrtol (Makefile.am): Likewise.
59139         * modules/xstrtold (Makefile.am): Likewise.
59140         * modules/yesno (Makefile.am): Likewise.
59141         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59142
59143 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         * modules/error (Makefile.am): Distribute files through
59146         EXTRA_DIST, not lib_SOURCES.
59147
59148 2006-10-12  Eric Blake  <ebb9@byu.net>
59149
59150         * modules/error (Makefile.am): Distribute files in /lib.
59151         * modules/obstack (Makefile.am): Likewise.
59152
59153 2006-10-12  Bruno Haible  <bruno@clisp.org>
59154
59155         * modules/acl (Makefile.am): Distribute all files in lib/ through
59156         EXTRA_DIST.
59157         * modules/arcfour (Makefile.am): Likewise.
59158         * modules/arctwo (Makefile.am): Likewise.
59159         * modules/argmatch (Makefile.am): Likewise.
59160         * modules/argz (Makefile.am): Likewise.
59161         * modules/atexit (Makefile.am): Likewise.
59162         * modules/backupfile (Makefile.am): Likewise.
59163         * modules/c-strtod (Makefile.am): Likewise.
59164         * modules/c-strtold (Makefile.am): Likewise.
59165         * modules/calloc (Makefile.am): Likewise.
59166         * modules/canon-host (Makefile.am): Likewise.
59167         * modules/canonicalize (Makefile.am): Likewise.
59168         * modules/chdir-long (Makefile.am): Likewise.
59169         * modules/chdir-safer (Makefile.am): Likewise.
59170         * modules/check-version (Makefile.am): Likewise.
59171         * modules/chown (Makefile.am): Likewise.
59172         * modules/cloexec (Makefile.am): Likewise.
59173         * modules/close-stream (Makefile.am): Likewise.
59174         * modules/closeout (Makefile.am): Likewise.
59175         * modules/crc (Makefile.am): Likewise.
59176         * modules/cycle-check (Makefile.am): Likewise.
59177         * modules/des (Makefile.am): Likewise.
59178         * modules/dirfd (Makefile.am): Likewise.
59179         * modules/dirname (Makefile.am): Likewise.
59180         * modules/dup2 (Makefile.am): Likewise.
59181         * modules/euidaccess (Makefile.am): Likewise.
59182         * modules/exclude (Makefile.am): Likewise.
59183         * modules/exitfail (Makefile.am): Likewise.
59184         * modules/fcntl-safer (Makefile.am): Likewise.
59185         * modules/file-type (Makefile.am): Likewise.
59186         * modules/fileblocks (Makefile.am): Likewise.
59187         * modules/filemode (Makefile.am): Likewise.
59188         * modules/filenamecat (Makefile.am): Likewise.
59189         * modules/fnmatch (Makefile.am): Likewise.
59190         * modules/fopen-safer (Makefile.am): Likewise.
59191         * modules/fpending (Makefile.am): Likewise.
59192         * modules/fprintftime (Makefile.am): Likewise.
59193         * modules/free (Makefile.am): Likewise.
59194         * modules/fsusage (Makefile.am): Likewise.
59195         * modules/ftruncate (Makefile.am): Likewise.
59196         * modules/fts (Makefile.am): Likewise.
59197         * modules/gc (Makefile.am): Likewise.
59198         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59199         * modules/getaddrinfo (Makefile.am): Likewise.
59200         * modules/getcwd (Makefile.am): Likewise.
59201         * modules/getdelim (Makefile.am): Likewise.
59202         * modules/getdomainname (Makefile.am): Likewise.
59203         * modules/getgroups (Makefile.am): Likewise.
59204         * modules/gethostname (Makefile.am): Likewise.
59205         * modules/gethrxtime (Makefile.am): Likewise.
59206         * modules/getline (Makefile.am): Likewise.
59207         * modules/getloadavg (Makefile.am): Likewise.
59208         * modules/getlogin_r (Makefile.am): Likewise.
59209         * modules/getopt (Makefile.am): Likewise.
59210         * modules/getpass (Makefile.am): Likewise.
59211         * modules/getpass-gnu (Makefile.am): Likewise.
59212         * modules/getsubopt (Makefile.am): Likewise.
59213         * modules/gettime (Makefile.am): Likewise.
59214         * modules/gettimeofday (Makefile.am): Likewise.
59215         * modules/getugroups (Makefile.am): Likewise.
59216         * modules/getusershell (Makefile.am): Likewise.
59217         * modules/glob (Makefile.am): Likewise.
59218         * modules/group-member (Makefile.am): Likewise.
59219         * modules/hard-locale (Makefile.am): Likewise.
59220         * modules/hash (Makefile.am): Likewise.
59221         * modules/hmac-md5 (Makefile.am): Likewise.
59222         * modules/hmac-sha1 (Makefile.am): Likewise.
59223         * modules/human (Makefile.am): Likewise.
59224         * modules/idcache (Makefile.am): Likewise.
59225         * modules/imaxabs (Makefile.am): Likewise.
59226         * modules/imaxdiv (Makefile.am): Likewise.
59227         * modules/inet_ntop (Makefile.am): Likewise.
59228         * modules/inet_pton (Makefile.am): Likewise.
59229         * modules/inttostr (Makefile.am): Likewise.
59230         * modules/isapipe (Makefile.am): Likewise.
59231         * modules/lchown (Makefile.am): Likewise.
59232         * modules/long-options (Makefile.am): Likewise.
59233         * modules/lstat (Makefile.am): Likewise.
59234         * modules/malloc (Makefile.am): Likewise.
59235         * modules/mathl (Makefile.am): Likewise.
59236         * modules/mbchar (Makefile.am): Likewise.
59237         * modules/md2 (Makefile.am): Likewise.
59238         * modules/md4 (Makefile.am): Likewise.
59239         * modules/md5 (Makefile.am): Likewise.
59240         * modules/memcasecmp (Makefile.am): Likewise.
59241         * modules/memchr (Makefile.am): Likewise.
59242         * modules/memcmp (Makefile.am): Likewise.
59243         * modules/memcoll (Makefile.am): Likewise.
59244         * modules/memcpy (Makefile.am): Likewise.
59245         * modules/memmem (Makefile.am): Likewise.
59246         * modules/memmove (Makefile.am): Likewise.
59247         * modules/mempcpy (Makefile.am): Likewise.
59248         * modules/memrchr (Makefile.am): Likewise.
59249         * modules/memset (Makefile.am): Likewise.
59250         * modules/memxor (Makefile.am): Likewise.
59251         * modules/mkancesdirs (Makefile.am): Likewise.
59252         * modules/mkdir (Makefile.am): Likewise.
59253         * modules/mkdir-p (Makefile.am): Likewise.
59254         * modules/mkdtemp (Makefile.am): Likewise.
59255         * modules/mkstemp (Makefile.am): Likewise.
59256         * modules/mktime (Makefile.am): Likewise.
59257         * modules/modechange (Makefile.am): Likewise.
59258         * modules/mountlist (Makefile.am): Likewise.
59259         * modules/nanosleep (Makefile.am): Likewise.
59260         * modules/openat (Makefile.am): Likewise.
59261         * modules/pagealign_alloc (Makefile.am): Likewise.
59262         * modules/physmem (Makefile.am): Likewise.
59263         * modules/poll (Makefile.am): Likewise.
59264         * modules/posixtm (Makefile.am): Likewise.
59265         * modules/posixver (Makefile.am): Likewise.
59266         * modules/putenv (Makefile.am): Likewise.
59267         * modules/quote (Makefile.am): Likewise.
59268         * modules/quotearg (Makefile.am): Likewise.
59269         * modules/raise (Makefile.am): Likewise.
59270         * modules/read-file (Makefile.am): Likewise.
59271         * modules/readline (Makefile.am): Likewise.
59272         * modules/readlink (Makefile.am): Likewise.
59273         * modules/readtokens (Makefile.am): Likewise.
59274         * modules/readutmp (Makefile.am): Likewise.
59275         * modules/realloc (Makefile.am): Likewise.
59276         * modules/regex (Makefile.am): Likewise.
59277         * modules/rename (Makefile.am): Likewise.
59278         * modules/rename-dest-slash (Makefile.am): Likewise.
59279         * modules/rijndael (Makefile.am): Likewise.
59280         * modules/rmdir (Makefile.am): Likewise.
59281         * modules/rpmatch (Makefile.am): Likewise.
59282         * modules/safe-read (Makefile.am): Likewise.
59283         * modules/safe-write (Makefile.am): Likewise.
59284         * modules/same (Makefile.am): Likewise.
59285         * modules/save-cwd (Makefile.am): Likewise.
59286         * modules/savedir (Makefile.am): Likewise.
59287         * modules/setenv (Makefile.am): Likewise.
59288         * modules/settime (Makefile.am): Likewise.
59289         * modules/sha1 (Makefile.am): Likewise.
59290         * modules/sig2str (Makefile.am): Likewise.
59291         * modules/snprintf (Makefile.am): Likewise.
59292         * modules/stdlib-safer (Makefile.am): Likewise.
59293         * modules/stpcpy (Makefile.am): Likewise.
59294         * modules/stpncpy (Makefile.am): Likewise.
59295         * modules/strcase (Makefile.am): Likewise.
59296         * modules/strcasestr (Makefile.am): Likewise.
59297         * modules/strchrnul (Makefile.am): Likewise.
59298         * modules/strcspn (Makefile.am): Likewise.
59299         * modules/strdup (Makefile.am): Likewise.
59300         * modules/strerror (Makefile.am): Likewise.
59301         * modules/strftime (Makefile.am): Likewise.
59302         * modules/strndup (Makefile.am): Likewise.
59303         * modules/strnlen (Makefile.am): Likewise.
59304         * modules/strpbrk (Makefile.am): Likewise.
59305         * modules/strsep (Makefile.am): Likewise.
59306         * modules/strstr (Makefile.am): Likewise.
59307         * modules/strtod (Makefile.am): Likewise.
59308         * modules/strtoimax (Makefile.am): Likewise.
59309         * modules/strtok_r (Makefile.am): Likewise.
59310         * modules/strtol (Makefile.am): Likewise.
59311         * modules/strtoll (Makefile.am): Likewise.
59312         * modules/strtoul (Makefile.am): Likewise.
59313         * modules/strtoull (Makefile.am): Likewise.
59314         * modules/strtoumax (Makefile.am): Likewise.
59315         * modules/strverscmp (Makefile.am): Likewise.
59316         * modules/time_r (Makefile.am): Likewise.
59317         * modules/timegm (Makefile.am): Likewise.
59318         * modules/tmpfile-safer (Makefile.am): Likewise.
59319         * modules/unistd-safer (Makefile.am): Likewise.
59320         * modules/unlinkdir (Makefile.am): Likewise.
59321         * modules/userspec (Makefile.am): Likewise.
59322         * modules/utime (Makefile.am): Likewise.
59323         * modules/utimecmp (Makefile.am): Likewise.
59324         * modules/utimens (Makefile.am): Likewise.
59325         * modules/vasnprintf (Makefile.am): Likewise.
59326         * modules/vasprintf (Makefile.am): Likewise.
59327         * modules/vsnprintf (Makefile.am): Likewise.
59328         * modules/xalloc (Makefile.am): Likewise.
59329         * modules/xgetcwd (Makefile.am): Likewise.
59330         * modules/xnanosleep (Makefile.am): Likewise.
59331         * modules/xreadlink (Makefile.am): Likewise.
59332         * modules/xstrtod (Makefile.am): Likewise.
59333         * modules/xstrtol (Makefile.am): Likewise.
59334         * modules/xstrtold (Makefile.am): Likewise.
59335         * modules/yesno (Makefile.am): Likewise.
59336
59337 2006-10-12  Jim Meyering  <jim@meyering.net>
59338
59339         * m4/getloadavg.m4: Revert the change below.
59340
59341         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59342         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59343         fail with a symlink, which is what coreutils' ./bootstrap now
59344         creates by default.
59345
59346 2006-10-12  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59349         mingw.
59350         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59351         MSVC and mingw explicitly.
59352
59353 2006-10-11  Simon Josefsson  <jas@extundo.com>
59354             Bruno Haible  <bruno@clisp.org>
59355
59356         Add support for multiple gnulib-tool invocations in the scope of a
59357         single configure.ac file.
59358         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59359         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59360         with the same contents as the _LIBADD variable.
59361         (func_emit_initmacro_start, func_emit_initmacro_end,
59362         func_emit_initmacro_done): New functions.
59363         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59364         gl_LIBOBJS and gl_LTLIBOBJS.
59365
59366 2006-10-11  Bruno Haible  <bruno@clisp.org>
59367
59368         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59369         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59370         autoreconf. Instead, invoke autopoint explicitly but move back the
59371         *.m4 files from gnulib.
59372
59373 2006-10-11  Bruno Haible  <bruno@clisp.org>
59374
59375         * gnulib-tool (func_usage): Make module names after --create-testdir
59376         optional.
59377         (func_create_testdir): If no module was specified, use nearly all
59378         modules.
59379
59380 2006-10-12  Jim Meyering  <jim@meyering.net>
59381
59382         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59383         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59384         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59385         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59386         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59387         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59388         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59389         (fts_set_stat_required): New function.
59390         (fts_open): Defer the calls to fts_stat, if possible or requested.
59391         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59392         into fts_stat itself.
59393         (fts_read): Perform any required (deferred) fts_stat call.
59394         (fts_build): Likewise, for the directory we're about to open and read.
59395         In the readdir loop, carefully decide whether each entry will require
59396         an eventual call to fts_stat, using dirent.d_type info if available.
59397         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59398         a command line argument into this function.  Update all callers.
59399         Map a return value of FTS_DOT to FTS_D for a command line argument.
59400         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59401         Thanks to Miklos Szeredi for his tenacity and for the initial
59402         bug report about "find" failing on a FUSE-based file system.
59403
59404         * lib/fts.c (fts_open): Use consistent indentation.
59405
59406 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59409         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59410         reported by Jim Meyering.  All uses of cache variables renamed
59411         to match Autoconf's.
59412         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59413         the other one.
59414
59415         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59416         Fix misspelling in diagnostic.
59417
59418 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59419
59420         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59421         defined.  Problem reported by Matthew Woehlke.
59422
59423         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59424         Add support for Tandem NonStop R series.
59425         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59426         Use new macro.
59427
59428         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59429         (has_trailing_slash): Omit size arg; all callers changed.
59430         Omit 'inline', since it doesn't help performance and we'd
59431         need to configure it.
59432         Don't count //, ///, etc. as having a trailing slash.
59433         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59434         (rpl_rename_dest_slash): On failure, use rename's errno rather
59435         than (in some cases) an incorrect or junk errno.
59436         Simplify code by removing need to compute length; this does
59437         cause it to make two passes instead of one over the file name,
59438         but it's worth it.
59439
59440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59441         change, since Autoconf's version may no longer be appropriate now
59442         that we are using CVS Autoconf's version.  Add support for Tandem.
59443
59444 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59445             Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59448         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59449         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59450         gl_AC_TYPE_LONG_LONG.
59451
59452         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59453         instead of HAVE_LONG_LONG.
59454         * lib/printf-args.c (printf_fetchargs): Likewise.
59455         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59456         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59457         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59458         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59459         gl_AC_TYPE_LONG_LONG.
59460
59461 2006-10-11  Bruno Haible  <bruno@clisp.org>
59462
59463         * m4/longlong.m4: Add comments.
59464         * m4/ulonglong.m4: Likewise.
59465
59466 2006-10-10  Bruno Haible  <bruno@clisp.org>
59467
59468         Make it possible to #define stpcpy, strdup to aliases.
59469         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59470         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59471
59472 2006-10-10  Bruno Haible  <bruno@clisp.org>
59473
59474         Make it possible to #define gcd to an alias.
59475         * lib/gcd.c: Include config.h.
59476
59477 2006-10-10  Bruno Haible  <bruno@clisp.org>
59478
59479         Make it possible to #define c_isascii to an alias.
59480         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59481         defined. Undefine the macros before defining them, to avoid gcc
59482         warnings.
59483         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59484         define NO_C_CTYPE_MACROS early.
59485
59486 2006-10-10  Bruno Haible  <bruno@clisp.org>
59487
59488         Make it possible to #define set_program_name to an alias.
59489         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59490         ENABLE_RELOCATABLE early.
59491
59492 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59495         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59496         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59497         More generally, don't assume that 64-bit signed int is available
59498         if unsigned int is, and vice versa.
59499         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59500         unsigned symbols, not on their signed counterparts.
59501         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59502         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59503         (UINT64_C, UINTMAX_C):
59504         Likewise.
59505         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59506         unsigned counterparts.
59507         (Have_long_long, Unsigned): New macros.
59508         (Int): Renamed from INT.
59509         (strtoimax): Use the new macros.
59510         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59511         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59512         * modules/inttypes (inttypes.h): Substitute
59513         HAVE_UNSIGNED_LONG_LONG_INT.
59514         * modules/stdint (stdint.h): Likewise.
59515         (Files): Add m4/ulonglong.m4.
59516
59517 2006-10-10  Bruno Haible  <bruno@clisp.org>
59518
59519         Fix a gcc -Wshadow warning.
59520         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59521         to 'bucket'.
59522         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59523         gl_linked_indexof_from_to): Likewise.
59524         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59525         Likewise.
59526         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59527         Likewise.
59528         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59529         Reported by Eric Blake.
59530
59531 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59532
59533         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59534         for NetBSD.  Problem reported by Bruno Haible.
59535
59536 2006-10-09  Jim Meyering  <jim@meyering.net>
59537
59538         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59539         Patch from Bruno Haible.
59540
59541 2006-10-09  Jim Meyering  <jim@meyering.net>
59542
59543         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59544         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59545         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59546
59547 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59548
59549         Don't include <config.h> twice; this doesn't work in some cases,
59550         e.g., when config.h has "#define intmax_t long long int" and
59551         we include <config.h>, <inttypes.h>, <config.h> in that order.
59552         Problem reported by Matthew Woehlke in:
59553         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59554         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59555         * lib/fts-cycle.c: Don't include config.h.
59556         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59557         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59558         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59559         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59560         inttypes.h.
59561         * lib/xstrtoumax.c: Likewise.
59562         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59563         __strtol and the like, so that this module is more like its siblings.
59564         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59565         Remove; no longer needed now that we assume gnulib inttypes.h.
59566
59567 2006-10-08  Bruno Haible  <bruno@clisp.org>
59568
59569         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59570         option.
59571
59572 2006-10-07  Jim Meyering  <jim@meyering.net>
59573
59574         * modules/inttypes (inttypes.h): Revert what seems to have been
59575         an inadvertent part of today's change: use "|", not "/" in the
59576         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59577
59578 2006-10-07  Bruno Haible  <bruno@clisp.org>
59579
59580         * modules/sublist: New file.
59581
59582 2006-10-07  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59585         * modules/argz (argz.h): Likewise.
59586         * modules/arpa_inet (arpa/inet.h): Likewise.
59587         * modules/byteswap (byteswap.h): Likewise.
59588         * modules/configmake (configmake.h): Likewise.
59589         * modules/fcntl (fcntl.h): Likewise.
59590         * modules/fnmatch (fnmatch.h): Likewise.
59591         * modules/getopt (getopt.h): Likewise.
59592         * modules/glob (glob.h): Likewise.
59593         * modules/inttypes (inttypes.h): Likewise.
59594         * modules/netinet_in (netinet/in.h): Likewise.
59595         * modules/poll (poll.h): Likewise.
59596         * modules/stdbool (stdbool.h): Likewise.
59597         * modules/stdint (stdint.h): Likewise.
59598         * modules/sys_select (sys/select.h): Likewise.
59599         * modules/sys_socket (sys/socket.h): Likewise.
59600         * modules/sys_stat (sys/stat.h): Likewise.
59601         * modules/sysexits (sysexits.h): Likewise.
59602         * modules/unistd (unistd.h): Likewise.
59603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59604         Add a "DO NOT EDIT" comment to the generated file.
59605         (func_import): Likewise for gnulib-comp.m4.
59606
59607 2006-10-07  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/gl_sublist.h: New file.
59610         * lib/gl_sublist.c: New file.
59611
59612 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59615         name (relative to the original working directory) and the file
59616         name component (relative to the temporary working directory).  All
59617         callers changed.
59618         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59619         * lib/mkdir-p.c (make_dir_parents): Likewise.
59620         * lib/mkdir-p.h (make_dir_parents): Likewise.
59621
59622 2006-10-06  Eric Blake  <ebb9@byu.net>
59623
59624         Define several macros for use by the clean-temp module.
59625         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59627         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59628
59629         * lib/clean-temp.h (close_stream_temp): New declaration.
59630         * lib/clean-temp.c (includes): Pull in headers according to what
59631         other modules are in use.
59632         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59633
59634 2006-10-06  Bruno Haible  <bruno@clisp.org>
59635
59636         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59637         instead of fopen, fwriteerror.
59638
59639 2006-10-06  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59642         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59643         int.
59644         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59645         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59646         Return an error indicator.
59647         Suggested by Eric Blake.
59648
59649 2006-10-06  Bruno Haible  <bruno@clisp.org>
59650
59651         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59652         Reported by Eric Blake.
59653
59654 2006-10-06  Bruno Haible  <bruno@clisp.org>
59655
59656         * modules/closeout (Description): Mention stderr too.
59657
59658 2006-10-06  Bruno Haible  <bruno@clisp.org>
59659         and Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * lib/closeout.c (close_stdout): Also close stderr.
59662         * lib/closeout.h: Update comment.
59663
59664 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59667         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59668         * lib/dirchownmod.c: Include lchown.h.
59669         * lib/lchown.c: Don't include files that lchown.h now includes.
59670         Don't declare chown, since lchown.h now does that.
59671         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59672         (lchown): Define to rpl_chown if lchown is declared but
59673         does not exist.  Declare using a prototype if lchown is not
59674         declared.  Add a copyright notice.
59675         * lib/mkstemp.h: Include <unistd.h>.
59676         * lib/openat.c: Include lchown.h.
59677
59678         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59679         we now test for that separately.
59680         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59681         rather than O_NOFOLLOW, when testing whether it's possible to
59682         avoid a race condition reliably.
59683         * lib/savewd.c (savewd_chdir): Likewise.
59684
59685         Remove macros that are no longer needed now that stdint.h is
59686         reliable.
59687         * lib/fsusage.c (UINTMAX_MAX): Remove.
59688         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59689         * lib/utimecmp.c (SIZE_MAX): Remove.
59690
59691         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59692
59693         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59694         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59695         O_NOATIME works.
59696
59697 2006-10-05  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/gl_list.h (gl_sortedlist_search_from_to,
59700         gl_sortedlist_indexof_from_to): New declarations.
59701         (gl_list_implementation): New fields sortedlist_search_from_to,
59702         sortedlist_indexof_from_to.
59703         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59704         inline functions.
59705         * lib/gl_list.c (gl_sortedlist_search_from_to,
59706         gl_sortedlist_indexof_from_to): New functions.
59707         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59708         function.
59709         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59710         (gl_array_sortedlist_search_from_to): New function.
59711         (gl_array_list_implementation): Update.
59712         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59713         function.
59714         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59715         (gl_carray_sortedlist_search_from_to): New function.
59716         (gl_carray_list_implementation): Update.
59717         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59718         gl_linked_sortedlist_indexof_from_to): New functions.
59719         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59720         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59721         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59722         gl_tree_sortedlist_indexof_from_to): New functions.
59723         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59724         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59725         Update.
59726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59727         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59728         Update.
59729
59730 2006-10-05  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59733         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59734         (struct gl_list_implementation): Add fields search_from_to,
59735         indexof_from_to. Remove fields search, indexof.
59736         (gl_list_search): Use the search_from_to method.
59737         (gl_list_search_from, gl_list_search_from_to): New functions.
59738         (gl_list_indexof): Use the indexof_from_to method.
59739         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59740         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59741         (gl_list_search_from, gl_list_search_from_to): New functions.
59742         (gl_list_indexof): Use the indexof_from_to method.
59743         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59744         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59745         gl_array_indexof. Add start_index, end_index arguments.
59746         (gl_array_search_from_to): Renamed from gl_array_search. Add
59747         start_index, end_index arguments.
59748         (gl_array_remove, gl_array_list_implementation): Update.
59749         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59750         gl_carray_indexof. Add start_index, end_index arguments.
59751         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59752         start_index, end_index arguments.
59753         (gl_carray_remove, gl_carray_list_implementation): Update.
59754         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59755         gl_linked_search. Add start_index, end_index arguments.
59756         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59757         start_index, end_index arguments.
59758         (gl_linked_remove): Update.
59759         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59760         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59761         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59762         field to 'size_t'.
59763         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59764         gl_tree_search. Add start_index, end_index arguments.
59765         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59766         start_index, end_index arguments.
59767         (gl_tree_remove): Update.
59768         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59769         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59770         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59771         function.
59772         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59773         gl_tree_search. Add start_index, end_index arguments.
59774         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59775         start_index, end_index arguments.
59776         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59777         Update.
59778         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59779
59780 2006-10-05  Bruno Haible  <bruno@clisp.org>
59781
59782         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59783
59784         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59785         fwriteerror_temp): New declarations.
59786         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59787         (descriptors): New variable.
59788         (cleanup): First, close the descriptors.
59789         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59790         fclose_temp, fwriteerror_temp): New functions.
59791
59792 2006-10-04  Jim Meyering  <jim@meyering.net>
59793
59794         * lib/fts.c (fts_open): Tiny comment change.
59795
59796 2006-10-04  Bruno Haible  <bruno@clisp.org>
59797
59798         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59799         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59800         gl_LOCK_BODY.
59801         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59802         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59803         gl_LOCK_EARLY_BODY.
59804         (gl_LOCK): Require gl_LOCK_BODY.
59805
59806 2006-10-04  Bruno Haible  <bruno@clisp.org>
59807
59808         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59809         (gl_oset_search_atleast): New declaration.
59810         (struct gl_oset_implementation): Add field 'search_atleast'.
59811         (gl_oset_search_atleast): New inline function.
59812         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59813         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59814         (gl_array_oset_implementation): Update.
59815         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59816         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59817         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59818
59819 2006-10-04  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59822
59823 2006-10-03  Bruno Haible  <bruno@clisp.org>
59824
59825         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59826         from gl_avltreehash_list_implementation.
59827
59828 2006-10-03  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/gl_oset.c (gl_oset_add): Fix return type.
59831
59832 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59833
59834         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59835
59836 2006-10-02  Eric Blake  <ebb9@byu.net>
59837
59838         * modules/strnlen (Depends-on): Add extensions.
59839
59840 2006-10-02  Eric Blake  <ebb9@byu.net>
59841
59842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59843         definition in 2.60+.
59844
59845 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59846
59847         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59848         checks.
59849
59850 2006-10-02  Bruno Haible  <bruno@clisp.org>
59851
59852         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59853         to the AUTOMAKE_OPTIONS.
59854         Reported by Jim Meyering.
59855
59856 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         Work around bug in Solaris 10 /proc file system:
59859         /proc/self/fd/NNN/.. isn't the parent directory of
59860         the directory whose file descriptor is NNN.  This needs to
59861         be worked around at run time, not compile time, since a
59862         program might be built on Solaris 8, where things work, and
59863         run on Solaris 10.
59864         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59865         to use the following interface instead:
59866         (OPENAT_BUFFER_SIZE): New macro.
59867         (openat_proc_name): New function.
59868         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59869         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59870         Likewise.
59871         * lib/openat-proc.c: New file.
59872         * modules/openat (Files): Add lib/openat-proc.c.
59873         (Depends-on): Add same-inode, stdbool.
59874         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59875
59876 2006-09-29  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59879         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59880         argument. Set stdout_closed before testing for ferror, not after.
59881         (fwriteerror, fwriteerror_no_ebadf): New functions.
59882
59883 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59884
59885         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59886
59887 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59888
59889         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59890         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59891
59892 2006-09-28  Jim Meyering  <jim@meyering.net>
59893
59894         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59895         Include <unistd.h>.
59896
59897 2006-09-28  Bruno Haible  <bruno@clisp.org>
59898
59899         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59900         * modules/linkedhash-list (Depends-on): Likewise.
59901         * modules/rbtreehash-list (Depends-on): Likewise.
59902
59903 2006-09-28  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/strndup.h: Simplify the redefinition of strndup.
59906         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59907         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59908
59909 2006-09-28  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59912         * lib/gl_linkedhash_list.c: Likewise.
59913         * lib/gl_rbtreehash_list.c: Likewise.
59914
59915 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59916
59917         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59918         getaddrinfo.
59919
59920         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59921         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59922         it causes <stdio_ext.h> to cause a compile-time error.
59923         Problem reported by Nelson H. F. Beebe.
59924         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59925         of HAVE_DECL___PENDING.
59926
59927         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59929         declaration.
59930
59931 2006-09-27  Jim Meyering  <jim@meyering.net>
59932
59933         This file could end up with a definition for a function
59934         named __strndup, rather than rpl_strndup on a system with
59935         incomplete weak_alias support.
59936         * lib/strndup.c (strndup): Rename from __strndup.
59937         Remove #defines that used to map __strndup to strndup.
59938         Don't use K&R prototypes.
59939         Remove LIBC-related code, since this file is not sync'd with glibc.
59940         * lib/strndup.h: Revamp, accordingly.
59941         * m4/strndup.m4: Modernize.
59942
59943 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59944
59945         * modules/savewd (Depends-on): Add 'raise'.
59946         * lib/savewd.c: Include <signal.h>, for 'raise'.
59947
59948 2006-09-26  Jim Meyering  <jim@meyering.net>
59949
59950         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59951         when we detect Darwin 8.7.0's acl_get_file bug.
59952         Rearrange to perform the new (below) run-test while $LIBS
59953         contains any acl-related library.  Set USE_ACL at the end.
59954         (gl_ACL_GET_FILE): New function.
59955
59956 2006-09-26  Eric Blake  <ebb9@byu.net>
59957
59958         * lib/verror.c: Include <config.h> unconditionally.
59959
59960 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         * modules/clock-time (Maintainer): Add self.
59963         * modules/getlogin_r (Depends-on): Add extensions.
59964
59965 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59966
59967         * modules/clock-time: New module.
59968         * modules/nanosleep (Depends-on): Add clock-time.
59969         * modules/gethrxtime (Depends-on): Likewise.
59970         * modules/gettime (Depends-on): Likewise.
59971         * modules/settime (Depends-on): Likewise.
59972
59973         * modules/fts-lgpl: Depend on openat.
59974         * modules/mkancesdirs: Depend on savewd.
59975         * modules/mkdir-p: Likewise.
59976
59977 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59978
59979         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59980
59981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59982         `gl_have_arbitrary_file_name_length_limit' to
59983         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59984         actually works between configure runs.
59985
59986 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59987             Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59990
59991 2006-09-25  Jim Meyering  <jim@meyering.net>
59992
59993         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59994         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59995
59996 2006-09-25  Eric Blake  <ebb9@byu.net>
59997
59998         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59999         exec's in 2006-09-18 patch when shuffling fds.
60000
60001 2006-09-25  Bruno Haible  <bruno@clisp.org>
60002
60003         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60004         Reported by Jim Meyering.
60005
60006 2006-09-24  Jim Meyering  <jim@meyering.net>
60007
60008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60009         compare a pointer against a literal "0".  That caused failures with
60010         at least HP-UX's hpcc.
60011
60012 2006-09-22  Simon Josefsson  <jas@extundo.com>
60013
60014         * modules/gc-sha1:
60015         * modules/gc-md4:
60016         * modules/gc-hmac-sha1:
60017         * modules/gc-hmac-md5:
60018         * modules/gc-des:
60019         * modules/gc-arcfour: Distribute more files.
60020
60021 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60022
60023         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60024         (gl_linked_iterator_from_to): Initialize struct completely.
60025         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60026         (gl_tree_iterator_from_to): Likewise
60027         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60028         * lib/gl_array_list.c [lint] (gl_array_iterator)
60029         (gl_array_iterator_from_to): Likewise.
60030         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60031         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60032         (gl_carray_iterator_from_to): Likewise.
60033
60034         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60035         * lib/md4.c (md4_process_block): Remove unused variable.
60036         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60037         parentheses for clarity.
60038
60039 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60040
60041         * modules/bison-i18n (Depends-on): Add gettext.
60042
60043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60044
60045         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60046         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60047         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60048         also add missing comma that caused broken test.
60049         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60050         stdlib.h, for `abort'.
60051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60052         variables.
60053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60054         include unistd.h if present, for `rmdir'.
60055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60056         variables.
60057         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60058         in the process include standard headers for prototypes.
60059         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60060         gets declared on GNU/Linux.
60061         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60062         unistd.h, for `rmdir'.
60063         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60064
60065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60066         always true.
60067         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60068
60069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60070
60071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60072
60073         * gnulib-tool (func_version): Create output all at once.  This
60074         may help avoid triggering unnecessary SIGPIPEs, and at any
60075         rate it doesn't hurt.
60076
60077 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60078             Bruno Haible  <bruno@clisp.org>
60079
60080         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60081         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60082         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60083
60084         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60085         (gl_FUNC_VASPRINTF): Invoke it.
60086
60087 2006-09-22  Bruno Haible  <bruno@clisp.org>
60088
60089         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60090         getloadavg.c as first argument.
60091
60092 2006-09-22  Bruno Haible  <bruno@clisp.org>
60093
60094         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60095         at the beginning of the gl_INIT macro.
60096         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60097         gl_GETLOADAVG.
60098
60099 2006-09-22  Bruno Haible  <bruno@clisp.org>
60100
60101         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60102         module.
60103         Suggested by Ralf Wildenhues.
60104
60105 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         Import this patch from libc:
60108
60109         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60110
60111         * lib/regex_internal.c (re_string_reconstruct): Handle
60112         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60113         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60114         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60115         re_string_context_at.
60116
60117         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60118         now requires it.
60119         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60120         gl_REGEX now does it for us.
60121         (gl_REGEX): Add test taken from
60122         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60123
60124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60125         Check that large offsets work.  Modernize Autoconf usages.
60126         Prefer "yes" to mean a good thing rather than a bad.
60127         Don't put "#define mkstemp" in config.h, as this might interfere
60128         with standard system headers that "#define mkstemp mkstemp64".
60129
60130         * modules/mkstemp (Depends-on): Add extensions, so that
60131         mkstemp is visible on some platforms.
60132         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60133         (Include): Change to "mkstemp.h" from <stdlib.h>.
60134         (Files): Add mkstemp.h.
60135
60136         * lib/mkstemp.h: New file, since some standard headers
60137         #define mkstemp.
60138         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60139         Include "mkstemp.h".
60140         Make the _LIBC code resemble glibc original more,
60141         e.g., use K&R style.
60142         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60143         (mkstemp): Remove, since mkstemp.h does this for us.
60144         * lib/stdlib--.h: Include mkstemp.h.
60145
60146         Import this patch from libc:
60147
60148         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60149
60150         * lib/tempname.c (__gen_tempname): Change attempts_min
60151         into a macro.  Use preprocessor to decide how to initialize
60152         attempts [Coverity CID 67].
60153
60154 2006-09-20  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/mkdtemp.c: Import from libc.
60157         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60158                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60159                 attempts_min into a macro.  Use preprocessor to decide how to
60160                 initialize attempts [Coverity CID 67].
60161         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60162                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60163                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60164
60165 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60166
60167         * gnulib-tool (func_exit): New function, to allow to pass the
60168         exit status portably through the trap.  Use everywhere.
60169         (--help, --version): Signal a write error.
60170         (trap): catch SIGPIPE, for write errors.
60171         Exit at the end of the trap, with the correct exit status.
60172
60173 2006-09-19  Karl Berry  <karl@gnu.org>
60174
60175         * doc/gnulib.texi: note about the license texinfo files.
60176
60177 2006-09-19  Eric Blake  <ebb9@byu.net>
60178
60179         * gnulib-tool: Avoid space-tab.
60180
60181 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60184         that prevented coreutils 6.1 from building.  Problem reported
60185         by Petter Reinholdtsen.
60186
60187 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * gnulib-tool (avoidlist): Fix typo that broke options like
60190         --avoid=lock that are used by coreutils bootstrap.
60191
60192 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60193
60194         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60195         more systematically.
60196
60197 2006-09-18  Jim Meyering  <jim@meyering.net>
60198
60199         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60200
60201 2006-09-18  Bruno Haible  <bruno@clisp.org>
60202
60203         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60204
60205 2006-09-18  Bruno Haible  <bruno@clisp.org>
60206
60207         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60208         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60209         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60210         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60211         * m4/gettext.m4: Require autoconf >= 2.52.
60212         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60213         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60214         of gl_cv_header_inttypes_h.
60215
60216 2006-09-18  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/javaversion.c: Include configmake.h.
60219
60220 2006-09-18  Bruno Haible  <bruno@clisp.org>
60221
60222         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60223         avoid that the while loops be executed in a subshell.
60224
60225 2006-09-18  Bruno Haible  <bruno@clisp.org>
60226
60227         * MODULES.html.sh (func_module): Break long lines.
60228         Suggested by Bruce Korb <bkorb@gnu.org>.
60229
60230 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60231
60232         Speed up by a factor of 1.12.
60233         * gnulib-tool (nl): New variable.
60234         (func_import): Rewrite include directive extraction to only read each
60235         directive once.
60236
60237 2006-09-17  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/javaversion (Makefile.am): Remove DEFS setting.
60240         (Depends-on): Add configmake, for PKGDATADIR definition.
60241
60242 2006-09-17  Bruno Haible  <bruno@clisp.org>
60243
60244         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60245
60246 2006-09-17  Bruno Haible  <bruno@clisp.org>
60247
60248         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60249         (func_modules_transitive_closure, func_modules_add_dummy,
60250         func_modules_to_filelist, func_import, func_create_testdir,
60251         func_create_megatestdir, ...): Use it wherever possible.
60252         Suggested by Ralf Wildenhues.
60253
60254 2006-09-16  Karl Berry  <karl@gnu.org>
60255
60256         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60257         to avoid sectioning errors.
60258         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60259         [ifinfo]: blank line after @center-ed titles.
60260         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60261         Spell FSF address consistently with others.
60262         (These changes approved by rms.)
60263
60264 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60265
60266         Speed up by a factor of 1.61.
60267         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60268         already checked module names again.
60269
60270 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60271
60272         Speed up by a factor of 1.13.
60273         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60274         for new_files, and the input to func_add_or_update.
60275
60276 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60277
60278         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60279         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60280
60281 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * modules/mkancesdirs (Depends-on): Add fcntl.
60284         * modules/savewd: New file.
60285         * MODULES.html.sh (File system functions): Add savewd.
60286
60287         * modules/configmake (Makefile.am): Add support for the
60288         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60289
60290 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * m4/savewd.m4: New file.
60293
60294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60295
60296         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60297         (dirchownmod): New arg FD.  All callers changed.
60298         Use FD rather than opening the directory ourself, as opening is
60299         now the caller's responsibility.
60300         * lib/dirchownmod.h: Likewise.
60301         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60302         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60303         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60304         (test_dir): Remove.
60305         (mkancesdirs): Return length of prefix of FILE that has already
60306         been made, or -2 if there is a child doing the work.  Redo
60307         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60308         ".", and treat ".." specially since it might stray back into
60309         already-created areas.  Use a subprocess if necessary.  New arg
60310         WD; all users changed.  MAKE_DIR function should now return 1
60311         if it creates a directory that is not readable.  Return -2 if
60312         a child process is spun off.
60313         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60314         Adjust signature to match code.
60315         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60316         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60317         all users changed.
60318         * lib/savewd.c, lib/savewd.h: New files.
60319
60320 2006-09-15  Jim Meyering  <jim@meyering.net>
60321
60322         * modules/rename-dest-slash: New module.
60323         * MODULES.html.sh (posix_compat): Add it here.
60324
60325         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60326
60327 2006-09-15  Jim Meyering  <jim@meyering.net>
60328
60329         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60330         file.
60331
60332         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60333
60334 2006-09-15  Jim Meyering  <jim@meyering.net>
60335
60336         * lib/rename-dest-slash.c (has_trailing_slash): Use
60337         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60338         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60339         test before testing whether SRC is a directory.
60340         Suggestions from Bruno Haible.
60341
60342         Avoid a warning about an unused variable.
60343         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60344         into the #ifdef block where it's used.
60345
60346         * lib/rename-dest-slash.c: New file.
60347
60348 2006-09-14  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/allocsa.c: Include <config.h> unconditionally.
60351         * lib/asnprintf.c: Likewise.
60352         * lib/asprintf.c: Likewise.
60353         * lib/c-strcasecmp.c: Likewise.
60354         * lib/c-strcasestr.c: Likewise.
60355         * lib/c-strncasecmp.c: Likewise.
60356         * lib/c-strstr.c: Likewise.
60357         * lib/classpath.c: Likewise.
60358         * lib/clean-temp.c: Likewise.
60359         * lib/concatpath.c: Likewise.
60360         * lib/copy-file.c: Likewise.
60361         * lib/csharpcomp.c: Likewise.
60362         * lib/csharpexec.c: Likewise.
60363         * lib/execute.c: Likewise.
60364         * lib/fatal-signal.c: Likewise.
60365         * lib/findprog.c: Likewise.
60366         * lib/fwriteerror.c: Likewise.
60367         * lib/gl_array_list.c: Likewise.
60368         * lib/gl_array_oset.c: Likewise.
60369         * lib/gl_avltree_list.c: Likewise.
60370         * lib/gl_avltree_oset.c: Likewise.
60371         * lib/gl_avltreehash_list.c: Likewise.
60372         * lib/gl_carray_list.c: Likewise.
60373         * lib/gl_linked_list.c: Likewise.
60374         * lib/gl_linkedhash_list.c: Likewise.
60375         * lib/gl_list.c: Likewise.
60376         * lib/gl_oset.c: Likewise.
60377         * lib/gl_rbtree_list.c: Likewise.
60378         * lib/gl_rbtree_oset.c: Likewise.
60379         * lib/gl_rbtreehash_list.c: Likewise.
60380         * lib/imaxabs.c: Likewise.
60381         * lib/imaxdiv.c: Likewise.
60382         * lib/javacomp.c: Likewise.
60383         * lib/javaexec.c: Likewise.
60384         * lib/javaversion.c: Likewise.
60385         * lib/linebreak.c: Likewise.
60386         * lib/localcharset.c: Likewise.
60387         * lib/lock.c: Likewise.
60388         * lib/mbchar.c: Likewise.
60389         * lib/mbswidth.c: Likewise.
60390         * lib/mkdtemp.c: Likewise.
60391         * lib/pipe.c: Likewise.
60392         * lib/printf-args.c: Likewise.
60393         * lib/printf-parse.c: Likewise.
60394         * lib/progname.c: Likewise.
60395         * lib/progreloc.c: Likewise.
60396         * lib/readlink.c: Likewise.
60397         * lib/sh-quote.c: Likewise.
60398         * lib/stpcpy.c: Likewise.
60399         * lib/stpncpy.c: Likewise.
60400         * lib/strcasecmp.c: Likewise.
60401         * lib/strcasestr.c: Likewise.
60402         * lib/strcspn.c: Likewise.
60403         * lib/striconv.c: Likewise.
60404         * lib/strncasecmp.c: Likewise.
60405         * lib/strnlen1.c: Likewise.
60406         * lib/strstr.c: Likewise.
60407         * lib/strtok_r.c: Likewise.
60408         * lib/tls.c: Likewise.
60409         * lib/tmpdir.c: Likewise.
60410         * lib/unicodeio.c: Likewise.
60411         * lib/unsetenv.c: Likewise.
60412         * lib/vasnprintf.c: Likewise.
60413         * lib/vasprintf.c: Likewise.
60414         * lib/wait-process.c: Likewise.
60415         * lib/xallocsa.c: Likewise.
60416         * lib/xsetenv.c: Likewise.
60417         * lib/xstriconv.c: Likewise.
60418
60419 2006-09-13  Simon Josefsson  <jas@extundo.com>
60420
60421         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60422         that internally, suggested by Ralf Wildenhues
60423         <Ralf.Wildenhues@gmx.de>.
60424
60425 2006-09-13  Simon Josefsson  <jas@extundo.com>
60426
60427         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60428         @LIBOBJS@.
60429         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60430
60431 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60434         longer worry about uses that don't define HAVE_CONFIG_H.
60435         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60436         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60437         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60438         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60439         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60440         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60441         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60442         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60443         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60444         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60445         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60446         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60447         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60448         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60449         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60450         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60451         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60452         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60453         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60454         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60455         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60456         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60457         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60458         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60459         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60460         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60461         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60462         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60463         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60464         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60465         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60466         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60467         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60468         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60469         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60470         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60471         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60472         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60473         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60474         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60475         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60476         Likewise.
60477
60478 2006-09-13  Eric Blake  <ebb9@byu.net>
60479
60480         * lib/getopt.c: Fix typo in last commit.
60481
60482 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60483
60484         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60485         dgettext.
60486
60487 2006-09-12  Jim Meyering  <jim@meyering.net>
60488
60489         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60490         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60491         Reported by Nelson H. F. Beebe.
60492
60493 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60494
60495         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60496         program_invocation_name and program_invocation_short_name are
60497         initialized.
60498         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60499         and program_invocation_short_name to argp.h, so they are visible
60500         to user programs.
60501         * lib/argp.h: Likewise
60502
60503 2006-09-10  Bruno Haible  <bruno@clisp.org>
60504
60505         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60506         m4/inttypes_h.m4, m4/uintmax_t.m4.
60507
60508 2006-09-10  Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60511         gl_AC_TYPE_UINTMAX_T.
60512
60513 2006-09-10  Bruno Haible  <bruno@clisp.org>
60514
60515         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60516
60517 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60518
60519         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60520         convention.  Text proposed by Bruno Haible.
60521         (struct argp_option): Document the use of N_() wrappers.
60522
60523         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60524         '\v', and translate the two parts separately, instead of feeding
60525         the whole string to gettext.  This allows to exclude
60526         '\v' from the strings visible to the translator by writing doc
60527         strings as N_("..") "\v" N_("..").
60528
60529 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60530
60531         * config/srclist.txt: Undo latest change; the bug was fixed.
60532
60533 2006-09-09  Bruno Haible  <bruno@clisp.org>
60534
60535         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60536         assignments if building a library without libtool.
60537         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60538         in func_emit_lib_Makefile_am.
60539         (func_import): When building a static library libfoo.a, arrange to
60540         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60541         (func_create_testdir): Likewise.
60542         * modules/gc (configure.ac, Makefile.am): If building statically,
60543         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60544         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60545         * modules/striconv (configure.ac, Makefile.am): Likewise.
60546         Based on a suggestion by Ralf Wildenhues.
60547
60548 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60549
60550         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60551         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60552         Also:
60553
60554         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60555         Add year_2050_test to catch glibc bug 2821
60556         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60557
60558         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60559         Prefer #ifdef to #if.
60560
60561         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60562         Return from 'main' instead of calling 'exit'.
60563
60564 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60567         returned the maximum time_t value rather than (time_t) -1.
60568         Problem originally reported by William Bardwell
60569         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60570
60571         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60572         Moved to here ...
60573         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60574         ... from here.
60575
60576 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60579         2821 is fixed.
60580
60581 2006-09-08  Jim Meyering  <jim@meyering.net>
60582
60583         Don't make generated files read-only.  That would bother too many
60584         people.  However, do retain the ability to work when targets are
60585         read-only: remove the destination and temporary files before writing
60586         them (when generated via sed or echo), or by using the -f option for
60587         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60588         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60589         * modules/byteswap, modules/configmake, modules/fcntl:
60590         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60591         * modules/localcharset, modules/netinet_in, modules/poll:
60592         * modules/stdbool, modules/stdint, modules/sys_select:
60593         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60594
60595 2006-09-08  Jim Meyering  <jim@meyering.net>
60596
60597         Avoid new build failure on FreeBSD 6.0.
60598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60599         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60600         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60601
60602 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60603
60604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60605
60606 2006-09-07  Jim Meyering  <jim@meyering.net>
60607
60608         Fix global typo in last change: use chmod u-w, not chmod u-x.
60609         Spotted by Paul Eggert and Bruce Korb.
60610         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60611         * modules/byteswap, modules/configmake, modules/fcntl:
60612         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60613         * modules/localcharset, modules/netinet_in, modules/poll:
60614         * modules/stdbool, modules/stdint, modules/sys_select:
60615         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60616
60617 2006-09-06  Jim Meyering  <jim@meyering.net>
60618
60619         Make generated files be read-only.
60620         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60621         Ensure that each generated file is now read-only.
60622         * modules/argz: Likewise.
60623         * modules/arpa_inet: Likewise.
60624         * modules/byteswap: Likewise.
60625         * modules/configmake: Likewise.
60626         * modules/fcntl: Likewise.
60627         * modules/fnmatch: Likewise.
60628         * modules/getopt: Likewise.
60629         * modules/glob: Likewise.
60630         * modules/inttypes: Likewise.
60631         * modules/netinet_in: Likewise.
60632         * modules/poll: Likewise.
60633         * modules/stdbool: Likewise.
60634         * modules/stdint: Likewise.
60635         * modules/sys_select: Likewise.
60636         * modules/sys_socket: Likewise.
60637         * modules/sys_stat: Likewise.
60638         * modules/sysexits: Likewise.
60639         * modules/localcharset: Same as above, but continue using temporary
60640         file named "t-$@" (why different?) rather than the "$@-t" used
60641         everywhere else.
60642
60643         * modules/sysexits (Makefile.am): Replace literal occurrences
60644         of "sysexit.h" more readable, and more consistent, "$@".
60645
60646 2006-09-06  Bruno Haible  <bruno@clisp.org>
60647
60648         * modules/striconv: New file.
60649         * modules/xstriconv: New file.
60650         * MODULES.html.sh (Internationalization functions): Add striconv,
60651         xstriconv.
60652
60653 2006-09-06  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60656         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60657         not using libtool correctly.
60658
60659 2006-09-06  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/striconv.h: New file.
60662         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60663         iconvstring.c.
60664         * lib/xstriconv.h: New file.
60665         * lib/xstriconv.c: New file.
60666
60667 2006-09-06  Bruno Haible  <bruno@clisp.org>
60668
60669         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60670         lib_..._LDFLAGS.
60671
60672 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60673
60674         * lib/argz_.h: Sync from Libtool.
60675
60676         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60677                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60678
60679         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60680
60681 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60682
60683         * modules/trim: New file.
60684
60685 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60686
60687         * lib/trim.h: New file.
60688         * lib/trim.c: New file.
60689
60690 2006-09-05  Bruno Haible  <bruno@clisp.org>
60691
60692         * MODULES.html.sh (String handling): Add trim.
60693
60694 2006-09-04  Karl Berry  <karl@gnu.org>
60695
60696         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60697         until next release.
60698
60699 2006-09-03  Bruno Haible  <bruno@clisp.org>
60700
60701         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60702         correctly.
60703
60704 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60705
60706         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60707         not gl_GETLOADAVG.  Omit unneeded semicolons.
60708         Problems reported by Ralf Wildenhues in
60709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60710         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60711         at the end, which is the usual gnulib style.
60712
60713         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60714         of doing all the work ourselves.
60715         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60716         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60717
60718 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60721         Problem reported by Ralf Wildenhues in
60722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60723
60724         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60725         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60726
60727 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60730         yesterday's patch by changing test -n to test -z.
60731
60732 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60735         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60736         the former is now obsolescent.
60737
60738         * modules/chdir-long (Depends-on): Add fcntl.
60739
60740 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60743         obsolescent, and programs should use gnulib instead.
60744         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60745         but with prefixes changed.
60746
60747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60750         or stdbool.h, because they might not exist while configuring.
60751
60752         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60753         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60754         does that for us.
60755         (O_DIRECTORY): Remove.
60756
60757 2006-08-31  Eric Blake  <ebb9@byu.net>
60758
60759         * gnulib-tool: Don't let emacs change spaces to TAB.
60760
60761 2006-08-31  Bruno Haible  <bruno@clisp.org>
60762
60763         * gnulib-tool: When calling func_import more than once, do it in a
60764         subshell.
60765         Reported by Eric Blake <ebb9@byu.net>.
60766
60767 2006-08-31  Bruno Haible  <bruno@clisp.org>
60768
60769         * gnulib-tool (nl): Remove variable.
60770         (sed_transform_lib_file): Use more robust test for config-h module.
60771         (func_import): Fix typo in 2006-08-25 patch.
60772
60773 2006-08-31  Bruno Haible  <bruno@clisp.org>
60774
60775         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60776         specified, augment Makefile.am variables instead of assigning them.
60777
60778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         Work around a bug in both the Linux and SunOS 64-bit kernels:
60781         nanosleep mishandles sleeps for longer than 2**31 seconds.
60782         Problem reported by Frank v Waveren in
60783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60785         Check for nanosleep bug.
60786         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60787
60788 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         Work around a bug in both the Linux and SunOS 64-bit kernels:
60791         nanosleep mishandles sleeps for longer than 2**31 seconds.
60792         Problem reported by Frank v Waveren in
60793         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60794         * lib/nanosleep.c (BILLION): New constant.
60795         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60796         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60797         implementation.
60798
60799 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60800
60801         * modules/nanosleep (Depends-on): Add gettime.
60802
60803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60804         and Simon Josefsson  <jas@extundo.com>
60805         and Oskar Liljeblad  <oskar@osk.mine.nu>
60806
60807         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60808         * gnulib-tool (func_import): New license type 'unmodifiable license
60809         text'.
60810         * modules/fdl: Use it.  Longer description.
60811         * module/gpl, module/lgpl: New files.
60812
60813 2006-08-30  Jim Meyering  <jim@meyering.net>
60814
60815         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60816         shadowing the parameter.
60817
60818 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60819
60820         Sync from Libtool:
60821
60822         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60823
60824         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60825         sharing with gnulib.  Report by Eric Blake.
60826
60827 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * modules/isapipe: New file.
60830         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60831
60832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60833
60834         * modules/configmake (Makefile.am): Add a comment, and omit
60835         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60836         by Bruno Haible.
60837
60838 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * m4/isapipe.m4: New file.
60841
60842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * lib/isapipe.c, lib/isapipe.h: New files.
60845
60846 2006-08-29  Jim Meyering  <jim@meyering.net>
60847
60848         * modules/configmake (Makefile.am): Make configmake.h depend on
60849         Makefile.  Otherwise, a stale configmake.h could hang around.
60850
60851 2006-08-29  Eric Blake  <ebb9@byu.net>
60852
60853         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60854         resolution of upstream bug 3044.
60855
60856 2006-08-29  Bruno Haible  <bruno@clisp.org>
60857
60858         * modules/localcharset (Depends-on): Add configmake.
60859         (Makefile.am): Remove setting of LIBDIR through DEFS.
60860
60861 2006-08-29  Bruno Haible  <bruno@clisp.org>
60862
60863         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60864         defined.
60865
60866 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60867
60868         * modules/fcntl: New file.
60869         * modules/chdir-safer (Depends-on): Add fcntl.
60870         * modules/fts: Likewise.
60871         * modules/mkdir-p: Likewise.
60872
60873         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60874         This undoes the most recent change, since we're now addressing the
60875         problem in a different way.
60876
60877         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60878         into output, since the output might be called Makefile.am even
60879         if $makefile_name is something different.
60880         (func_import): Use $makefile_am rather than
60881         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60882         empty.
60883
60884         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60885
60886 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60889         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60890         recent change to stdint.m4, since we're now addressing the problem in a
60891         different way.
60892
60893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         * m4/fcntl_h.m4: New file.
60896
60897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * lib/fcntl_.h: New file.
60900         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60901         the fcntl module.
60902         * lib/dirchownmod.c: Likewise.
60903         * lib/fts.c: Likewise.
60904
60905         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60906         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60907         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60908         just before including <inttypes.h>, to avoid circular inclusion.
60909
60910 2006-08-28  Jim Meyering  <jim@meyering.net>
60911
60912         * doc/visibility.texi: Actually read and correct the grammar of the
60913         sentence affected by yesterday's change.
60914
60915 2006-08-28  Eric Blake  <ebb9@byu.net>
60916
60917         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60918         needs wrapper.
60919
60920 2006-08-28  Eric Blake  <ebb9@byu.net>
60921
60922         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60923
60924 2006-08-28  Eric Blake  <ebb9@byu.net>
60925
60926         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60927
60928 2006-08-28  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/c-strstr: New file, from GNU gettext.
60931         * MODULES.html.sh (String handling): Add c-strstr.
60932
60933 2006-08-28  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60936         macros.
60937         Reported by Eric Blake.
60938
60939 2006-08-28  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60942         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60943         * lib/vasprintf.c: Include errno.h, limits.h.
60944         (EOVERFLOW): New fallback definition.
60945         (vasprintf): Test here whether the string length is > INT_MAX.
60946         * lib/vsnprintf.c: Include errno.h, limits.h.
60947         (EOVERFLOW): New fallback definition.
60948         (vsnprintf): Fix bug when generated string was too long for the buffer.
60949         Test here whether the string length is > INT_MAX.
60950
60951 2006-08-28  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/inttypes_.h (SCNX*): Remove definitions.
60954         Reported by Eric Blake.
60955
60956 2006-08-28  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/c-strstr.h: New file, from GNU gettext.
60959         * lib/c-strstr.c: New file, from GNU gettext.
60960
60961 2006-08-28  Bruno Haible  <bruno@clisp.org>
60962
60963         * gnulib-tool: Reorder some statements.
60964
60965 2006-08-28  Bruno Haible  <bruno@clisp.org>
60966
60967         * gnulib-tool: New option --makefile-name.
60968         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60969         $makefile_name.
60970         (func_import): Write $makefile_name to the cache file, and read it from
60971         there unless explicitly specified. Use $makefile_name as file name
60972         instead of Makefile.am. Adjust the recommendations accordingly.
60973
60974 2006-08-28  Bruno Haible  <bruno@clisp.org>
60975
60976         * gnulib-tool (func_verify_module): Check against misapplying patch.
60977
60978 2006-08-28  Bruno Haible  <bruno@clisp.org>
60979
60980         * gnulib-tool (func_relativize, func_relconcat): New functions.
60981         Give an error if --local-dir is given with --update.
60982         Remove trailing slashes from $local_gnulib_dir.
60983         (func_import): Store the relativized $local_gnulib_dir in
60984         gnulib-cache.m4, and read it from there if not specified explicitly.
60985
60986 2006-08-28  Bruno Haible  <bruno@clisp.org>
60987
60988         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60989         is the current directory. Respect also $local_gnulib_dir.
60990
60991 2006-08-28  Bruno Haible  <bruno@clisp.org>
60992             Simon Josefsson  <jas@extundo.com>
60993
60994         BeOS portability.
60995         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60996
60997 2006-08-27  Jim Meyering  <jim@meyering.net>
60998
60999         * doc/visibility.texi: Remove duplicate word: "pointer".
61000
61001 2006-08-26  Bruno Haible  <bruno@clisp.org>
61002
61003         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61004         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61005         (Makefile.am): Create inttypes.h from inttypes_.h.
61006         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61007
61008         * modules/imaxabs: New file.
61009
61010         * modules/imaxdiv: New file.
61011
61012 2006-08-26  Bruno Haible  <bruno@clisp.org>
61013
61014         * m4/inttypes.m4: New file.
61015         * m4/_inttypes_h.m4: Remove file.
61016         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61017         PRI_MACROS_BROKEN.
61018         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61019
61020         * m4/imaxabs.m4: New file.
61021
61022         * m4/imaxdiv.m4: New file.
61023
61024 2006-08-26  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/inttypes_.h: New file.
61027         * lib/inttypes.h: Remove file.
61028         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61029
61030         * lib/imaxabs.c: New file.
61031
61032         * lib/imaxdiv.c: New file.
61033
61034 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         New config-h module, so that "make" output needn't be cluttered
61037         by -DHAVE_CONFIG_H.
61038         * MODULES.html.sh (Support for building libraries and executables):
61039         Add config-h.
61040         * modules/config-h: New file.
61041         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61042         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61043         the config-h module is used.
61044
61045         New configmake module, so that "make" output needn't be cluttered
61046         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61047         * MODULES.html.sh (Support for building libraries and executables):
61048         Add configmake.
61049         * modules/configmake: New file.
61050
61051 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * m4/config-h.m4: New file.
61054
61055 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61056
61057         * config/srclist.txt: Add elisp-comp.
61058
61059 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * MODULES.html.sh (Support for building libraries and executables):
61062         Add elisp-comp.
61063         * build-aux/elisp-comp: New file.
61064         * modules/elisp-comp: New file.
61065
61066 2006-08-24  Bruno Haible  <bruno@clisp.org>
61067
61068         * gnulib-tool (func_create_testdir): Use non-default values of
61069         sourcebase and m4base.
61070
61071 2006-08-24  Bruno Haible  <bruno@clisp.org>
61072
61073         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61074         HTML structure.
61075
61076 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * modules/openat (Depends-on): Add lchown.
61079
61080 2006-08-23  Bruno Haible  <bruno@clisp.org>
61081
61082         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61083         of gl_LOCK_EARLY instead of gl_LOCK.
61084
61085 2006-08-23  Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61088         on OSF/1 to no.
61089         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61090
61091 2006-08-23  Bruno Haible  <bruno@clisp.org>
61092
61093         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61094         as unusable.
61095
61096         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61097         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61098         (gl_LOCK): New macro.
61099
61100 2006-08-22  Simon Josefsson  <jas@extundo.com>
61101
61102         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61103         to md5 module.
61104
61105 2006-08-22  Simon Josefsson  <jas@extundo.com>
61106
61107         * MODULES.html.sh: Add "Support for maintaining and release
61108         projects".
61109
61110         * build-aux/gnupload: New file, from coreutils.
61111
61112 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         Avoid the need for AC_LIBSOURCES in m4 macros.
61115         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61116         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61117         * modules/check-version (EXTRA_DIST): Add check-version.h.
61118         * modules/crc (EXTRA_DIST): Add crc.h.
61119         * modules/des (EXTRA_DIST): Add des.h.
61120         * modules/gc (EXTRA_DIST): Add gc.h.
61121         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61122         * modules/getline (EXTRA_DIST): Add getline.h.
61123         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61124         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61125         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61126         * modules/md2 (EXTRA_DIST): Add md2.h.
61127         * modules/md4 (EXTRA_DIST): Add md4.h.
61128         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61129         * modules/read-file (EXTRA_DIST): Add read-file.h.
61130         * modules/readline (EXTRA_DIST): Add readline.h.
61131         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61132         rijndael-api-fst.h.
61133
61134 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * m4/rijndael.m4 (gl_ARCFOUR):
61137         * m4/arctwo.m4 (gl_ARCTWO):
61138         * m4/check-version.m4 (gl_CHECK_VERSION):
61139         * m4/crc.m4 (gl_CRC):
61140         * m4/des.m4 (gl_DES):
61141         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61142         * m4/gc.m4 (gl_GC):
61143         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61144         * m4/getline.m4 (gl_FUNC_GETLINE):
61145         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61146         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61147         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61148         * m4/md2.m4 (gl_MD2):
61149         * m4/md4.m4 (gl_MD4):
61150         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61151         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61152         * m4/readline.m4 (gl_FUNC_READLINE):
61153         * m4/rijndael.m4 (gl_RIJNDAEL):
61154         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61155         to get the necessary .h files and whatnot.
61156
61157 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61160         gnulib rather than the other way around.
61161         * config/srclistvars.sh (COREUTILS): Remove.
61162
61163 2006-08-22  Jim Meyering  <jim@meyering.net>
61164
61165         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61166
61167         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61168
61169 2006-08-22  Eric Blake  <ebb9@byu.net>
61170
61171         * modules/regexprops-generic: New file.
61172         * MODULES.html.sh (Support for building documentation): List it.
61173
61174 2006-08-22  Eric Blake  <ebb9@byu.net>
61175
61176         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61177         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61179         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61180
61181 2006-08-22  Bruno Haible  <bruno@clisp.org>
61182
61183         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61184         and lib_LTLIBRARIES like the other lib_* variables.
61185
61186 2006-08-22  Bruno Haible  <bruno@clisp.org>
61187
61188         * build-aux/x-to-1.in: New file, from GNU gettext.
61189
61190 2006-08-22  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61193         <utmpx.h> exists.
61194
61195 2006-08-22  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61198         <utmpx.h> exists.
61199
61200 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61201
61202         BeOS portability.
61203         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61204         exist.
61205         Problem reported by Bruno Haible.
61206
61207 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         Avoid the need for AC_LIBSOURCES in m4 macros.
61210         * modules/acl (EXTRA_DIST): Add acl.h.
61211         * modules/argmatch (Files): Add m4/argmatch.m4.
61212         (configure.ac): Add gl_ARGMATCH.
61213         (EXTRA_DIST): Renamed from lib_SOURCES, for
61214         consistency with the other modules.  Remove argmatch.c.
61215         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61216         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61217         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61218         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61219         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61220         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61221         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61222         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61223         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61224         * modules/closeout (EXTRA_DIST): Add closeout.h.
61225         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61226         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61227         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61228         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61229         dirname.h; remove basename.c and stripslash.c.
61230         * modules/exclude (EXTRA_DIST): Add exclude.h.
61231         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61232         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61233         * modules/file-type (EXTRA_DIST): Add file-type.h.
61234         * modules/filemode (EXTRA_DIST): Add filemode.h.
61235         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61236         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61237         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61238         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61239         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61240         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61241         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61242         * modules/getdate (EXTRA_DIST): Add getdate.c.
61243         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61244         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61245         * modules/getpass (EXTRA_DIST): Add getpass.h.
61246         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61247         * modules/group-member (EXTRA_DIST): Add group-member.h.
61248         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61249         * modules/hash (EXTRA_DIST): Add hash.h.
61250         * modules/human (EXTRA_DIST): Add human.h.
61251         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61252         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61253         * modules/lchown (EXTRA_DIST): Add lchown.h.
61254         * modules/long-options (EXTRA_DIST): Add long-options.h.
61255         * modules/lstat (EXTRA_DIST): Add lstat.h.
61256         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61257         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61258         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61259         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61260         * modules/memxor (EXTRA_DIST): Add memxor.h.
61261         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61262         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61263         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61264         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61265         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61266         * modules/physmem (EXTRA_DIST): Add physmem.h.
61267         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61268         * modules/posixver (EXTRA_DIST): Add posixver.h.
61269         * modules/quote (EXTRA_DIST): Add quote.h.
61270         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61271         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61272         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61273         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61274         regex_internal.h regexec.c.
61275         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61276         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61277         * modules/same (EXTRA_DIST): Add same.h.
61278         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61279         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61280         * modules/savedir (EXTRA_DIST): Add savedir.h.
61281         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61282         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61283         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61284         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61285         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61286         * modules/strdup (EXTRA_DIST): Add strdup.h.
61287         * modules/strftime (EXTRA_DIST): Add strftime.h.
61288         * modules/strndup (EXTRA_DIST): Add strndup.h.
61289         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61290         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61291         * modules/time_r (EXTRA_DIST): Add time_r.h.
61292         * modules/timespec (EXTRA_DIST): Add timespec.h.
61293         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61294         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61295         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61296         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61297         * modules/userspec (EXTRA_DIST): Add userspec.h.
61298         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61299         * modules/utimens (EXTRA_DIST): Add utimens.h.
61300         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61301         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61302         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61303         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61304         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61305         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61306         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61307         * modules/yesno (EXTRA_DIST): Add yesno.h.
61308
61309 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61310
61311         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61312
61313         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61314         * m4/dev-ino.m4, same-inode.m4: Remove.
61315
61316         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61317         * m4/acl.m4 (AC_FUNC_ACL):
61318         * m4/backupfile.m4 (gl_BACKUPFILE):
61319         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61320         * m4/canon-host.m4 (gl_CANON_HOST):
61321         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61323         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61324         * m4/cloexec.m4 (gl_CLOEXEC):
61325         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61326         * m4/closeout.m4 (gl_CLOSEOUT):
61327         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61328         * m4/dirname.m4 (gl_DIRNAME):
61329         * m4/exclude.m4 (gl_EXCLUDE):
61330         * m4/exitfail.m4 (gl_EXITFAIL):
61331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61332         * m4/file-type.m4 (gl_FILE_TYPE):
61333         * m4/filemode.m4 (gl_FILEMODE):
61334         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61335         * m4/fpending.m4 (gl_FUNC_FPENDING):
61336         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61337         * m4/fts.m4 (gl_FUNC_FTS):
61338         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61339         * m4/getdate.m4 (gl_GETDATE):
61340         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61341         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61342         * m4/getpass.m4 (gl_FUNC_GETPASS):
61343         * m4/gettime.m4 (gl_GETTIME):
61344         * m4/getugroups.m4 (gl_GETUGROUPS):
61345         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61346         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61347         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61348         * m4/hash.m4 (gl_HASH):
61349         * m4/idcache.m4 (gl_IDCACHE):
61350         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61351         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61352         * m4/long-options.m4 (gl_LONG_OPTIONS):
61353         * m4/lstat.m4 (gl_FUNC_LSTAT):
61354         * m4/md5.m4 (gl_MD5):
61355         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61356         * m4/memcoll.m4 (gl_MEMCOLL):
61357         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61359         * m4/memxor.m4 (gl_MEMXOR):
61360         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61362         * m4/modechange.m4 (gl_MODECHANGE):
61363         * m4/mountlist.m4 (gl_MOUNTLIST):
61364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61365         * m4/openat.m4 (gl_FUNC_OPENAT):
61366         * m4/pathmax.m4 (gl_PATHMAX):
61367         * m4/physmem.m4 (gl_PHYSMEM):
61368         * m4/posixtm.m4 (gl_POSIXTM):
61369         * m4/posixver.m4 (gl_POSIXVER):
61370         * m4/quote.m4 (gl_QUOTE):
61371         * m4/quotearg.m4 (gl_QUOTEARG):
61372         * m4/readtokens.m4 (gl_READTOKENS):
61373         * m4/readutmp.m4 (gl_READUTMP):
61374         * m4/regex.m4 (gl_REGEX):
61375         * m4/safe-read.m4 (gl_SAFE_READ):
61376         * m4/safe-write.m4 (gl_SAFE_WRITE):
61377         * m4/same.m4 (gl_SAME):
61378         * m4/save-cwd.m4 (gl_SAVE_CWD):
61379         * m4/savedir.m4 (gl_SAVEDIR):
61380         * m4/settime.m4 (gl_SETTIME):
61381         * m4/sha1.m4 (gl_SHA1):
61382         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61383         * m4/stat-macros.m4 (gl_STAT_MACROS):
61384         * m4/stat-time.m4 (gl_STAT_TIME):
61385         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61386         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61387         * m4/strdup.m4 (gl_FUNC_STRDUP):
61388         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61389         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61390         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61391         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61392         * m4/time_r.m4 (gl_TIME_R):
61393         * m4/timespec.m4 (gl_TIMESPEC):
61394         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61395         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61396         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61397         * m4/userspec.m4 (gl_USERSPEC):
61398         * m4/utimecmp.m4 (gl_UTIMECMP):
61399         * m4/utimens.m4 (gl_UTIMENS):
61400         * m4/xalloc.m4 (gl_XALLOC):
61401         * m4/xgetcwd.m4 (gl_XGETCWD):
61402         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61403         * m4/xreadlink.m4 (gl_XREADLINK):
61404         * m4/xstrtod.m4 (gl_XSTRTOD):
61405         * m4/yesno.m4 (gl_YESNO):
61406         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61407         to get the necessary .h files and whatnot.
61408
61409 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61410             Bruno Haible  <bruno@clisp.org>
61411
61412         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61413         /bin/sh understanding of '!' conditional negation.
61414
61415 2006-08-21  Jim Meyering  <jim@meyering.net>
61416
61417         * modules/openat (Depends-on): Really alphabetize.
61418
61419         * modules/acl (Depends-on): Add error and quote.
61420
61421         * check-module (find_included_lib_files): Add at-func.c to the
61422         ok-to-include-more-than-once white list.
61423
61424         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61425
61426 2006-08-21  Bruno Haible  <bruno@clisp.org>
61427
61428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61429         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61430         Reported by Martin Lambers <marlam@marlam.de>.
61431
61432 2006-08-21  Bruno Haible  <bruno@clisp.org>
61433
61434         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61435         specify an installation location, don't emit a noinst_LIBRARIES or
61436         noinst_LTLIBRARIES assignment.
61437
61438 2006-08-21  Bruno Haible  <bruno@clisp.org>
61439
61440         BeOS portability.
61441         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61442         BeOS has mbrtowc() but no <wctype.h>.
61443
61444 2006-08-21  Bruno Haible  <bruno@clisp.org>
61445
61446         BeOS portability.
61447         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61448         exist.
61449
61450 2006-08-21  Bruno Haible  <bruno@clisp.org>
61451
61452         BeOS portability.
61453         * lib/mbchar.h: Include <wctype.h> only if it exists.
61454
61455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61456
61457         Remove files that are no longer needed by their respective modules.
61458         * m4/obstack.m4: Remove.
61459         * m4/strerror_r.m4: Remove.
61460         * m4/uint32_t.m4: Remove.
61461         * m4/uintptr_t.m4: Remove.
61462         * m4/ullong_max.m4: Remove.
61463         * m4/xstrtoimax.m4: Remove.
61464         * m4/xstrtoumax.m4: Remove.
61465
61466         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61467         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61468         dependencies now capture this.
61469
61470         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61471         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61472         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61473         * m4/human.m4 (gl_HUMAN): Likewise.
61474         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61475         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61476
61477         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61478
61479         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61480         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61481         stdint.
61482         * m4/human.m4 (gl_HUMAN): Likewise.
61483         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61484         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61486         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61487         * m4/xstrtol (gl_XSTRTOL): Likewise.
61488
61489         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61490         AC_TYPE_LONG_LONG_INT.
61491         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61492         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61493         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61495
61496         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61497         on stdbool.
61498
61499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61500         (gl_PREREQ_XSTRTOUL): Remove.
61501
61502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61503
61504         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61505         mode.
61506
61507 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         Add and change modules to make it easier for coreutils to use
61510         gnulib-tool.
61511         * modules/backupfile (Files): Remove m4/d-ino.m4.
61512         (Depends-on): Add d-ino.
61513         * modules/cycle-check (Depends-on): Add stdint.
61514         (lib_SOURCES): Add cycle-check.h.
61515         * modules/d-ino: New module.
61516         * modules/d-type: New module.
61517         * modules/error (Files): Remove m4/strerror_r.m4.
61518         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61519         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61520         m4/inttypes_h.m4, m4/uintmax_t.m4.
61521         (Depends-on): Add stdint.
61522         (lib_SOURCES): Add fsusage.h.
61523         * modules/getcwd (Files): Remove d-ino.m4.
61524         (Depends-on): Add d-ino.
61525         * modules/getndelim2 (Depends-on): Add stdint.
61526         * modules/glob (Files): Remove m4/d-type.m4.
61527         (Depends-on): Add d-type.
61528         * modules/host-os: New module.
61529         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61530         m4/inttypes_h.m4, m4/uintmax_t.m4.
61531         * Depends-on: Add stdint.
61532         (lib_SOURCES): Add human.h.
61533         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61534         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61535         m4/uintmax_t.m4, m4/ulonglong.m4.
61536         (Depends-on): Add stdint.
61537         (EXTRA_DIST): Add inttostr.h.
61538         * modules/lchmod: New module.
61539         * modules/link-follow: New module.
61540         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61541         (Depends-on): Add lchmod.
61542         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61543         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61544         (Depends-on): Add stdint.
61545         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61546         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61547         (Depends-on): Add stdint.
61548         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61549         * modules/perl: New module.
61550         * modules/regex (Depends-on): Add stdint.
61551         * modules/rmdir-errno: New module.
61552         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61553         m4/intmax_t.m4.
61554         (Depends-on): Add stdint.
61555         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61556         m4/uintmax_t.m4.
61557         (Depends-on): Add stdint.
61558         * modules/unlink-busy: New module.
61559         * modules/utimecmp (Depends-on): Add stdint.
61560         * modules/uptime: New module.
61561         * modules/winsz-ioctl: New module.
61562         * modules/winsz-termios: New module.
61563         * modules/xnanosleep (Depends-on): Add nanosleep.
61564         * modules/ullong_max: Remove.
61565         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61566         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61567         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61568         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61569         (Depends-on): Add inttypes.
61570         (lib_SOURCES): Add xstrtol.h.
61571         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61572         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61573         * MODULES.html.sh: Move 'assert' into the assert section.
61574         Move 'dummy' into the linking section.
61575         Remove ullong_max.
61576         Add section for compatibility checks for POSIX:2001 functions,
61577         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61578         winsz-ioctl, and winsz-termios into it.
61579         Add lchmod.
61580         Add top-level Misc section and put host-os, perl, and uptime
61581         into it.
61582
61583 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61586         now assume the stdint module.  Do not include inttypes.h.
61587         * lib/fsusage.h: Likewise.
61588         * lib/getndelim2.c: Likewise.
61589         * lib/human.h: Likewise.
61590         * lib/inttostr.h: Likewise.
61591         * lib/obstack.c: Likewise.
61592         * lib/regex_internal.h: Likewise.
61593         * lib/tempname.c: Likewise.
61594         * lib/utimecmp.c: Likewise.
61595         * lib/xstrtol.h: Likewise.
61596
61597         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61598
61599         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61600         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61601         * lib/xtime.h: Likewise.
61602
61603 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * modules/openat (Files): Add lib/fchmodat.c.
61606         Fixes problem reported by Jay Youngman.
61607
61608 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61611         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61612
61613 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61614             Bruno Haible  <bruno@clisp.org>
61615
61616         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61617         and is a script that invokes bison. Tighten the code. Add comments.
61618
61619 2006-08-18  Jim Meyering  <jim@meyering.net>
61620
61621         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61622         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61623         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61624         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61625
61626 2006-08-18  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/bison-i18n: New file.
61629         * MODULES.html.sh (Internationalization functions): Add it.
61630
61631 2006-08-18  Bruno Haible  <bruno@clisp.org>
61632
61633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61634         sys/statvfs.h. When getmntinfo was found, check its declaration and
61635         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61636
61637 2006-08-18  Bruno Haible  <bruno@clisp.org>
61638
61639         * m4/bison-i18n.m4: New file, from bison.
61640
61641 2006-08-18  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61644         (ME_DUMMY): Treat "kernfs" as a dummy.
61645         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61646
61647 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         Update from coreutils.
61650
61651         2006-08-15  Jim Meyering  <jim@meyering.net>
61652
61653         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61654
61655         2006-01-17  Jim Meyering  <jim@meyering.net>
61656
61657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61658
61659         2006-01-11  Jim Meyering  <jim@meyering.net>
61660
61661         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61662         Check for the lchmod function.
61663
61664 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         Update from coreutils.
61667
61668         * lib/__fpending.h: Add copyright notice.
61669         * lib/fprintftime.h: Likewise.
61670         * lib/savedir.c: Use (C) in copyright notice.
61671         * lib/savedir.h: Likewise.
61672
61673         2006-08-15  Jim Meyering  <jim@meyering.net>
61674
61675         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61676         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61677         in support of the EXPECTED_ERRNO macro.
61678         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61679         definitions.  Instead, define the appropriate symbols and include
61680         "at-func.c".
61681         * lib/mkdirat.c (mkdirat): Likewise.
61682         * lib/fchmodat.c (fchmodat): Likewise.
61683         (ENOSYS): Remove definition.
61684         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61685         it.  Don't include "unistd--.h" -- it wasn't ever used.
61686
61687         2006-01-17  Jim Meyering  <jim@meyering.net>
61688
61689         Rewrite fts.c not to change the current working directory,
61690         by using openat, fstatat, fdopendir, etc..
61691
61692         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61693         (HAVE_OPENAT_SUPPORT): Define.
61694         [_LIBC] (fchdir): Don't undef or define; no longer used.
61695         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61696         Now, this `function' always succeeds, and consumes its file descriptor
61697         parameter -- so callers must not close such FDs.  Update callers.
61698         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61699         (diropen): Add parameter, SP.  Adjust all callers.
61700         Implement using diropen_fd, rather than open.
61701         (fts_open): Initialize new member, fts_cwd_fd.
61702         Remove fts_rft-setting code.
61703         (fts_close): Close fts_cwd_fd, if necessary.
61704         (__opendir2): Define in terms of opendir or opendirat,
61705         depending on whether the FST_NOCHDIR flag is set.
61706         (fts_build): Since fts_safe_changedir consumes its FD, and since
61707         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61708         and close the dup'd file descriptor upon failure.
61709         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61710         (fts_safe_changedir): Tweak semantics to reflect that this function
61711         now calls cwd_advance_fd and hence consumes its FD argument.
61712         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61713         [struct FTS] (fts_rft): Remove now-unused member.
61714         [struct FTS] (fts_cycle.state): Improve comment.
61715
61716         * lib/openat.c (openat_needs_fchdir): New function.
61717         * lib/openat.h (openat_needs_fchdir): Declare it.
61718
61719 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61722         Problem and fix reported by Pádraig Brady in
61723         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61724
61725 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61726
61727         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61728
61729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         * lib/memcoll.c (memcoll): Optimize for the common case where the
61732         arguments are bytewise equal.
61733
61734 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * doc/regexprops-generic.texi: Add a copyright notice.
61737
61738 2006-08-15  Bruno Haible  <bruno@clisp.org>
61739
61740         * modules/tmpdir (License): Change to LGPL.
61741
61742 2006-08-15  Bruno Haible  <bruno@clisp.org>
61743
61744         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61745         module.
61746
61747 2006-08-14  Simon Josefsson  <jas@extundo.com>
61748
61749         * config/srclist.txt: Add gnupload.
61750
61751 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         Change copyright notice from LGPL 2 to GPL 2, since that's the
61754         standard form used in the gnulib repository.
61755         * tests/test-lock.c: Likewise.
61756         * tests/test-stdint.c: Likewise.
61757         * tests/test-tls.c: Likewise.
61758
61759         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61760         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61761         Add copyright notice.
61762
61763         * check-module: Add copyright notice.  Output a copyright
61764         notice if "--version" is specified.
61765         * modules/COPYING: New file.
61766         * tests/test-getaddrinfo.c: Add copyright notice.
61767         * tests/test-verify.c: Likewise.
61768
61769 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         Change copyright notice from LGPL 2 to GPL 2, since that's the
61772         standard form used in the gnulib repository.
61773         * lib/lock.c: LGPL -> GPL.
61774         * lib/lock.h: Likewise.
61775         * lib/strnlen1.c: Likewise.
61776         * lib/strnlen1.h: Likewise.
61777         * lib/tls.c: Likewise.
61778         * lib/tls.h: Likewise.
61779         * lib/tmpdir.c: Likewise.
61780
61781         * lib/TODO: Remove; this belongs only in coreutils.
61782
61783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         Add copyright notices to long-enough files that lack them, since
61786         otherwise the files aren't clearly free.  Use the same notice that
61787         getdate.texi already uses.
61788         * doc/alloca-opt.texi: Add copyright notice.
61789         * doc/alloca.texi: Likewise.
61790         * doc/ctime.texi: Likewise.
61791         * doc/functions.texi: Likewise.
61792         * doc/gcd.texi: Likewise.
61793         * doc/gnulib-tool.texi: Likewise.
61794         * doc/inet_ntoa.texi: Likewise.
61795         * doc/visibility.texi: Likewise.
61796
61797         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61798         * doc/quote.texi: Add copyright notice.
61799
61800         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61801         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61802         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61803         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61804         is now obsolete, and give a pointer to the Sun list.
61805         Add copyright notice.
61806
61807 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * config/srclistvars.sh: Add copyright notice.
61810
61811 2006-08-14  Eric Blake  <ebb9@byu.net>
61812
61813         Import the following change from libc:
61814
61815         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61816
61817         Upstream bug 2997.
61818         * lib/misc/error.c: Add space between program name and message if file
61819         name is missing.
61820
61821 2006-08-12  Karl Berry  <karl@gnu.org>
61822
61823         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61824         remove, these originate in gnulib now.
61825
61826 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61827
61828         * doc/Makefile (standards.info standards.html standards.dvi):
61829         Also depend on make-stds.texi.
61830
61831 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61834         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61835
61836         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61837         in wchar_t.  Problem reported by Eric Blake.
61838
61839         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61840         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61841         Also, help the compiler to keep LEN in a register.
61842
61843 2006-08-11  Eric Blake  <ebb9@byu.net>
61844
61845         * users.txt: Sort.  Add tar.
61846
61847 2006-08-11  Bruno Haible  <bruno@clisp.org>
61848
61849         * users.txt: New file.
61850
61851 2006-08-11  Bruno Haible  <bruno@clisp.org>
61852
61853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61854         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61855
61856 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * modules/snprintf (Depends-on): Remove minmax.
61859         (Maintainer): Add self and Bruno.
61860
61861 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61862
61863         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61864         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61865         (EOVERFLOW): Define if the system does not.
61866         Do not include "minmax.h"; it wasn't used.
61867         (snprintf): Don't assume size_t promotes to an unsigned type.
61868         Fix bug when generated string was too long for the buffer: the
61869         buffer's contents are supposed to be the initial prefix of the
61870         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61871         exceeds INT_MAX; do the check ourselves.
61872
61873         Import the following changes from libc:
61874
61875         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61876
61877         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61878         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61879         set wc to the byte which couldn't be converted.
61880         (re_string_reconstruct): Don't clear valid_raw_len before calling
61881         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61882         tip_context using re_string_context_at.
61883
61884         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61885
61886         * lib/posix/regex.h: g++ still cannot handled [restrict].
61887
61888         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61889
61890         * lib/posix/regex.h: Remove special handling for VMS.
61891
61892 2006-08-10  Jim Meyering  <jim@meyering.net>
61893
61894         * modules/same-inode: New module.
61895         * modules/dev-ino: New module.
61896         * modules/cycle-check: Depend on these modules, rather than simply
61897         including their .h files.
61898         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61899         required via m4/cycle-check.m4.
61900         * modules/same: Depend on new same-inode module, rather than
61901         including same-inode.h.
61902         * modules/chdir-safer: New file.
61903
61904         * modules/chown (Depends-on): Add stat-macros.
61905
61906 2006-08-10  Jim Meyering  <jim@meyering.net>
61907
61908         * m4/cycle-check.m4: New file.
61909         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61910         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61911
61912 2006-08-10  Eric Blake  <ebb9@byu.net>
61913
61914         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61915         in from original proposal.
61916
61917 2006-08-10  Eric Blake  <ebb9@byu.net>
61918         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61919
61920         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61921         namespace.
61922
61923 2006-08-10  Bruno Haible  <bruno@clisp.org>
61924
61925         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61926         as well.
61927
61928 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         Sync from coreutils.
61931
61932         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61933
61934         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61935         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61936
61937 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         * modules/restrict: Remove; no longer needed now that we assume
61940         Autoconf 2.59 or later.
61941         * MODULES.html.sh: Remove 'restrict'.
61942         * modules/argp (Depends-on): Remove 'restrict'.
61943         * modules/base64 (Depends-on): Likewise.
61944         * modules/gc (Depends-on): Likewise.
61945         * modules/getaddrinfo (Depends-on): Likewise.
61946         * modules/glob (Depends-on): Likewise.
61947         * modules/inet_ntop (Depends-on): Likewise.
61948         * modules/inet_pton (Depends-on): Likewise.
61949         * modules/memxor (Depends-on): Likewise.
61950         * modules/regex (Depends-on): Likewise.
61951         * modules/strtok_r (Depends-on): Likewise.
61952         * modules/time_r (Depends-on): Likewise.
61953
61954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61957         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61959         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61960         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61961         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61962         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61963         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61964
61965         Merge from coreutils.
61966         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61967         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61969         * m4/time_r.m4 (gl_TIME_R): Likewise.
61970
61971 2006-08-09  Karl Berry  <karl@gnu.org>
61972
61973         * config/srclist.txt: no more gettext-tools, per Bruno.
61974
61975 2006-08-08  Eric Blake  <ebb9@byu.net>
61976
61977         * modules/verror: New module.
61978         * MODULES.html.sh: Document it.
61979
61980 2006-08-08  Eric Blake  <ebb9@byu.net>
61981
61982         * lib/verror.h, lib/verror.c: New files.
61983
61984 2006-08-08  Eric Blake  <ebb9@byu.net>
61985
61986         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61987         verror_at_line output complies with GNU Coding Standards even when
61988         file is NULL.
61989
61990 2006-08-07  Bruno Haible  <bruno@clisp.org>
61991
61992         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61993         versions of AIX.
61994         Reported by Ralf Wildenhues.
61995
61996 2006-08-07  Bruno Haible  <bruno@clisp.org>
61997
61998         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61999         in an AC_DEFUN. Needed so that the autoconf snippets can use
62000         AC_REQUIRE.
62001
62002 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62003
62004         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62005         Initialize pkgdata_DATA.
62006         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62007         overriding it.
62008
62009 2006-08-06  Eric Blake  <ebb9@byu.net>
62010
62011         * lib/error.h: Fold in some upstream changes from glibc.
62012         * lib/error.c: Likewise.
62013
62014 2006-08-04  Bruno Haible  <bruno@clisp.org>
62015
62016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62017         Make the mostlyclean-local rule depend on mostlyclean-generic.
62018         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62019
62020 2006-07-31  Bruno Haible  <bruno@clisp.org>
62021
62022         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62023         <stdlib.h>, <string.h>.
62024
62025 2006-07-30  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/readlink (License): Change to LGPL.
62028
62029 2006-07-30  Bruno Haible  <bruno@clisp.org>
62030
62031         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62032         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62033         set PKGDATADIR to point to it.
62034
62035 2006-07-30  Bruno Haible  <bruno@clisp.org>
62036
62037         * modules/csharpexec (configure.ac): Comment out macro invocation.
62038         * modules/javaexec (configure.ac): Likewise.
62039         * modules/javacomp-script (configure.ac): Likewise.
62040
62041         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62042
62043 2006-07-30  Bruno Haible  <bruno@clisp.org>
62044
62045         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62046         linked-list.
62047
62048 2006-07-30  Bruno Haible  <bruno@clisp.org>
62049
62050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62051
62052 2006-07-30  Bruno Haible  <bruno@clisp.org>
62053
62054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62055         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62056         get removed.
62057
62058 2006-07-29  Bruno Haible  <bruno@clisp.org>
62059
62060         Make it possible for gnulib-tool to work with locally modified or
62061         augmented gnulib repositories.
62062         * gnulib-tool (func_usage): Document --local-dir option.
62063         (local_gnulib_dir): New variable.
62064         Handle --local-dir option.
62065         (func_lookup_file): New function.
62066         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62067         (func_get_description, func_get_filelist, func_get_description,
62068         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62069         func_get_automake_snippet, func_get_include_directive,
62070         func_get_license, func_get_maintainer): Use func_lookup_file.
62071         (func_import, func_create_testdir): Use func_lookup_file.
62072
62073 2006-07-29  Bruno Haible  <bruno@clisp.org>
62074
62075         * modules/setenv (Depends-on): Add unistd.
62076
62077 2006-07-29  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62080
62081 2006-07-29  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62084
62085 2006-07-29  Bruno Haible  <bruno@clisp.org>
62086
62087         * gnulib-tool (import, update): If there is no Makefile.am, look at
62088         aclocal.m4, instead of bailing out.
62089
62090 2006-07-29  Bruno Haible  <bruno@clisp.org>
62091
62092         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62093         Categorize the options by when they are useful.
62094
62095 2006-07-29  Bruno Haible  <bruno@clisp.org>
62096
62097         * gnulib-tool (func_usage): Document option --no-libtool.
62098         Handle option --no-libtool.
62099         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62100         for changed semantics of $libtool variable.
62101         (func_import): Likewise. If libtool is not used, show this through
62102         an option --no-libtool.
62103         (func_create_testdir): Update.
62104
62105 2006-07-29  Bruno Haible  <bruno@clisp.org>
62106
62107         * gnulib-tool (func_import): Extend error message about missing
62108         --doc-base.
62109
62110 2006-07-29  Bruno Haible  <bruno@clisp.org>
62111
62112         * gnulib-tool (func_import): Don't create the $docbase directory if
62113         there is no file to store there.
62114
62115 2006-07-29  Bruno Haible  <bruno@clisp.org>
62116
62117         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62118         relevant, look for configure.ac there, not in the current directory.
62119         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62120
62121 2006-07-29  Bruno Haible  <bruno@clisp.org>
62122
62123         * gnulib-tool (SORT): New variable.
62124         (func_usage): Undocument --assume-autoconf option.
62125         Remove --assume-autoconf option handling.
62126         (autoconf_minversion): Determine from the contents of configure.ac.
62127         (func_import): Remove autoconf_minversion handling.
62128         Suggested by Eric Blake.
62129
62130 2006-07-29  Bruno Haible  <bruno@clisp.org>
62131
62132         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62133
62134 2006-07-29  Bruno Haible  <bruno@clisp.org>
62135
62136         * config/srclist.txt (*setenv.[ch]): Remove rules.
62137
62138 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62139
62140         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62141
62142 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62143
62144         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62145         arpa/inet.h.
62146
62147 2006-07-28  Simon Josefsson  <jas@extundo.com>
62148
62149         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62150         * modules/inet_pton (Depends-on): Likewise.
62151
62152 2006-07-28  Simon Josefsson  <jas@extundo.com>
62153
62154         * m4/netinet_in_h.m4: New file.
62155
62156 2006-07-28  Simon Josefsson  <jas@extundo.com>
62157
62158         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62159         #include's.
62160
62161 2006-07-28  Simon Josefsson  <jas@extundo.com>
62162
62163         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62164         #include's.
62165
62166 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62169         setgid on directories only if they set these bits.
62170         * lib/modechange.h: Remove obsolete comment about masks.
62171
62172 2006-07-28  Eric Blake  <ebb9@byu.net>
62173
62174         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62175         macro expansion.
62176
62177 2006-07-28  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62180
62181 2006-07-28  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62184
62185 2006-07-28  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62188         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62189         Define fallbacks.
62190         Avoids link error on FreeBSD 4.x.
62191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62192
62193         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62194         encoding.
62195         * lib/mbswidth.c (iswcntrl): Likewise.
62196
62197 2006-07-27  Bruno Haible  <bruno@clisp.org>
62198
62199         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62200         test.
62201
62202 2006-07-27  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62205         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62206         defined.
62207
62208 2006-07-26  Eric Blake  <ebb9@byu.net>
62209
62210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62211
62212 2006-07-26  Eric Blake  <ebb9@byu.net>
62213
62214         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62215         like mingw that lack mkstemp.
62216         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62217         avoid compilation warning on mingw.
62218
62219 2006-07-26  Bruno Haible  <bruno@clisp.org>
62220
62221         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62222         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62223         INT_FAST*_MIN, INTPTR_MIN.
62224
62225 2006-07-25  Bruno Haible  <bruno@clisp.org>
62226
62227         * modules/version-etc (Depends-on): Add stdarg.
62228
62229 2006-07-25  Bruno Haible  <bruno@clisp.org>
62230
62231         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62232         complex commands.
62233
62234 2006-07-25  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62237         defined in <stdarg.h> or config.h.
62238
62239 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62242         (gl_STDIO_SAFER): Remove.
62243
62244 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * MODULES.html.sh (File stream based Input/Output):
62247         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62248         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62249         * modules/fopen-safer, modules/tmpfile-safer: New files.
62250         * modules/stdio-safer: Remove.
62251
62252 2006-07-24  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/tmpdir: New file.
62255         * MODULES.html.sh (File system functions): Add it.
62256
62257 2006-07-24  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62260         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62261
62262 2006-07-24  Bruno Haible  <bruno@clisp.org>
62263
62264         * modules/clean-temp: New file.
62265
62266 2006-07-24  Bruno Haible  <bruno@clisp.org>
62267
62268         * m4/tmpdir.m4: New file, from GNU gettext.
62269
62270 2006-07-24  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/tmpdir.h: New file, from GNU gettext.
62273         * lib/tmpdir.c: New file, from GNU gettext.
62274
62275 2006-07-24  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/clean-temp.h: New file, from GNU gettext.
62278         * lib/clean-temp.c: New file, from GNU gettext.
62279
62280 2006-07-23  Eric Blake  <ebb9@byu.net>
62281
62282         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62283         (Depends-on): Add binary-io.
62284
62285 2006-07-23  Eric Blake  <ebb9@byu.net>
62286
62287         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62288
62289 2006-07-23  Eric Blake  <ebb9@byu.net>
62290
62291         * lib/tmpfile-safer.c: New file.
62292         * lib/stdio-safer.h (fopen_safer): Add prototype.
62293         * lib/stdio--.h (tmpfile): Make safer.
62294
62295 2006-07-23  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62298         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62299         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62300         gl_linked_remove_at): Use it.
62301
62302 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62303         and Simon Josefsson <jas@extundo.com>
62304
62305         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62306
62307         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62308
62309 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62310
62311         * modules/close-stream: New file.
62312         * modules/closeout (Description): Make it clear that it exits
62313         with a diagnostic on error.
62314         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62315         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62316
62317 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * m4/close-stream.m4: New file.
62320
62321 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * lib/close-stream.c, lib/close-stream.h: New files.
62324
62325 2006-07-22  Bruno Haible  <bruno@clisp.org>
62326
62327         Merge from GNU gettext 0.15.
62328
62329         2006-05-01  Bruno Haible  <bruno@clisp.org>
62330
62331                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62332
62333         2006-07-22  Bruno Haible  <bruno@clisp.org>
62334
62335                 * modules/javaversion: New file.
62336                 * MODULES.html.sh (Java): Add javaversion.
62337
62338         2006-03-12  Bruno Haible  <bruno@clisp.org>
62339
62340                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62341
62342         2005-12-04  Bruno Haible  <bruno@clisp.org>
62343
62344                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62345                 (untested).
62346
62347         2006-06-21  Bruno Haible  <bruno@clisp.org>
62348
62349                 Avoid warnings from recent versions of mcs.
62350                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62351                 -o, -L, -r any more. Use options documented since mcs-1.0
62352                 instead. Similarly for -g.
62353
62354         2005-12-04  Bruno Haible  <bruno@clisp.org>
62355
62356                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62357                 .resources, not .resource.
62358
62359         2005-07-09  Bruno Haible  <bruno@clisp.org>
62360
62361                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62362                 add a .dll suffix.
62363                 Reported by Mark Junker <mjscod@gmx.de>.
62364
62365         2006-07-22  Bruno Haible  <bruno@clisp.org>
62366
62367                 * modules/gettext: Upgrade to gettext-0.15.
62368                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62369                 m4/visibility.m4.
62370                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62371
62372 2006-07-22  Bruno Haible  <bruno@clisp.org>
62373
62374         Merge from GNU gettext 0.15.
62375
62376         2006-03-25  Bruno Haible  <bruno@clisp.org>
62377
62378                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62379
62380         2006-07-21  Bruno Haible  <bruno@clisp.org>
62381
62382                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62383                 "1.1".
62384
62385         2006-05-09  Bruno Haible  <bruno@clisp.org>
62386
62387                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62388                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62389                 for the conftestver execution.
62390
62391         2006-05-01  Bruno Haible  <bruno@clisp.org>
62392
62393                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62394                 optional target-version argument. Verify that the compiler
62395                 groks source of the specified source-version, or add -source
62396                 option as necessary. Verify that the compiler produces
62397                 bytecode in the specified target-version, or add -target and
62398                 -source options as necessary. Make the result of the test
62399                 available as variable CONF_JAVAC. Also log error output in
62400                 config.log.
62401
62402         2006-03-11  Bruno Haible  <bruno@clisp.org>
62403
62404                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62405
62406         2006-05-09  Bruno Haible  <bruno@clisp.org>
62407
62408                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62409                 CLASSPATH_SEPARATOR to a semicolon.
62410
62411         2006-03-12  Bruno Haible  <bruno@clisp.org>
62412
62413                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62414                 available as variable CONF_JAVA, for subsequent autoconf
62415                 tests. Also log error output in config.log.
62416
62417         2006-07-19  Bruno Haible  <bruno@clisp.org>
62418
62419                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62420                 that getline works on glibc2 systems. Needed to avoid trouble
62421                 in relocatable.c.
62422                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62423
62424         2005-12-04  Bruno Haible  <bruno@clisp.org>
62425
62426                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62427                 launcher (untested).
62428
62429         2005-12-04  Bruno Haible  <bruno@clisp.org>
62430
62431                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62432
62433         2006-07-22  Bruno Haible  <bruno@clisp.org>
62434
62435                 * gettext.m4: Update from GNU gettext-0.15.
62436                 * nls.m4: Likewise.
62437                 * po.m4: Likewise.
62438                 * inttypes-pri.m4: Likewise.
62439                 * inttypes-h.m4: Renamed from inttypes.m4.
62440                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62441
62442 2006-07-22  Bruno Haible  <bruno@clisp.org>
62443
62444         Merge from GNU gettext 0.15.
62445
62446         2005-07-05  Bruno Haible  <bruno@clisp.org>
62447
62448                 * printf-args.c (printf_fetchargs): Work around broken
62449                 definition of wint_t on mingw.
62450
62451         2005-02-12  Bruno Haible  <bruno@clisp.org>
62452
62453                 * xallocsa.h: Add extern "C" for C++.
62454
62455         2006-05-17  Bruno Haible  <bruno@clisp.org>
62456
62457                 Cygwin portability.
62458                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62459
62460         2006-04-30  Bruno Haible  <bruno@clisp.org>
62461
62462                 * progreloc.c: Include <mach-o/dyld.h> if available.
62463                 (find_executable): Use _NSGetExecutablePath when possible.
62464
62465         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62466
62467                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62468                 function.
62469
62470         2005-12-29  Bruno Haible  <bruno@clisp.org>
62471
62472                 * progreloc.c (set_program_name_and_installdir): Fix
62473                 compilation error.
62474
62475         2005-12-04  Bruno Haible  <bruno@clisp.org>
62476
62477                 Cygwin portability.
62478                 * progreloc.c: Include <windows.h> also on Cygwin.
62479                 (find_executable): Add support for Cygwin.
62480                 (set_program_name_and_installdir): Handle also platforms with
62481                 nonempty EXEEXT.
62482
62483         2006-07-11  Bruno Haible  <bruno@clisp.org>
62484
62485                 * javacomp.c: Fix a comment.
62486                 Reported by Jim Meyering.
62487
62488         2006-04-30  Bruno Haible  <bruno@clisp.org>
62489
62490                 * javacomp.h (compile_java_class): Add source_version,
62491                 target_version arguments.
62492                 * javacomp.c: Rewritten to choose only a compiler that
62493                 respects the specified source_version and target_version.
62494
62495         2006-06-27  Bruno Haible  <bruno@clisp.org>
62496
62497                 Assume correct S_ISDIR macro.
62498                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62499
62500         2006-07-22  Bruno Haible  <bruno@clisp.org>
62501
62502                 * javaversion.h: New file, from GNU gettext.
62503                 * javaversion.c: New file, from GNU gettext.
62504                 * javaversion.java: New file, from GNU gettext.
62505                 * javaversion.class: New file, from GNU gettext.
62506
62507         2006-05-17  Bruno Haible  <bruno@clisp.org>
62508
62509                 Cygwin portability.
62510                 * javaexec.c (execute_java_class): Test for jview program
62511                 also on Cygwin.
62512
62513         2006-04-09  Bruno Haible  <bruno@clisp.org>
62514
62515                 * fatal-signal.c: Don't include string.h.
62516                 (at_fatal_signal): Use a copying loop instead of memcpy.
62517
62518         2005-12-04  Bruno Haible  <bruno@clisp.org>
62519
62520                 * csharpexec.c: Add support for 'clix' launcher (untested).
62521                 (execute_csharp_using_sscli): New function.
62522                 (execute_csharp_program): Call it.
62523
62524         2006-06-21  Bruno Haible  <bruno@clisp.org>
62525
62526                 Avoid warnings from recent versions of mcs.
62527                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62528                 -o, -L, -r any more. Use options documented since mcs-1.0
62529                 instead. Similarly for -g.
62530
62531         2005-07-09  Bruno Haible  <bruno@clisp.org>
62532
62533                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62534                 add a .dll suffix.
62535                 Reported by Mark Junker <mjscod@gmx.de>.
62536
62537         2006-06-17  Bruno Haible  <bruno@clisp.org>
62538
62539                 * config.charset: Update for NetBSD 3.0.
62540
62541         2006-05-17  Bruno Haible  <bruno@clisp.org>
62542
62543                 Cygwin portability.
62544                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62545
62546         2006-05-16  Bruno Haible  <bruno@clisp.org>
62547
62548                 * localcharset.c [CYGWIN]: Include <windows.h>.
62549                 (get_charset_aliases): For Cygwin, return the same CPxxx
62550                 aliases list as under WIN32.
62551                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62552                 the environment variables. Fall back to GetACP().
62553
62554         2006-04-05  Bruno Haible  <bruno@clisp.org>
62555
62556                 * config.charset: Update Juan Manuel Guerrero's address.
62557
62558         2005-02-12  Bruno Haible  <bruno@clisp.org>
62559
62560                 * allocsa.h: Add extern "C" for C++.
62561
62562         2005-02-10  Bruno Haible  <bruno@clisp.org>
62563
62564                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62565                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62566
62567         2006-07-22  Bruno Haible  <bruno@clisp.org>
62568
62569                 * gettext.h: Update to GNU gettext-0.15.
62570
62571 2006-07-22  Bruno Haible  <bruno@clisp.org>
62572
62573         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62574         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62575         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62576
62577 2006-07-21  Eric Blake  <ebb9@byu.net>
62578
62579         * modules/stdlib-safer: New file.
62580         * MODULES.html.sh (File stream based Input/Output): Add
62581         stdlib-safer.
62582
62583 2006-07-21  Eric Blake  <ebb9@byu.net>
62584
62585         * lib/stdlib-safer.h: New file from coreutils, required by
62586         stdlib--.h.
62587
62588 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62591
62592 2006-07-20  Bruno Haible  <bruno@clisp.org>
62593
62594         * gnulib-tool: Recognize new option --assume-autoconf.
62595         (autoconf_minversion): New variable.
62596         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62597
62598 2006-07-20  Bruno Haible  <bruno@clisp.org>
62599
62600         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62601
62602 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62603
62604         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62605         Reindent and repaginate.
62606
62607 2006-07-19  Derek Price  <derek@ximbiot.com>
62608
62609         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62610         Correct grammar.
62611
62612 2006-07-17  Bruno Haible  <bruno@clisp.org>
62613
62614         * modules/list: New file.
62615         * modules/array-list: New file.
62616         * modules/carray-list, modules/carray-list-tests: New files.
62617         * modules/linked-list, modules/linked-list-tests: New files.
62618         * modules/avltree-list, modules/avltree-list-tests: New files.
62619         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62620         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62621         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62622         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62623         * modules/oset: New file.
62624         * modules/array-oset: New file.
62625         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62626         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62627         * tests/test-carray_list.c: New file.
62628         * tests/test-linked_list.c: New file.
62629         * tests/test-avltree_list.c: New file.
62630         * tests/test-rbtree_list.c: New file.
62631         * tests/test-linkedhash_list.c: New file.
62632         * tests/test-avltreehash_list.c: New file.
62633         * tests/test-rbtreehash_list.c: New file.
62634         * tests/test-avltree_oset.c: New file.
62635         * tests/test-rbtree_oset.c: New file.
62636         * MODULES.html.sh (Container data structures): New section.
62637
62638 2006-07-17  Bruno Haible  <bruno@clisp.org>
62639
62640         * m4/gl_list.m4: New file.
62641
62642 2006-07-17  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/gl_list.h: New file.
62645         * lib/gl_list.c: New file.
62646         * lib/gl_array_list.h: New file.
62647         * lib/gl_array_list.c: New file.
62648         * lib/gl_carray_list.h: New file.
62649         * lib/gl_carray_list.c: New file.
62650         * lib/gl_linked_list.h: New file.
62651         * lib/gl_linked_list.c: New file.
62652         * lib/gl_anylinked_list1.h: New file.
62653         * lib/gl_anylinked_list2.h: New file.
62654         * lib/gl_avltree_list.h: New file.
62655         * lib/gl_avltree_list.c: New file.
62656         * lib/gl_anyavltree_list1.h: New file.
62657         * lib/gl_anyavltree_list2.h: New file.
62658         * lib/gl_rbtree_list.h: New file.
62659         * lib/gl_rbtree_list.c: New file.
62660         * lib/gl_anyrbtree_list1.h: New file.
62661         * lib/gl_anyrbtree_list2.h: New file.
62662         * lib/gl_anytree_list1.h: New file.
62663         * lib/gl_anytree_list2.h: New file.
62664         * lib/gl_linkedhash_list.h: New file.
62665         * lib/gl_linkedhash_list.c: New file.
62666         * lib/gl_anyhash_list1.h: New file.
62667         * lib/gl_anyhash_list2.h: New file.
62668         * lib/gl_avltreehash_list.h: New file.
62669         * lib/gl_avltreehash_list.c: New file.
62670         * lib/gl_rbtreehash_list.h: New file.
62671         * lib/gl_rbtreehash_list.c: New file.
62672         * lib/gl_anytreehash_list1.h: New file.
62673         * lib/gl_anytreehash_list2.h: New file.
62674
62675         * lib/gl_oset.h: New file.
62676         * lib/gl_oset.c: New file.
62677         * lib/gl_array_oset.h: New file.
62678         * lib/gl_array_oset.c: New file.
62679         * lib/gl_avltree_oset.h: New file.
62680         * lib/gl_avltree_oset.c: New file.
62681         * lib/gl_rbtree_oset.h: New file.
62682         * lib/gl_rbtree_oset.c: New file.
62683         * lib/gl_anytree_oset.h: New file.
62684
62685 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         * m4/mkancesdirs.m4: New file.
62688         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62689         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62690         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62691         it.
62692
62693 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62696         * lib/mkancesdirs.h: New files.
62697         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62698         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62699         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62700         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62701         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62702         callers changed.  Revamp internals significantly, by not
62703         attempting to create directories that are temporarily more
62704         permissive than the final results.  Do not attempt to use
62705         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62706         This removes some race conditions, fixes some bugs, and simplifies
62707         things.  Use new dirchownmod function to do owner and mode changes.
62708         * lib/mkdir-p.h: Likewise.
62709         * lib/modechange.c (octal_to_mode): New function.
62710         (struct mode_change): New member mentioned.
62711         (make_node_op_equals): New arg mentioned.  All callers changed.
62712         (mode_compile): Keep track of which mode bits the user has explicitly
62713         mentioned.
62714         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62715         New arg PMODE_BITS, to keep track of which mode bits the user
62716         mentioned; it treats S_ISUID and S_ISGID speciall.
62717         All callers changed.
62718         * lib/modechange.h: Likewise.
62719
62720 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * MODULES.html.sh: Add mkancestors.
62723         * modules/mkancesdirs: New module.
62724         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62725         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62726         The chdir-safer and afs files are now orphans; I'll remove them
62727         unless someone speaks up.
62728         Add lib/dirchownmod.c, lib/dirchownmod.h.
62729         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62730         Add lchown, mkancesdirs.
62731         (Maintainer): Add self.
62732
62733 2006-07-15  Karl Berry  <karl@gnu.org>
62734
62735         * gnulib-tool: help message wording/arrangement.
62736
62737 2006-07-14  Simon Josefsson  <jas@extundo.com>
62738
62739         * doc/gnulib.texi (Libtool and Windows): New section.
62740
62741 2006-07-12  Simon Josefsson  <jas@extundo.com>
62742
62743         * modules/gendocs (License): Fix license, approved by Karl.
62744
62745 2006-07-12  Eric Blake  <ebb9@byu.net>
62746
62747         * MODULES.html.sh: Add gendocs.
62748
62749 2006-07-11  Eric Blake  <ebb9@byu.net>
62750
62751         * modules/fdl: New module, to install doc/fdl.texi.
62752         * MODULES.html.sh: Add new section for documentation modules.
62753         * gnulib-tool: Avoid space-tab.
62754         (--doc-base): New option, to manage files from doc.
62755
62756 2006-07-11  Eric Blake  <ebb9@byu.net>
62757
62758         * m4/absolute-header.m4: Fix comments to match recent change.
62759
62760 2006-07-11  Eric Blake  <ebb9@byu.net>
62761
62762         * gnulib-tool: List --doc-base before --tests-base.
62763
62764 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62765
62766         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62767
62768 2006-07-11  Bruno Haible  <bruno@clisp.org>
62769
62770         * README: Mention where to put documentation.
62771
62772 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62773
62774         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62775
62776 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62779         to stdint.m4.
62780
62781 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62784         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62785         "no/such/file/stdint.h" when there is no such file, so that
62786         the resulting C code can be parsed by dodgy compilers.
62787         Problems reported by Bob Proulx.
62788
62789 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62790
62791         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62793         macros into the GNU _D_EXACT_NAMLEN.
62794         * lib/savedir.c:  Likewise.
62795         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62796
62797 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62798         and Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62801         * m4/savedir.m4:
62802         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62803         macros into the GNU _D_EXACT_NAMLEN.
62804
62805 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62808         around the absolute name, to work around a problem with the HP-UX
62809         11.23 native C compiler, reported by Bob Proulx.
62810
62811 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62812
62813         * doc/maintain.texi, make-stds.texi: Sync from
62814         <http://savannah.gnu.org/projects/gnustandards>.
62815
62816 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62819
62820 2006-07-09  Jim Meyering  <jim@meyering.net>
62821
62822         * m4/glob.m4: Remove a doubled word in a comment.
62823
62824 2006-07-09  Jim Meyering  <jim@meyering.net>
62825
62826         * lib/argp-pv.c: Remove a doubled word in a comment.
62827         * lib/check-version.c (check_version): Likewise.
62828         * lib/javacomp.c (compile_java_class): Likewise.
62829
62830 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62833         for the benefit of people using Autoconf 2.60.  If you want to
62834         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62835         (or m4/onceonly.m4, if pre-2.57) manually.
62836
62837 2006-07-08  Jim Meyering  <jim@meyering.net>
62838
62839         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62840         comment.
62841         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62842         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62843         comment.
62844
62845 2006-07-08  Jim Meyering  <jim@meyering.net>
62846
62847         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62848
62849 2006-07-07  Simon Josefsson  <jas@extundo.com>
62850
62851         * tests/test-crc.c: Change expected crc value, the test vector
62852         were probably computed using the old broken crc.c?
62853
62854 2006-07-06  Simon Josefsson  <jas@extundo.com>
62855
62856         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62857         now the canonical place for the M4 file).
62858
62859         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62860         from the sys_socket dependency now.
62861
62862         * modules/inet_pton (Files): Ditto.
62863
62864         * modules/inet_ntop (Files): Ditto.
62865
62866 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62867
62868         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62869         not gl_PREREQ_GETUSERSHELL.
62870
62871 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62872
62873         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62874         with only one argument, for Autoconf 2.60.
62875         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62876         expand to nothing, so add a shell command to avoid syntax error.
62877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62878
62879 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62880
62881         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62882
62883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62886         no longer needed.  Check for isblank decl.
62887         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62888         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62889         of existence.
62890
62891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * lib/getloadavg.c: Use __VMS, not VMS.
62894         * lib/getopt.c: Likewise.
62895         * lib/getpagesize.h: Likewise.
62896         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62897         and probably does not work.
62898
62899 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62900
62901         * lib/.cppi-disable: Add wcwidth.
62902         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62903         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62904         (ISGRAPH): Remove.  All uses changed to isgraph.
62905         (FOLD) [!defined _LIBC]: Remove special case.
62906         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62907         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62908         HAVE_ISBLANK.
62909         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62910         case.
62911
62912 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62913
62914         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62915         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62916         brackets.  Other minor changes to suppress some compiler
62917         warnings.
62918
62919 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62920         and Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62923         of invoking obsolescent AC_HEADER_DIRENT macro.
62924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62925         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62926         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62928         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62929         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62930         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62931         * m4/readdir.m4: Remove; no longer needed.
62932
62933 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62934         and Paul Eggert  <eggert@cs.ucla.edu>
62935
62936         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62937         Don't worry about this obsolete case any more.
62938         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62939         directories.
62940         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62941         worry about this obsolete case any more.
62942         * lib/fts.c: Likewise.
62943         * lib/getcwd.c: Likewise.
62944         * lib/glob.h: Likewise.
62945         * lib/savedir.c: Likewise.
62946
62947 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62950         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62952         needed.
62953         All uses removed.
62954         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62955         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62956         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62957         needed.
62958         * m4/getdate.m4 (gl_GETDATE): Likewise.
62959         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62960         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62961         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62962         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62963         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62964         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62965         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62966         needed.
62967
62968 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62969
62970         * lib/memcasecmp.c: Include <limits.h>.
62971         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62972         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62973         Don't assume isdigit succeeds only on '0' through '9'.
62974
62975 2006-07-05  Eric Blake  <ebb9@byu.net>
62976
62977         * modules/getaddrinfo (Depends-on): Add snprintf.
62978
62979 2006-07-05  Eric Blake  <ebb9@byu.net>
62980
62981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62982         to avoid 'header present but could not be compiled' on cygwin.
62983
62984 2006-07-05  Eric Blake  <ebb9@byu.net>
62985
62986         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62987         missing from netdb.h.
62988         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62989
62990 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62991
62992         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62993         no longer needed.
62994         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62995         * m4/getdate.m4 (gl_GETDATE): Likewise.
62996         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62997         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62998         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62999         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63001
63002 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63003
63004         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63005         All uses of is_space replaced by isspace.
63006         * lib/exit.h: Don't talk about STDC_HEADERS.
63007         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63008         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63009         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63010         replaced by isprint etc.
63011         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63012         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63013         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63014         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63015         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63016         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63017
63018 2006-07-05  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63021         the function exists, before testing against AIX.
63022         Reported by Martin Lambers <marlam@marlam.de>.
63023
63024 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63027         From Mark D. Baushke.
63028
63029 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63032         to the absolute name, not just one, to bypass Sun C 5.8's
63033         "warning: #include of /usr/include/... may be non-portable".
63034
63035 2006-07-04  Eric Blake  <ebb9@byu.net>
63036
63037         * modules/dirname-tests: New test module.
63038         * tests/test-dirname.c: New file, replacing dirname.c
63039         TEST_DIRNAME section that was recently deleted.
63040
63041 2006-07-04  Bruno Haible  <bruno@clisp.org>
63042
63043         Assume ANSI C header files and <ctype.h> functions.
63044         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63045         (mbsnwidth): Use isprint, iscntrl instead.
63046
63047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         Merge from coreutils.
63050         * MODULES.html.sh: Add xstrtold.
63051         * modules/xstrtold: New file.
63052         * modules/cycle-check (Files): Add lib/same-inode.h.
63053         * modules/dirname (Files): Add m4/double-slash-root.m4.
63054         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63055         * modules/mkdir-p (Files): Add lib/same-inode.h.
63056         * modules/same (Files): Add lib/same-inode.h.
63057
63058 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63061         This is to keep the terminology clean; POSIX talks about
63062         "absolute pathnames", not "full pathnames", but the GNU
63063         Coding Standards say to use "path" for something else;
63064         so use "absolute" to keep both sides happy.
63065         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63066         Set gl_absolute_header, not gl_full_header_path.
63067         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63068         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63069         All uses changed.
63070
63071         Merge from coreutils.
63072
63073         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63074
63075         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63076         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63077         want to require the building of c-strtod.o.
63078         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63079         needs -lm directly.
63080         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63081
63082         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63085         --as-needed option if available.  Problem reported by Albert Chin in
63086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63087         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63088         cc merely issues a bunch of annoying warnings for --as-needed
63089         (this problem was reported by Bob Proulx).  Also, try linking with
63090         -lm to detect a bug in binutils 2.16 (this problem was reported
63091         by Ralf Wildenhues).
63092
63093         2006-06-18  Jim Meyering  <jim@meyering.net>
63094
63095         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63097         macro.
63098         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63099         also check for glibc-2.4's abort-inducing bug.
63100
63101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63102         Low-probability clean-up should be to use rmdir to get rid of
63103         the just-created directory, not unlink.
63104
63105         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63106         configure fail, and request a bug report to inform us about it.
63107         Add a comment that, barring reports to the contrary, in 2007 we'll
63108         assume ftruncate is universally available.
63109
63110         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63113
63114         2006-03-12  Jim Meyering  <jim@meyering.net>
63115
63116         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63117         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63118         * m4/same.m4 (gl_SAME): Likewise.
63119         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63120
63121         2006-03-11  Eric Blake  <ebb9@byu.net>
63122
63123         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63124         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63125         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63126         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63127
63128 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63131         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63132         reported by Mark D. Baushke, one in
63133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63134
63135         Merge from coreutils.
63136
63137         * lib/.cppi-disable: Add stdint_.h.
63138         * lib/.cvsignore: Add stdint.h.
63139
63140         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63143         both double and long double versions.
63144         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63145         * lib/xstrtold.c: New file.
63146         * lib/xstrtod.h (xstrtold): New decl.
63147
63148         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * lib/filemode.c (setst): Remove.
63151         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63152         (arguably) clearer, and the generated code is a bit smaller on my
63153         Debian GNU/Linux stable x86 host.
63154
63155         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63158         Assume that filemode.h includes sys/types.h and sys/stat.h.
63159         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63160         (ftypelet): Reorder to put common cases first, for efficiency.
63161         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63162         to do 'M'.
63163         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63164         of 10, for compatibility with FreeBSD.  All callers changed.
63165         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63166         types that can't be deduced solely from st_mode.  First arg is now a
63167         const pointer.
63168         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63169         (strmode): Renamed from mode_string.
63170         (filemodestring): New decl.
63171         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63172         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63173         needed.
63174         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63175
63176         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63177
63178         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63179         fsusage.h now does that.  Include fsusage.h first, to test interface.
63180         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63181         at most one method (the old code could have generated decls that
63182         didn't conform to C89, not that this was ever exercised).
63183         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63184
63185         2006-03-19  Jim Meyering  <jim@meyering.net>
63186
63187         Work even in a chroot where d_ino values for entries in "/"
63188         don't match the stat.st_ino values for the same names.
63189         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63190         number, iterate through all entries again, using lstat instead.
63191         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63192         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63193
63194         * lib/getcwd.c (__getcwd): Clarify a comment.
63195         Use memcpy in place of a call to strcpy.
63196
63197         2006-03-12  Jim Meyering  <jim@meyering.net>
63198
63199         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63200         matches that of the current directory (which we're about to chdir ".."
63201         out of), then save the dev-ino of the parent, instead.
63202
63203         * lib/same-inode.h (SAME_INODE): New file/macro.
63204         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63205         Include "same-inode.h", instead.
63206         * lib/same.c: Likewise.
63207         * lib/cycle-check.h: Include "same-inode.h".
63208         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63209         * lib/cycle-check.c (SAME_INODE): Remove definition.
63210         * lib/root-dev-ino.h: Include "same-inode.h".
63211
63212         2006-03-11  Eric Blake  <ebb9@byu.net>
63213
63214         * lib/same.c (same_name): s/base_name/last_component/
63215         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63216         * lib/filenamecat.c (file_name_concat): Likewise.
63217
63218         2006-03-11  Eric Blake  <ebb9@byu.net>,
63219                     Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63222         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63223         drive prefix.
63224         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63225         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63226         (last_component): New method.
63227         * lib/dirname.c (dir_len): Determine when drive letters need a
63228         subsequent slash.  Preserve // when it is special.
63229         (dir_name): Don't append dot when drive letter is absolute.
63230         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63231         * lib/basename.c (base_name): New semantics - malloc the result.
63232         Preserve // when it is special.  Preserve relative files that look
63233         like drive letters.
63234         (base_len): Preserve // when it is special.
63235         (last_component): New method, similar to old base_name semantics.
63236         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63237         base_name.  Strip redundant slashes from ///.
63238
63239 2006-07-03  Jim Meyering  <jim@meyering.net>
63240
63241         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63242         macro is used before the first cycle_check call.
63243
63244 2006-07-03  Eric Blake  <ebb9@byu.net>
63245
63246         * modules/dirname (Depends-on): Add xstrndup.
63247
63248 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63249
63250         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63251         test cases, so that config.log is a bit easier to follow.
63252
63253 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63256         both are 64 bits, since this seems to be the tradition, and this
63257         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63258         we ever run into a host that prefers long long to long in this
63259         case, we'll need another configure-time test.  Problem reported by
63260         Jim Meyering.
63261
63262 2006-07-02  Eric Blake  <ebb9@byu.net>
63263
63264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63265
63266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * modules/inttypes (Depends-on): No longer depends on stdint.
63269         * modules/stdint (Description): Say more about assumptions.
63270         Say that the fast types might differ.  Say macros are used.
63271         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63272         (Makefile.am): Revise list of substituted symbols to match
63273         new stdint.m4.
63274         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63275         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63276         * tests/test-stdint.c (verify_same_types)
63277         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63278         the code conforms to C99/C89.
63279         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63280         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63281
63282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63285         but fix a bug, by requiring at least 64 bits.
63286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63287         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63288         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63289         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63290
63291         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63292         changes.  Make 2.59 a prerequisite.  Check and substitute for
63293         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63294         inttypes.h.  Do not use special include files; just use the
63295         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63296         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63297         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63298         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63299         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63300         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63301         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63302         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63303         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63304         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63305         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63306         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63307         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63308         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63309         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63310         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63311         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63312         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63313         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63314         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63315         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63316         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63317         not check for things that C99 does not require, e.g., int8_t.  If
63318         a test isn't needed unless <stdint.h> isn't working, and is
63319         unlikely to be needed for any other reason, then don't do it
63320         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63321         size_t, since we assume C89 freestanding at least.  Do not check
63322         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63323         the right thing even if the types are not defined.  Instead use:
63324         (gl_STDINT_TYPE_PROPERTIES): New macro.
63325         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63326         testing whether <sys/types.h> clashes, as Autoconf does this for
63327         us now.  All uses removed.
63328         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63329         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63330         (gl_CHECK_TYPE_SAME):
63331         Remove; no longer needed.
63332         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63333         exists, since we'll return 0 anyway in that case.
63334         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63335
63336 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63337
63338         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63339         possible collision with system files.
63340         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63341         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63342         WCHAR_MIN and WCHAR_MAX in this case.
63343         (<stddef.h>): Do not include; no longer needed.
63344         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63345         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63346         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63347         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63348         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63349         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63350         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63351         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63352         !defined(__c99))]: Include in this case too, since it's harmless
63353         now.
63354         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63355         dangerous to do so.
63356         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63357         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63358         (_STDINT_MIN, _STDINT_MAX): New macros.
63359         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63360         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63361         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63362         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63363         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63364         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63365         macros, not typedefs; this simplifies things quite a bit.
63366         Use long int for all types narrower than int64_t.
63367         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63368         Define in terms of long long int or int64_t or long int,
63369         not int64_t or int32_t.  This saves some compile-time testing.
63370         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63371         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63372         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63373         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63374         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63375         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63376         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63377         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63378         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63379         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63380         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63381         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63382         undef any previous version and define our own version, for
63383         simplicity and consistency with the new macros for types.
63384         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63385         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63386         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63387         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63388         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63389         @WINT_T_SUFFIX@ to keep things simple here.
63390         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63391         Simplify by assuming typical 8/16/32/64 host, since we're
63392         already doing that elsewhere anyway.
63393         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63394         and assume long long int is 64 bits if available.  This
63395         speeds up 'configure'.
63396
63397 2006-07-01  Eric Blake  <ebb9@byu.net>
63398
63399         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63400         Reported by Andreas Buening.
63401
63402 2006-07-01  Eric Blake  <ebb9@byu.net>
63403
63404         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63405
63406 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63407
63408         * lib/getaddrinfo.c: fixed typo
63409
63410 2006-06-29  Jim Meyering  <jim@meyering.net>
63411
63412         * modules/strftime (Maintainer): Add my name, since with the
63413         FPRINTFTIME changes strftime.c has forked from glibc.
63414
63415 2006-06-29  Eric Blake  <ebb9@byu.net>
63416
63417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63418
63419 2006-06-29  Eric Blake  <ebb9@byu.net>
63420
63421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63422
63423 2006-06-29  Eric Blake  <ebb9@byu.net>
63424
63425         * lib/stat_.h: New file.
63426
63427 2006-06-29  Eric Blake  <ebb9@byu.net>
63428
63429         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63430         unused static function.
63431
63432 2006-06-29  Eric Blake  <ebb9@byu.net>
63433
63434         * doc/functions.texi (Function Portability): Document missing lstat
63435         on mingw.
63436
63437 2006-06-29  Eric Blake  <ebb9@byu.net>
63438
63439         * MODULES.html.sh: Add sys_stat.
63440         * modules/sys_stat: New module.
63441         * modules/mkstemp (Depends-on): Add sys_stat.
63442
63443 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63444
63445         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63446
63447 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63448
63449         * m4/c-bs-a.m4: Removed.
63450
63451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63452
63453         * lib/strftime.c: Assume strftime() exists.
63454
63455 2006-06-29  Derek Price  <derek@ximbiot.com>
63456
63457         * modules/c-bs-a: Removed - \a is C89.
63458         * MODULES.html.sh: Remove c-bs-a.
63459
63460 2006-06-29  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/wcwidth (License): Change to LGPL.
63463
63464 2006-06-28  Simon Josefsson  <jas@extundo.com>
63465
63466         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63467         on _WIN32.
63468
63469         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63470         getnameinfo.
63471
63472 2006-06-28  Simon Josefsson  <jas@extundo.com>
63473
63474         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63475
63476 2006-06-28  Simon Josefsson  <jas@extundo.com>
63477
63478         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63479         functions there.  It will succeed on Windows XP, but on Windows
63480         2000 and (presumably) earlier, it will fail, and use the internal
63481         re-implementation.
63482         (use_win32_p): New function.
63483         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63484         Support AI_NUMERICSERV to disable getservbyname.
63485         (getnameinfo): New function, only supports
63486         NI_NUMERICHOST|NI_NUMERICSERV for now.
63487
63488         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63489         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63490         getnameinfo.
63491
63492 2006-06-28  Eric Blake  <ebb9@byu.net>
63493
63494         * modules/wcwidth: New file.
63495         * modules/mbchar (Depends-on): Add wcwidth.
63496         * modules/mbswidth (Depends-on): Add wcwidth.
63497         * MODULES.html.sh: Add wcwidth.
63498
63499 2006-06-28  Eric Blake  <ebb9@byu.net>
63500
63501         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63503
63504 2006-06-28  Eric Blake  <ebb9@byu.net>
63505
63506         * lib/xvasprintf.h: Fix comments.
63507
63508 2006-06-28  Eric Blake  <ebb9@byu.net>
63509
63510         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63511         * lib/mbswidth.c (wcwidth): Move from here...
63512         * lib/wcwidth.h: ...to this new file.
63513
63514 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63515
63516         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63517
63518         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63519         it's obsolete.
63520         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63521
63522 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63523
63524         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63525         Autoconf 2.60 says this stuff was obsolete.
63526
63527 2006-06-28  Bruno Haible  <bruno@clisp.org>
63528
63529         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63530
63531 2006-06-28  Bruno Haible  <bruno@clisp.org>
63532
63533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63534         gt_TYPE_WCHAR_T.
63535
63536 2006-06-28  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63539         declaration for wcwidth.
63540         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63541
63542 2006-06-28  Bruno Haible  <bruno@clisp.org>
63543
63544         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63545         (mkdir): Define using _mkdir.
63546
63547 2006-06-28  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/getaddrinfo.h: Fix POSIX URL.
63550         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63551         _WIN32.
63552         (use_win32_p): Make static.
63553         (getaddrinfo): Reject service name if it is empty or does not consist
63554         solely of decimal digits, or if its value is > 65535.
63555         (getnameinfo): Remove useless casts.
63556
63557 2006-06-27  Simon Josefsson  <jas@extundo.com>
63558
63559         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63560         Eggert and Martin Lambers.
63561
63562 2006-06-27  Simon Josefsson  <jas@extundo.com>
63563
63564         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63565         Eggert and Martin Lambers.
63566
63567 2006-06-27  Bruno Haible  <bruno@clisp.org>
63568
63569         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63570         result to 0, not to empty.
63571         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63572
63573 2006-06-27  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63576
63577 2006-06-26  Simon Josefsson  <jas@extundo.com>
63578
63579         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63580         present.
63581
63582 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63585         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63587
63588 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63589
63590         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63591
63592 2006-06-26  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63595
63596 2006-06-26  Bruno Haible  <bruno@clisp.org>
63597
63598         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63599
63600 2006-06-26  Bruno Haible  <bruno@clisp.org>
63601
63602         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63603         SGI C compiler in pre-C99 mode.
63604         Suggested by Mark D. Baushke and Larry Jones.
63605
63606 2006-06-26  Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63609         WCHAR_MAX.
63610         Reported by Mark D. Baushke and Larry Jones.
63611
63612 2006-06-26  Bruno Haible  <bruno@clisp.org>
63613
63614         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63615         in pre-C99 mode.
63616         Suggested by Mark D. Baushke and Larry Jones.
63617
63618 2006-06-23  Simon Josefsson  <jas@extundo.com>
63619             Bruno Haible  <bruno@clisp.org>
63620
63621         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63622         Emit mostlyclean-local rule.
63623         (func_emit_tests_Makefile_am): Likewise.
63624         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63625
63626 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63627
63628         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63629
63630 2006-06-23  Bruno Haible  <bruno@clisp.org>
63631
63632         * tests/test-stdint.c: Update to match ISO C 99 Technical
63633         Corrigendum 1.
63634
63635 2006-06-23  Bruno Haible  <bruno@clisp.org>
63636
63637         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63638
63639 2006-06-23  Bruno Haible  <bruno@clisp.org>
63640
63641         * lib/stdint_.h: Treat IRIX like OpenBSD.
63642
63643 2006-06-23  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63646         ISO C 99 Technical Corrigendum 1.
63647
63648 2006-06-22  Simon Josefsson  <jas@extundo.com>
63649
63650         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63651         MinGW.
63652
63653 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63656         needed.  Some compiler complained about some of them.  Problem reported
63657         by Larry Jones in
63658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63659
63660 2006-06-21  Simon Josefsson  <jas@extundo.com>
63661
63662         * tests/test-getaddrinfo.c: New file.
63663
63664         * modules/getaddrinfo-tests: New file.
63665
63666         * MODULES.html.sh: Add inet_pton.
63667
63668         * modules/inet_pton: New file.
63669
63670 2006-06-21  Simon Josefsson  <jas@extundo.com>
63671
63672         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63673         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63674         of using the (limited) gnulib implementation on Windows XP.
63675
63676         * m4/inet_pton.m4: New file.
63677
63678 2006-06-21  Simon Josefsson  <jas@extundo.com>
63679
63680         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63681         variable.
63682
63683         * lib/socket_.h: Don't define WINVER.
63684
63685         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63686         slightly modified to work in gnulib.
63687
63688 2006-06-21  Simon Josefsson  <jas@extundo.com>
63689
63690         * doc/gnulib.texi (Windows sockets): Add.
63691
63692 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * lib/read-file.c (fread_file): Start with buffer allocation of
63695         0 bytes rather than 1 byte; this simplifies the code.
63696         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63697         code to free buffer and save/restore errno.
63698         (internal_read_file): Remove unused local.
63699
63700 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63703         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63704         Problem reported by Denis Excoffier in
63705         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63706
63707 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63708
63709         * modules/sys_socket, modules/socklen: Include sys/types since
63710         FreeBSD 4.x's sys/socket.h needs it.
63711
63712 2006-06-19  Simon Josefsson  <jas@extundo.com>
63713
63714         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63715
63716 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63719
63720 2006-06-19  Bruno Haible  <bruno@clisp.org>
63721
63722         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63723         and FULL_PATH_INTTYPES_H in angle brackets.
63724         Reported by Mark D. Baushke <mdb@gnu.org>.
63725
63726 2006-06-17  Eric Blake  <ebb9@byu.net>
63727
63728         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63729         errno.
63730
63731 2006-06-17  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63734         <sys/inttypes.h>.
63735
63736 2006-06-17  Bruno Haible  <bruno@clisp.org>
63737
63738         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63739         whether errno is declared. Assume <errno.h> declares errno.
63740
63741 2006-06-17  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63744
63745 2006-06-17  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63748         problem on Solaris 2.5.1.
63749
63750 2006-06-16  Eric Blake  <ebb9@byu.net>
63751
63752         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63753         * lib/unicodeio.c [!defined errno]: Likewise.
63754         * lib/strtol.c [!defined errno]: Likewise.
63755         * lib/strtod.c [!defined errno]: Likewise.
63756
63757 2006-06-15  Eric Blake  <ebb9@byu.net>
63758
63759         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63760
63761 2006-06-15  Eric Blake  <ebb9@byu.net>
63762
63763         * config/srclist.txt (ssize_t.m4): Lose sync.
63764
63765 2006-06-15  Bruno Haible  <bruno@clisp.org>
63766
63767         * modules/stdint (Files): Include m4/full-header-path.m4,
63768         m4/size_max.m4, m4/wchar_t.m4.
63769         (Makefile.am): Many more substitutions.
63770         * modules/stdint-tests: New file.
63771         * tests/test-stdint.c: New file.
63772
63773 2006-06-15  Bruno Haible  <bruno@clisp.org>
63774
63775         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63776         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63777         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63778         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63779         gl_CHECK_TYPE_SAME): New macros.
63780
63781 2006-06-15  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63784
63785 2006-06-15  Bruno Haible  <bruno@clisp.org>
63786
63787         * lib/stdint_.h: Rewritten to be fully auto-configured.
63788         Fixes bug on HP-UX/IA64.
63789
63790 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         * lib/getdate.y (__attribute__): Don't define if already defined.
63793         Problem reported by Larry Jones.
63794         * lib/utimens.c (__attribute__): Likewise.
63795
63796 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63797
63798         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63799         reported by Andreas Schwab.
63800
63801 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63802             Bruno Haible  <bruno@clisp.org>
63803
63804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63805         check for the declaration of strnlen and a run test that exposes the
63806         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63807         rpl_strndup.
63808
63809 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63810             Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63813
63814 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63815
63816         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63817         compile test, for Tru64 4.0D.
63818
63819 2006-05-28  Karl Berry  <karl@gnu.org>
63820
63821         * config/srclist.txt (printf-args.c): lose sync.
63822
63823 2006-05-26  Martin Lambers  <marlam@marlam.de>
63824
63825         * lib/getpass.c: Updates the test for the native W32 API, and adds
63826         missing includes, thus fixing compilation warnings.
63827
63828 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63829
63830         * lib/exclude.c (exclude_fnmatch): New function.
63831         (excluded_file_name): Call exclude_fnmatch.
63832         * lib/exclude.h (excluded_file_name): New prototype
63833
63834 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * lib/tempname.c (small_open, large_open): New macros.
63837         (__open, __open64) [!_LIBC]: Remove.
63838         (__gen_tempname): Use small_open and large_open instead of __open
63839         and __open64.  This fixes a portability bug on HP-UX 11.11i
63840         reported by Simon Wing-Tang in
63841         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63842
63843 2006-05-24  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63846         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63847         Reported by Thorsten Maerz <torte@netztorte.de> via
63848         Aaron Stone <aaron@serendipity.cx>.
63849
63850 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63853         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63854         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63855         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63856         not really conditional on the cache.
63857         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63858
63859 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63860
63861         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63862         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63863         (my_usleep): Don't mishandle maximum value.
63864
63865 2006-05-19  Jim Meyering  <jim@meyering.net>
63866
63867         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63868
63869 2006-05-17  Bruno Haible  <bruno@clisp.org>
63870
63871         Cygwin portability.
63872         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63873
63874 2006-05-17  Bruno Haible  <bruno@clisp.org>
63875
63876         * lib/stdint_.h: Fix recognition of Cygwin.
63877
63878 2006-05-15  Bruno Haible  <bruno@clisp.org>
63879
63880         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63881         on libtool patch by Ralf Wildenhues.
63882
63883 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63884
63885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63886         test for C99 conformance; (bool) 0.5 is an integer constant
63887         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63888         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63889
63890 2006-05-11  Simon Josefsson  <jas@extundo.com>
63891
63892         * m4/xvasprintf.m4: Fix obvious typo.
63893
63894 2006-05-11  Jim Meyering  <jim@meyering.net>
63895
63896         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63897         James Lemley.
63898
63899 2006-05-10  Simon Josefsson  <jas@extundo.com>
63900
63901         * lib/md4.c: Typo fix, update copyright years.
63902         (K1, K2): Don't use L because it turn computations into 64-bit on
63903         64-bit platforms.
63904
63905 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63908         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63909         unwanted sign propagation, e.g., on hosts with 64-bit int.
63910         There still are some problems with reeelly weird theoretical hosts
63911         (e.g., 33-bit int) but it's not worth worrying about now.
63912         * lib/sha1.c (rol): Likewise.
63913         (K1, K2, K3, K4): Remove unnecessary L suffix.
63914
63915 2006-05-10  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/des.c: Cast to avoid warnings.
63918
63919 2006-05-09  Bruno Haible  <bruno@clisp.org>
63920
63921         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63922         (Depends-on): Depend also on xsize, stdarg.
63923         (configure.ac): Add gl_XVASPRINTF.
63924
63925 2006-05-09  Bruno Haible  <bruno@clisp.org>
63926
63927         * m4/xvasprintf.m4: New file.
63928
63929 2006-05-09  Bruno Haible  <bruno@clisp.org>
63930
63931         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63932         (EOVERFLOW): Define fallback value.
63933         (xstrcat): New function.
63934         (xvasprintf): Recognize the special case of a string concatenation.
63935
63936 2006-05-08  Eric Blake  <ebb9@byu.net>
63937
63938         * gnulib-tool (func_version): Base copyright year on CVS date.
63939         (func_emit_copyright_notice): New function.
63940         (func_emit_lib_Makefile_am): Use it.
63941         (func_emit_tests_Makefile_am): Likewise.
63942         (func_import): Likewise.
63943
63944 2006-05-08  Bruno Haible  <bruno@clisp.org>
63945
63946         * modules/stdarg: New file.
63947         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63948
63949 2006-05-08  Bruno Haible  <bruno@clisp.org>
63950
63951         * m4/stdarg.m4: New file, from GNU gettext.
63952
63953 2006-05-08  Bruno Haible  <bruno@clisp.org>
63954
63955         * config/srclist.txt (build-aux/config.rpath): different from latest
63956         release.
63957
63958 2006-05-08  Bruno Haible  <bruno@clisp.org>
63959
63960         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63961
63962 2006-05-05  Jim Meyering  <jim@meyering.net>
63963
63964         * m4/warning.m4: New file, derived from bison's file by the same name.
63965
63966 2006-05-03  Bruno Haible  <bruno@clisp.org>
63967
63968         * lib/stdint_.h: Shorter URL.
63969         * lib/inttypes.h: Likewise.
63970
63971 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63974
63975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63976
63977         * lib/verify.h: Document the internals better.  Most of this change
63978         was written by Bruno Haible.
63979
63980 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * doc/verify.texi: New file, partly based on a proposal by
63983         Bruno Haible.
63984
63985 2006-05-02  Bruno Haible  <bruno@clisp.org>
63986
63987         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63988         test from here...
63989         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63990
63991 2006-04-29  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63994         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63995
63996 2006-04-29  Bruno Haible  <bruno@clisp.org>
63997
63998         * gnulib-tool: Make --update option actually work.
63999
64000 2006-04-29  Bruno Haible  <bruno@clisp.org>
64001
64002         * doc/gcd.texi: New file.
64003         * doc/gnulib.texi: Include it.
64004
64005 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64006
64007         * lib/getdate.y (get_date): When adding relative date, start with the
64008         initial time, not with the result of the first mktime call.
64009
64010 2006-04-25  Bruno Haible  <bruno@clisp.org>
64011
64012         * gnulib-tool (func_import): Output the include directives in three
64013         blocks, sorted separately.
64014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64015
64016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64019         to define main with arguments, for C++.  Reported by Eric Blake.
64020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64021         Prefer 'int main ()' to 'int main (void)', for C++.
64022         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64024         for 'main', for C99 and C++.
64025
64026 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64027
64028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64029         Don't assume that exit status -1 is valid.
64030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64031         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64032         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64033         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64034         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64036         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64037         functions can be used without declaring them, or that you can
64038         exit with status -1.
64039         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64040
64041 2006-04-24  Karl Berry  <karl@gnu.org>
64042
64043         * config/srclist.txt (longdouble.m4): sync lost.
64044
64045 2006-04-24  Eric Blake  <ebb9@byu.net>
64046
64047         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64048
64049 2006-04-24  Bruno Haible  <bruno@clisp.org>
64050
64051         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64052         poll() implementation in AIX.
64053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64054
64055 2006-04-24  Bruno Haible  <bruno@clisp.org>
64056
64057         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64058         assigned exactly once.
64059
64060 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64061             Bruno Haible  <bruno@clisp.org>
64062
64063         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64064         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64065         for AM_CPPFLAGS.
64066
64067 2006-04-23  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/copy-file: Depend on unistd.
64070         * modules/execute: Likewise.
64071         * modules/fatal-signal: Likewise.
64072         * modules/findprog: Likewise.
64073         * modules/mkdtemp : Likewise.
64074         * modules/pipe: Likewise.
64075         * modules/wait-process: Likewise.
64076
64077 2006-04-23  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64080         condition was already detected.
64081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64082
64083 2006-04-23  Bruno Haible  <bruno@clisp.org>
64084
64085         * lib/copy-file.c: Include <unistd.h> unconditionally.
64086         * lib/execute.c: Likewise.
64087         * lib/fatal-signal.c: Likewise.
64088         * lib/findprog.c: Likewise.
64089         * lib/mkdtemp.c: Likewise.
64090         * lib/pipe.h: Likewise.
64091         * lib/pipe.c: Likewise.
64092         * lib/wait-process.h: Likewise.
64093
64094 2006-04-23  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (func_usage): Fix --import description. Document
64097         --update.
64098         (func_import): Create temporary file in a temporary directory, if
64099         --dry-run is specified. Silence errors from 'grep' when there are no
64100         m4 files in $m4dir.
64101         (func_create_testdir): Silence errors from 'grep' when there are no
64102         m4 files in $m4dir.
64103         Reported by Karl Berry <karl@freefriends.org>.
64104
64105 2006-04-20  Bruno Haible  <bruno@clisp.org>
64106
64107         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64108         one argument, so that the code will be portable to Autoconf 2.60.
64109         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64111         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64112
64113 2006-04-19  Derek Price  <derek@ximbiot.com>
64114             Eric Blake  <ebb9@byu.net>
64115
64116         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64117         rather than "/full/path.h".  Update comment to match.  Shorten &
64118         generalize m4_translit call via AS_TR_CPP.
64119
64120 2006-04-19  Derek Price  <derek@ximbiot.com>
64121             Eric Blake  <ebb9@byu.net>
64122
64123         * lib/inttypes.h: Correct grammar in comment.
64124
64125 2006-04-18  Derek Price  <derek@ximbiot.com>
64126             Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * modules/inttypes: New file.
64129         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64130
64131 2006-04-18  Derek Price  <derek@ximbiot.com>
64132             Paul Eggert  <eggert@cs.ucla.edu>
64133
64134         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64135         New files.
64136
64137 2006-04-18  Derek Price  <derek@ximbiot.com>
64138             Paul Eggert  <eggert@cs.ucla.edu>
64139
64140         * lib/inttypes.h: New file.
64141         * lib/strtoimax.c: Assume <inttypes.h>.
64142
64143 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64146         isn't mounted.  Problem reported by Kir Kolyshkin.
64147
64148 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64151         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64152         Derek R. Price.
64153         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64154         implementation.
64155
64156 2006-04-12  Eric Blake  <ebb9@byu.net>
64157
64158         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64159         is now done automatically by the corresponding Autoconf macro.
64160
64161 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64162
64163         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64164         time_r.h.
64165
64166 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64167
64168         Merge regex changes from libc, removing some of our
64169         POSIX-conformance changes that were rejected and redoing them in a
64170         less-intrusive way.
64171
64172         * lib/regcomp.c (re_compile_internal, init_dfa):
64173         Length arg is now size_t, not Idx.  All uses changed.
64174         (peek_token): Forward decl now says internal_function.
64175         (__re_error_msgid, __re_error_msgid_idx):
64176         Now static rather than extern with attribute_hidden.
64177         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64178         For some reason libc prefers K&R style defns for external functions.
64179         (regerror) [!defined _LIBC]: Likewise.
64180         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64181         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64182         (build_range_exp, build_collating_symbol):
64183         Use K&R-style defn.
64184         (re_compile_fastmap): Use '\0' to memset, not 0.
64185         (utf8_sb_map): Make the calculations more obvious.
64186         (init_dfa, parse_bracket_exp, build_charclass_op):
64187         Call calloc and cast result, as glibc does.
64188         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64189         (build_range_exp, build_collating_symbol):
64190         Now internal functions.
64191
64192         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64193
64194         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64195         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64196         Don't depend on VMS; depend on __VMS instead, for POSIX
64197         namespace cleanness.
64198         (regoff_t): Define to ssize_t, not long int.
64199
64200         Remove the REG_ macros named below.  Instead, make the old names
64201         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64202         __USE_GNU_REGEX.
64203         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64204         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64205         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64206         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64207         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64208         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64209         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64210         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64211         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64212         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64213         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64214         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64215         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64216         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64217         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64218         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64219         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64220         (REG_NREGS):
64221         Remove.  All uses replaced by the old RE_* names.
64222         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64223         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64224         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64225         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64226         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64227         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64228         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64229         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64230         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64231         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64232         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64233         Don't bother having these macros be independent of each others'
64234         values, since they no longer exist in the POSIX name space.
64235
64236         Rename the following member names back to their old names,
64237         unless !__USE_GNU_REGEX.  All uses changed back.
64238         (buffer): Renamed from re_buffer.
64239         (allocated): Renamed from re_allocated.
64240         (used): Renamed from re_used.
64241         (syntax): Renamed from re_syntax.
64242         (fastmap): Renamed from re_fastmap.
64243         (translate): Renamed from re_translate.
64244         (can_be_null): Renamed from re_can_be_null.
64245         (regs_allocated): Renamed from re_regs_allocated.
64246         (fastmap_accurate): Renamed from re_fastmap_accurate.
64247         (no_sub): Renamed from re_no_sub.
64248         (not_bol): Renamed from re_not_bol.
64249         (not_eol): Renamed from re_not_eol.
64250         (newline_anchor): Renamed from re_newline_anchor.
64251         (num_regs): Renamed from rm_num_regs.
64252         (start): Renamed from rm_start.
64253         (end): Renamed from rm_end.
64254
64255         (free_state): Move up a bit.
64256
64257         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64258         #define to be empty.
64259         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64260         when that is what is intended.
64261         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64262         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64263         (MAX): New macro.
64264         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64265         All uses changed back to re_malloc, etc.  It's now the caller's
64266         responsibility to check for overflow; all callers changed.
64267         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64268         (re_x2nrealloc): Remove.
64269         (free_state): Remove decl.
64270
64271         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64272         (re_set_registers, re_exec):
64273         Use K&R-style defn.
64274
64275         2006-01-31  Roland McGrath  <roland@redhat.com>
64276
64277         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64278         Reported by Mike Frysinger <vapier@gentoo.org>.
64279
64280         2006-01-15  Andreas Jaeger  <aj@suse.de>
64281
64282         [BZ #1950]
64283         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64284         build_wcs_upper_buffer change.
64285         (build_wcs_upper_buffer): Change return type.
64286
64287         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64288
64289         * lib/regex_internal.h: Include <stdint.h> if available.
64290
64291         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64292
64293         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64294
64295         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64296
64297         * lib/regcomp.c: Adjust for changed secondary hash function.
64298
64299         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64300
64301         * lib/regex.h: Pretty printing.
64302         Clean up namespace a bit.
64303
64304         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64305
64306         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64307         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64308
64309         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64310                     Ulrich Drepper  <drepper@redhat.com>
64311
64312         [BZ #1302]
64313         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64314         changed.
64315         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64316
64317         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64318
64319         [BZ #281]
64320         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64321         * lib/regcomp.c: Remove unnecessary uses of
64322         unsigned RE_TRANSLATE_TYPE.
64323         * lib/regex_internal.h: Likewise.
64324         * lib/regex_internal.c: Likewise.
64325         * lib/regexec.c: Likewise.
64326         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64327
64328         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64329
64330         * lib/regexec.c (find_recover_state): Remove unnecessary
64331         initialization.
64332         (transit_state_bkref): Make DFA a const pointer.
64333         (get_subexp): Likewise.
64334         (check_arrival): Likewise.
64335         (update_cur_sifted_state): Likewise.
64336         (re_search_internal): Likewise.
64337         (prune_impossible_nodes): Likewise.
64338         (acquire_init_state_context): Likewise.
64339         (proceed_next_node): Likewise.
64340         (set_regs): Likewise.
64341         (free_fail_stack_return): Likewise.
64342         (check_arrival_expand_ecl): Mark DFA parameter as const.
64343         (check_arrival_expand_ecl_sub): Likewise.
64344         (check_subexp_limits): Likewise.
64345         (sub_epsilon_src_nodes):  Likewise.
64346         (add_epsilon_src_nodes):  Likewise.
64347         (merge_state_array): Likewise.
64348         (update_regs): Likewise.
64349         (build_trtable): Likewise.
64350         (sift_states_backward): Mark MCTX parameter as const.
64351         (build_sifted_states): Likewise.
64352         (update_cur_sifted_state): Likewise.
64353         (sift_states_mkref): Likewise.
64354         (check_arrival_expand_ecl): Mark eclosure as const.
64355         (check_dst_limits_calc_pos_1): Likewise.
64356         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64357         pointer.
64358
64359         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64360
64361         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64362         (transit_state_sb): Likewise.
64363         (transit_state_mb): Likewise.
64364         (sift_states_iter_mb): Likewise.
64365         (check_arrival_add_next_nodes): Likewise.
64366         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64367         [_LIBC] (re_search_2_stub): Use mempcpy.
64368
64369         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64370         mbrtowc for very simple UTF-8 case.
64371
64372         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64373         a pointer-to-const.
64374         (re_acquire_state_context): Likewise.
64375         * lib/regex_internal.h: Adjust prototypes.
64376
64377         * lib/regex.c: Prevent using C++ compilers.
64378
64379         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64380         (re_acquire_state_context): Likewise.
64381
64382 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64383
64384         * modules/regex (Depends-on): Add ssize_t.
64385
64386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64389         translation table.
64390
64391 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64392
64393         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64394
64395 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64396             Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64399         <sys/types.h> and <inttypes.h>.
64400
64401 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64402
64403         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64404         `__error_t_defined', so argp.h will not typedef the former.
64405
64406 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64407
64408         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64409         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64410         glibc names.  Even if glibc is changed to conform to POSIX, the
64411         traditional names will be available anyway, since regex depends on
64412         the extensions module.  Also, fix a longstanding typo in the
64413         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64414         reported by Emanuele Giaquinta.  Also, change sense of cached
64415         variable, so that the message makes sense.
64416
64417 2006-03-24  Simon Josefsson  <jas@extundo.com>
64418
64419         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64420         including some doc fixes.
64421         (base64_encode_alloc): Fix +1 bug on allocation failures.
64422
64423 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64424
64425         * lib/base64.c (base64_encode): Do not read past end of array with
64426         unsanitized input on systems with CHAR_BIT > 8.
64427
64428 2006-03-24  Eric Blake  <ebb9@byu.net>
64429
64430         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64431
64432 2006-03-22  Karl Berry  <karl@gnu.org>
64433
64434         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64435         * config/srclistvars.sh (COREUTILS): new var.
64436
64437 2006-03-17  Jim Meyering  <jim@meyering.net>
64438
64439         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64440         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64441
64442 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64443
64444         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64445         no longer needs it.  Instead, check that regoff_t is as least
64446         as wide as ptrdiff_t.
64447
64448         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64449         so that our regex.h stays compatible with the installed regex.
64450         This is helpful for installers who configure --without-included-regex.
64451         Problem reported by Emanuele Giaquinta.
64452
64453 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64456         Typedef to long int, not to off_, as POSIX will likely change
64457         in that direction.
64458
64459 2006-03-15  Eric Blake  <ebb9@byu.net>
64460
64461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64462
64463 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64464
64465         * lib/argp-help.c (validate_uparams): Fix typo
64466         * lib/argp-parse.c (argp_default_options): Consistently begin help
64467         messages with a lowercase letter.
64468
64469 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64472         overrun buffers and shouldn't be used (much as gets shouldn't be
64473         used).
64474         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64475
64476 2006-03-08  Simon Josefsson  <jas@extundo.com>
64477
64478         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64479         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64480
64481 2006-03-08  Simon Josefsson  <jas@extundo.com>
64482
64483         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64484         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64485
64486 2006-03-08  Simon Josefsson  <jas@extundo.com>
64487
64488         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64489         signal that configure disabled the device.
64490
64491 2006-03-08  Simon Josefsson  <jas@extundo.com>
64492
64493         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64494         languages.
64495
64496 2006-03-07  Simon Josefsson  <jas@extundo.com>
64497
64498         * modules/getopt (Depends-on): Add unistd.
64499
64500         * modules/unistd: New file.
64501
64502 2006-03-07  Simon Josefsson  <jas@extundo.com>
64503
64504         * modules/gc-random: New file.
64505
64506 2006-03-07  Simon Josefsson  <jas@extundo.com>
64507
64508         * m4/unistd_h.m4: New file.
64509
64510 2006-03-07  Simon Josefsson  <jas@extundo.com>
64511
64512         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64513         test to be side-effect free by storing the result in the cache
64514         variable gl_cv_lib_readline, and moving the assignment of
64515         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64516         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64517
64518 2006-03-07  Simon Josefsson  <jas@extundo.com>
64519
64520         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64521         error on missing devices (the functions will return an error).
64522
64523         * m4/gc.m4: Move random stuff to gc-random.m4
64524
64525 2006-03-07  Simon Josefsson  <jas@extundo.com>
64526
64527         * lib/unistd_.h: New file.
64528
64529 2006-03-07  Simon Josefsson  <jas@extundo.com>
64530
64531         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64532
64533 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64536         Problem reported by Juan Manuel Guerrero.
64537
64538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64541         the unistd module.
64542         * lib/getlogin_r.c: Likewise.
64543         * lib/getlogin_r.h: Likewise.
64544         * lib/glob.c: Likewise.
64545         * lib/pagealign_alloc.c: Likewise.
64546         * lib/unistd_.h: Remove; no longer needed.
64547
64548 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64551         Add unistd.
64552         * modules/c-stack (Depends-on): Add unistd.
64553         * modules/getlogin_r: Likewise.
64554         * modules/glob: Likewise.
64555         * modules/pagealign_alloc: Likewise.
64556         * modules/unistd (Files): Remove lib/unistd_.h.
64557         (EXTRA_DIST): Remove.
64558         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64559         need unistd_.h.
64560         (MOSTLYCLEANFILES): Remove unistd.h-t.
64561
64562 2006-03-03  Simon Josefsson  <jas@extundo.com>
64563
64564         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64565
64566 2006-03-03  Simon Josefsson  <jas@extundo.com>
64567
64568         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64569         libidn and bison.
64570
64571 2006-03-03  Simon Josefsson  <jas@extundo.com>
64572
64573         * build-aux/maint.mk: Add indent target.
64574
64575 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64576
64577         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64578         our replacement poll.h in any case, to avoid a differing
64579         declaration from a system header.  Seen on AIX.
64580
64581 2006-03-01  Simon Josefsson  <jas@extundo.com>
64582
64583         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64584         <kasal@ucw.cz>.
64585
64586 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * modules/gettime (Depends-on): Add extensions module.
64589         * modules/nanosleep (Depends-on): Likewise.
64590         * modules/settime (Depends-on): Likewise.
64591
64592 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64595         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64596         pedantically.
64597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64598         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64599
64600         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64601         not "==".  Reported by Ralf Wildenhues.
64602
64603 2006-03-01  Karl Berry  <karl@gnu.org>
64604
64605         * doc/Copyright/request-*: new files, synced from gnuorg.
64606
64607 2006-03-01  Karl Berry  <karl@gnu.org>
64608
64609         * config/srclist.txt (Copyright/*): new entries.
64610
64611 2006-02-28  Simon Josefsson  <jas@extundo.com>
64612
64613         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64614
64615 2006-02-27  Simon Josefsson  <jas@extundo.com>
64616
64617         * lib/base64.h: Indent #define's.  From Jim Meyering
64618         <jim@meyering.net>.
64619
64620 2006-02-27  Jim Meyering  <jim@meyering.net>
64621
64622         Revert the change of 2006-02-24, so these files can continue
64623         to be sync'd from gettext.
64624         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64625         of `config.h'.
64626
64627 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64628
64629         * modules/intprops: New file.
64630         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64631         Add intprops.
64632         * modules/getloadavg (Files): Remove lib/intprops.h.
64633         (Depends-on): Add intprops.
64634         * modules/human: Likewise.
64635         * modules/inttostr: Likewise.
64636         * modules/openat: Likewise.
64637         * modules/sig2str: Likewise.
64638         * modules/userspec: Likewise.
64639         * modules/utimecmp: Likewise.
64640         * modules/xnanosleep: Likewise.
64641         * modules/xstrtol: Likewise.
64642
64643 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64644
64645         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64646         * modules/lock-tests (TESTS): Use $(EXEEXT).
64647         * modules/tls-tests: Likewise.
64648         * modules/argp-tests: Likewise.
64649         (check_PROGRAMS): New var, replacing...
64650         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64651
64652 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64653
64654         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64655         `config.h'.
64656
64657 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64660
64661 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64662
64663         Sync from coreutils.
64664         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64665         gl_CHDIR_SAFER.
64666
64667 2006-02-22  Jim Meyering  <jim@meyering.net>
64668
64669         Sync from coreutils.
64670         * m4/chdir-safer.m4: New file.
64671
64672 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64673
64674         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64675         AT_FDCWD exceeds INT_MAX.
64676         * lib/openat.h (AT_FDCWD): Likewise.
64677
64678 2006-02-17  Eric Blake  <address@hidden>
64679
64680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64681
64682 2006-02-16  Simon Josefsson  <jas@extundo.com>
64683
64684         * modules/getaddrinfo (Depends-on): Add sys_socket.
64685
64686 2006-02-15  Simon Josefsson  <jas@extundo.com>
64687
64688         * build-aux/maint.mk: Add dsyntax-check rule.
64689
64690 2006-02-15  Eric Blake  <ebb9@byu.net>
64691
64692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64693         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64694         'present but cannot compile' warnings on cygwin.
64695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64696         use ws2tcpip.h if sys/socket.h works.
64697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64698         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64699
64700 2006-02-14  Simon Josefsson  <jas@extundo.com>
64701
64702         * modules/maintainer-makefile (Files): Rename.
64703
64704         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64705         and (the local) Makefile.cfg to maint-cfg.mk.
64706
64707         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64708         to the latter.
64709
64710         * modules/maintainer-makefile: New module.
64711
64712         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64713         severaly stripped to make it possible to build it up from scratch
64714         with reliable tests.
64715
64716         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64717         fixes to permit overriding the default actions when configure and
64718         makefile are not available.
64719
64720 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64721
64722         Sync from coreutils.
64723         * modules/lstat (Depends-on): Don't depend on xalloc.
64724         (License): Change from GPL to LGPL, since this is now simply a
64725         replacement for a libc function.
64726
64727 2006-02-14  Jim Meyering  <jim@meyering.net>
64728
64729         Sync from coreutils.
64730
64731         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64732         failure on deficient systems, and simplify gnulib lgpl dependencies.
64733         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64734         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64735
64736         * lib/xalloc-die.c: Remove unused definition of N_.
64737
64738 2006-02-14  Jim Meyering  <jim@meyering.net>
64739
64740         Sync from coreutils.
64741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64742         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64743         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64744         double-quote uses of that variable, to accommodate the rare case in
64745         which getmntent is available in none of the libraries checked.  This
64746         happens at least on FreeBSD 5.0.
64747
64748 2006-02-13  Simon Josefsson  <jas@extundo.com>
64749
64750         * gnulib-tool (Usage): Fix --import, from
64751         karl@freefriends.org (Karl Berry).
64752
64753 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64754
64755         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64756
64757 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64758
64759         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64760         "autoupdate" on 2005-12-12.
64761
64762 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * modules/closeout (Depends-on): Remove atexit.
64765
64766 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64767
64768         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64769         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64770
64771 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64772
64773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64774         __EXTENSIONS__ if this causes compilation to fail.  Problem
64775         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64776         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64777
64778 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64779
64780         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64781         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64783         All uses changed.
64784
64785 2006-01-26  Simon Josefsson  <jas@extundo.com>
64786
64787         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64788         prototype is visible on mingw32.
64789
64790         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64791         for mingw32.
64792
64793         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64794         mingw32).
64795
64796 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64799         attempt to open for write; this always fails, at least on POSIX
64800         hosts.  This reinstates the 2006-01-09 change, which was
64801         inadvertently removed.
64802
64803 2006-01-26  Bruno Haible  <bruno@clisp.org>
64804
64805         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64806         Reported by Paul Eggert.
64807
64808 2006-01-26  Bruno Haible  <bruno@clisp.org>
64809             Paul Eggert  <eggert@cs.ucla.edu>
64810
64811         * lib/stdbool_.h (_Bool)
64812         [(! (defined __cplusplus || defined __BEOS__)
64813           && !defined __GNUC__
64814           && !(defined __HP_cc || defined __xlc__
64815                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64816                || defined __sgi))]:
64817         #define to signed char in these cases too; this simplifies
64818         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64819         etc., separately) and makes it more conservative.
64820
64821 2006-01-25  Simon Josefsson  <jas@extundo.com>
64822
64823         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64824         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64825         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64826
64827 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64828
64829         * lib/argp-namefrob.h: Bugfix. Remove stray #
64830
64831 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64834         so that we test the test.
64835         Check for yet another HP-UX cc bug involving *bool |= bool.
64836
64837 2006-01-25  Karl Berry  <karl@gnu.org>
64838
64839         * config/srclist.txt (vasnprintf.c): sync lost.
64840
64841 2006-01-25  Jim Meyering  <jim@meyering.net>
64842
64843         Sync from the stable (b5) branch of coreutils:
64844
64845         * lib/fts.c (fts_children): Don't let close() clobber errno from
64846         failed fchdir().
64847
64848         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64849         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64850         a dangling symlink.  That can also happen at least for ELOOP.
64851         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64852         FYI, this bug predates the inclusion of fts.c in coreutils.
64853
64854         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64855         in their own block, so pre-c99 compilers don't object.
64856
64857         Avoid the double-free (first in fts_read, second in fts_close) that
64858         would occur when an `active' directory is made inaccessible (e.g.,
64859         via chmod a-x) during a traversal.
64860         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64861         before returning.  Reproduce this failure by
64862         mkdir -p a/b; cd a; chmod a-x . b
64863         Reported by Stavros Passas.
64864
64865 2006-01-25  Jim Meyering  <jim@meyering.net>
64866
64867         * lib/fileblocks.c: Remove more useless parentheses.
64868         * lib/readutmp.h: Likewise.
64869
64870 2006-01-25  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64873         warnings.
64874         Reported by Paul Eggert.
64875
64876 2006-01-25  Bruno Haible  <bruno@clisp.org>
64877
64878         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64879         rid of a trap command. For Solaris sh.
64880         Reported by Mark D. Baushke <mdb@gnu.org>.
64881
64882 2006-01-24  Simon Josefsson  <jas@extundo.com>
64883
64884         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64885         Bruno.
64886
64887 2006-01-24  Karl Berry  <karl@gnu.org>
64888
64889         * config/srclist.txt (argp-namefrob.h): sync lost.
64890
64891 2006-01-24  Jim Meyering  <jim@meyering.net>
64892
64893         * modules/openat (Files): Add lib/intprops.h.
64894         From Mark D. Baushke.
64895
64896 2006-01-24  Jim Meyering  <jim@meyering.net>
64897
64898         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64899         Reported by Mark D. Baushke.
64900
64901 2006-01-24  Jim Meyering  <jim@meyering.net>
64902
64903         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64904
64905 2006-01-24  Bruno Haible  <bruno@clisp.org>
64906
64907         * modules/strnlen (Maintainer): Change from glibc to all.
64908
64909 2006-01-24  Bruno Haible  <bruno@clisp.org>
64910
64911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64912         Patch by Paul Eggert.
64913
64914 2006-01-24  Bruno Haible  <bruno@clisp.org>
64915
64916         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64917         already has it.
64918         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64919         2005-11-26.
64920
64921         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64922         'signed char' to avoid problems with the built-in _Bool type.
64923         Reported by Paul Eggert on 2005-11-26.
64924
64925 2006-01-24  Bruno Haible  <bruno@clisp.org>
64926
64927         * gnulib-tool (func_import): Avoid constructing complicated sed
64928         expressions inside backquote.
64929         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64930
64931 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64932
64933         These changes imported from libc.
64934         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64935         test and two separate function calls.
64936         * lib/strndup.c (__strndup): Add libc_hidden_def.
64937
64938 2006-01-23  Simon Josefsson  <jas@extundo.com>
64939
64940         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64941         Remove the test_*_SOURCES variable: automake infers it by default.
64942         * modules/tls-tests: Likewise.
64943
64944 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         Work around porting bugs reported by Dieter in
64947         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64948         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64949         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64950         Include "getopt.h" first, to check interface.
64951         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64952         !HAVE_DECL_GETENV.
64953         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64954         (__strndup): Revert to K&R-style function dfns, the glibc style.
64955         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64956         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64957         Include strnlen.h first, to get prototype properly.
64958         (strnlen): Renamed from __strnlen.
64959         Remove weak alias.
64960
64961 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64962
64963         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64964
64965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * config/srclist.txt: Adjust to reflect glibc reorganization.
64968         This affects only comments.
64969
64970 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64971
64972          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64973          Reported by Bruce Korb <bkorb@gnu.org>.
64974
64975 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64978         to pacify gcc -Wswitch-default.
64979
64980 2006-01-22  Bruno Haible  <bruno@clisp.org>
64981
64982         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64983         temporary buffer for sprintf, take into account the precision also
64984         for 'd', 'i', 'u', 'o', 'x', 'X'.
64985
64986 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64987
64988         * modules/argp-tests: New module
64989         * tests/test-argp.c: New file
64990         * tests/test-argp-2.sh: New file
64991
64992 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64993
64994         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64995         (__argp_base_name): Removed
64996         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64997         typo.
64998         (__argp_base_name): Provide macro definition or extern declaration
64999         depending on the configuration
65000
65001 2006-01-20  Simon Josefsson  <jas@extundo.com>
65002
65003         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65004
65005 2006-01-20  Simon Josefsson  <jas@extundo.com>
65006
65007         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65008
65009 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65010
65011         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65012         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65013         Suggested by Bruno Haible.
65014
65015 2006-01-20  Karl Berry  <karl@gnu.org>
65016
65017         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65018         until changes propagate, I guess.
65019
65020 2006-01-19  Simon Josefsson  <jas@extundo.com>
65021
65022         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65023
65024 2006-01-19  Simon Josefsson  <jas@extundo.com>
65025
65026         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65027
65028 2006-01-19  Simon Josefsson  <jas@extundo.com>
65029
65030         * gnulib-tool: Set check_PROGRAMS.
65031
65032         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65033         modules/des-tests, modules/gc-arcfour-tests,
65034         modules/gc-arctwo-tests, modules/gc-des-tests,
65035         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65036         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65037         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65038         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65039         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65040         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65041         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65042         test_*_SOURCES.
65043
65044 2006-01-18  Simon Josefsson  <jas@extundo.com>
65045
65046         * modules/socklen (Depends-on): Depend on sys_socket.
65047
65048 2006-01-18  Simon Josefsson  <jas@extundo.com>
65049
65050         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65051         modules/des-tests, modules/gc-arcfour-tests,
65052         modules/gc-arctwo-tests, modules/gc-des-tests,
65053         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65054         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65055         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65056         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65057         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65058         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65059         $(EXEEXT) to automake TESTS variable, for mingw32.
65060
65061 2006-01-17  Simon Josefsson  <jas@extundo.com>
65062
65063         * modules/socklen (Include): Need sys/socket.h.
65064
65065 2006-01-17  Bruno Haible  <bruno@clisp.org>
65066
65067         * modules/ssize_t (Include): Add <sys/types.h>.
65068
65069 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65072         it's not portable and it doesn't work with cross-compiles.
65073         Problem reported by Bruno Haible.  Fix missing-$ typo in
65074         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65075         -zignore from being used with Sun's C compiler.
65076
65077 2006-01-12  Simon Josefsson  <jas@extundo.com>
65078
65079         * lib/base64.c: Fix warning, reported by Bruno Haible
65080         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65081
65082 2006-01-12  Bruno Haible  <bruno@clisp.org>
65083
65084         * modules/ldd: New file.
65085         * build-aux/ldd.sh.in: New file.
65086         * MODULES.html.sh (Support for building libraries and executables): Add
65087         ldd.
65088
65089 2006-01-12  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/ldd.m4: New file.
65092
65093 2006-01-12  Bruno Haible  <bruno@clisp.org>
65094
65095         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65096         endless loop while replacing $auxdir with build-aux.
65097
65098 2006-01-11  Simon Josefsson  <jas@extundo.com>
65099
65100         * lib/stdint_.h (SIZE_MAX): Add missing (.
65101
65102 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         Sync from coreutils.
65105         * lib/md5.c: Fix commentary typos.
65106         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65107         * lib/md5.h (__attribute__): Remove; unused.
65108         * lib/sha1.c: Fix commentary to match md5 better.
65109         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65110         so that we don't need to worry about alignment.  All uses changed.
65111         This merges the 2005-10-28 md5 change into sha1.
65112
65113 2006-01-11  Jim Meyering  <jim@meyering.net>
65114
65115         Sync from coreutils.
65116         * lib/md5.c (OP): Fix spacing.
65117
65118 2006-01-11  Bruno Haible  <bruno@clisp.org>
65119
65120         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65121         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65122         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65123
65124 2006-01-11  Bruno Haible  <bruno@clisp.org>
65125
65126         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65127         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65128         the "early" section as well.
65129
65130 2006-01-11  Bruno Haible  <bruno@clisp.org>
65131
65132         Avoid "ar: no archive members specified" error on MacOS X.
65133         * gnulib-tool (func_modules_add_dummy): New function.
65134         (func_import, func_create_testdir): Invoke it.
65135
65136 2006-01-11  Bruno Haible  <bruno@clisp.org>
65137
65138         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65139         with $auxdir in AC_CONFIG_FILES statements.
65140
65141 2006-01-11  Bruno Haible  <bruno@clisp.org>
65142
65143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65144         Initialize also noinst_HEADERS to empty.
65145
65146 2006-01-11  Bruno Haible  <bruno@clisp.org>
65147
65148         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65149         variables.
65150         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65151         autoreconf.
65152
65153 2006-01-11  Bruno Haible  <bruno@clisp.org>
65154
65155         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65156         overridable by the user.
65157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65158
65159 2006-01-10  Simon Josefsson  <jas@extundo.com>
65160
65161         * modules/sys_socket: New file.
65162
65163 2006-01-10  Simon Josefsson  <jas@extundo.com>
65164
65165         * m4/sys_socket_h.m4: New file.
65166
65167 2006-01-10  Simon Josefsson  <jas@extundo.com>
65168
65169         * lib/socket_.h: New file.
65170
65171 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * modules/readutmp (Maintainer): Add myself.
65174
65175 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65178         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65179         People who are still concerned with buggy memcmp implementations
65180         can invoke gl_FUNC_MEMCMP themselves.
65181
65182 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * lib/regex_internal.h (BITSET_WORD_BITS):
65185         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65186         preprocessor mishandles large unsigned values as if they were signed.
65187         Problem reported by Claudio Fontana in
65188         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65189
65190 2006-01-10  Jim Meyering  <jim@meyering.net>
65191
65192         Avoid the double-free (first in fts_read, second in fts_close) that
65193         would occur when an `active' directory is made inaccessible (e.g.,
65194         via chmod a-x) during a traversal.
65195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65196         before returning.  Reproduce this failure by
65197         mkdir -p a/b; cd a; chmod a-x . b
65198         Reported by Stavros Passas.
65199
65200         Sync from coreutils.
65201         * lib/sha1.c: Tweak grammar in a comment.
65202
65203 2006-01-10  Jim Meyering  <jim@meyering.net>
65204
65205         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65206         Patch by Joerg Sonnenberger.
65207
65208 2006-01-10  Bruno Haible  <bruno@clisp.org>
65209
65210         * modules/readutmp: Depend on module free.
65211         * modules/strtok_r: Depend on module restrict.
65212
65213 2006-01-10  Bruno Haible  <bruno@clisp.org>
65214
65215         * modules/gettext (configure.ac): Add an invocation of
65216         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65217
65218 2006-01-10  Bruno Haible  <bruno@clisp.org>
65219
65220         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65221         Reported by Werner Lemberg <wl@gnu.org>.
65222
65223 2006-01-10  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/localcharset.c: Update from GNU gettext.
65226
65227 2006-01-10  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/argp.h (__const): Remove macro. Use const instead.
65230         * lib/argp-fmtstream.h (__const): Likewise.
65231         * lib/glob_.h (__const): Remove macro.
65232         * lib/glob-libc.h: Use const instead of __const.
65233
65234 2006-01-10  Bruno Haible  <bruno@clisp.org>
65235
65236         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65237         variable.
65238         Needed to avoid an automake error regarding the 'gettext' module.
65239
65240 2006-01-09  Simon Josefsson  <jas@extundo.com>
65241
65242         * modules/inet_ntop (Depends-on): Add restrict.
65243
65244 2006-01-09  Simon Josefsson  <jas@extundo.com>
65245
65246         * modules/gc-rijndael-tests (License): Put under LGPL.
65247
65248         * modules/gc-des-tests (License): Likewise.
65249
65250         * modules/gc-arcfour-tests (License): Likewise.
65251
65252         * modules/gc-arctwo-tests (License): Likewise.
65253
65254         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65255
65256         * modules/gc-hmac-sha1-tests (Files): Likewise.
65257
65258         * modules/gc-hmac-md5-tests (License): Likewise.
65259
65260         * modules/gc-sha1-tests (License): Likewise.
65261
65262         * modules/gc-md5-tests (License): Likewise.
65263
65264         * modules/gc-md4-tests (License): Likewise.
65265
65266         * modules/gc-md2-tests (License): Likewise.
65267
65268         * modules/gc-tests (License): Likewise.
65269
65270         * modules/des-tests (License): Likewise.
65271
65272         * modules/md4-tests (License): Likewise.
65273
65274         * modules/md2-tests (License): Likewise.
65275
65276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         Sync from coreutils:
65279
65280         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65281         * modules/lib-ignore: New file.
65282         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65283         chdir-safer.m4, lchmod.m4.
65284         * modules/openat: Add mkdirat.c, openat-priv.h.
65285
65286 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         Sync from coreutils.
65289         * m4/lib-ignore.m4: New file.
65290         * m4/lchmod.m4: New file.
65291
65292 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65293
65294         Sync from coreutils.
65295         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65296         for write access: POSIX says that must fail.
65297         * lib/fts.c (diropen): Likewise.
65298         * lib/save-cwd.c (save_cwd): Likewise.
65299         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65300         well, for minor improvements on hosts that lack O_DIRECTORY.
65301         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65302         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65303         Fall back on chown if open failed with EACCES.
65304
65305         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65306         Report an error at compile-time if only a 1-second nominal clock
65307         resolution is found.
65308
65309         * lib/lchmod.h: New file.
65310         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65311         (make_dir_parents): Use lchown rather than chown, and
65312         lchmod rather than chmod.
65313
65314         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65315         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65316         "proc" reported by n0dalus.
65317
65318         * lib/mountlist.c: Include <limits.h>.
65319         (dev_from_mount_options)
65320         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65321         New function.  It no longer assumes "dev=" has the System V meaning
65322         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65323         (read_file_system_list)
65324         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65325         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65326         dev= in that case.
65327
65328         * lib/posixtm.h (PDS_PRE_2000): New macro.
65329         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65330         allow_century.  All usages changed.  Reject dates outside the range
65331         1969-1999 if PDS_PRE_2000 is used.
65332
65333 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         Sync from coreutils.
65336         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65337         (Time of day items): Mention the possibility of leap seconds.
65338         Problem reported by Dr. David Alan Gilbert.
65339
65340 2006-01-09  Jim Meyering  <jim@meyering.net>
65341
65342         Sync from coreutils.
65343
65344         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65345
65346         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65347
65348         * lib/modechange.c (mode_compile): Reject an invalid mode string
65349         that starts with an octal digit.  From Andreas Gruenbacher.
65350
65351         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65352         and dup to open_safer and dup_safer, respectively.
65353         (openat_permissive): Fix typo in comment.
65354
65355         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65356         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65357         (_): Remove; no longer needed.
65358         (openat): Renamed from rpl_openat; no need for rpl_openat
65359         since openat.h renames openat for us.
65360         Replace most of the body with a call to openat_permissive,
65361         to avoid duplicate code.
65362         Port to (probably hypothetical) environments were mode_t is
65363         wider than int.
65364         (openat_permissive): Require mode arg, so that we can check
65365         types better.  Put it just after flags.  Change cwd failure
65366         indicator from pointer-to-bool to pointer-to-errno-value.
65367         All callers changed.
65368         Invoke openat_save_fail and/or openat_restore_fail if
65369         cwd_errno is null, so that openat can call us.
65370         (openat_permissive, fdopendir, fstatat, unlinkat):
65371         Simplify errno handling to avoid some duplicate code,
65372         as it's OK to set errno on success.
65373         * lib/openat.h: Revamp code so that function macros depend on
65374         __OPENAT_PREFIX only, not also on AT_FDCWD.
65375         (openat_ro): Remove.  Caller changed to use openat_permissive.
65376         (openat_permissive): Now a macro, if not a function.
65377         (openat_restore_fail, openat_save_fail): Now always functions,
65378         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65379
65380         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65381         and openat.c.
65382         * lib/mkdirat.c: Include openat-priv.h.
65383         Remove definitions of macros defined therein.
65384         * lib/openat.c: Likewise.
65385
65386         * lib/mkdirat.c (mkdirat): New file and function.
65387         * lib/openat.h (mkdirat): Declare.
65388
65389         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65390
65391         * lib/openat.h (openat_permissive): Declare.
65392         (openat_ro): Define.
65393
65394         * lib/openat.c (EXPECTED_ERRNO): New macro.
65395         (openat_permissive): New function -- used in remove.c rewrite.
65396         (all functions): Set errno just before returning, only if there
65397         was an actual failure.
65398         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65399
65400         Emulate openat-family functions using Linux's procfs, if possible.
65401         Idea and some code based on Ulrich Drepper's glibc changes.
65402
65403         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65404         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65405         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65406         before falling back on save_cwd and restore_cwd.
65407         (fdopendir, fstatat, unlinkat): Likewise.
65408
65409         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65410         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65411
65412         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65413         as second argument to va_arg.  Otherwise, some versions of gcc
65414         warn that `if this code is reached, the program will abort'.
65415
65416 2006-01-09  Jim Meyering  <jim@meyering.net>
65417
65418         Sync from coreutils.
65419         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65420         Require openat-priv.h.
65421
65422 2006-01-09  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/strnlen (Include): Use strnlen.h.
65425
65426 2006-01-09  Bruno Haible  <bruno@clisp.org>
65427
65428         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65429
65430 2006-01-09  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/sysexit_.h (EX_OK): New macro.
65433         Suggested by Martin Lambers <marlam@marlam.de>.
65434
65435 2006-01-09  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65438         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65439
65440 2006-01-09  Bruno Haible  <bruno@clisp.org>
65441
65442         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65443         numbers.
65444
65445 2006-01-09  Bruno Haible  <bruno@clisp.org>
65446
65447         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65448         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65449         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65450         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65451
65452 2006-01-09  Bruno Haible  <bruno@clisp.org>
65453
65454         * build-aux/javacomp.sh.in: New file, moved from lib/.
65455         * modules/javacomp-script (Files): Update.
65456         (configure.ac): Add AC_CONFIG_FILES invocation.
65457         (EXTRA_DIST): Remove variable.
65458
65459         * build-aux/javaexec.sh.in: New file, moved from lib/.
65460         * modules/javaexec (Files): Update.
65461         (configure.ac): Add AC_CONFIG_FILES invocation.
65462         (EXTRA_DIST): Remove javaexec.sh.in.
65463
65464         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65465         * modules/csharpcomp-script (Files): Update.
65466         (configure.ac): Add AC_CONFIG_FILES invocation.
65467         (EXTRA_DIST): Remove variable.
65468
65469         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65470         * modules/csharpexec (Files): Update.
65471         (configure.ac): Add AC_CONFIG_FILES invocation.
65472         (EXTRA_DIST): Remove csharpexec.sh.in.
65473
65474 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65475
65476         Sync from coreutils.
65477
65478         Add POSIX ACL support
65479         * lib/acl.h (copy_acl, set_acl): Add declarations.
65480         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65481         systems other than Linux.
65482         (chmod_or_fchmod): New function: use fchmod when possible,
65483         and chmod otherwise.
65484         (file_has_acl): Add a POSIX ACL implementation, with a
65485         Linux-specific subcase.
65486         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65487         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65488         acls are unsupported.
65489         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65490         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65491         are unsupported.
65492
65493 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65494
65495         Sync from coreutils.
65496         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65497
65498 2006-01-07  Bruno Haible  <bruno@clisp.org>
65499
65500         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65501         gl_EARLY.
65502
65503 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65506         Problem reported for Mingw by Mark Junker.
65507
65508 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * README: Gnulib normally doesn't generate a tarball.
65511
65512 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65515         long int, not int, for nanosecond counts, so that people who are
65516         used to POSIX struct timespec won't be surprised.  Reported by Jim
65517         Meyering.
65518
65519 2005-12-28  Bruno Haible  <bruno@clisp.org>
65520
65521         * build-aux/config.rpath: Update from GNU gettext.
65522
65523 2005-12-16  Jim Meyering  <jim@meyering.net>
65524
65525         * modules/fprintftime: New module.
65526         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65527
65528 2005-12-16  Jim Meyering  <jim@meyering.net>
65529
65530         * m4/fprintftime.m4: New file.
65531
65532 2005-12-16  Jim Meyering  <jim@meyering.net>
65533
65534         * lib/fprintftime.c, lib/fprintftime.h: New files.
65535
65536 2005-12-15  Simon Josefsson  <jas@extundo.com>
65537
65538         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65539         new m4/socklen.m4.
65540
65541 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65542
65543         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65544         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65545
65546 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65547
65548         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65549         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65550         struct uparams is valid. Fall back to the default values if it is
65551         not.
65552
65553 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65554
65555         * modules/argp (Files): Add argp-pin.c
65556         (Depends-on): dirname
65557         (lib_SOURCES): Add argp-pin.c
65558
65559 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65560
65561         * m4/argp.m4:  Check if program_invocation_name and
65562         program_invocation_short_name are declared and define appropriate
65563         macros if they are not.
65564
65565 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65566
65567         * lib/argp-help.c (__argp_base_name): New function
65568         (__argp_short_program_name): Rewrite using __argp_base_name
65569         * lib/argp-namefrob.h: Define program_invocation_name and
65570         program_invocation_short_name if requested
65571         (__argp_base_name): Add prototype
65572         * lib/argp-parse.c (argp_def): Use gettext wrappers
65573         (argp_default_parser): Use __argp_base_name
65574         * lib/argp-pin.c: New file. Defines program_invocation_name and
65575         program_invocation_short_name on systems that lack them.
65576
65577 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65580         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65581         porting problem reported by Georg Schwarz in
65582         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65583
65584 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65587         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65588         porting problem reported by Georg Schwarz in
65589         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65590
65591 2005-12-05  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65594         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65595         Reported by Mark Junker <mjscod@gmx.de>.
65596
65597 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65600         Use implementation from Albert Chin, with some
65601         comments/corrections by Stepan Kasal and myself.
65602
65603 2005-12-02  Bruno Haible  <bruno@clisp.org>
65604
65605         * gnulib-tool (func_import): Accept GPLed build tool modules when
65606         --lgpl is given.
65607         * modules/csharpcomp-script: New file.
65608         * modules/csharpcomp: Depend on it.
65609         * modules/javacomp-script: New file.
65610         * modules/javacomp: Depend on it.
65611         Suggested by Simon Josefsson.
65612
65613 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65616         statement, to work around an HP-UX 10.20 compiler bug reported by
65617         Peter O'Gorman.
65618
65619 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * modules/savedir (Depends-on): Add openat.
65622
65623 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65626         (uintmax_t) [defined uintmax_t]: Do not declare.
65627         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65628         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65629         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65630         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65631         sake of portability to weird hosts that C allows (though we don't
65632         know of any practical examples).
65633
65634         * lib/savedir.h (fdsavedir): New decl.
65635         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65636         contains most of the former guts of savedir.
65637         (savedir): Use savedirstream.
65638         Include "openat.h".
65639
65640 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65641
65642         * modules/obstack (Files): Add m4/ulonglong.m4.
65643         Problem reported by Davide Angelocola.
65644
65645 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65648         coreutils no longer futzes with rounding modes.
65649
65650 2005-11-14  Jim Meyering  <jim@meyering.net>
65651
65652         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65653         replacement of mkstemp.
65654
65655 2005-11-10  Simon Josefsson  <jas@extundo.com>
65656
65657         * lib/readline.c: Remove EOL.
65658
65659 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65660
65661         * modules/gethrxtime (Depends-on): Add gettime.
65662
65663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65666         or gettimeofday; no longer needed.
65667
65668 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65671         time business.
65672         (gethrxtime) [! (HAVE_NANOUPTIME
65673         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65674         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65675         our own approximation.
65676
65677 2005-11-08  Eric Blake  <ebb9@byu.net>
65678
65679         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65680
65681 2005-11-08  Eric Blake  <ebb9@byu.net>
65682
65683         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65684
65685 2005-11-04  Bruno Haible  <bruno@clisp.org>
65686
65687         * gnulib-tool: Implement --update mode.
65688
65689 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         Fix porting problem reported by Theodoros V. Kalamatianos.
65692         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65693         Don't assume that futimes failing means we must fail.
65694
65695 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65698         variables to suggest the intended function of the PATH_MAX check.
65699
65700 2005-10-30  Kean Johnston  <jkj@sco.com>
65701
65702         Trivial changes to support SCO systems.
65703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65704         as PATH_MAX.
65705         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65706         where __ptr is null when no I/O is pending.
65707
65708 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65711         leave errno alone.  Problem reported by Dmitry V. Levin.
65712
65713 2005-10-28  Simon Josefsson  <jas@extundo.com>
65714
65715         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65716         Test more.
65717
65718         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65719
65720         * modules/md2, modules/md2-tests: New files.
65721
65722 2005-10-28  Simon Josefsson  <jas@extundo.com>
65723
65724         * m4/inet_ntop.m4: More tests.
65725
65726         * m4/gc-md2.m4, md2.m4: New file.
65727
65728 2005-10-28  Simon Josefsson  <jas@extundo.com>
65729
65730         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65731         "restrict" keywords, as per POSIX.  Protect the function
65732         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65733         Don't use K&R prototypes.  Check the sprintf return values.
65734         Re-define EAFNOSUPPORT if not present.  Indent.
65735
65736         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65737         suggested by Bruno Haible <bruno@clisp.org>.
65738
65739         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65740
65741         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65742
65743         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65744         libgcrypt).
65745
65746         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65747
65748         * lib/md2.h, lib/md2.c: New files.
65749
65750 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65753         errno alone.  Problem reported by Frederic Jolliton.
65754
65755 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * modules/verify (License): Change from GPL to LGPL.  This is a
65758         tiny module and there are apparently near-equivalents that are
65759         under the BSD license.
65760
65761 2005-10-24  Simon Josefsson  <jas@extundo.com>
65762
65763         * modules/sha1: Relicense to LGPL.
65764
65765 2005-10-24  Simon Josefsson  <jas@extundo.com>
65766
65767         * lib/md4.h: Shrink buffer size, now that we changed the type.
65768
65769 2005-10-23  Simon Josefsson  <jas@extundo.com>
65770
65771         * gnulib-tool (func_import): Fix --tests-base.
65772
65773 2005-10-22  Simon Josefsson  <jas@extundo.com>
65774
65775         * modules/arcfour (Depends-on): Need stdint.
65776
65777 2005-10-22  Simon Josefsson  <jas@extundo.com>
65778
65779         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65780         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65781
65782 2005-10-22  Simon Josefsson  <jas@extundo.com>
65783
65784         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65785         suggested by Bruno Haible <bruno@clisp.org>.
65786
65787 2005-10-22  Simon Josefsson  <jas@extundo.com>
65788
65789         * lib/crc.h: Include stddef.h, for size_t.
65790
65791 2005-10-22  Simon Josefsson  <jas@extundo.com>
65792
65793         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65794         arcfour_context struct (simplify test vector testing in GNU
65795         Shishi).
65796
65797 2005-10-21  Simon Josefsson  <jas@extundo.com>
65798
65799         * modules/des, modules/des-tests: New files.
65800
65801         * modules/gc-des, modules/gc-des-tests: New files.
65802
65803         * tests/test-des.c, tests/test-gc-des.c: New file.
65804
65805 2005-10-21  Simon Josefsson  <jas@extundo.com>
65806
65807         * modules/arctwo, modules/arctwo-tests: New files.
65808
65809         * tests/test-arctwo.c: New file.
65810
65811         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65812
65813         * tests/test-gc-arctwo.c: New file.
65814
65815 2005-10-21  Simon Josefsson  <jas@extundo.com>
65816
65817         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65818         Bruno Haible <bruno@clisp.org>.
65819
65820         * m4/gc-des.m4: New file.
65821
65822 2005-10-21  Simon Josefsson  <jas@extundo.com>
65823
65824         * m4/arctwo.m4: New file.
65825
65826         * m4/gc-arctwo.m4: New file.
65827
65828 2005-10-21  Simon Josefsson  <jas@extundo.com>
65829
65830         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65831         block.
65832
65833 2005-10-21  Simon Josefsson  <jas@extundo.com>
65834
65835         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65836         <bruno@clisp.org>.
65837
65838         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65839
65840         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65841         Bruno Haible <bruno@clisp.org>.
65842
65843         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65844         <bruno@clisp.org>.
65845
65846 2005-10-21  Simon Josefsson  <jas@extundo.com>
65847
65848         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65849
65850 2005-10-21  Simon Josefsson  <jas@extundo.com>
65851
65852         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65853
65854 2005-10-21  Simon Josefsson  <jas@extundo.com>
65855
65856         * lib/des.h, lib/des.c: New files.
65857
65858         * lib/gc-gnulib.c: Support DES.c
65859
65860 2005-10-21  Simon Josefsson  <jas@extundo.com>
65861
65862         * lib/arctwo.h, lib/arctwo.c: New files.
65863
65864         * lib/gc-gnulib.c: Support ARCTWO.
65865
65866 2005-10-21  Simon Josefsson  <jas@extundo.com>
65867
65868         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65869         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65870
65871 2005-10-21  Simon Josefsson  <jas@extundo.com>
65872
65873         * gnulib-tool (func_import, func_create_testdir): Define automake
65874         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65875         Makefile.am snippet),
65876         suggested by Bruno Haible <bruno@clisp.org>.
65877
65878         * modules/gc (Makefile.am): Use it.
65879
65880 2005-10-21  Bruno Haible  <bruno@clisp.org>
65881
65882         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65883         patch.
65884
65885 2005-10-19  Simon Josefsson  <jas@extundo.com>
65886
65887         * tests/test-gc-rijndael.c: New file.
65888
65889         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65890
65891 2005-10-19  Simon Josefsson  <jas@extundo.com>
65892
65893         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65894         interface too.
65895
65896 2005-10-19  Simon Josefsson  <jas@extundo.com>
65897
65898         * tests/test-gc-arcfour.c: New file.
65899
65900         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65901
65902 2005-10-19  Simon Josefsson  <jas@extundo.com>
65903
65904         * modules/gc-md4, modules/gc-md4-tests: New file.
65905
65906         * tests/test-gc-md4.c: New file.
65907
65908 2005-10-19  Simon Josefsson  <jas@extundo.com>
65909
65910         * m4/gc-md4.m4: New file.
65911
65912 2005-10-19  Simon Josefsson  <jas@extundo.com>
65913
65914         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65915         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65916         <kasal@ucw.cz>.
65917
65918 2005-10-19  Simon Josefsson  <jas@extundo.com>
65919
65920         * m4/gc-arcfour.m4: New file.
65921
65922         * m4/gc-rijndael.m4: New file.
65923
65924 2005-10-19  Simon Josefsson  <jas@extundo.com>
65925
65926         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65927
65928 2005-10-19  Simon Josefsson  <jas@extundo.com>
65929
65930         * lib/gc-gnulib.c: Support ARCFOUR.
65931
65932 2005-10-19  Simon Josefsson  <jas@extundo.com>
65933
65934         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65935         support.
65936
65937         * lib/gc.h: Add ECB enum type.
65938
65939         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65940
65941 2005-10-18  Simon Josefsson  <jas@extundo.com>
65942
65943         * tests/test-md5.c: New file.
65944
65945         * modules/md5-tests: New file.
65946
65947 2005-10-18  Simon Josefsson  <jas@extundo.com>
65948
65949         * tests/test-md4.c: New file.
65950
65951         * modules/md4, modules/md4-tests: New files.
65952
65953 2005-10-18  Simon Josefsson  <jas@extundo.com>
65954
65955         * m4/md4.m4: New file.
65956
65957 2005-10-18  Simon Josefsson  <jas@extundo.com>
65958
65959         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65960
65961 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65962
65963         * gnulib-tool (func_create_testdir): Omit the second check whether
65964         BUILT_SOURCES in nonempty.
65965
65966 2005-10-17  Simon Josefsson  <jas@extundo.com>
65967
65968         * tests/test-rijndael.c: New file.
65969
65970 2005-10-17  Simon Josefsson  <jas@extundo.com>
65971
65972         * modules/sha1: Depend on stdint instead of md5.
65973
65974         * modules/md5: Depend on stdint, remove uint32_t.
65975
65976 2005-10-17  Simon Josefsson  <jas@extundo.com>
65977
65978         * modules/gc-sha1-tests: New file.
65979
65980         * tests/test-gc-sha1.c: New file.
65981
65982 2005-10-17  Simon Josefsson  <jas@extundo.com>
65983
65984         * m4/md5.m4: Remove call to uint32_t.m4.
65985
65986 2005-10-17  Simon Josefsson  <jas@extundo.com>
65987
65988         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65989
65990         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65991         md5.h.
65992
65993         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65994
65995         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65996
65997 2005-10-17  Simon Josefsson  <jas@extundo.com>
65998
65999         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66000
66001 2005-10-17  Simon Josefsson  <jas@extundo.com>
66002
66003         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66004
66005 2005-10-17  Simon Josefsson  <jas@extundo.com>
66006
66007         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66008
66009         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66010
66011 2005-10-17  Bruno Haible  <bruno@clisp.org>
66012
66013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66014         that it can also be used in a test.
66015
66016 2005-10-16  Bruno Haible  <bruno@clisp.org>
66017
66018         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66019         TESTS_ENVIRONMENT, so that individual tests can augment it.
66020
66021         * gnulib-tool (func_create_testdir): Use an intermediate target for
66022         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66023         macros, like $(ALLOCA_H), which cannot be passed through the command
66024         line.
66025
66026 2005-10-15  Simon Josefsson  <jas@extundo.com>
66027
66028         * modules/rijndael-tests: New file.
66029
66030         * modules/rijndael: New file.
66031
66032 2005-10-15  Simon Josefsson  <jas@extundo.com>
66033
66034         * m4/rijndael.m4: New file.
66035
66036 2005-10-15  Simon Josefsson  <jas@extundo.com>
66037
66038         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66039
66040         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66041
66042 2005-10-14  Simon Josefsson  <jas@extundo.com>
66043
66044         * tests/test-arcfour.c: New file.
66045
66046         * modules/arcfour, modules/arcfour-tests: New files.
66047
66048 2005-10-14  Simon Josefsson  <jas@extundo.com>
66049
66050         * m4/arcfour.m4: New file.
66051
66052 2005-10-14  Simon Josefsson  <jas@extundo.com>
66053
66054         * lib/arcfour.h, lib/arcfour.c: New files.
66055
66056 2005-10-14  Roland McGrath  <roland@redhat.com>
66057
66058         Import from libc.  [BZ #1331]
66059         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66060         macro argument.
66061         Reported by Matej Vela <vela@debian.org>.
66062
66063 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66066         include <wchar.h>; no longer needed.
66067
66068 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66071
66072 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66073         and  Ulrich Drepper  <drepper@redhat.com>
66074
66075         Import from libc.
66076         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66077         instead of inline stream orientation test and two separate
66078         function calls.  Pay no attention to USE_IN_LIBIO.
66079
66080 2005-10-13  Simon Josefsson  <jas@extundo.com>
66081
66082         * modules/gc-hmac-md5-tests: New file.
66083
66084         * tests/test-gc-hmac-sha1.c: New file.
66085
66086         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66087
66088         * modules/gc-hmac-md5-tests: New file.
66089
66090         * tests/test-gc-md5.c: New file.
66091
66092         * modules/gc-md5-tests: New file.
66093
66094 2005-10-13  Simon Josefsson  <jas@extundo.com>
66095
66096         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66097         Move memory allocation outside of loop.
66098
66099 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66102         intermediate directory is in a read-only file system.  Problem
66103         reported by Eric Blake.
66104
66105 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66106
66107         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66108
66109 2005-10-12  Simon Josefsson  <jas@extundo.com>
66110
66111         * tests/test-hmac-sha1.c: New file.
66112
66113         * modules/hmac-sha1-tests: New file.
66114
66115         * modules/hmac-sha1: New file.
66116
66117 2005-10-12  Simon Josefsson  <jas@extundo.com>
66118
66119         * modules/gc-sha1: New file.
66120
66121 2005-10-12  Simon Josefsson  <jas@extundo.com>
66122
66123         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66124
66125         * tests/test-gc-pbkdf2-sha1.c: New file.
66126
66127 2005-10-12  Simon Josefsson  <jas@extundo.com>
66128
66129         * modules/gc-md5, modules/gc-hmac-md5: New files.
66130
66131         * modules/gc (Files): Remove md5, memxor and hmac files.
66132
66133 2005-10-12  Simon Josefsson  <jas@extundo.com>
66134
66135         * m4/gc-pbkdf2-sha1.m4: New file.
66136
66137         * m4/gc-hmac-sha1.m4: New file.
66138
66139         * m4/gc-sha1: New file.
66140
66141         * m4/hmac-sha1.m4: New file.
66142
66143 2005-10-12  Simon Josefsson  <jas@extundo.com>
66144
66145         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66146
66147         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66148
66149 2005-10-12  Simon Josefsson  <jas@extundo.com>
66150
66151         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66152         suggested by Bruno Haible <bruno@clisp.org>.
66153
66154 2005-10-12  Simon Josefsson  <jas@extundo.com>
66155
66156         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66157
66158 2005-10-12  Simon Josefsson  <jas@extundo.com>
66159
66160         * lib/gc-pbkdf2-sha1.c: New file.
66161
66162         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66163
66164 2005-10-12  Simon Josefsson  <jas@extundo.com>
66165
66166         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66167
66168         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66169
66170 2005-10-12  Simon Josefsson  <jas@extundo.com>
66171
66172         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66173         GC_USE_HMAC_MD5, respectively.
66174
66175         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66176         (gc_md5): Fix typo.
66177
66178         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66179
66180         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66181
66182         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66183
66184 2005-10-12  Bruno Haible  <bruno@clisp.org>
66185
66186         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66187         Reported by Stepan Kasal <kasal@ucw.cz>.
66188
66189 2005-10-11  Simon Josefsson  <jas@extundo.com>
66190
66191         * tests/test-crc.c: New file.
66192
66193         * modules/crc, modules/crc-tests: New files.
66194
66195 2005-10-11  Simon Josefsson  <jas@extundo.com>
66196
66197         * m4/crc.m4: New file.
66198
66199 2005-10-11  Simon Josefsson  <jas@extundo.com>
66200
66201         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66202
66203         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66204
66205         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66206
66207 2005-10-11  Simon Josefsson  <jas@extundo.com>
66208
66209         * lib/crc.h, lib/crc.c: New files.
66210
66211         * lib/gc.h (gc_hash_buffer): Add doc.
66212
66213 2005-10-11  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/c-strcasestr: New file.
66216         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66217
66218 2005-10-11  Bruno Haible  <bruno@clisp.org>
66219
66220         * modules/c-strcase: New file.
66221         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66222
66223 2005-10-11  Bruno Haible  <bruno@clisp.org>
66224
66225         * lib/strcasecmp.c: Include limits.h.
66226         (strcasecmp): Avoid integer overflow on exotic platforms.
66227         * lib/strncasecmp.c: Include limits.h.
66228         (strncasecmp): Avoid integer overflow on exotic platforms.
66229         Reported by Paul Eggert.
66230
66231 2005-10-11  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/c-strcasestr.h: New file, from GNU gettext.
66234         * lib/c-strcasestr.c: New file, from GNU gettext.
66235
66236 2005-10-11  Bruno Haible  <bruno@clisp.org>
66237
66238         * lib/c-strcase.h: New file, from GNU gettext.
66239         * lib/c-strcasecmp.c: New file, from GNU gettext.
66240         * lib/c-strncasecmp.c: New file, from GNU gettext.
66241
66242 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * modules/mempcpy (License): GPL -> LGPL.
66245         * modules/strchrnul (License): Likewise.
66246         * modules/sysexits (License): Likewise.
66247
66248 2005-10-08  Simon Josefsson  <jas@extundo.com>
66249
66250         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66251
66252 2005-10-07  Simon Josefsson  <jas@extundo.com>
66253
66254         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66255
66256 2005-10-06  Simon Josefsson  <jas@extundo.com>
66257
66258         * tests/test-hmac-md5.c: New file.
66259
66260         * modules/hmac-md5-tests: New file.
66261
66262         * modules/hmac-md5: New file.
66263
66264 2005-10-06  Simon Josefsson  <jas@extundo.com>
66265
66266         * m4/hmac-md5.m4: New file.
66267
66268         * m4/memxor.m4: Require gl_C_RESTRICT.
66269
66270 2005-10-06  Simon Josefsson  <jas@extundo.com>
66271
66272         * lib/memxor.c (memxor): Avoid casts and warnings.
66273
66274 2005-10-06  Simon Josefsson  <jas@extundo.com>
66275
66276         * lib/hmac-md5.c: New file.
66277
66278         * lib/hmac.h: New file.
66279
66280 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66283         promotes to int, not unsigned int, to catch the AIX 5.3
66284         compiler bug.
66285
66286 2005-10-05  Simon Josefsson  <jas@extundo.com>
66287
66288         * modules/memxor: New file.
66289
66290         * modules/iconv (Files): Move config.rpath to havelib, it is used
66291         there.
66292
66293         * modules/havelib (Files): Add config.rpath.
66294
66295 2005-10-05  Simon Josefsson  <jas@extundo.com>
66296
66297         * m4/memxor.m4: New file.
66298
66299 2005-10-05  Simon Josefsson  <jas@extundo.com>
66300
66301         * lib/memxor.c (memxor): Fix compiler error.
66302
66303         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66304         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66305
66306         * lib/memxor.h, lib/memxor.c: New files.
66307
66308         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66309         we assume all systems have it, suggested by Jim Meyering
66310         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66311         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66312         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66313         same reasons.
66314
66315 2005-10-05  Simon Josefsson  <jas@extundo.com>
66316
66317         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66318
66319 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66322         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66323         needed, since the source code now assumes these .h files.
66324
66325 2005-10-05  Derek Price  <derek@ximbiot.com>
66326
66327         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66328
66329 2005-10-05  Bruno Haible  <bruno@clisp.org>
66330
66331         * modules/stdint (License): Change to LGPL.
66332
66333 2005-10-04  Simon Josefsson  <jas@extundo.com>
66334
66335         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66336         D. Baushke" <mdb@gnu.org>.
66337
66338 2005-10-04  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/verify.h (verify_true): Provide alternative definition for C++.
66341
66342 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66343
66344         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66345         (SSIZE_MAX): New macro, if not already defined.
66346         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66347         than 2 GiB.
66348
66349 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         Sync from coreutils.
66352         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66353         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66354         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66355         ULLONG_MAX doesn't work with 2.7.2.1.
66356
66357 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66360         From Ben Pfaff.
66361
66362         * modules/exclude (Depends-on): Depend on verify.
66363         * modules/strtoimax (Depends-on): Likewise.
66364         * modules/utimecmp (Depends-on): Likewise.
66365
66366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         * lib/exclude.c: Include verify.h.
66369         (verify): Remove.  All callers changed to use verify.h's version.
66370         * lib/strtoimax.c: Likewise.
66371         * lib/utimecmp.c: Likewis.e
66372
66373         Sync from coreutils.
66374         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66375         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66376         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66377         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66378         bother returning ENOSYS if settimeofday or stime fails; just let
66379         them return whatever errno they want to return.
66380         * lib/utimens.c: Include unistd.h, for dup2.
66381         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66382         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66383
66384 2005-10-02  Jim Meyering  <jim@meyering.net>
66385
66386         Sync from coreutils.
66387         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66388         from glibc-2.2.5 that fails for read-only files.
66389
66390 2005-10-02  Jim Meyering  <jim@meyering.net>
66391
66392         Sync from coreutils.
66393         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66394         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66395         `#if HAVE_CONFIG_H'.
66396         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66397         Remove AT_FDCWD test.
66398         Do not consume the fd unless successful.
66399         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66400         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66401         block, so that we don't even try to compile it if settimeofday is
66402         available.  This works around a compilation failure on OSF1 V5.1,
66403         due to stime requiring a `long int*' while tv_sec is `int'.
66404
66405 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66406
66407         Sync from coreutils.
66408         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66409         against `yes', rather than just testing for nonempty.
66410
66411 2005-10-01  Simon Josefsson  <jas@extundo.com>
66412
66413         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66414         and Darwin.
66415
66416         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66417         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66418         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66419         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66420         Check if struct addrinfo is declared.
66421
66422 2005-10-01  Simon Josefsson  <jas@extundo.com>
66423
66424         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66425         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66426         AI_* and EAI_* definitions.  Protect function declarations.
66427
66428 2005-10-01  Jim Meyering  <jim@meyering.net>
66429
66430         Sync from coreutils.
66431
66432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66433         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66434         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66436         in the inet and nsl libraries.  Required on Solaris 5.7.
66437
66438 2005-10-01  Jim Meyering  <jim@meyering.net>
66439
66440         Sync from coreutils.
66441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66442         in the inet and nsl libraries.  Required on Solaris 5.7.
66443
66444 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66445
66446         * lib/getdelim.c (getdelim): Remove unused variables.
66447
66448 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66451         so that the code works even with ancient cpp.  Portability problem
66452         with GCC 2.7.2.1 reported by Thomas M.Ott.
66453
66454 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66455
66456         * modules/regex (Depends-on): Add strcase.
66457
66458         * modules/gethostname (Licence): Change from GPL to LGPL, since
66459         gethostname.c is a trivial implementation of a standard library
66460         function.
66461         * modules/poll (License): Change from GPL to LGPL, since it's
66462         derived from LGPL code.
66463
66464 2005-09-27  Jim Meyering  <jim@meyering.net>
66465
66466         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66467         HAVE_CONFIG_H.
66468
66469         * lib/intprops.h (signed_type_or_expr__): Define.
66470         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66471         for unsigned types.
66472
66473 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         * lib/verify.h (verify_expr): Remove, replacing with:
66476         (verify_true): New macro that returns true instead of void.
66477         (verify_type__): Remove.
66478         (verify): Use verify_true rather than verify_type__.
66479
66480 2005-09-26  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66483         is necessary.
66484         (lib_SOURCES): Remove mbchar.c.
66485         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66486         (Files): Add m4/mbrtowc.m4.
66487         * modules/mbiter: Likewise.
66488         * modules/mbuiter: Likewise.
66489
66490 2005-09-26  Bruno Haible  <bruno@clisp.org>
66491
66492         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66493         compile mbchar.c if they are not both present.
66494         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66495         * m4/mbiter.m4 (gl_MBITER): Likewise.
66496         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66497         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66498         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66499
66500 2005-09-25  Jim Meyering  <jim@meyering.net>
66501
66502         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66503         also uses socklen_t.
66504
66505 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * lib/utimens.c (ENOSYS): Define if not already defined.
66508         (futimens): Support having a null PATH if the file descriptor
66509         is nonnegative.
66510
66511         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66512         Remove.
66513         (__attribute): Define to empty unless GCC 3.1 or later.
66514         This works around a core dump on OpenBSD 3.4, which has GCC
66515         2.95.3, which dumps core when given __attribute__(()).  It also
66516         simplifies other tests, since we really don't want to bother with
66517         worrying about which ancient version of GCC supported what.
66518         Original problem reported by Yoann Vandoorselaere, with part of
66519         the fix suggested by Derek Price.
66520
66521 2005-09-24  Jim Meyering  <jim@meyering.net>
66522
66523         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66524         so we can once again use a positive bitfield width of 1 -- now we
66525         don't have to explain why we were using a bitfield width of 2.
66526
66527 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66530         and similarly for the other external symbols.  Problem reported
66531         by James Gallager.
66532
66533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66534         bug reported by Jim Meyering.
66535
66536         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66538         not needed, since socklen is a prerequisite module.
66539
66540 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66543         Problem reported by Eric Blake.
66544         (getaddrinfo): Initialize se so that it's not garbage.
66545         Redo internal storage allocation so that it doesn't make unportable
66546         assumptions about alignment.
66547         Fix a memory leak.
66548
66549         * lib/utimens.c (futimens): Use futimesat if available.
66550         Prefer it to futimes since it doesn't have the futimes bug.
66551
66552         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66553         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66554         Instead, declare a function that returns a pointer to an array,
66555         and use verify_type__ to declare the size of the array.
66556         Problem and germ of a solution reported by Bruno Haible.
66557         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66558         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66559
66560 2005-09-23  Jim Meyering  <jim@meyering.net>
66561
66562         Sync from coreutils.
66563         Correct build failure (socklen_t not defined) on at least
66564         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66566
66567 2005-09-23  Jim Meyering  <jim@meyering.net>
66568
66569         * modules/getaddrinfo (Depends-on): Add socklen.
66570
66571 2005-09-23  Bruno Haible  <bruno@clisp.org>
66572
66573         * tests/test-verify.c: New file.
66574
66575 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         Sync from coreutils.
66578
66579         * modules/argmatch (Depends-on): Add verify.
66580         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66581         unistd-safer.
66582         * modules/save-cwd (Depends-on): Likewise.
66583
66584         * modules/openat (Files): Add lib/openat-die.c.
66585         (Depends-on): Remove error, exitfail.
66586         Add dirname.
66587
66588         * modules/verify: New file.
66589         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66590         with "verify" module.
66591
66592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         Sync from coreutils.
66595
66596         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66597         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66598         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66599         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66600         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66601         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66602         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66603         Don't bother checking for string.h, stdlib.h, unistd.h.
66604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66605         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66606         module's job.
66607         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66608         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66609
66610         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66611         (gl_GETDATE): Use it.
66612
66613         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66614
66615 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         Sync from coreutils.
66618
66619         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66620         stat-time.h.
66621         * lib/argmatch.h: Include verify.h
66622         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66623         (ARGMATCH_ASSERT): Remove; unused.
66624         * lib/canonicalize.c: Assume STDC_HEADERS.
66625         * lib/exclude.c: Include "strcase.h".
66626         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66627         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66628         and stdio-safer.h.
66629         (getusershell): Call fopen, not fopen_safer.
66630         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66631         Do not include unistd-safer.h.
66632         (save_cwd): Don't call fd_safer; no longer needed
66633         now that we include fcntl--.h.
66634
66635         * lib/getdate.y (relative_time): New type.
66636         (RELATIVE_TIME_0): New constant.
66637         (parser_control): Use relative_time instead of doing it ourselves.
66638         (%union): Add new relative_time rel member.
66639         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66640         Now typeless.
66641         (relunit, relunit_snumber): Now of type rel.
66642         (zone, rel, relunit, get_date): Adjust to above changes.
66643
66644         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66645         Do not include unistd-safer.h.
66646         (getloadavg): Don't call fd_safer; no longer needed
66647         now that we include fcntl--.h.
66648
66649         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66650         (make_dir_parents): Treat ENOSYS like EEXIST.
66651
66652         Improve quality of diagnostics on restore_cwd failure.
66653         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66654         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66655         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66656         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66657         each time through the loop.  Do not diagnose restore_cwd failure;
66658         that is the caller's job (and perhaps the caller does not care).
66659
66660         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66661         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66662         If the file already exists but is not a directory, don't bother
66663         to try to make its parents.
66664         Close potential file descriptor leak if we can't chdir("/") (!).
66665         Don't always return true if chdir($PWD) fails; return true only
66666         if the requested action was done successfully (except for the
66667         chdir($PWD)).
66668         Don't log final directory unless we actually made it.
66669         Refactor to avoid duplicate code to fix up permissions.
66670         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66671
66672         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66673         to make it a bit faster and (I hope) clearer.
66674         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66675         Fix bug in formats like %2N.
66676
66677         * lib/verify.h: New file.
66678
66679 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         Sync from coreutils.
66682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66683
66684 2005-09-22  Jim Meyering  <jim@meyering.net>
66685
66686         Sync from coreutils.
66687
66688         * m4/lstat.m4 (gl_FUNC_LSTAT):
66689         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66690         Remove obsolete comment.
66691         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66692         * m4/xstrtod.m4: Likewise.
66693
66694         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66695
66696 2005-09-22  Jim Meyering  <jim@meyering.net>
66697
66698         Sync from coreutils.
66699
66700         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66701
66702         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66703         the .tm_year member, since otherwise gcc-4.0 would now warn about
66704         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66705
66706         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66707         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66708
66709         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66710         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66711         when run in a time zone for which daylight savings time is in effect
66712         for the starting date.
66713
66714         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66715         stop us from restricting permissions of just-created absolute-named
66716         directories.
66717         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66718         to restore initial working directory.
66719         * lib/mkdir-p.c (make_dir_parents): New parameter:
66720         different_working_dir, to tell caller if/when we change the working
66721         directory and are unable to return to the initial one.
66722         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66723         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66724         `return false'.  This fixes a bug introduced on 2004-07-30.
66725
66726         * lib/openat.c (fdopendir): Be sure to close the supplied
66727         file descriptor before returning.  This makes our replacement
66728         implementation a little closer to Solaris's, where fdopendir
66729         ties the file descriptor to the returned DIR* pointer.
66730         * lib/openat.c (unlinkat): New function.
66731         * lib/openat.h (unlinkat): Add prototype.
66732         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66733         (openat_restore_fail): Rename from openat_restore_die.
66734         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66735
66736         Provide an alternative to exiting immediately upon save_cwd or
66737         restore_cwd failure.  Now, an application can arrange e.g.,
66738         to perform a longjump in that case.
66739         * lib/openat.c: Include dirname.h.
66740         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66741         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66742         and openat_restore_die rather than calling error directly.
66743         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66744
66745         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66746         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66747         define.
66748
66749         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66750         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66751                             int utc, int nanoseconds);
66752         Background:
66753         date should not have to allocate a megabyte of virtual memory to
66754         handle a format argument like +%1048575T.  When implemented with
66755         strftime, it must allocate such a buffer, use strftime to fill it
66756         in, print it, then free it.
66757         With fprintftime, it simply prints everything and exits.
66758         With no need for memory allocation, that's one fewer way to fail.
66759         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66760         optional field width, not before, so we accept %9:z, not %:9z.
66761         (my_strftime): Be sure to use L_('x') for literals.
66762
66763         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66764         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66765         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66766         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66767         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66768         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66769         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66770         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66771         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66772         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66773         * lib/xgethostname.c, lib/xreadlink.c:
66774         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66775
66776         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66777         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66778         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66779         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66780         and don't include <sys/file.h>).
66781
66782 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66783
66784         Sync from coreutils.
66785
66786         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66787         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66788         [!LDAV_DONE]: Avoid unused variable warning.
66789
66790 2005-09-21  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/unicodeio.h (unicode_to_mb): New declaration.
66793
66794 2005-09-20  Derek Price  <derek@ximbiot.com>
66795
66796         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66797         getaddrinfo.h.
66798
66799 2005-09-20  Bruno Haible  <bruno@clisp.org>
66800
66801         * gnulib-tool: Remove trailing slashes from the values specified for
66802         --source-base, --m4-base, --tests-base, --aux-dir.
66803         Suggested by Simon Josefsson <jas@extundo.com>.
66804
66805 2005-09-20  Bruno Haible  <bruno@clisp.org>
66806
66807         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66808         func_modules_to_filelist, func_import, func_create_testdir): Make all
66809         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66810         change when gnulib-tool is invoked in a different locale.
66811
66812 2005-09-19  Simon Josefsson  <jas@extundo.com>
66813
66814         * m4/socklen.m4: Fix typo.
66815
66816 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66817
66818         Use a consistent style for including <config.h>.
66819         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66820         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66821         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66822         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66823         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66824         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66825         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66826         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66827         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66828         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66829         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66830         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66831         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66832         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66833         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66834         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66835         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66836         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66837         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66838         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66839         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66840         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66841         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66842         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66843         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66844         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66845         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66846         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66847         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66848         lib/xstrtoumax.c, lib/yesno.c:
66849         Standardize inclusion of config.h.
66850         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66851         lib/inttostr.h:  Removed inclusion of config.h from header files.
66852         * lib/inttostr.c:  Adjusted in-tree users.
66853         * lib/timespec.h: Remove superfluous warning to include config.h.
66854         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66855         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66856         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66857         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66858         config.h with HAVE_CONFIG_H.
66859
66860 2005-09-19  Jim Meyering  <jim@meyering.net>
66861
66862         * modules/pathmax (License): Change to LGPL.
66863
66864 2005-09-19  Derek Price  <derek@ximbiot.com>
66865
66866         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66867
66868 2005-09-19  Bruno Haible  <bruno@clisp.org>
66869
66870         * gnulib-tool (import): Provide default for --tests-base.
66871
66872 2005-09-19  Bruno Haible  <bruno@clisp.org>
66873
66874         * doc/quote.texi: New file, extracted from gnulib.texi.
66875         * doc/ctime.texi: New file, extracted from gnulib.texi.
66876         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66877         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66878         * doc/gnulib.texi: Include them.
66879
66880 2005-09-18  Bruno Haible  <bruno@clisp.org>
66881
66882         Portability fix.
66883         * gnulib-tool (func_readlink): New function.
66884         (func_ln_if_changed): Use it.
66885
66886 2005-09-18  Bruno Haible  <bruno@clisp.org>
66887
66888         * gnulib-tool: Support --with-tests also with --import.
66889         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66890         (func_import): Use variables $testsbase and $inctests. Emit a
66891         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66892         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66893         SUBDIRS += $testsdir.
66894         (func_create_testdir): Update.
66895
66896 2005-09-18  Bruno Haible  <bruno@clisp.org>
66897
66898         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66899         instead of $dry_run.
66900         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66901         (func_ln_if_changed): Don't handle dry-run here.
66902         (func_import): In dry-run mode, detect more precisely which actions
66903         would be performed, and don't use "...ing" verbs.
66904
66905 2005-09-18  Bruno Haible  <bruno@clisp.org>
66906
66907         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66908         (func_import): Use join on two temporary files instead of three nested
66909         loops, in order to determine which files are new or old.
66910
66911 2005-09-18  Bruno Haible  <bruno@clisp.org>
66912
66913         * gnulib-tool (func_import): Comment out code that spits out the
66914         new files with --dry-run.
66915
66916 2005-09-18  Bruno Haible  <bruno@clisp.org>
66917
66918         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66919
66920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * lib/stat-time.h: New file.
66923         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66924         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66925         in a different way.
66926         (timespec_cmp): New function.
66927         * lib/utimecmp.c: Include stat-time.h.
66928         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66929         members exist, not on the obsolescent ST_MTIM_NSEC.
66930         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66931
66932 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66933
66934         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66935
66936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66937
66938         * MODULES.html.sh (File system functions): Add stat-time.
66939         * modules/stat-time: New file.
66940         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66941         is now done in a different way, by the stat-time module.
66942         * modules/utimecmp (Depends-on): Add stat-time.
66943
66944 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * m4/st_mtim.m4: Remove.  Superseded by...
66947         * m4/stat-time.m4: New file.
66948         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66949         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66950
66951 2005-09-15  Derek Price  <derek@ximbiot.com>
66952
66953         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66954
66955 2005-09-15  Derek Price  <derek@ximbiot.com>
66956
66957         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66958         * lib/regex_internal.c: Ditto, using this...
66959         (__GNUC_PREREQ): ...new macro.
66960         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66961         using...
66962         (__GNUC_PREREQ): ...this new macro.
66963
66964         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66965
66966 2005-09-15  Derek Price  <derek@ximbiot.com>
66967             Paul Eggert  <eggert@cs.ucla.edu>
66968
66969         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66970         changes, consolidating in...
66971         * lib/regex_internal.h: ...this file.
66972
66973 2005-09-13  Jim Meyering  <jim@meyering.net>
66974
66975         * lib/canon-host.c: Filter through gnu indent and reword comments
66976         slightly.
66977         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66978
66979 2005-09-13  Derek Price  <derek@ximbiot.com>
66980
66981         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66982         failure.
66983         Reported by Jim Meyering  <jim@meyering.net>.
66984
66985 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66986
66987         * lib/base64.c: Typo.
66988         (base64_encode): Put b64str in initialized data section.
66989
66990 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         Merge glibc and coreutils changes into gnulib, plus a few
66993         extra fixes.
66994         * lib/md5.c: Use #error rather than a string.
66995         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66996         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66997         (__attribute__): Define to empty for non recent-GCC.
66998         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66999         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67000         Renamed from their non-__ counterparts, with new macros replacing
67001         them if not _LIBC.  Add __THROW attribute.
67002         (rol): Remove.
67003         (struct md5_ctx): Align buffer if using GCC.
67004         * lib/sha1.h (struct sha1_ctx): Likewise.
67005         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67006         The old name was backwards.
67007         (NOTSWAP): Remove; not used.
67008         (rol): New macro, moved here from md5.h.
67009         (sha1_process_block): Remove a FIXME that doesn't make sense.
67010
67011 2005-09-12  Derek Price  <derek@ximbiot.com>
67012
67013         Return usable errors from canon-host.
67014         * lib/canon-host.h: New file.
67015         * lib/canon-host.c (canon_host): Wrap...
67016         (canon_host_r): ...this new function, which now relies exclusively on
67017         getaddrinfo.
67018         (ch_strerror): New function.
67019         (last_cherror): New global.
67020         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67021         interface.
67022         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67023         void *.
67024         (freeaddrinfo): Free ai->ai_canonname when set.
67025
67026 2005-09-12  Derek Price  <derek@ximbiot.com>
67027
67028         Make canon-host require getaddrinfo.
67029         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67030         AC_LIBSOURCE canon-host.h.  Call...
67031         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67032         gl_GETADDRINFO.
67033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67034
67035 2005-09-12  Derek Price  <derek@ximbiot.com>
67036
67037         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67038         LGPL.
67039         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67040
67041 2005-09-12  Derek Price  <derek@ximbiot.com>
67042
67043         * lib/gai_strerror.c: Include config.h when available.  Include
67044         getaddrinfo.h before other headers to test interface.
67045         Reported by Larry Jones <lawrence.jones@ugs.com>.
67046
67047 2005-09-12  Derek Price  <derek@ximbiot.com>
67048             Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         * modules/glob (Files): Add glob-libc.h.
67051
67052 2005-09-12  Derek Price  <derek@ximbiot.com>
67053             Paul Eggert  <eggert@cs.ucla.edu>
67054
67055         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67056         glob_.h, glob-libc.h.
67057         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67058
67059 2005-09-12  Derek Price  <derek@ximbiot.com>
67060             Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67063         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67064         protecting things that should be done only in gnulib contexts.
67065         * lib/glob_.h: New file, containing only the glob things needed for
67066         gnulib.
67067         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67068         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67069         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67070         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67071         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67072         and to respect the namespace rules better.
67073
67074 2005-09-08  Simon Josefsson  <jas@extundo.com>
67075
67076         * modules/socklen: New file.
67077
67078 2005-09-08  Simon Josefsson  <jas@extundo.com>
67079
67080         * m4/socklen.m4: New file.
67081
67082 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * modules/utimens (Files): Add m4/utimbuf.m4, since
67085         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67086         Reported by Sergey Poznyakoff.
67087
67088 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67091         definitions, since that's the preferred style in glibc.
67092         Fix a minor spacing issue, and update copyright notice to match
67093         glibc's.
67094
67095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67098
67099 2005-09-06  Simon Josefsson  <jas@extundo.com>
67100
67101         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67102         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67103
67104 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67105
67106         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67107         warning.
67108
67109 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67110
67111         * config/srclist.txt: Add glibc bug 1302.
67112
67113 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         Change bitset word type from unsigned int to unsigned long int,
67116         as this has better performance on typical 64-bit hosts.
67117         Port bitset code to hosts with unusual word sizes.
67118         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67119         (build_collating_symbol):
67120         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67121         argument is a bitset.  This is merely a style issue, but it makes
67122         it clearer that an entire array is expected.
67123         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67124         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67125         Port to the case where bitset_word is not the same as unsigned int.
67126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67127         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67128         Likewise.
67129         * lib/regexec.c (check_dst_limits_calc_pos_1,
67130         check_subexp_matching_top):
67131         (build_trtable, group_nodes_into_DFAstates):
67132         Likewise.
67133         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67134         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67135         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67136         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67137         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67138         * lib/regcomp.c (optimize_subexps, lower_subexp):
67139         Work even if bitset_word has holes in its bitwise representation.
67140         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67141         * lib/regexec.c (check_dst_limits_calc_pos_1,
67142         check_subexp_matching_top):
67143         Likewise.
67144         * lib/regex_internal.c (re_string_reconstruct):
67145         Don't assume UCHAR_MAX == 255.
67146         * lib/regex_internal.h (bitset_set_all): Likewise.
67147         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67148         All uses changed.
67149         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67150         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67151         All uses changed.
67152         (BITSET_WORD_MAX): New macro.
67153         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67154         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67155         (bitset_empty, bitset_copy):
67156         Prefer sizeof (bitset) to multiplying it out ourselves.
67157         (bitset_not_merge): Remove; unused.
67158         (bitset_contain): Return bool, not unsigned int with one bit on.
67159         All callers changed.
67160         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67161         alignment than re_node_set; do this by defining a new internal
67162         type struct dests_alloc and using it to allocate memory.
67163
67164 2005-09-05  Bruno Haible  <bruno@clisp.org>
67165
67166         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67167         links.
67168
67169 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67170
67171         * modules/size_max (Makefile.am): Add size_max.h
67172
67173 2005-09-04  Derek Price  <derek@ximbiot.com>
67174
67175         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67176
67177 2005-09-03  Simon Josefsson  <jas@extundo.com>
67178
67179         * gnulib-tool: Fix typo.
67180
67181 2005-09-03  Simon Josefsson  <jas@extundo.com>
67182
67183         * config/srclist.txt: Add glibc bug 1293.
67184
67185 2005-09-03  Derek Price  <derek@ximbiot.com>
67186
67187         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67188         From Larry Jones <lawrence.jones@ugs.com>.
67189
67190 2005-09-02  Simon Josefsson  <jas@extundo.com>
67191
67192         * modules/socklen: New file.
67193
67194 2005-09-02  Simon Josefsson  <jas@extundo.com>
67195
67196         * modules/havelib: New module.
67197
67198         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67199         Use havelib.
67200
67201 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         Check for arithmetic overflow when calculating sizes, to prevent
67204         some buffer-overflow issues.  These patches are conservative, in the
67205         sense that when I couldn't determine whether an overflow was possible,
67206         I inserted a run-time check.
67207         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67208         macros.
67209         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67210         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67211         (re_xnrealloc, re_x2nrealloc): New inline functions.
67212         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67213         parse_bracket_exp):
67214         (build_equiv_class, build_charclass): Check for arithmetic overflow
67215         in size expression calculations.
67216         * lib/regex_internal.c (re_string_realloc_buffers):
67217         (build_wcs_upper_buffer, re_node_set_add_intersect):
67218         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67219         (re_dfa_add_node, register_state): Likewise.
67220         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67221         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67222         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67223         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67224
67225 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67226
67227         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67228         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67229
67230 2005-09-02  Bruno Haible  <bruno@clisp.org>
67231
67232         Support for lib vs. lib64 distinction on biarch platforms.
67233         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67234         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67236
67237 2005-09-02  Bruno Haible  <bruno@clisp.org>
67238
67239         * gnulib-tool (import): In the other first-use case, provide defaults
67240         as well.
67241
67242 2005-09-02  Bruno Haible  <bruno@clisp.org>
67243
67244         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67245         patches not yet found in the latest gettext release.
67246
67247 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67250         to avoid a collision with bits/local_lim.h in glibc.
67251         All uses changed.  Problem reported by Dmitry V. Levin in
67252         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67253
67254         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67255         bugs in int versus size_t comparisons.
67256         (re_string_context_at): Fix bug where the code assumed that
67257         Idx is signed.
67258
67259         Use bool where appropriate.
67260         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67261         All callers changed.
67262         (calc_eclosure_iter): Likewise, for ROOT arg.
67263         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67264         (build_charclass_op): Likewise, for NON_MATCH arg.
67265         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67266         (re_string_construct_common): Likewise, for ICASE arg.
67267         * lib/regexec.c (re_search_2_stub, re_search_stub):
67268         Likewise, for RET_LEN arg.
67269         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67270         (set_regs): Likewise, for FL_BACKTRACK arg.
67271         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67272         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67273         (calc_eclosure_iter, parse_bracket_exp):
67274         Use bool for internal variables that are booleans.
67275         * lib/regexec.c (re_search_internal, check_matching,
67276         proceed_next_node):
67277         (set_regs, build_sifted_states, sift_states_bkref):
67278         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67279         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67280         (find_collation_sequence_value):
67281         Likewise.
67282         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67283         (re_node_set_compare):
67284         Return bool, not int. All callers changed.
67285         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67286         (build_trtable, check_node_accept): Likewise.
67287         * lib/regex_internal.h: Include stdbool.h.
67288
67289         Fix bugs uncovered when converting to bool.
67290         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67291         failure instead of charging ahead blindly.
67292         * lib/regex_internal.c (register_state): Likewise.
67293         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67294         for freeing internal storage.
67295         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67296         bitset pieces used as boolean, to avoid undefined behavior
67297         on hosts that do int overflow checking.
67298
67299 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         * config/srclist.txt: Add glibc bugs 1285-1287.
67302
67303 2005-09-01  Jim Meyering  <jim@meyering.net>
67304
67305         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67306         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67307         Require gl_STAT_MACROS, too.
67308
67309 2005-09-01  Bruno Haible  <bruno@clisp.org>
67310
67311         * gnulib-tool (import): In the first-use case, provide defaults.
67312
67313 2005-09-01  Bruno Haible  <bruno@clisp.org>
67314
67315         * gnulib-tool (func_import): Remove the .tmp files.
67316
67317 2005-09-01  Bruno Haible  <bruno@clisp.org>
67318
67319         * gnulib-tool (func_import): Fix handling of symbolic links.
67320
67321 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67324         old glibc regex code mishandles strings longer than 2**31 bytes.
67325         This patch fixes this when the regex code is used in gnulib
67326         (i.e., outside glibc).
67327
67328         This patch should not affect the use of the regex code inside
67329         glibc.  No doubt this problem also needs to be handled for glibc
67330         as well, but the result will be an incompatible change to the
67331         glibc ABI, and the old ABI will have to be supported too.  That
67332         can be the the subject for another patch.
67333
67334         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67335         governing whether the rest of this patch is active.  By default,
67336         the macro is disabled and the patch has no effect.
67337         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67338         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67339         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67340         (re_match_2, re_set_registers): Use the new types.
67341         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67342         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67343         New macros.
67344         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67345         (re_string_context_at, bin_tree_t, re_dfastate_t):
67346         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67347         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67348         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67349         (re_string_char_size_at, re_string_wchar_at):
67350         (re_string_elem_size_at):
67351         Use the new types and macros to port to 64-bit hosts.
67352         Use unsigned types for internal values, so that the code
67353         mostly works even for arrays larger than SSIZE_MAX.
67354         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67355         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67356         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67357         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67358         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67359         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67360         (calc_inveclosure, parse_dup_op, build_range_exp):
67361         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67362         (fetch_number, create_token_tree, mark_opt_subexp):
67363         Likewise.
67364         * lib/regex_internal.c (re_string_construct_common,
67365         create_ci_newstate):
67366         (create_cd_newstate, re_string_allocate, re_string_construct):
67367         (re_string_realloc_buffers, build_wcs_upper_buffer):
67368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67369         (re_string_reconstruct, re_string_peek_byte_case):
67370         (re_string_fetch_byte_case, re_string_context_at):
67371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67372         (re_node_set_init_copy, re_node_set_add_intersect):
67373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67376         (re_acquire_state, re_acquire_state_context, register_state):
67377         Likewise.
67378         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67379         search_cur_bkref_entry):
67380         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67381         (re_search_internal, re_search_2_stub, re_search_stub)
67382         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67383         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67384         (update_cur_sifted_state, check_dst_limits):
67385         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67386         (check_subexp_limits, sift_states_bkref, merge_state_array):
67387         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67388         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67389         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67390         (expand_bkref_cache, check_node_accept_bytes):
67391         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67392         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67393         (acquire_init_state_context, check_halt_node_context):
67394         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67395         (sift_states_backward, clean_state_log_if_needed):
67396         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67397         (find_recover_state, transit_state_sb, transit_state_mb):
67398         (transit_state_bkref, build_trtable, match_ctx_clean):
67399         Likewise.
67400         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67401         to work around an assumption that REG_MISSING is negative.
67402
67403         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67404         (seek_collating_symbol_entry) [defined _LIBC]:
67405         (lookup_collation_sequence_value) [defined _LIBC]:
67406         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67407         Use prototypes rather than old-style function definitions.
67408         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67409         (transit_state_sb) [0]:
67410         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67411
67412         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67413         rm_eo.
67414
67415         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67416         (optimize_subexps, lower_subexp):
67417         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67418         since the signed shift might overflow.  Use 1u<<31 instead.
67419         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67420         Likewise.
67421         * lib/regexec.c (check_dst_limits_calc_pos_1,
67422         check_subexp_matching_top): Likewise.
67423
67424         * lib/regcomp.c (optimize_subexps, lower_subexp):
67425         Use CHAR_BIT rather than 8, for clarity.
67426         * lib/regexec.c (check_dst_limits_calc_pos_1):
67427         (check_subexp_matching_top): Likewise.
67428         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67429         have to worry about portability issues when shifting it left.
67430         Remove no-longer-needed test for table_size > 0.
67431         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67432         in a word, as the resulting behavior is undefined.
67433         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67434         in one case, a <= should have been an <, and in another case the
67435         whole test was missing.
67436         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67437         the standard name CHAR_BIT.
67438         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67439         this is not true on one's complement and signed-magnitude hosts.
67440
67441         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67442         next_last_offset.
67443         (struct re_dfa_t): Remove unused member states_alloc.
67444         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67445
67446 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67449         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67450         and large-file glibc and in 32-bit large-file Solaris.
67451
67452 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67455         lengths fit in regoff_t; this isn't true if regoff_t is the same
67456         width as size_t.
67457         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67458         (= START + RANGE) instead of RANGE.  This avoids overflow
67459         problems when regoff_t is the same width as size_t.
67460         All callers changed.
67461         (re_search_2_stub): Check for overflow when adding the
67462         sizes of the two strings.
67463         (re_search_stub): Check for overflow when adding START
67464         to RANGE; if it occurs, substitute the extreme value.
67465
67466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67469
67470 2005-08-31  Jim Meyering  <jim@meyering.net>
67471
67472         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67473         a pointer-to-const.
67474         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67475         (register_state): Likewise.
67476         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67477         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67478         (group_nodes_into_DFAstates): Likewise.
67479
67480 2005-08-31  Jim Meyering  <jim@meyering.net>
67481
67482         * check-module: Add a FIXME comment.
67483
67484 2005-08-31  Eric Blake  <ebb9@byu.net>
67485
67486         * modules/unistd-safer (Files): Add unistd--.h.
67487         * modules/stdio-safer (Files): Add stdio--.h.
67488
67489 2005-08-31  Derek Price  <derek@ximbiot.com>
67490
67491         * lib/getdelim.c (getdelim): Return EOF on EOF.
67492         Reported by Larry Jones <lawrence.jones@ugs.com>.
67493
67494 2005-08-31  Bruno Haible  <bruno@clisp.org>
67495
67496         Avoid unnecessary diffs in the generated lib/Makefile.am.
67497         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67498         the generated files.
67499         (func_import): Don't set cmd.
67500
67501 2005-08-31  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/strstr.c: Include <stddef.h>, for NULL.
67504         * lib/strcasestr.c: Likewise.
67505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67506
67507 2005-08-31  Bruno Haible  <bruno@clisp.org>
67508
67509         * gnulib-tool: New option --macro-prefix.
67510         (func_import): Use macro_prefix.
67511         (import): Handle option --macro-prefix.
67512
67513 2005-08-31  Bruno Haible  <bruno@clisp.org>
67514
67515         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67516         Also use new variables cached_lgpl, cached_libtool.
67517
67518 2005-08-31  Bruno Haible  <bruno@clisp.org>
67519
67520         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67521         always instantiating them.
67522
67523 2005-08-31  Bruno Haible  <bruno@clisp.org>
67524
67525         * gnulib-tool (func_import): Read the previous cached settings
67526         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67527         earlier added by gnulib but are now dropped. Warn when a gnulib file
67528         overwrites a non-gnulib file.
67529
67530 2005-08-31  Bruno Haible  <bruno@clisp.org>
67531
67532         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67533         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67534         projects that don't keep autogenerated files in CVS. Put into
67535         actioncmd only the specified modules, not the transitive closure.
67536
67537 2005-08-31  Bruno Haible  <bruno@clisp.org>
67538
67539         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67540         Create directories that shall be filled.
67541         (import): Don't look for gl_* macros in configure.ac. Recurse across
67542         all directories containing a gnulib-cache.m4 files, if meaningful.
67543
67544 2005-08-31  Bruno Haible  <bruno@clisp.org>
67545
67546         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67547         (import): Set seen_libtool when we see gl_LIBTOOL.
67548
67549 2005-08-31  Bruno Haible  <bruno@clisp.org>
67550
67551         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67552         declaration macro definitions from generated gnulib.m4.
67553
67554 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67555
67556         * lib/iconvme.h: Add prototype for iconv_alloc.
67557
67558 2005-08-29  Simon Josefsson  <jas@extundo.com>
67559
67560         * lib/iconvme.c: Fix errno.
67561
67562 2005-08-29  Bruno Haible  <bruno@clisp.org>
67563
67564         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67565         that it works when the directory contains spaces.
67566
67567 2005-08-29  Bruno Haible  <bruno@clisp.org>
67568
67569         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67570
67571 2005-08-29  Bruno Haible  <bruno@clisp.org>
67572
67573         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67574         Emit more advice.
67575
67576 2005-08-29  Bruno Haible  <bruno@clisp.org>
67577         and Stepan Kasal  <kasal@ucw.cz>
67578
67579         * check-module: If more parameters are given, check each of them
67580         separately; add more exceptions, as noted by Jim Meyering.
67581         (check_module): New procedure.
67582         (%exempt_header): Now contains all exceptions.
67583
67584 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67585
67586         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67587
67588 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67589
67590         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67591
67592 2005-08-28  Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/gnulib-tool.m4: New file.
67595
67596 2005-08-27  Jim Meyering  <jim@meyering.net>
67597
67598         * modules/unistd-safer (Files): Add pipe-safer.c.
67599         * modules/fcntl-safer (Files): Add creat-safer.c.
67600
67601 2005-08-27  Jim Meyering  <jim@meyering.net>
67602
67603         * m4/stdlib-safer.m4: New file.  From coreutils.
67604         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67606         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67608         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67609
67610 2005-08-27  Jim Meyering  <jim@meyering.net>
67611
67612         * lib/fopen-safer.c: Merge minor changes from coreutils.
67613         * lib/dup-safer.c: Likewise.
67614         * lib/fd-safer.c: Likewise.
67615
67616         Merge from coreutils.
67617         * lib/stdio--.h: New file.
67618         * lib/stdlib--.h: New file.
67619         * lib/mkstemp-safer.c: New file.
67620
67621         GNU tar needs these.
67622         * lib/pipe-safer.c: New file.
67623         * lib/creat-safer.c: New file.
67624         * lib/fcntl--.h (creat): Define to creat_safer.
67625         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67626         * lib/unistd--.h (pipe): Define to pipe_safer.
67627         * lib/unistd-safer.h: Declare pipe_safer.
67628
67629 2005-08-26  Simon Josefsson  <jas@extundo.com>
67630
67631         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67632         Haible <bruno@clisp.org>.
67633
67634 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/regex_internal.h: Remove all references to
67637         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67638         or better.
67639         (bitset_not, bitset_merge, bitset_not_merge):
67640         (bitset_mask, re_string_allocate, re_string_construct):
67641         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67642         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67643         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67644         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67645         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67646         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67647         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67648         (re_acquire_state_context):
67649         Remove unnecessary forward decls.
67650         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67651         Put __attribute at function definition,
67652         now that the function decl has been removed.
67653         * lib/regex_internal.c (re_string_peek_byte_case):
67654         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67655         Likewise.
67656
67657 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67658
67659         * m4/regex.m4: Add AC_PREREQ(2.50).
67660         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67661
67662 2005-08-25  Simon Josefsson  <jas@extundo.com>
67663
67664         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67665         __fsetlocking.
67666
67667 2005-08-25  Simon Josefsson  <jas@extundo.com>
67668
67669         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67670         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67671         GLIBC specific code.
67672
67673 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         Make regex safe for g++.  This fixes one real bug (an "err"
67676         that should have been "*err").  g++ problem reported by
67677         Sam Steingold.
67678         * lib/regex_internal.h (re_calloc): New macro, consistent with
67679         re_malloc etc.  All callers of calloc changed to use re_calloc.
67680         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67681         not int.  All callers changed.
67682         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67683         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67684         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67685         (find_recover_state): Change "err" to "*err"; this fixes what
67686         appears to be a real bug.
67687         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67688         versus int.
67689
67690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * modules/regex (Depends-on): Add malloc, since the code
67693         assumes that !malloc(0) means failure.
67694
67695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67698
67699         alloca modernization/simplification for regex.
67700         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67701         needs to be at the start of the file, and can be moved into
67702         regex_internal.h and simplified.
67703         * lib/regex_internal.h: Include <alloca.h>.
67704         (__libc_use_alloca) [!defined _LIBC]: New macro.
67705         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67706         now works outside glibc.
67707
67708 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * config/srclist.txt: Add glibc bugs 1241, 1245.
67711
67712 2005-08-25  Jim Meyering  <jim@meyering.net>
67713
67714         * lib/open-safer.c: Include <config.h>.
67715         Otherwise, we'd lose LARGEFILE support in any file using
67716         e.g. "fcntl--.h"
67717
67718 2005-08-25  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/minmax.m4: Require autoconf 2.52.
67721         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67722         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67723         alternatives of translit over the alphabet.
67724         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67725
67726 2005-08-24  Simon Josefsson  <jas@extundo.com>
67727
67728         * tests/test-getpass.c: New file.
67729
67730 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67733         for GNU regex features.
67734
67735 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67738         * lib/regex.h (regerror): Likewise.
67739
67740         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67741         requires this.  (The code never needed it.)
67742
67743         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67744         All uses of recently-renamed identifiers changed to use the new,
67745         POSIX-compliant names.  The code will build and run just fine
67746         without these changes, but it's better to eat our own dog food
67747         and use the standard-conforming names.
67748
67749         * lib/regex.h: Fix a multitude of POSIX name space violations.
67750         These changes have an effect only for programs that define
67751         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67752         do not change anything for programs compiled in the normal way.
67753         Also, there is no effect on the ABI.
67754
67755         (_REGEX_SOURCE): New macro.
67756         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67757         defined and _GNU_SOURCE is not; this fixes a name space violation.
67758
67759         Rename the following macros to obey POSIX requirements.
67760         The old names are still visible as macros if _REGEX_SOURCE is defined.
67761         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67762         RE_BACKSLASH_ESCAPE_IN_LISTS.
67763         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67764         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67765         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67766         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67767         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67768         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67769         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67770         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67771         (REG_INTERVALS): renamed from RE_INTERVALS.
67772         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67773         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67774         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67775         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67776         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67777         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67778         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67779         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67780         RE_UNMATCHED_RIGHT_PAREN_ORD.
67781         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67782         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67783         (REG_DEBUG): renamed from RE_DEBUG.
67784         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67785         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67786         unusual, since we can't clash with the POSIX REG_ICASE.
67787         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67788         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67789         (REG_NO_SUB): renamed from RE_NO_SUB.
67790         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67791         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67792         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67793         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67794         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67795         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67796         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67797         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67798         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67799         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67800         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67801         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67802         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67803         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67804         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67805         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67806         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67807         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67808         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67809         (REG_FIXED): Renamed from REGS_FIXED.
67810         (REG_NREGS): Renamed from RE_NREGS.
67811
67812         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67813         of other REG_* macros, since POSIX says the user is allowed to
67814         #undef these macros selectively.
67815
67816         (reg_errcode_t): Update comment stating what other tables need
67817         to be consistent.
67818
67819         Rename the following enum values to obey POSIX requirements.
67820         The old names are still visible as macros.
67821         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67822         is not defined, since GNU is supposed to be a superset of POSIX as
67823         much as possible, and since we want reg_errcode_t to be a signed
67824         type for implementation consistency.
67825         (_REG_NOERROR): Renamed from REG_NOERROR.
67826         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67827         (_REG_BADPAT): Renamed from REG_BADPAT.
67828         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67829         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67830         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67831         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67832         (_REG_EBRACK): Renamed from REG_EBRACK.
67833         (_REG_EPAREN): Renamed from REG_EPAREN.
67834         (_REG_EBRACE): Renamed from REG_EBRACE.
67835         (_REG_BADBR): Renamed from REG_BADBR.
67836         (_REG_ERANGE): Renamed from REG_ERANGE.
67837         (_REG_ESPACE): Renamed from REG_ESPACE.
67838         (_REG_BADRPT): Renamed from REG_BADRPT.
67839         (_REG_EEND): Renamed from REG_EEND.
67840         (_REG_ESIZE): Renamed from REG_ESIZE.
67841         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67842         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67843         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67844         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67845         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67846
67847         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67848         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67849         changed.  But support the old name if the new one is not defined
67850         and if _REGEX_SOURCE.
67851
67852         Change the following member names in struct re_pattern_buffer.
67853         The old names are still supported if !_REGEX_SOURCE.
67854         The new names are always supported, regardless of _REGEX_SOURCE.
67855         (re_buffer): Renamed from buffer.
67856         (re_allocated): Renamed from allocated.
67857         (re_used): Renamed from used.
67858         (re_syntax): Renamed from syntax.
67859         (re_fastmap): Renamed from fastmap.
67860         (re_translate): Renamed from translate.
67861         (re_can_be_null): Renamed from can_be_null.
67862         (re_regs_allocated): Renamed from regs_allocated.
67863         (re_fastmap_accurate): Renamed from fastmap_accurate.
67864         (re_no_sub): Renamed from no_sub.
67865         (re_not_bol): Renamed from not_bol.
67866         (re_not_eol): Renamed from not_eol.
67867         (re_newline_anchor): Renamed from newline_anchor.
67868
67869         Change the following member names in struct re_registers.
67870         The old names are still supported if !_REGEX_SOURCE.
67871         The new names are always supported, regardless of _REGEX_SOURCE.
67872         (rm_num_regs): Renamed from num_regs.
67873         (rm_start): Renamed from start.
67874         (rm_end): Renamed from end.
67875
67876         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67877         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67878         Prepend __ to parameter names.
67879
67880         Undo yesterday's changes.
67881
67882 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67885         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67886         lib/regex.c.
67887
67888 2005-08-24  Jim Meyering  <jim@meyering.net>
67889
67890         Sync from coreutils.
67891         * m4/fcntl-safer.m4: New file.
67892
67893         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67894         and object files for this module.
67895
67896 2005-08-24  Jim Meyering  <jim@meyering.net>
67897
67898         Sync from coreutils.
67899         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67900
67901 2005-08-24  Jim Meyering  <jim@meyering.net>
67902
67903         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67904         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67905
67906 2005-08-24  Jim Meyering  <jim@meyering.net>
67907
67908         * modules/fcntl-safer: New module.
67909         * modules/fts (Depends-on): Add fcntl-safer.
67910         * MODULES.html.sh (File descriptor based Input/Output):
67911         Add fcntl-safer.
67912
67913 2005-08-24  Bruno Haible  <bruno@clisp.org>
67914
67915         Support for unit test modules.
67916         * modules/README: Mention tests modules.
67917         * modules/TEMPLATE-TESTS: New file.
67918         * gnulib-tool: New options --extract-tests-module, --with-tests and
67919         --tests-base (unused for the moment).
67920         (testsbase, inctests): New variables.
67921         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67922         (func_verify_module): Exclude TEMPLATE-TESTS.
67923         (func_verify_nontests_module, func_verify_tests_module): New functions.
67924         (func_get_dependencies): Add implicit dependency for tests modules.
67925         (func_get_tests_module): New function.
67926         (func_modules_transitive_closure): When --with-tests was specified,
67927         include the unit tests as well, unless explicitly avoided.
67928         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67929         (func_emit_tests_Makefile_am): New function.
67930         (func_create_testdir): When --with-tests was specified, emit a
67931         tests/ directory.
67932         * MODULES.html.sh (Future developments): Update.
67933
67934 2005-08-24  Bruno Haible  <bruno@clisp.org>
67935
67936         * modules/tls-tests: New file.
67937         * tests/test-tls.c: New file, from GNU gettext.
67938
67939 2005-08-24  Bruno Haible  <bruno@clisp.org>
67940
67941         * modules/lock-tests: New file.
67942         * tests/test-lock.c: New file, from GNU gettext.
67943
67944 2005-08-24  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/lock.h: Add multiple inclusion guard.
67947         * lib/tls.h: Add multiple inclusion guard.
67948
67949 2005-08-24  Bruno Haible  <bruno@clisp.org>
67950
67951         * gnulib-tool: Add support for the --aux-dir option to
67952         --create-testdir, --create-megatestdir, --test, --megatest.
67953         (func_create_testdir, func_create_megatestdir): Optionally emit a
67954         AC_CONFIG_AUX_DIR directive.
67955         (create-testdir, create-megatestdir, test, megatest): Provide a
67956         default value for $auxdir.
67957
67958 2005-08-24  Bruno Haible  <bruno@clisp.org>
67959
67960         * gnulib-tool (import): Use compound statement instead of subshell
67961         where possible.
67962
67963 2005-08-24  Bruno Haible  <bruno@clisp.org>
67964
67965         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67966
67967 2005-08-24  Bruno Haible  <bruno@clisp.org>
67968
67969         * gnulib-tool (func_version): Update.
67970
67971 2005-08-24  Bruno Haible  <bruno@clisp.org>
67972
67973         * gnulib-tool (func_import, func_create_testdir,
67974         func_create_megatestdir): Quote all autoconf macro arguments.
67975
67976 2005-08-24  Bruno Haible  <bruno@clisp.org>
67977
67978         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67979         option --force, because --force causes the aclocal.m4 of each
67980         subdirectory to be newer than the corresponding config.h.in.
67981
67982 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67985         All contents moved to gl_REGEX.
67986         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67987         assume that it does.
67988
67989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * lib/regex.h (REG_NOSYS)
67992         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67993         Define, since POSIX requires it as of 2001.
67994         (_REG_ENOSYS)
67995         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67996         New private symbol, used to keep the enum signed in all cases.
67997         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67998         Youngman in
67999         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68000
68001         * lib/regex_internal.c (re_string_skip_chars, register_state):
68002         (calc_state_hash):
68003         Remove forward decls; no longer needed now that we use prototypes.
68004         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68005         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68006         (clean_state_log_if_needed): Likewise.
68007
68008 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         * config/srclist.txt: Add glibc bugs 1231-1233.
68011
68012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         Fix problems reported by Sam Steingold in
68015         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68016         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68017         assumed that reg_errcode_t is a signed type, which is not
68018         necessarily true if _XOPEN_SOURCE is not defined.
68019         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68020         since some compilers warn about it otherwise.
68021
68022 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68023
68024         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68025         (init_word_char, create_initial_state, duplicate_node_closure):
68026         (fetch_token, peek_token_bracket, build_range_exp):
68027         (build_collating_symbol): Remove forward decls; no longer needed
68028         now that we use prototypes.
68029
68030         * lib/regcomp.c:
68031         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68032         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68033         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68034         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68035         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68036         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68037         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68038         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68039         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68040         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68041         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68042         (build_charclass, build_charclass_op, fetch_number, create_tree):
68043         (create_token_tree, mark_opt_subexp, duplicate_tree):
68044         Use prototypes rather than old-style definitions.
68045
68046         * lib/regex_internal.c:
68047         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68048         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68049         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68050         (re_string_reconstruct, re_string_peek_byte_case):
68051         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68052         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68053         (re_node_set_init_copy, re_node_set_add_intersect):
68054         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68055         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68056         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68057         (re_acquire_state, re_acquire_state_context, register_state):
68058         (create_ci_newstate, create_cd_newstate, free_state):
68059         Likewise.
68060         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68061         re_search_2):
68062         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68063         (re_search_internal, prune_impossible_nodes):
68064         (acquire_init_state_context, check_matching, static):
68065         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68066         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68067         (update_regs, sift_states_backward, build_sifted_states):
68068         (clean_state_log_if_needed, merge_state_array):
68069         (update_cur_sifted_state, add_epsilon_src_nodes):
68070         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68071         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68072         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68073         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68074         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68075         (check_arrival, check_arrival_add_next_nodes):
68076         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68077         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68078         (check_node_accept_bytes, check_node_accept, extend_buffers):
68079         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68080         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68081         (sift_ctx_init):
68082         Likewise.
68083
68084         * lib/regex_internal.h:
68085         (re_string_allocate, re_string_construct, re_string_reconstruct):
68086         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68087         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68088         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68089         (re_string_context_at, re_string_peek_byte_case):
68090         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68091         is defined, since we now use prototypes always.
68092
68093         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68094         C89 or better.  All uses removed.
68095
68096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * config/srclist.txt: Add glibc bugs 1220-1227.
68099
68100 2005-08-20  Jim Meyering  <jim@meyering.net>
68101
68102         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68103         of unused local, dfa.
68104
68105 2005-08-20  Bruno Haible  <bruno@clisp.org>
68106
68107         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68108
68109 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68112         (re_node_set_insert_last, re_dfa_add_node):
68113         Rename local variables to avoid GCC shadowing warnings.
68114
68115 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68118         [defined lint]: Suppress bogus uninitialized-variable warnings.
68119
68120         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68121         and let the caller return REG_ESPACE if out of space.  This
68122         removes an uninitialied-variable warning with GCC 4.0.1, and also
68123         avoids taking the address of a local variable.  All callers
68124         changed.
68125
68126 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68129         $LIBCSRC/posix/regexec.c.
68130         Add glibc bug 1217 for regcomp.c.
68131
68132 2005-08-19  Jim Meyering  <jim@meyering.net>
68133
68134         * lib/regexec.c (proceed_next_node): Redo local variables to
68135         avoid GCC shadowing warnings.
68136
68137 2005-08-18  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/strstr.c (strstr): Fix return value in multibyte case.
68140         * lib/strcasestr.c (strcasestr): Likewise.
68141
68142 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68145
68146 2005-08-17  Jim Meyering  <jim@meyering.net>
68147
68148         Make the %s format (seconds since the epoch) work for a negative
68149         number and when used with a zero-padded field width, e.g. %015s.
68150
68151         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68152         label so that it precedes the code to set `digits'.  Otherwise,
68153         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68154         print `00-22'.  Now, it prints `-0022', as it should.
68155
68156 2005-08-17  Bruno Haible  <bruno@clisp.org>
68157
68158         * modules/strstr (Files): Add m4/mbrtowc.m4.
68159         (Depends-on): Add mbuiter.
68160
68161 2005-08-17  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/strcasestr: New file.
68164         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68165         strcasestr.
68166
68167 2005-08-17  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68170
68171 2005-08-17  Bruno Haible  <bruno@clisp.org>
68172
68173         * modules/mbuiter: New file.
68174         * MODULES.html.sh (Extended multibyte and wide character utilities):
68175         Add mbuiter.
68176
68177 2005-08-17  Bruno Haible  <bruno@clisp.org>
68178
68179         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68180         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68181
68182 2005-08-17  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/strcasestr.m4: New file.
68185
68186 2005-08-17  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68189         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68190
68191 2005-08-17  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/strcasestr.h: New file.
68194         * lib/strcasestr.c: New file.
68195
68196 2005-08-17  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/strcasecmp.c: Use mbuiter.h.
68199
68200 2005-08-17  Bruno Haible  <bruno@clisp.org>
68201
68202         * lib/mbuiter.h: New file.
68203
68204 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68207         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68208         and gl_GETOPT are both invoked via different paths (as happens
68209         with GNU tar CVS because it uses both argp and getopt), the former
68210         wins.
68211
68212 2005-08-16  Bruno Haible  <bruno@clisp.org>
68213
68214         * modules/tls: New file.
68215         * MODULES.html.sh (Multithreading): Add tls.
68216
68217 2005-08-16  Bruno Haible  <bruno@clisp.org>
68218
68219         * modules/strnlen1: New file.
68220         * MODULES.html.sh (String handling): Add strnlen1.
68221
68222 2005-08-16  Bruno Haible  <bruno@clisp.org>
68223
68224         * modules/strcase (Files): Add m4/mbrtowc.m4.
68225         (Depends-on): Add strnlen1, mbchar.
68226
68227 2005-08-16  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/mbiter: New file.
68230         * MODULES.html.sh (Extended multibyte and wide character utilities):
68231         Add mbiter.
68232
68233 2005-08-16  Bruno Haible  <bruno@clisp.org>
68234
68235         * modules/mbfile: New file.
68236         * MODULES.html.sh (Extended multibyte and wide character utilities):
68237         Add mbfile.
68238
68239 2005-08-16  Bruno Haible  <bruno@clisp.org>
68240
68241         * modules/mbchar: New file.
68242         * MODULES.html.sh (Extended multibyte and wide character utilities):
68243         New section.
68244
68245 2005-08-16  Bruno Haible  <bruno@clisp.org>
68246
68247         * m4/tls.m4: New file, from GNU gettext.
68248
68249 2005-08-16  Bruno Haible  <bruno@clisp.org>
68250
68251         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68252         always.
68253         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68254
68255 2005-08-16  Bruno Haible  <bruno@clisp.org>
68256
68257         * m4/mbiter.m4: New file.
68258
68259 2005-08-16  Bruno Haible  <bruno@clisp.org>
68260
68261         * m4/mbfile.m4: New file.
68262
68263 2005-08-16  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/mbchar.m4: New file.
68266
68267 2005-08-16  Bruno Haible  <bruno@clisp.org>
68268
68269         * lib/tls.h: New file, from GNU gettext.
68270         * lib/tls.c: New file, from GNU gettext.
68271
68272 2005-08-16  Bruno Haible  <bruno@clisp.org>
68273
68274         * lib/strnlen1.h: New file.
68275         * lib/strnlen1.c: New file.
68276
68277 2005-08-16  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68280         (mbi_init): Update.
68281         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68282         NUL byte, not after it.
68283
68284 2005-08-16  Bruno Haible  <bruno@clisp.org>
68285
68286         * lib/strcase.h (strcasecmp): Add note in comments.
68287         * lib/strncasecmp.c: Use code from strcasecmp.c.
68288         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68289         (strcasecmp): Work correctly in multibyte locales.
68290
68291 2005-08-16  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/mbiter.h: New file.
68294
68295 2005-08-16  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/mbfile.h: New file.
68298
68299 2005-08-16  Bruno Haible  <bruno@clisp.org>
68300
68301         * lib/mbchar.h: New file.
68302         * lib/mbchar.c: New file.
68303
68304 2005-08-16  Bruno Haible  <bruno@clisp.org>
68305
68306         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68307         the valid ones. Makes the comparison operations transitive:
68308         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68309         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68310
68311 2005-08-15  Simon Josefsson  <jas@extundo.com>
68312
68313         * modules/ssize_t (License): Change to 'unlimited'.
68314
68315         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68316
68317 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68320         Add comments for each pending glibc patch.
68321
68322 2005-08-15  Bruno Haible  <bruno@clisp.org>
68323
68324         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68325         __cplusplus is defined.
68326
68327 2005-08-14  Jim Meyering  <jim@meyering.net>
68328
68329         Sync from coreutils.
68330
68331         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68332         Use the hash-table-based cycle-detection code not just when
68333         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68334         Reported by James Youngman in
68335         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68336         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68337         FTS_TIGHT_CYCLE_CHECK.
68338         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68339         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68340         once again.
68341         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68342         * lib/fts.c (fd_safer): Remove decl.
68343         Include fcntl--.h rather than unistd-safer.h
68344         (fts_safe_changedir): Don't call fd_safer; no longer needed
68345         now that we include fcntl--.h.
68346
68347 2005-08-12  Simon Josefsson  <jas@extundo.com>
68348
68349         * modules/getndelim2: Use ssize_t module.
68350         * modules/getnline: Likewise.
68351         * modules/safe-read: Likewise.
68352         * modules/xreadlink: Likewise.
68353
68354         * modules/ssize_t: New file.
68355
68356 2005-08-12  Simon Josefsson  <jas@extundo.com>
68357
68358         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68359
68360 2005-08-12  Simon Josefsson  <jas@extundo.com>
68361
68362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68363         ssize_t.
68364
68365 2005-08-12  Simon Josefsson  <jas@extundo.com>
68366
68367         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68368         readline, getdelim and check_version.
68369         (Support for systems lacking ISO C 99: Sizes of integer types):
68370         Add size_max.
68371
68372 2005-08-12  Bruno Haible  <bruno@clisp.org>
68373
68374         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68375
68376 2005-08-11  Simon Josefsson  <jas@extundo.com>
68377
68378         * modules/readline: New file.
68379
68380         * modules/strnlen (Files): Add strnlen.h.
68381
68382 2005-08-11  Simon Josefsson  <jas@extundo.com>
68383
68384         * m4/readline.m4: New file.
68385
68386 2005-08-11  Simon Josefsson  <jas@extundo.com>
68387
68388         * lib/readline.h, readline.c: New file.
68389
68390 2005-08-11  Simon Josefsson  <jas@extundo.com>
68391
68392         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68393         gl_AVOID.
68394
68395 2005-08-11  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68398
68399 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68400
68401         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68402
68403 2005-08-10  Simon Josefsson  <jas@extundo.com>
68404
68405         * tests/test-iconvme.c: New file.
68406
68407 2005-08-10  Simon Josefsson  <jas@extundo.com>
68408
68409         * m4/strnlen.m4: New file.
68410
68411         * m4/strndup.m4: Don't check for strnlen declaration, done in
68412         strnlen.m4.
68413
68414 2005-08-10  Simon Josefsson  <jas@extundo.com>
68415
68416         * lib/strndup.c: Use strnlen.h.
68417
68418         * lib/strnlen.h: New file.
68419
68420 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68421
68422         * README: Typos.
68423
68424 2005-08-02  Simon Josefsson  <jas@extundo.com>
68425
68426         * modules/readline: New file.
68427
68428 2005-08-02  Simon Josefsson  <jas@extundo.com>
68429
68430         * modules/getdelim: New file.
68431
68432         * modules/getline: Rewrite, don't use getndelim2.
68433
68434 2005-08-02  Simon Josefsson  <jas@extundo.com>
68435
68436         * m4/getline.m4: Separate out getdelim stuff into separate module.
68437
68438         * m4/getdelim.m4: New file.
68439
68440 2005-08-02  Simon Josefsson  <jas@extundo.com>
68441
68442         * lib/getline.h, getline.c: Rewrite.
68443
68444         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68445
68446 2005-07-31  Bruno Haible  <bruno@clisp.org>
68447
68448         * lib/lock.h (gl_lock_initializer): New macro.
68449         (gl_lock_define_initialized): Use it.
68450         (gl_rwlock_initializer): New macro.
68451         (gl_rwlock_define_initialized): Use it.
68452         (gl_recursive_lock_initializer): New macro.
68453         (gl_recursive_lock_define_initialized): Use it.
68454
68455 2005-07-30  Karl Berry  <karl@gnu.org>
68456
68457         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68458         Report from Ben Pfaff, regarding getopt.
68459
68460 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68463         normal way.
68464         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68465         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68466         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68467         (gl_GETOPT): Use the new macros.  Most of the implementation
68468         is moved to the new macros.  This is for programs like Emacs
68469         that don't want all the functionality of gl_GETOPT.
68470
68471 2005-07-26  Bruno Haible  <bruno@clisp.org>
68472
68473         * m4/lock.m4: Update from GNU gettext.
68474
68475 2005-07-26  Bruno Haible  <bruno@clisp.org>
68476
68477         * lib/lock.h: Update from GNU gettext.
68478         * lib/lock.c: Update from GNU gettext.
68479
68480 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68481
68482         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68483         obsolescent AC_TRY_RUN.  Include the default includes files, for
68484         'exit'.
68485
68486 2005-07-24  Bruno Haible  <bruno@clisp.org>
68487
68488         * modules/visibility: New file.
68489         * MODULES.html.sh (Misc): Add visibility.
68490
68491 2005-07-24  Bruno Haible  <bruno@clisp.org>
68492
68493         * m4/visibility.m4: New file.
68494
68495 2005-07-24  Bruno Haible  <bruno@clisp.org>
68496
68497         * doc/visibility.texi: New file.
68498
68499 2005-07-22  Bruno Haible  <bruno@clisp.org>
68500
68501         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68502         $(ALLOCA_H), redundant through BUILT_SOURCES.
68503         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68504         redundant through BUILT_SOURCES.
68505         * modules/byteswap (Makefile.am): Remove explicit dependency on
68506         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68507         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68508         $(FNMATCH_H), redundant through BUILT_SOURCES.
68509         * modules/getopt (Makefile.am): Remove explicit dependency on
68510         $(GETOPT_H), redundant through BUILT_SOURCES.
68511         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68512         redundant through BUILT_SOURCES.
68513         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68514         redundant through BUILT_SOURCES.
68515         * modules/stdbool (Makefile.am): Remove explicit dependency on
68516         $(STDBOOL_H), redundant through BUILT_SOURCES.
68517         * modules/stdint (Makefile.am): Remove explicit dependency on
68518         $(STDINT_H), redundant through BUILT_SOURCES.
68519         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68520         Remove explicit dependency on $(SYSEXITS_H).
68521         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68522
68523 2005-07-18  Simon Josefsson  <jas@extundo.com>
68524
68525         * lib/check-version.c (check_version): Accept identical versions too.
68526
68527 2005-07-18  Bruno Haible  <bruno@clisp.org>
68528
68529         * modules/lock: New file.
68530         * MODULES.html.sh (Multithreading): New section.
68531
68532 2005-07-18  Bruno Haible  <bruno@clisp.org>
68533
68534         * m4/lock.m4: New file, from GNU gettext.
68535
68536 2005-07-18  Bruno Haible  <bruno@clisp.org>
68537
68538         * lib/lock.h: New file, from GNU gettext.
68539         * lib/lock.c: New file, from GNU gettext.
68540
68541 2005-07-18  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/lock.h (gl_once_t): New type.
68544         (gl_once_define, gl_once): New macros.
68545         * lib/lock.c (fresh_once): New variable.
68546         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68547         functions.
68548
68549 2005-07-16  Simon Josefsson  <jas@extundo.com>
68550
68551         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68552         workaround, suggested by Bruno.
68553
68554 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * modules/xalloc (Depends-on): Add xalloc-die.
68557         * modules/xvasprintf (Depends-on): Add xalloc-die.
68558
68559 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68560
68561         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68562         with a minor change.
68563
68564 2005-07-15  Bruno Haible  <bruno@clisp.org>
68565
68566         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68567         When using lib/poll.c, define poll as rpl_poll.
68568
68569 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         * modules/argp (Depends-on): Remove unlocked-io.
68572
68573 2005-07-14  Derek Price  <derek@ximbiot.com>
68574
68575         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68576         for glob symlink bug.
68577
68578 2005-07-14  Bruno Haible  <bruno@clisp.org>
68579
68580         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68581         Instead, test for *_unlocked function declarations directly.
68582
68583 2005-07-11  Simon Josefsson  <jas@extundo.com>
68584
68585         * modules/size_max: New file.
68586
68587         * modules/xsize: Depend on size_max module for size_max.m4.
68588
68589 2005-07-11  Simon Josefsson  <jas@extundo.com>
68590
68591         * lib/size_max.h: New file.
68592
68593 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68596         copyright symbol and the year.
68597         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68598         (version_etc_va): Use parameterized copyright notice.
68599         Reword to conform to the current GNU coding standards.
68600
68601 2005-07-11  Karl Berry  <karl@gnu.org>
68602
68603         * doc/gnulib.texi (Quoting): new node.
68604         (Initial import): more info, from Patrice.
68605
68606 2005-07-11  Bruno Haible  <bruno@clisp.org>
68607
68608         * gnulib-tool (func_usage): Document option --avoid.
68609         (Command line options): Handle --avoid.
68610         (func_acceptable): New function.
68611         (func_modules_transitive_closure): Use it.
68612
68613 2005-07-11  Bruno Haible  <bruno@clisp.org>
68614
68615         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68616         Reported by Jim Meyering.
68617
68618 2005-07-10  Bruno Haible  <bruno@clisp.org>
68619
68620         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68621         Needed when size_t is smaller than 'unsigned int'.
68622         Reported by Paul Eggert.
68623
68624 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68625
68626         * modules/argp (Depends-on): Add unlocked-io
68627
68628 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68629
68630         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68631         block of defines.
68632
68633 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68636         fix now.
68637
68638 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68639         and Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68642         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68643
68644 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * modules/regex (Files): Add lib/regex_internal.c,
68647         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68648         (Depends-on): Add extensions.
68649         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68650
68651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68654         pathconf.
68655         * m4/same.m4 (gl_SAME): Likewise.
68656         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68657
68658         * m4/regex.m4: Adjust to new libc regex implementation.
68659         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68660         all the .c and .h parts of (the new) regex.
68661         Quote the m4 stuff better.
68662         Check for RE_ICASE bug of old gnulib.
68663         Check for REG_STARTEND of recent libc.
68664         Rename local variables from jm_* to gl_*.
68665         Quote operand of "test -f".
68666         Say "recent enough" version of libc, not "version 2".
68667         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68668         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68669         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68670         Remove check for btowc, isascii.
68671         Require AM_LANGINFO_CODESET.
68672
68673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         * lib/regex.c, regex.h: Sync from libc.
68676         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68677         * lib/regexec.c:
68678         New files, synced from libc, except that regex_internal.h
68679         currently has a small porting fix.
68680
68681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68684         regex_internal.c, regexec.c.
68685         Add regex_internal.h too, but as a comment, since the libc version
68686         is currently broken in gnulib mode.
68687
68688 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         Support programs like Emacs that use gnulib but not gettext.
68691         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68692         * modules/gettext-h: New file.
68693         * modules/gettext (Files): Remove lib/gettext.h.
68694         (Depends-on): Add gettext-h.
68695         (Makefile.am): Remove lib_SOURCES.
68696         * modules/argmatch, modules/c-stack, modules/closeout:
68697         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68698         * modules/execute, modules/file-type, modules/getaddrinfo:
68699         * modules/getopt, modules/human, modules/javacomp:
68700         * modules/javaexec, modules/mkdir-p, modules/obstack:
68701         * modules/openat, modules/pagealign_alloc, modules/pipe:
68702         * modules/quotearg, modules/regex, modules/rpmatch:
68703         * modules/unicodeio, modules/userspec, modules/version-etc:
68704         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68705         * modules/xsetenv:
68706         Depend on gettext-h, not gettext.
68707
68708 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * gnulib-tool (func_import): Add support for 'public domain' license.
68711         * modules/alloca, modules/atexit, modules/memmove:
68712         Now public domain, not GPL.
68713         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68714         * modules/realloc, modules/strerror, modules/strtod:
68715         Now LGPL, not GPL.
68716
68717 2005-07-05  Bruno Haible  <bruno@clisp.org>
68718
68719         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68720         autoconf CVS. Needed for mingw.
68721
68722 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         Remove the dependency of the strftime module on the tzset module.
68725         * modules/strftime (Depends-on): Remove dependency on tzset.
68726
68727 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68728
68729         Remove the dependency of the strftime module on the tzset module.
68730         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68731         gl_FUNC_TZSET_CLOBBER.
68732
68733 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         Remove the dependency of the strftime module on the tzset module.
68736         * lib/strftime.c (my_strftime)
68737         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68738         Copy the input structure, to work around some of the bug with
68739         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68740         Solaris releases, you should also use the tzset module, but we won't
68741         require it as a dependency any more since we don't want LGPLed code
68742         to depend on GPLed code.
68743
68744 2005-07-02  Jim Meyering  <jim@meyering.net>
68745
68746         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68747         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68748         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68749         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68750
68751 2005-07-02  Jim Meyering  <jim@meyering.net>
68752
68753         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68754
68755 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68758         declares only 'struct timespec;' (!).
68759
68760 2005-07-01  Jim Meyering  <jim@meyering.net>
68761
68762         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68763         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68764         * lib/save-cwd.c, tempname.c:
68765         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68766         and don't include <sys/file.h>).
68767
68768 2005-06-29  Jim Meyering  <jim@meyering.net>
68769
68770         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68771         type name.  Use the variable name instead.
68772         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68773         Likewise.
68774
68775 2005-06-28  Simon Josefsson  <jas@extundo.com>
68776
68777         * modules/check-version (Files): Add check-version.m4.
68778
68779 2005-06-28  Simon Josefsson  <jas@extundo.com>
68780
68781         * m4/check-version.m4: New file, suggested by Jim Meyering
68782         <jim@meyering.net>.
68783
68784 2005-06-28  Simon Josefsson  <jas@extundo.com>
68785
68786         * lib/check-version.h, lib/check-version.c: New files.
68787
68788 2005-06-28  Simon Josefsson  <jas@extundo.com>
68789
68790         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68791         collision with global variable.  Better indentation.  Don't
68792         increment buffer pointer beyond buffer end.  Based on comments
68793         from Paul Eggert <eggert@cs.ucla.edu>.
68794
68795         * lib/base64.h: Indent.
68796
68797 2005-06-28  Simon Josefsson  <jas@extundo.com>
68798
68799         * doc/gnulib.texi (Library version handling): New section.
68800
68801 2005-06-28  Jim Meyering  <jim@meyering.net>
68802
68803         * check-module (find_included_lib_files): Hard-code another
68804         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68805         but modules/fts-lgpl (correctly) does not list those files.
68806
68807         * modules/canonicalize (Files): Add lib/pathmax.h.
68808
68809 2005-06-25  Simon Josefsson  <jas@extundo.com>
68810
68811         * modules/check-version: New file.
68812
68813 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68816         initializer of struct addrinfo, as an indication that we don't
68817         care how many members the structure has.
68818
68819 2005-06-24  Derek Price  <derek@ximbiot.com>
68820         and Bruno Haible  <bruno@clisp.org>
68821
68822         Remove stat module & update lstat.
68823         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68825         * m4/stat.m4: Remove this file.
68826
68827 2005-06-24  Derek Price  <derek@ximbiot.com>
68828         and Bruno Haible  <bruno@clisp.org>
68829
68830         Remove stat module & update lstat.
68831         * lib/stat.c: Remove this file...
68832         (slash_aware_lstat): ...moving this content and its support...
68833         * lib/lstat.c (rpl_lstat): ...into here.
68834         * lib/lstat.h: New file.
68835
68836 2005-06-24  Derek Price  <derek@ximbiot.com>
68837         and Bruno Haible  <bruno@clisp.org>
68838
68839         Remove stat module & update lstat.
68840         * config/srclist.txt (libc sources): Remove stat.
68841
68842 2005-06-24  Derek Price  <derek@ximbiot.com>
68843         and Bruno Haible  <bruno@clisp.org>
68844
68845         Remove stat module & update lstat.
68846         * MODULES.html.sh (stat): Remove.
68847         * MODULES.html: Regenerated.
68848         * modules/lstat (Description): Correct function name.
68849         (Files): Add "lstat.h".
68850         (Depends-on): Remove stat, add xalloc, stat-macros.
68851         * modules/stat: Remove this file.
68852         (Include): Add "lstat.h", remove <sys/stat.h>.
68853
68854 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68857         (ranged_convert): Don't save conversion in a temporary struct.
68858         This causes a warning with GCC 4.0.0, and anyway in the typical
68859         case it's not worth the extra 100 bytes or so of code.
68860         (ranged_convert, __mktime_internal): When calling a function via a
68861         pointer P, use P () rather than (*P) (), as we now assume C89 or
68862         better.
68863
68864 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68867         "who -r" failed to give output.  Problem reported by Tim Waugh.
68868
68869         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68870         (xcalloc): Use it to avoid needless tests.
68871         Problem reported by Jim Meyering.
68872
68873 2005-06-20  Derek Price  <derek@ximbiot.com>
68874
68875         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68876         unnecessary for Autoconfs > 2.59c.
68877
68878 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68879
68880         * lib/argp.h (__option_is_short): Check upper limit of
68881         __key. Isprint() requires its argument to have the value
68882         of an unsigned char or EOF.
68883
68884 2005-06-16  Jim Meyering  <jim@meyering.net>
68885
68886         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68887         when either N or S is zero.
68888
68889 2005-06-16  Derek Price  <derek@ximbiot.com>
68890
68891         * m4/bison.m4: Declare YACC & YFLAGS precious.
68892
68893 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68896         multibyte string or pattern, fall back on unibyte matching.
68897         Problem reported by James Youngman.
68898
68899 2005-06-08  Bruno Haible  <bruno@clisp.org>
68900
68901         * modules/csharpcomp: New file.
68902         * MODULES.html.sh (C#): Add csharpcomp.
68903
68904 2005-06-08  Bruno Haible  <bruno@clisp.org>
68905
68906         * m4/csharpcomp.m4: New file, from GNU gettext.
68907
68908 2005-06-08  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/csharpcomp.h: New file, from GNU gettext.
68911         * lib/csharpcomp.c: New file, from GNU gettext.
68912         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68913
68914 2005-06-08  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68917         warning on mingw.
68918
68919 2005-06-07  Derek Price  <derek@ximbiot.com>
68920
68921         Sync from CVS.
68922         * lib/glob_.h: Indent nested #ifdef.
68923
68924 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68925
68926         Sync from coreutils.
68927         Use "file name" when talking about file names, instead of "filename"
68928         or "path", as per the GNU coding standards.
68929         * lib/mkdir-p.c: Renamed from makepath.c.
68930         (make_dir_parents): Renamed from make_path.  All callers changed.
68931         * lib/mkdir-p.h: Likewise.  All includers changed.
68932         * lib/filenamecat.c: Renamed from path-concat.c.
68933         (file_name_concat): Renamed from path_concat.  All callers changed.
68934         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68935         * lib/filenamecat.h: Likewise.  All includers changed.
68936         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68937         in comments or local variable names.
68938         * lib/basename.c: Likewise.
68939         * lib/canonicalize.c, canonicalize.h: Likewise.
68940         * lib/dirname.c, dirname.h: Likewise.
68941         * lib/euidaccess.c: Likewise.
68942         * lib/exclude.c: Likewise
68943         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68944         * lib/fsusage.c, fsuage.h: Likewise.
68945         * lib/fts.c, fts_.h: Likewise.
68946         * lib/getcwd.c: Likewise.
68947         * lib/getloadavg.c: Likewise.
68948         * lib/mkstemp.c: Likewise.
68949         * lib/mountlist.c, mountlist.h: Likewise.
68950         * lib/openat.c, openat.h: Likewise.
68951         * lib/readlink-stub.c: Likewise.
68952         * lib/readutmp.c, readutmp.h: Likewise.
68953         * lib/rename.c: Likewise.
68954         * lib/rmdir.c: Likewise.
68955         * lib/same.c: Likewise.
68956         * lib/savedir.c: Likewise.
68957         * lib/stripslash.c: Likewise.
68958         * lib/tempname.c: Likewise.
68959         * lib/xreadlink.c: Likewise.
68960         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68961         All uses changed.
68962         * lib/exclude.h: Likewise.
68963
68964         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68965         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68966         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68967         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68968         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68969         files have been getting away with it for years (MORE/BSD 4.3
68970         is extinct now).
68971         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68973
68974         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68975         Define to 256, not 255, as per modern POSIX.
68976
68977 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         Sync from coreutils.
68980         Use "file name" when talking about file names, instead of "filename"
68981         or "path", as per the GNU coding standards.
68982         * MODULES.html.sh: mkdir-p renamed from makepath.
68983         filenamecat renamed from path-concat.
68984         * modules/filenamecat: Renamed from modules/path-concat.
68985         (Files): filenamecat.h and filenamecat.c renamed from
68986         path-concat.h and path-concat.c.
68987         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68988         (Include): filenamecat.h, not path-concat.h.
68989         * modules/mkdir-p: Renamed from modules/makepath.
68990         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68991         makepath.c.
68992         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68993         (Include): mkdir-p.h, not makepath.h.
68994
68995 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         Sync from coreutils.
68998         * m4/mkdir-p.m4: Renamed from makepath.m4.
68999         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69000         Rename files from makepath.c to mkdir-p.c, and from
69001         makepath.h to mkdir-p.h.
69002         * m4/filenamecat.m4: Renamed from path-concat.m4.
69003         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69004         Rename files from path-concat.c to filenamecat.c,
69005         and from path-concat.h to filenamecat.h.
69006         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69007         "file name" in local variables or comments.
69008         * m4/rename.m4: Likewise.
69009
69010 2005-06-01  Bruno Haible  <bruno@clisp.org>
69011
69012         * modules/csharpexec: New file.
69013         * MODULES.html.sh (C#): New section.
69014
69015 2005-06-01  Bruno Haible  <bruno@clisp.org>
69016
69017         * m4/csharp.m4: New file, from GNU gettext.
69018         * m4/csharpexec.m4: New file, from GNU gettext.
69019
69020 2005-06-01  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/csharpexec.h: New file, from GNU gettext.
69023         * lib/csharpexec.c: New file, from GNU gettext.
69024         * lib/csharpexec.sh.in: New file, from GNU gettext.
69025
69026 2005-05-31  Derek Price  <derek@ximbiot.com>
69027             Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         Sync from cvs.
69030         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69031
69032 2005-05-31  Derek Price  <derek@ximbiot.com>
69033             Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         Sync from cvs.
69036         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69037
69038 2005-05-29  Derek Price  <derek@ximbiot.com>
69039
69040         * config/srclist.txt (glob_.h, glob.c): Add these files.
69041
69042 2005-05-29  Derek Price  <derek@ximbiot.com>
69043
69044         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69045         * modules/glob: New file.
69046         * modules/getlogin_r: Add link to POSIX spec in description.
69047
69048 2005-05-29  Derek Price  <derek@ximbiot.com>
69049             Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * m4/glob.m4: New file.
69052
69053 2005-05-29  Derek Price  <derek@ximbiot.com>
69054             Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * lib/glob_.h, lib/glob.c: New files.
69057
69058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69061         * modules/fts-lgpl (Depends-on): Remove gettext.
69062
69063 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69066         and don't require gt_INTTYPES_PRI.
69067
69068 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69071
69072         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69073         the configuration hassle isn't worth it.
69074         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69075         (LONGEST_MODIFIER, PRIuMAX): Remove.
69076
69077 2005-05-27  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69080
69081 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69084         _POSIX_PTHREAD_SEMANTICS for Solaris.
69085
69086 2005-05-25  Derek Price  <derek@ximbiot.com>
69087
69088         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69089
69090 2005-05-25  Derek Price  <derek@ximbiot.com>
69091             Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69094         * lib/getlogin_r.c, getlogin_r.h: New files.
69095
69096 2005-05-25  Bruno Haible  <bruno@clisp.org>
69097             Derek Price  <derek@ximbiot.com>
69098
69099         * lib/getlogin_r.h: Simplify API documentation.
69100
69101 2005-05-23  Derek Price  <derek@ximbiot.com>
69102
69103         * modules/minmax (Files): Add m4/minmax.m4.
69104         (configure.ac): Add gl_MINMAX.
69105
69106 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69109         so that unistd-safer.h (GPL'ed code) need not be included.
69110
69111 2005-05-22  Bruno Haible  <bruno@clisp.org>
69112
69113         * m4/minmax.m4: New file.
69114         Based on a patch by Derek Price <derek@ximbiot.com>.
69115
69116 2005-05-22  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69119         (INT64_MIN): Fix definition.
69120         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69121
69122         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69123         NEED_SIGNED_INT_TYPES.
69124
69125         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69126         HAVE_SYSTEM_INTTYPES.
69127
69128 2005-05-22  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69131         Also include <sys/param.h> if it defines MIN, MAX.
69132         Based on a patch by Derek Price <derek@ximbiot.com>.
69133
69134 2005-05-21  Jim Meyering  <jim@meyering.net>
69135
69136         * modules/fts (Files): Add m4/inttypes-pri.m4.
69137         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69138
69139 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         New fts module.
69142         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69143         (setup_dir, free_dir): New functions.
69144         (enter_dir, leave_dir): Define trivial
69145         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69146         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69147         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69148         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69149         Move to fts-cycle.c.
69150         (fts_open): Use setup_dir.
69151         (fts_close): Use free_dir.
69152         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69153         This adds a label and some gotos, but the alternatives were messier.
69154         Check for memory allocation failure when entering a dir.
69155         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69156         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69157         (FTS): New member fts_cycle, that is a union that contains the
69158         old active_dir_ht and cycle_state.  All uses changed to mention
69159         fts_cycle.ht and fts_cycle.state.
69160         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69161         fts.c, with the following changes:
69162         (setup_dir, free_dir): New functions.
69163         (enter_dir): Now returns bool.  Return true if successful, false
69164         if memory exhausted.  All callers changed.
69165         Do not bother partly cleaning up on
69166         memory allocation failure; that is free_dir's job.
69167         However, free ad if hash_insert fails, to avoid memory leak.
69168         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69169         fts->fts_options to see which union member to use.
69170
69171 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69174         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69175
69176 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69179
69180 2005-05-20  Jim Meyering  <jim@meyering.net>
69181
69182         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69183         Now a macro, to pacify GCC.
69184
69185 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69186
69187         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69188         of -1.
69189
69190 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69191
69192         * lib/chown.c (rpl_chown): Return -1 on failure.
69193
69194 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69197         Don't check for stddef.h.
69198         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69199         don't use its results.
69200         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69201         since we include them unconditionally.  Don't require
69202         AM_STDBOOL_H, since stdbool is a prerequisite.
69203         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69204         since we assume C89 or better.
69205         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69206         as we don't use their results.
69207         Don't check for fchdir, memmove, memset, strrchr, as we use
69208         them unconditionally.
69209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69210         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69211
69212 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69215         Include <stddef.h> unconditionally, since we assume C89 now.
69216         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69217         * lib/fts.c: Include fts_.h first, to check interface.
69218         Do not include intprops.h; no longer needed.
69219         Include cycle-check.h and hash.h, since fts_.h no longer does.
69220         Remove unnecessary casts of closedir to void.
69221         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69222         decide whether to decrement nlinks.
69223         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69224         (FTS): Use struct hash_table * instead of Hash_table, so that
69225         we no longer need to include hash.h here.
69226
69227 2005-05-18  Jim Meyering  <jim@meyering.net>
69228
69229         * modules/dirfd (License): Change to LGPL.  Most of the code
69230         is already in the public domain.
69231
69232 2005-05-18  Jim Meyering  <jim@meyering.net>
69233
69234         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69235         Reported by Yoann Vandoorselaere.
69236
69237 2005-05-17  Jim Meyering  <jim@meyering.net>
69238
69239         * m4/fts.m4: New file, from coreutils.
69240
69241 2005-05-17  Jim Meyering  <jim@meyering.net>
69242
69243         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69244
69245 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         Sync from coreutils.
69248         * m4/unlinkdir.m4: New file.
69249
69250 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         Sync from coreutils.
69253         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69254         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69255         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69256         White space changes only.
69257         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69258         special.
69259         * lib/yesno.c: Include getline.h, not ctype.h.
69260         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69261         Use getline to remove arbitrary restriction on response length.
69262
69263 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * config/srclist-update: Spell out "Street" in FSF postal
69266         mail address; this is the style the FSF seems to prefer.
69267
69268         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69269         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69270         this updates FSF postal mail address.
69271
69272         Sync from coreutils.
69273         * modules/unlinkdir: New file.
69274         * modules/yesno (Depends-on): Add getline.
69275         * MODULES.html.sh (File system functions): Add unlinkdir.
69276
69277 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69280         lib/strsep.h:
69281         Change the initial comment to refer to GPL, not LGPL.
69282         gnulib-tool will change it to LGPL as needed.
69283
69284         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69285         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69286         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69287         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69288         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69289         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69290         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69291         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69292         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69293         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69294         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69295         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69296         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69297         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69298         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69299         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69300         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69301         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69302         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69303         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69304         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69305         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69306         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69307         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69308         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69309         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69310         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69311         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69312         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69313         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69314         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69315         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69316         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69317         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69318         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69319         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69320         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69321         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69322         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69323         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69324         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69325         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69326         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69327         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69328         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69329         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69330         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69331         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69332         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69333         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69334         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69335         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69336         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69337         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69338         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69339         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69340         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69341         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69342         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69343         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69344         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69345         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69346         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69347         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69348         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69349         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69350         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69351         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69352         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69353         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69354         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69355         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69356         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69357         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69358         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69359         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69360         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69361         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69362         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69363         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69364         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69365         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69366         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69367         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69368         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69369         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69370         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69371         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69372         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69373         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69374         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69375         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69376         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69377         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69378         lib/yesno.c, lib/yesno.h:
69379         Update FSF postal mail address.
69380
69381 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69384         tests/test-memmem.c, tests/test-stpncpy.c:
69385         Update FSF postal mail address.
69386
69387 2005-05-13  Bruno Haible  <bruno@clisp.org>
69388
69389         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69390         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69391         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69392         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69393         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69394         Add support for 64-bit integers in the MSVC compiler.
69395
69396 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69397
69398         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69399
69400 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69401
69402         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69403
69404 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * doc/getdate.texi (General date syntax): Don't say that date
69407         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69408         Problem reported by Nic Ferrier.
69409
69410 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69411
69412         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69413         specified in ai_socktype. Fix invalid ai_protocol
69414         check. ai_protocol is usually set to 0 or depending on
69415         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69416         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69417         ai_socktype / ai_protocol in the returned addrinfo structure.
69418
69419 2005-05-10  Simon Josefsson  <jas@extundo.com>
69420
69421         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69422         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69423
69424 2005-05-10  Karl Berry  <karl@gnu.org>
69425
69426         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69427         (from http://www.gnu.org/licenses).
69428         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69429         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69430         fdl.texi suffices.
69431
69432 2005-05-10  Karl Berry  <karl@gnu.org>
69433
69434         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69435         (COPYING.DOC): remove.
69436
69437         * config/srclist-update: new FSF address.
69438
69439 2005-05-10  Derek Price  <derek@ximbiot.com>
69440
69441         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69442         possible.
69443
69444 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69445             Bruno Haible  <bruno@clisp.org>
69446
69447         * modules/inet_ntop: New file.
69448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69449         inet_ntop.
69450
69451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69452             Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/inet_ntop.m4: New file.
69455
69456 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69457             Bruno Haible  <bruno@clisp.org>
69458
69459         * lib/inet_ntop.h: New file.
69460         * lib/inet_ntop.c: New file, from glibc with modifications.
69461
69462 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69463
69464         * modules/time_r (License): Change to LGPL.
69465         * modules/extensions (License): Change to LGPL.  Actually,
69466         the license is more permissive than that, but currently gnulib-tool
69467         doesn't know how to handle more-permissive licenses.
69468
69469         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69470         Problem reported by Dave Love.
69471
69472 2005-05-08  Jim Meyering  <jim@meyering.net>
69473
69474         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69475         blank.
69476
69477 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * modules/argmatch (Depends-on): Add stdbool.
69480         * modules/backupfile (Depends-on): Likewise.
69481         * modules/chdir-long (Depends-on): Likewise.
69482         * modules/closeout (Depends-on): Likewise.
69483         * modules/cycle-check (Depends-on): Likewise.
69484         * modules/dirname (Depends-on): Likewise.
69485         * modules/fnmatch (Depends-on): Likewise.
69486         * modules/fsusage (Depends-on): Likewise.
69487         * modules/fwriteerror (Depends-on): Likewise.
69488         * modules/getcwd (Depends-on): Likewise.
69489         * modules/getloadavg (Depends-on): Likewise.
69490         * modules/hard-locale (Depends-on): Likewise.
69491         * modules/makepath (Depends-on): Likewise.
69492         * modules/mountlist (Depends-on): Likewise.
69493         * modules/nanosleep (Depends-on): Likewise.
69494         * modules/posixtm (Depends-on): Likewise.
69495         * modules/quotearg (Depends-on): Likewise.
69496         * modules/readtokens (Depends-on): Likewise.
69497         * modules/readtokens0 (Depends-on): Likewise.
69498         * modules/readutmp (Depends-on): Likewise.
69499         * modules/save-cwd (Depends-on): Likewise.
69500         * modules/strftime (Depends-on): Likewise.
69501         * modules/userspec (Depends-on): Likewise.
69502         * modules/utimecmp (Depends-on): Likewise.
69503         * modules/xgetcwd (Depends-on): Likewise.
69504         * modules/xnanosleep (Depends-on): Likewise.
69505         * modules/xstrtod (Depends-on): Likewise.
69506         * modules/yesno (Depends-on): Likewise.
69507
69508 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69511         needless checks.
69512
69513 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Merge from coreutils.  Among other things,
69516         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69517         * lib/fd-safer.c: New file.
69518         * lib/fcntl-safer.h, open-safer.c: Remove.
69519         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69520         * lib/dup-safer.c: Include unistd-safer.h first.
69521         Don't include errno.h.
69522         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69523         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69524         * lib/file-type.c: Rely on file-type.h change.
69525         * lib/getloadavg.c: Include unistd-safer.h.
69526         (getloadavg): Use safer open.
69527         * lib/getusershell.c: Include "stdio-safer.h".
69528         (getusershell): Use safer fopen.
69529         * lib/long-options.c (long_options): Use NULL rather than 0.
69530         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69531         'free'.
69532         * lib/modechange.c: Likewise.
69533         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69534         (MODE_DONE): New constant.
69535         (struct mode_change): Remove 'next' member.
69536         (make_node_op_equals): New function; like the old one of the
69537         same name, except it allocates an array.
69538         (mode_compile, mode_create_from_ref): Use it.
69539         (mode_compile): Allocate result as an array, not a linked list.
69540         Parse octal string ourself, so that we catch mistakes like "+0".
69541         (mode_adjust): Arg is an array, not a linked list.
69542         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69543         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69544         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69545         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69546         Remove.  This is now stat-macros.h's job.
69547         (talloc): Remove.  All callers replaced by xalloc, so that
69548         our invokers don't have to worry about reporting memory failures.
69549         (make_node_op_equals): Remove.
69550         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69551         New constants.
69552         (struct mode_change): Moved here from modechange.h.
69553         (mode_append_entry): Remove.
69554         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69555         apps to have incorrect behavior.  Use simpler algorithm for head
69556         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69557         Detect more invalid usages rather than having somewhat-random behavior.
69558         Don't insert an "a=" action, as that leads to incorrect behavior.
69559         (mode_compile, mode_create_from_ref): Return NULL on error instead
69560         of an enum, since now there's only one way to have an error.  All
69561         callers changed.
69562         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69563         at the correct time.  Simplify calculation of "+u" and its ilk.
69564         Don't mishandle "+X".
69565         (mode_free): Remove "register" and localize decls.
69566         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69567         (struct mode_change): Move to modechange.c; callers don't
69568         need to see this stuff.
69569         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69570         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69571         (mode_change, mode_adjust): Reflect the new signatures noted above.
69572         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69573         that might redefine system include files.
69574         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69575         (my_usleep): Use NULL rather than (void *) 0.
69576         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69577         Use siginterrupt to specify that system calls should be interrupted.
69578         (rpl_nanosleep): Move initialization of suspended closer to call of
69579         my_usleep.
69580         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69581         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69582         (desirable_utmp_entry): New function.
69583         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69584         using x2nrealloc, to simplify logic.
69585         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69586         size calculation.  Do not assume utmp file is a regular file.
69587         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69588         (READ_UTMP_CHECK_PIDS): New constant.
69589         * lib/save-cwd.c: Include unistd-safer.h.
69590         (save_cwd): Use fd_safer.
69591         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69592         [!_LIBC] Include "stat-macros.h" instead.
69593         * lib/unistd-safer.h (fd_safer): New decl.
69594
69595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * modules/getloadavg (Depends-on): Add unistd-safer.
69598         * modules/getusershell (Depends-on): Add stdio-safer.
69599         * modules/lstat (Depends-on): Remove xalloc.
69600         * modules/mkstemp (Depends-on): Add stat-macros.
69601         * modules/modechange (Depends-on): Remove xstrtol.
69602         Add stat-macros, xalloc.
69603         * modules/save-cwd (Depends-on): Add unistd-safer.
69604         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69605         * modules/unistd-safer (Files): Add lib/fd-safer.c
69606         (Makefile.am): Remove lib_SOURCES.
69607
69608         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69609         Remove fcntl-safer; unistd-safer supersedes it.
69610
69611 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69614         AC_HEADER_STAT.
69615         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69616         (gl_PREREQ_CHOWN): Remove.
69617         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69618         it.  Don't require AC_HEADER_STAT.
69619         (gl_PREREQ_LSTAT): Remove.
69620         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69621         Don't require AC_HEADER_STAT.
69622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69623         (gl_PREREQ_RMDIR): Remove.
69624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69625         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69626         the stat-macros module a prerequisite.
69627         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69628         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69629         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69630         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69631         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69632         variable names.
69633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69634         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69635         variable prefixes.
69636         * m4/fcntl-safer.m4: Remove.
69637         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69638         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69639         Invoke gl_PREREQ_FD_SAFER.
69640         (gl_PREREQ_FD_SAFER): New macro.
69641         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69642         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69643         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69644         Remove duplicate call to AC_LIBOBJ(readutmp).
69645         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69646
69647         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69648         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69649
69650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * MODULES.html.sh (Misc): Add byteswap.
69653
69654 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69655
69656         * modules/getcwd (Depends-on): Add extensions.
69657         * modules/openat (Depends-on): Likewise.
69658
69659 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69660
69661         * modules/byteswap: New file.
69662
69663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69664
69665         * m4/byteswap.m4: New file.
69666
69667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69668
69669         * lib/byteswap_.h: New file.
69670
69671 2005-04-25  Karl Berry  <karl@gnu.org>
69672
69673         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69674
69675 2005-04-25  Albert Chin  <china@thewrittenword.com>
69676
69677         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69678         Toolkit C bug.
69679
69680 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69681
69682         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69683         (func_ln_if_changed): Remove forcibly for no error message
69684         in case file does not exist.
69685
69686 2005-04-19  Simon Josefsson  <jas@extundo.com>
69687
69688         * gnulib-tool (Options): Make --symlink mean --symbolic.
69689
69690 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69691
69692         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69693
69694 2005-04-16  Simon Josefsson  <jas@extundo.com>
69695
69696         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69697
69698 2005-04-15  Simon Josefsson  <jas@extundo.com>
69699
69700         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69701
69702 2005-04-15  Simon Josefsson  <jas@extundo.com>
69703
69704         * gnulib-tool: Rename --symlink to --symbolic.
69705
69706 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69707
69708         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69709         symbolic links to files instead of copying/moving.  Add --aux-dir,
69710         specifying directory relative --dir where auxiliary build tools
69711         are placed.
69712
69713 2005-04-14  Bruno Haible  <bruno@clisp.org>
69714
69715         * modules/allocsa (License): Change to LGPL.
69716         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69717
69718 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69721         that "UTC +1 second" continues to work.  Problem reported
69722         by Dmitry V. Levin.
69723         (relunit_snumber): New rule.
69724         (relunit): Use it.
69725
69726 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/getdate.y (universal_time_zone_table): New constant.
69729         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69730         universal_time_zone_table.
69731         (lookup_zone): Prefer universal_time_zone_table to
69732         local_time_zone_table, so that "GMT" time stamps are allowed in
69733         London during the summer.  Problem reported by Ian Abbott.
69734
69735 2005-04-12  Jim Meyering  <jim@meyering.net>
69736
69737         * lib/human.c (humblock): Set *options even when returning due to
69738         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69739         warning from gcc-4.
69740
69741 2005-04-09  Jim Meyering  <jim@meyering.net>
69742
69743         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69744         -Wuninitialized: initialize tm0.tm_year.
69745
69746 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69747
69748         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69749         count, since there's no maximum.  All uses changed.
69750         Add member dsts_seen.
69751         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69752         not being INT_MAX.
69753         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69754         Use pc_rels_seen to decide whther a date is absolute.
69755
69756         * lib/getdate.y (number): Don't overwrite year.
69757         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69758         check.
69759
69760 2005-04-02  Simon Josefsson  <jas@extundo.com>
69761
69762         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69763         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69764
69765 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69766
69767         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69768         where no absolute path name can be longer than PATH_MAX.
69769
69770 2005-03-27  Jim Meyering  <jim@meyering.net>
69771
69772         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69773
69774 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69777         "one's complement" -> "ones' complement" in comment, as per Knuth.
69778         "value of type" -> "type or expression" in comment.
69779         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69780
69781 2005-03-26  Jim Meyering  <jim@meyering.net>
69782
69783         Comment nits.
69784         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69785         Correct typos: s/or/of/.
69786
69787 2005-03-26  Jim Meyering  <jim@meyering.net>
69788
69789         * modules/check-include-files: Move to ../ and rename to...
69790         * check-module: ...this.
69791
69792 2005-03-25  Jim Meyering  <jim@meyering.net>
69793
69794         * modules/xvasprintf (Files): Add xalloc.h.
69795
69796 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * modules/gettext (Files): config/config.rpath ->
69799         build-aux/config.rpath
69800         * modules/iconv (Files): Likewise.
69801         Problem reported by Oskar Liljeblad.
69802
69803 2005-03-23  Jim Meyering  <jim@meyering.net>
69804
69805         * modules/check-include-files: New script to check for
69806         missing dependencies, multiple includes, etc.
69807
69808         * modules/c-strtold (Depends-on): Add xalloc.
69809         * modules/c-strtod (Depends-on): Add xalloc.
69810         * modules/hash (Depends-on): Add xalloc.
69811         (Files): Remove lib/xalloc.h.
69812
69813         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69814         * modules/userspec (Files): Add lib/inttostr.h.
69815
69816 2005-03-23  Jim Meyering  <jim@meyering.net>
69817
69818         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69819
69820 2005-03-22  Jim Meyering  <jim@meyering.net>
69821
69822         * modules/stat-macros: New module.
69823         * modules/canonicalize, modules/euidaccess, modules/file-type,
69824         * modules/filemode, modules/lchown, modules/makepath,
69825         * modules/rmdir, modules/stat: Depend on new stat-macros module
69826         rather than listing lib/stat-macros.h manually.
69827         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69828
69829 2005-03-22  Jim Meyering  <jim@meyering.net>
69830
69831         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69832
69833 2005-03-22  Bruno Haible  <bruno@clisp.org>
69834
69835         * config/srclist.txt: Replace target directory 'config' with
69836         'build-aux'.
69837         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69838         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69839         ../build-aux/.
69840
69841 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * modules/chdir-long (Depends-on): Add mempcpy.
69844
69845         * modules/acl, modules/backupfile, modules/c-strtod,
69846         modules/c-strtold, modules/canon-host, modules/canonicalize,
69847         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69848         modules/exclude, modules/exitfail, modules/file-type,
69849         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69850         modules/getdate, modules/getline, modules/getpagesize,
69851         modules/getpass, modules/getugroups, modules/group-member,
69852         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69853         modules/inttostr, modules/long-options, modules/makepath,
69854         modules/md5, modules/memcasecmp, modules/memcoll,
69855         modules/modechange, modules/mountlist, modules/path-concat,
69856         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69857         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69858         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69859         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69860         modules/strftime, modules/strndup, modules/strverscmp,
69861         modules/timespec, modules/unlocked-io, modules/userspec,
69862         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69863         modules/yesno:
69864         Remove lib_SOURCES line from Makefile.am section, as this is now
69865         done automatically by the corresponding Autoconf macro.
69866
69867 2005-03-21  Jim Meyering  <jim@meyering.net>
69868
69869         Changes imported from coreutils.
69870
69871         * lib/cycle-check.c: Don't include xalloc.h.
69872
69873         * lib/path-concat.c: Don't include assert.h.
69874         (path_concat): Remove assertion that would have triggered
69875         for ABASE starting with more than one slash.
69876         Reported by Andreas Schwab.
69877
69878         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69879         properly when ABASE is an absolute file name.
69880         Correct the description of this function.
69881         Include <assert.h>.
69882         Add an assertion and a test driver.
69883         This fixes a bug introduced on 2004-07-02.
69884         Andreas Schwab reported the resulting failure of cp --parents:
69885         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69886
69887 2005-03-21  Jim Meyering  <jim@meyering.net>
69888
69889         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69891
69892 2005-03-21  Jim Meyering  <jim@meyering.net>
69893         and  Paul Eggert  <eggert@cs.ucla.edu>
69894
69895         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69896         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69897         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69898         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69899         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69900         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69901         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69902         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69903         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69904         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69905         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69906         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69907         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69908         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69909         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69910         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69911         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69912         for these modules.
69913
69914 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69917         (which shouldn't happen), generate nothing instead of returning 0
69918         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69919
69920 2005-03-16  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69923         HAVE_LONGLONG_64BIT.
69924
69925 2005-03-16  Bruno Haible  <bruno@clisp.org>
69926
69927         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69928         HAVE_LONGLONG_64BIT.
69929
69930 2005-03-16  Bruno Haible  <bruno@clisp.org>
69931
69932         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69933         HAVE_LONGLONG_64BIT.
69934
69935 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69938         reliably distinguish strftime failure from empty output on POSIX
69939         hosts.
69940
69941 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69944         (iconv_string): Don't guess a size-zero buffer, as that might cause
69945         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69946         result would be 'too large', where 'too large' is (heuristically)
69947         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69948         overflow concerns.  This will prevent some unwanted malloc failures
69949         when the inputs are very large.
69950
69951 2005-03-15  Karl Berry  <karl@gnu.org>
69952
69953         * config/srclist.txt (config.rpath): from gettext.
69954         * config/config.rpath: update.
69955
69956 2005-03-15  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69959         to 'negate'.
69960
69961         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69962         variable.
69963
69964         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69965         results.
69966
69967 2005-03-14  Simon Josefsson  <jas@extundo.com>
69968
69969         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69970         <fx@gnu.org>.
69971
69972 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69975         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69976         intprops.h.
69977         * lib/strtol.c: Likewise.
69978
69979 2005-03-14  Jim Meyering  <jim@meyering.net>
69980
69981         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69982         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69983         to be nonzero so that we (and caller) can detect the difference
69984         between a valid zero-length expansion and an error return, even
69985         when the underlying strftime fails before writing anything into
69986         that location.
69987
69988 2005-03-14  Bruno Haible  <bruno@clisp.org>
69989
69990         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69991         Update from GNU gettext 0.14.3.
69992
69993 2005-03-10  Jim Meyering  <jim@meyering.net>
69994
69995         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69996
69997 2005-03-10  Jim Meyering  <jim@meyering.net>
69998
69999         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70000         so that this module works on systems without fchdir.
70001
70002 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         Factor int-properties macros into a single file, except for
70005         glibc-related files.
70006         * lib/intprops.h: New file.
70007         * lib/getloadavg.c: Include it instead of limits.h.
70008         (INT_STRLEN_BOUND): Remove.
70009         * lib/human.c: Include intprops.h.
70010         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70011         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70012         302/1000.
70013         * lib/inttostr.h: Include intprops.h instead of limits.h.
70014         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70015         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70016         for consistency with intprops.h.
70017         (time_t_is_integer, twos_complement_arithmetic): Use them.
70018         * lib/sig2str.h: Include <signal.h>, intprops.h.
70019         (INT_STRLEN_BOUND): Remove.
70020         * lib/strftime.c (TYPE_SIGNED): Remove.
70021         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70022         * lib/strtol.c: Adjust comments to match intprops.h.
70023         * lib/userspec.c: Include intprops.h.
70024         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70025         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70026         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70027         instead of rolling our own expressions.
70028         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70029
70030         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70031         instead of int.
70032         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70033         the right thing even if adding 1900 would overflow.  Similarly
70034         for tm_mon + 1 and tm_yday + 1.
70035         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70036         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70037         (DO_SIGNED_NUMBER): New macro.
70038         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70039
70040 2005-03-07  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70043
70044 2005-03-07  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70047
70048 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70049
70050         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70051         (func_import): Only replace files via --import when they have actually
70052         changed.
70053
70054 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70055
70056         * m4/mmap-anon.m4: New file.
70057         * m4/pagealign_alloc.m4: New file.
70058
70059 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70060             Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/pagealign_alloc: New file.
70063         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70064
70065 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70066             Bruno Haible  <bruno@clisp.org>
70067
70068         * lib/pagealign_alloc.h: New file.
70069         * lib/pagealign_alloc.c: New file.
70070
70071 2005-03-03  Bruno Haible  <bruno@clisp.org>
70072
70073         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70074         Use an all-permissive copyright notice, recommended by RMS.
70075
70076 2005-03-02  Bruno Haible  <bruno@clisp.org>
70077
70078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70079         of AIX, the replacement has to be done only after <string.h> is
70080         included, therefore not in config.h. stpncpy.h does the replacement,
70081         and stpncpy.c uses it.
70082
70083 2005-03-02  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70086         stpncpy.c uses it.
70087
70088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70089
70090         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70091         The workaround isn't strictly needed for POSIX conformance, and
70092         it's too much of a pain to configure and maintain.  We'll ask
70093         people to fix their kernels instead.
70094         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70095         (NANOSLEEP_BUG_WORKAROUND): Remove.
70096         (xnanosleep): Remove the workaround.
70097
70098 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70101         Reported by Derek Price.
70102         (Include): Add "timespec.h".
70103
70104         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70105
70106 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70109         to detect nanosleep bug.
70110
70111 2005-03-01  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70114
70115 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * modules/gethrxtime: New file.
70118         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70119         (Depends-on): Add gethrxtime.
70120         (configure.ac): Add gl_XNANOSLEEP.
70121         (Makefile.am): Remove lib_SOURCES line.
70122
70123 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70126         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70127
70128 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70131         * lib/timespec.h (gettime): Return void, since it always
70132         succeeds now.  All uses changed.
70133         * lib/gettime.c (gettime): Likewise.
70134         [HAVE_NANOTIME]: Prefer nanotime.
70135         Assume gettimeofday succeeds, as POSIX requires.
70136         Assime time () succeeds, since other code already does.
70137         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70138         (timespec_subtract): Remove.
70139         (NANOSLEEP_BUG_WORKAROUND): New constant.
70140         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70141         things considerably.  Use it only on GNU/Linux hosts, since the
70142         workaround shouldn't be needed elsewhere.
70143
70144 2005-02-24  Bruno Haible  <bruno@clisp.org>
70145
70146         * modules/gettext (Files): Add m4/glibc2.m4.
70147
70148 2005-02-24  Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70151         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70152         * m4/progtest.m4:
70153         Update from GNU gettext 0.14.2.
70154         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70155
70156 2005-02-24  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70159         * lib/config.charset: Update from GNU gettext 0.14.2.
70160
70161 2005-02-24  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/gettext.h: Update from GNU gettext 0.14.2.
70164
70165 2005-02-23  Simon Josefsson  <jas@extundo.com>
70166
70167         * m4/iconvme.m4: New file.
70168
70169 2005-02-23  Jim Meyering  <jim@meyering.net>
70170
70171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70172         change.
70173         Thanks to Bruno Haible for catching it.
70174
70175 2005-02-22  Simon Josefsson  <jas@extundo.com>
70176
70177         * modules/iconvme: New file.
70178
70179         * MODULES.html.sh: Add iconvme.
70180
70181 2005-02-22  Simon Josefsson  <jas@extundo.com>
70182
70183         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70184
70185 2005-02-22  Simon Josefsson  <jas@extundo.com>
70186
70187         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70188
70189 2005-02-22  Jim Meyering  <jim@meyering.net>
70190
70191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70192         s/ifndef/ifdef/.
70193
70194 2005-02-20  Neil Conway  <neilc@samurai.com>
70195
70196         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70197         returned by OSX/Darwin if the specified buffer is not large
70198         enough for the hostname.
70199
70200 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70201
70202         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70203         pass it to _help, otherwise the latter coredumps trying to
70204         dereference state.root_argp.
70205
70206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * modules/chdir-long (Depends-on): Add memrchr.
70209         * modules/memrchr (Files): Add lib/memrchr.h.
70210         (Include): "memrchr.h".
70211
70212 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70215
70216 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * lib/memrchr.h: New file.
70219         * lib/chdir-long.c: Include it.
70220         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70221         Don't bother including stddef.h.
70222
70223 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70224
70225         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70226         inclusion.
70227         Include <sys/types.h>, for dev_t.
70228         (ME_DUMMY, ME_REMOTE): Move from here....
70229         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70230         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70231         Dmitry V. Levin.
70232         Include mountlist.h first, to test the interface.
70233
70234 2005-01-29  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/progname.c (program_name): Initialize.
70237         Needed when linking statically on MacOS X.
70238
70239 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         Sync from coreutils.
70242         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70243         (Depends-on): Add c-strtod.
70244         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70245
70246 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         Sync from coreutils.
70249         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70250
70251         Remove files that are specific to coreutils.
70252         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70253
70254 2005-01-28  Bruno Haible  <bruno@clisp.org>
70255
70256         * modules/javacomp: New file.
70257         * MODULES.html.sh (Java): Add javacomp.
70258
70259 2005-01-28  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/javacomp.m4: New file, from GNU gettext.
70262
70263 2005-01-28  Bruno Haible  <bruno@clisp.org>
70264
70265         * lib/javacomp.sh.in: New file, from GNU gettext.
70266         * lib/javacomp.h: New file, from GNU gettext.
70267         * lib/javacomp.c: New file, from GNU gettext.
70268
70269 2005-01-26  Simon Josefsson  <jas@extundo.com>
70270
70271         * lib/gai_strerror.c: Use GPL in header.
70272
70273 2005-01-26  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/javaexec: New file.
70276         * MODULES.html.sh (Java): Add javaexec.
70277
70278 2005-01-26  Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/javaexec.m4: New file, from GNU gettext.
70281
70282 2005-01-26  Bruno Haible  <bruno@clisp.org>
70283
70284         * lib/javaexec.sh.in: New file, from GNU gettext.
70285         * lib/javaexec.h: New file, from GNU gettext.
70286         * lib/javaexec.c: New file, from GNU gettext.
70287
70288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70289
70290         * modules/lchown (Depends-on): Remove lchown.h
70291
70292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70293
70294         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70295         must be defined if the header file was not found, in order
70296         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70297
70298 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70299
70300         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70301         initializers for struct pentry_state.
70302         (__argp_error): Check return value of __asprintf
70303         (__argp_failure): Translate error message
70304
70305         * lib/argp-parse.c: Removed braces around the expansion of N_()
70306
70307 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70310         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70311         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70312         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70313         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70314         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70315         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70316         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70317         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70318         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70319         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70320         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70321         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70322         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70323         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70324         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70325         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70326         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70327         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70328         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70329         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70330         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70331         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70332         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70333         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70334         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70335         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70336         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70337         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70338         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70339         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70340         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70341         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70342         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70343         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70344         Use an all-permissive copyright notice, recommended by RMS.
70345
70346 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * modules/chdir-long (Depends-on): Remove mempcpy.
70349
70350 2005-01-21  Jim Meyering  <jim@meyering.net>
70351
70352         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70353         same value as for Solaris 9.
70354
70355         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70356         component length.  This included changing the parameter to be
70357         of type `char *' rather than `char const *'.
70358         * lib/chdir-long.h (chdir_long): Update prototype.
70359
70360         * lib/openat.c (fdopendir, fstatat): New functions.
70361         * lib/openat.h: Include headers required for use of DIR and struct
70362         stat.
70363         [AT_SYMLINK_NOFOLLOW]: Define.
70364         (fdopendir, fstatat): Add prototypes.
70365
70366 2005-01-21  Bruno Haible  <bruno@clisp.org>
70367
70368         * modules/classpath: New file.
70369         * MODULES.html.sh (Java): Add classpath.
70370
70371 2005-01-21  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/classpath.h: New file, from GNU gettext.
70374         * lib/classpath.c: New file, from GNU gettext.
70375
70376 2005-01-20  Simon Josefsson  <jas@extundo.com>
70377
70378         * modules/version-etc-fsf: New file.
70379
70380 2005-01-20  Simon Josefsson  <jas@extundo.com>
70381
70382         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70383         * lib/version-etc.c: Remove version_etc_copyright.
70384         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70385         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70386
70387 2005-01-20  Simon Josefsson  <jas@extundo.com>
70388
70389         * lib/base64.h (isbase64): Add.
70390
70391         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70392         using a unsigned prototype, don't inline.
70393         (base64_decode): Use it.
70394
70395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70398         it.
70399
70400 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         * lib/save-cwd.c (save_cwd): Remove code to support the case
70403         where fchdir is missing or flaky.
70404
70405 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70408
70409 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70412         AC_LIBSOURCES now does this.
70413         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70414         with new ullong_max module.
70415
70416 2005-01-19  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/sh-quote: New file.
70419         * MODULES.html.sh (Executing programs): Add sh-quote.
70420
70421 2005-01-19  Bruno Haible  <bruno@clisp.org>
70422
70423         * lib/sh-quote.h: New file, from GNU gettext.
70424         * lib/sh-quote.c: New file, from GNU gettext.
70425
70426 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         Merge from coreutils.
70429         * m4/ullong_max.m4: New file.
70430         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70431         (gl_MACROS): Assume localeconv exists.
70432
70433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         Merge changes from coreutils, as described below in several
70436         changelogs dated today.
70437
70438         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70439         (O_DIRECTORY): Remove; not needed here, since "." must be
70440         a directory.  All uses removed.
70441         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70442         universal on Suns, and we also need to test for IRIX.
70443         Revamp code to use 'if' rather than '#if'.
70444         Avoid unnecessary comparison of cwd->desc to 0.
70445
70446         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70447         for known valid error numbers rather than observed invalid ones.
70448
70449 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * modules/ullong_max: New file.
70452
70453         * modules/chdir-long, modules/openat: New files.
70454         * modules/save-cwd (Depends-on): Depend on chdir-long.
70455         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70456
70457 2005-01-18  Jim Meyering  <jim@meyering.net>
70458
70459         Merge from coreutils.
70460         * m4/chdir-long.m4, m4/openat.m4: New files.
70461         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70462         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70463         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70464         is sane and DOES follow symlinks.  Besides, testing 20 different
70465         systems found no broken chown implementations.
70466         Prompted by a change in rsync's copy of this macro.
70467         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70468
70469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70470
70471         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70472         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70473         NULL-means-set-to-current-time semantics.
70474         Remove temporary file immediately, rather than waiting
70475         for configure's at-exit trap code to do it.
70476
70477 2005-01-18  Jim Meyering  <jim@meyering.net>
70478
70479         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70480
70481         * lib/utimens.c (futimens): Account for the fact that futimes
70482         can also fail with errno == ENOSYS or errno == ENOENT.
70483         Patch from Dmitry V. Levin.
70484
70485         Change the name of the robust chdir function from chdir to chdir_long.
70486         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70487         (restore_cwd): Use chdir_long, not chdir.
70488         * lib/chdir-long.c: Renamed from chdir.c.
70489         * lib/chdir-long.h: Renamed from chdir.h.
70490         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70491         Hurd.
70492
70493 2005-01-18  Bruno Haible  <bruno@clisp.org>
70494
70495         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70496         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70497         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70498         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70499         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70500         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70501         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70502         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70503         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70504         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70505         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70506         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70507         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70508         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70509         Use an all-permissive copyright notice, recommended by RMS.
70510
70511 2005-01-18  Bob Proulx  <bob@proulx.com>
70512
70513         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70514         simplify offsetof() macro construct to avoid compile failure with
70515         native HP-UX 11.0 ANSI C compiler.
70516
70517 2005-01-17  Bruno Haible  <bruno@clisp.org>
70518
70519         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70520         redundant because stpncpy.m4 takes care of it.
70521
70522 2005-01-17  Bruno Haible  <bruno@clisp.org>
70523
70524         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70525
70526 2005-01-17  Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70529         used.
70530
70531 2005-01-17  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/fwriteerror.h (fwriteerror): Change specification to include
70534         fclose.
70535         * lib/fwriteerror.c: Include <stdbool.h>.
70536         (fwriteerror): At the end, close the file stream. Record whether
70537         stdout was already closed.
70538
70539 2005-01-17  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/execute.c (environ): Declare if needed.
70542         * lib/pipe.c (environ): Likewise.
70543         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70544
70545 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70546
70547         * modules/argp: Depend on vsnprintf
70548
70549 2005-01-10  Jim Meyering  <jim@meyering.net>
70550
70551         * modules/closeout (Depends-on): Add atexit.
70552
70553 2005-01-06  Bruno Haible  <bruno@clisp.org>
70554
70555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70556
70557 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70558
70559         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70560         definitions to be after all include files, to avoid collisions.
70561         Problem reported by Bob Proulx.
70562
70563 2005-01-04  Jim Meyering  <jim@meyering.net>
70564
70565         Changes imported from coreutils.
70566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70567         as the mkstemp template, use a temporary directory and an
70568         8.3-friendly template to avoid trouble on systems like DJGPP.
70569         Reported by Juan M. Guerrero via Stepan Kasal.
70570         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70571         close. Remove the temporary directory right away, rather than waiting
70572         for configure's at-exit trap code to do it.
70573         Suggestion from Stepan Kasal.
70574
70575 2005-01-01  Simon Josefsson  <jas@extundo.com>
70576
70577         * gnulib-tool: Print #include directives when --import'ing.
70578
70579 2004-12-28  Simon Josefsson  <jas@extundo.com>
70580
70581         * tests/test-base64.c: Include required header files.  Remove
70582         unused variables.
70583
70584 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * modules/error (Depends-on): Remove gettext.
70587
70588 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70589
70590         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70591         not needed.  This removes a dependency on the gettext module.
70592         [defined _LIBC]: Do not include <libintl.h>; not needed.
70593
70594 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70597         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70598
70599 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70602         HAVE_DECL_STRTOLD.
70603
70604 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * modules/getdate (Depends-on): Remove alloca-opt.
70607
70608 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70611
70612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * lib/argp-parse.c: Include <stddef.h>.
70615         (alignof, alignto): New macros.
70616         (parser_init): Don't assume that void * is aligned sufficiently
70617         for struct option.
70618
70619         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70620         need to extend the stack.
70621         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70622         large.
70623
70624 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70625
70626         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70627
70628 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70631         (2004-10-24) change.  Apparently this was a false alarm.
70632
70633         * modules/getdate: Depend on alloca-opt, not alloca.
70634
70635 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70638         Remove now-obsolete comment about AIX.
70639         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70640         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70641         (YYMAXDEPTH): New macro.
70642
70643 2004-12-18  Simon Josefsson  <jas@extundo.com>
70644
70645         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70646
70647 2004-12-18  Bruno Haible  <bruno@clisp.org>
70648
70649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70650
70651 2004-12-18  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/fatal-signal.c (fatal_signals): Make non-const.
70654         (init_fatal_signals): New function.
70655         (uninstall_handlers, install_handlers): Ignore signals that were set to
70656         SIG_IGN.
70657         (at_fatal_signal): Call init_fatal_signals.
70658         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70659         SIG_IGN.
70660         Reported by Paul Eggert.
70661
70662 2004-12-18  Bruno Haible  <bruno@clisp.org>
70663
70664         * doc/alloca.texi: New file.
70665         * doc/alloca-opt.texi: New file.
70666
70667 2004-12-17  Jim Meyering  <jim@meyering.net>
70668
70669         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70670         Otherwise, install-sh could exit with improper exit status when
70671         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70672
70673 2004-12-16  Simon Josefsson  <jas@extundo.com>
70674
70675         * tests/test-base64.c: Add license.
70676
70677 2004-12-15  Stepan Kasal  <address@hidden>
70678
70679         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70680
70681 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70682
70683         * modules/getcwd (Files): Add m4/d-ino.m4.
70684         Suggested by Mark D. Baushke.
70685
70686 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         * lib/getdate.y (textint): New member "negative".
70689         (time_zone_hhmm): New function.
70690         Expect 14 shift-reduce conflicts, not 13.
70691         (o_colon_minutes): New rule.
70692         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70693         (yylex): Set the "negative" member of signed numbers.
70694
70695 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * doc/getdate.texi (Time of day items, Time zone items):
70698         Describe new formats +00:00, UTC+00:00.
70699
70700 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70703         spurious "-l"s.  Problem reported by Stepan Kasal.
70704
70705 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70708         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70709
70710 2004-12-04  Simon Josefsson  <jas@extundo.com>
70711
70712         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70713         Vandoorselaere <yoann@prelude-ids.org>.
70714
70715 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         Changes imported from coreutils.
70718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70719         exist.
70720         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70721
70722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         Changes imported from coreutils.
70725         * lib/hard-locale.c: Assume <locale.h> exists.
70726         Include "strdup.h".
70727         (GLIBC_VERSION): New macro.
70728         (hard_locale): Assume setlocale exists.
70729         Rewrite to avoid #ifdef.
70730         Use strdup rather than malloc + strcpy.
70731         * lib/human.c: Assume <locale.h> exists.
70732         (human_readable): Assume localeconv exists.
70733
70734 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70735
70736         * modules/hard-locale (Depends-on): Add strdup.
70737
70738 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70739
70740         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70741         convert T2, not T.  (Imported from libc.)
70742
70743 2004-11-30  Simon Josefsson  <jas@extundo.com>
70744
70745         * modules/restrict (License): Change to LGPL.
70746
70747 2004-11-30  Simon Josefsson  <jas@extundo.com>
70748
70749         * m4/restrict.m4: Add copyright and copying conditions.
70750
70751 2004-11-30  Simon Josefsson  <jas@extundo.com>
70752
70753         * m4/base64.m4: New file.
70754
70755 2004-11-30  Simon Josefsson  <jas@extundo.com>
70756
70757         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70758         base64.
70759
70760         * tests/test-base64.c: New file.
70761
70762         * modules/base64: New file.
70763
70764 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70765
70766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70767         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70768
70769         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70770
70771 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70774         (__getcwd.c): Don't restore errno; glibc doesn't.
70775         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70776         first, falling back to our code only if its results look suspicious.
70777         Ensure that the resulting buffer is only as large as necessary.
70778
70779         * lib/readutmp.c: Include readutmp.h first.
70780         Include <errno.h>, since readutmp.h no longer does that.
70781         * lib/readutmp.h: Don't include <errno.h>,
70782         <sys/param.h>, <time.h>; not needed to establish interface.
70783         (errno): Remove decl.
70784         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70785         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70786         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70787
70788 2004-11-28  Simon Josefsson  <jas@extundo.com>
70789
70790         * lib/base64.h, base64.c: New file.
70791
70792 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70795
70796 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70799         (Depends-on): Remove pathmax, same.  Add mempcpy.
70800         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70801         (Makefile.am): Append getcwd.h to lib_SOURCES.
70802         (Include): Add getcwd.h.
70803         (Maintainer): Change from Jim Meyering to "all, glibc",
70804         since getdate now uses intended-for-glibc code.
70805         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70806         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70807
70808 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70811         HP's ANSI C compiler.
70812         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70813         Declaring int functions causes warnings on some modern systems and
70814         shouldn't be needed to compile on ancient ones.
70815         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70816         defined.
70817
70818         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70819         with the following changes.
70820         (__set_errno): Parenthesize properly.
70821         Include <stdbool.h>.
70822         (MIN, MAX, MATCHING_INO): New macros.
70823         (__getcwd): Define with prototype, not K&R form.
70824         Use heuristics to allocate default buffer on stack if possible.
70825         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70826         behavior, and to avoid the PATH_MAX limit when computing
70827         ../../../../...
70828         Use MATCHING_INO to compare inode number to file.
70829         Check for arithmetic overflow in size calculations.
70830         Fix bug in reallocation of dot array that caused getcwd to fail
70831         on directories nested deeper than 75.
70832         Be more careful about saving errno on error.
70833         Do not use realloc; use only free+malloc, as this is a bit
70834         more flexible and avoids a needless copy operation.
70835         Do not inspect st_dev and st_ino for symbolic links; POSIX
70836         doesn't specify the latter.
70837         Check for closedir errors.
70838         Avoid needless casts.
70839         Use "#ifdef weak_alias" around weak_alias, to be like other
70840         glibc code.
70841         The following changes to getcwd.c have effect only when used in
70842         gnulib; they have no effect inside glibc proper.
70843         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70844         as alloca isn't used.
70845         (alloca, __alloca): Likewise.
70846         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70847         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70848         unconditionally, as gnulib assumes C89 or better.
70849         Do not include <sys/param.h>.
70850         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70851         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70852         better.
70853         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70854         Include <dirent.h> in a way that is compatible with modern Autoconf.
70855         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70856         New macros, if not already defined.
70857         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70858         Use "_LIBC", not "defined _LIBC", for consistency.
70859         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70860         a mempcpy module.
70861         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70862         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70863         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70864         credit only to Jim Meyering and adjust the copyright dates.
70865         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70866         <stdlib.h>, <unistd.h>, "pathmax.h".
70867         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70868         (INITIAL_BUFFER_SIZE): Remove.
70869         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70870
70871 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70874         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70875         Use the _ONCE methods, for efficiency.
70876         Check for fcntl.h.  In test program, include <errno.h>
70877         and <fcntl.h> if available.  Remove old K&R cruft from
70878         test program.  Check for common errors in GNU/Linux,
70879         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70880         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70881         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70882         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70883         name accordingly.
70884         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70885         accommodate new getcwd.c.
70886         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70887         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70888         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70889         that's all we need now.
70890
70891 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70892
70893         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70894         argp-parse.c depends on getopt internals, that means we should
70895         always use our getopt, to be on the safe side.
70896         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70897         order not to spoil the result of an eventual previous invocation
70898         of gl_GETOPT_SUBSTITUTE.
70899
70900 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70901
70902         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70903         redefinition warnings. To avoid them, include the defines
70904         in `#if !defined __need_getopt ... #endif'. The only place
70905         where __getopt_argv_const is used is in definitions
70906         of getopt_long and getopt_long_only below, which are as well
70907         protected by `#ifndef __need_getopt'.
70908         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70909         __need_getopt after including <stdio.h> and <unistd.h> These
70910         headers might have defined it.
70911
70912 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70913
70914         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70915
70916 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70919         (futimens): New function, which uses futimes if available.
70920         (futimens, utimens): Support timespec==NULL, with same semantics
70921         as utime and utimens.
70922         * lib/utimens.h (futimens): New decl.
70923
70924 2004-11-23  Jim Meyering  <jim@meyering.net>
70925
70926         * lib/getopt_.h: Remove trailing blanks.
70927
70928 2004-11-23  Jim Meyering  <jim@meyering.net>
70929
70930         * lib/__fpending.c: Add comment.
70931
70932 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * modules/canonicalize (Depends-on): Add xreadlink.
70935         Problem reported by James Youngman.
70936
70937 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70940         New macros.
70941         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70942         optopt): Use them instead of invoking ## directly; otherwise, the
70943         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70944
70945 2004-11-19  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/strtok_r.c: Move comments from here...
70948         * lib/strtok_r.h: ... to here.
70949
70950 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70953         implementations that mishandle size_t overflow.
70954
70955 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70958         might fail.  Problem reported by Yoann Vandoorselaere.
70959         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70960         implementations that mishandle size_t overflow.
70961
70962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * modules/canon-host (Depends-on): Add strdup.
70965
70966 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70969
70970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         * lib/canon-host.c: Include "strdup.h".
70973         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70974         Use strdup instead of malloc/strcpy to duplicate strings.
70975
70976         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70977         (human_space_before_unit): New constant.
70978         * lib/human.c (human_readable): Support it.
70979
70980         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70981         (xgetcwd): Set errno correctly when failing.
70982         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70983         the failure is actually due to a PATH_MAX problem.
70984
70985         Further getopt changes to make it more likely that glibc will
70986         buy the changes back.
70987         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70988         (getopt): Use it, so to preserve glibc semantic
70989         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70990         when compiling for libc.
70991         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70992         (getopt_long, getopt_long_only): Use it.
70993
70994         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70995         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70996         (getopt): Argv is now char * const *, as per standard.
70997         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70998         not char *__getopt_argv_const *.
70999         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71000         _getopt_long_only_r): Likewise.
71001         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71002         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71003         _getopt_long_r, _getopt_long_only_r): Likewise.
71004         * lib/getopt_.h (__getopt_argv_const): Remove.
71005         (getopt): Argv is now char * const *, as per standard.
71006
71007         * lib/getdate.y (tORDINAL): New token.
71008         (day, relunit): Allow it for relative times.
71009         (relative_time_table): Use tORDINAL for ordinals.
71010
71011 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71014         Document that "second" isn't allowed as an ordinal number.
71015
71016 2004-11-16  Jim Meyering  <jim@meyering.net>
71017
71018         * modules/closeout (Depends-on): Add fpending.
71019
71020 2004-11-15  Jim Meyering  <jim@meyering.net>
71021
71022         * lib/closeout.c: Include "__fpending.h" once again.
71023         Include <stdbool.h>.
71024         (close_stdout): Don't fail just because stdout was closed initially,
71025         since some programs don't write to stdout in the normal course of
71026         operation (other than --version and --help), and we don't want this
71027         function to make e.g. `touch file >&-' fail.
71028         But do fail if it was closed and someone has tried to write to it.
71029         E.g., `printf foo >&-' must fail.
71030
71031 2004-11-13  Jim Meyering  <jim@meyering.net>
71032
71033         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71034
71035 2004-11-12  Simon Josefsson  <jas@extundo.com>
71036
71037         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71038         small doc fix is still pending.
71039
71040 2004-11-11  Simon Josefsson  <jas@extundo.com>
71041
71042         * modules/strtok_r: New file.
71043
71044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71045         strtok_r.
71046
71047 2004-11-11  Simon Josefsson  <jas@extundo.com>
71048
71049         * m4/strtok_r.m4: New file.
71050
71051         * m4/getopt.m4: Replace opterr.
71052
71053 2004-11-11  Simon Josefsson  <jas@extundo.com>
71054
71055         * lib/strtok_r.h, strtok_r.c: New file.
71056
71057 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71060         of replacing opterr, getopt, etc.  This should handle the
71061         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71062
71063 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71066         we can stop lying to compilers about the constness of argv when we
71067         are compiled outside glibc.
71068         (getopt, getopt_long, getopt_long_only): Use it.
71069         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71070         _getopt_internal, getopt): Likewise.
71071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71072         _getopt_long_only_r): Likewise.
71073         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71074         _getopt_long_r, _getopt_long_only_r): Likewise.
71075
71076         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71077         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71078         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71079         the other external symbols.
71080         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71081         declaration, since the above renaming now works around collisions.
71082
71083 2004-11-11  Jim Meyering  <jim@meyering.net>
71084
71085         * lib/linebreak.c: Remove trailing blanks.
71086         * lib/alloca_.h: Likewise.
71087         * lib/acosl.c: Likewise.
71088         * lib/euidaccess.c: Likewise.
71089         * lib/allocsa.h: Likewise.
71090
71091 2004-11-10  Simon Josefsson  <jas@extundo.com>
71092
71093         * m4/getaddrinfo.m4: New file.
71094
71095 2004-11-10  Simon Josefsson  <jas@extundo.com>
71096
71097         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71098
71099 2004-11-10  Simon Josefsson  <jas@extundo.com>
71100
71101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71102         getaddrinfo.
71103
71104         * modules/getaddrinfo: New file.
71105
71106 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71109
71110 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71111
71112         * lib/mktime.c (SHR): New macro, which is a portable
71113         substitute for >> that should work even on Crays.
71114         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71115         Problem reported by Mark D. Baushke in
71116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71117         * lib/getdate.y (SHR): Likewise.
71118         (tm_diff): Use it.
71119         * lib/strftime.c (SHR): Likewise.
71120         (tm_diff): Use it.
71121         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71122         quote_these_too, so that right shifts are well defined.  All uses
71123         changed.
71124
71125 2004-11-10  Jim Meyering  <jim@meyering.net>
71126
71127         Ensure that no close failure goes unreported.
71128         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71129         return early when it seems there's nothing to flush.
71130         Don't include __fpending.h.
71131
71132 2004-11-10  Jim Meyering  <jim@meyering.net>
71133
71134         * modules/closeout (Depends-on): Remove fpending.
71135
71136 2004-11-10  Jim Meyering  <jim@meyering.net>
71137
71138         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71139
71140 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71141
71142         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71143         gl_FUNC_STRFTIME.
71144         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71145         and AC_REQUIRE when possible, to avoid duplicate checks.
71146         Check for <wchar.h>.
71147
71148 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71151
71152 2004-11-09  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/sockpfaf.m4: New file.
71155
71156 2004-11-05  Bruno Haible  <bruno@clisp.org>
71157
71158         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71159         Reported by Mark D. Baushke <mdb@cvshome.org>.
71160
71161 2004-11-04  Bruno Haible  <bruno@clisp.org>
71162
71163         2004-09-11  Bruno Haible  <bruno@clisp.org>
71164                 * allocsa.valgrind: New file.
71165         2004-02-06  Bruno Haible  <bruno@clisp.org>
71166                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71167                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71168                 Reported by Christopher Seip <chris.seip@hp.com>.
71169
71170 2004-11-04  Bruno Haible  <bruno@clisp.org>
71171
71172         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71173         (Makefile.am): Distribute it.
71174
71175 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71178         with errno == ERANGE if the buffer is too small.
71179         Problem reported by Mark D. Baushke.
71180
71181 2004-11-03  Albert Chin  <china@thewrittenword.com>
71182             Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71185         equivalent, substitute $ac_type for equivalent type rather than
71186         blindly using uint32_t *always* which won't work if uint32_t is not
71187         available.  Define _UINT32_T to work around typedef of uint32_t if
71188         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71189         2.5.1.
71190
71191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         * m4/jm-macros.m4: Sync from coreutils.
71194         (gl_MACROS): Check for mbrlen, for pathchk.
71195         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71196
71197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71198
71199         * lib/xreadlink.c (MAXSIZE): New macro.
71200         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71201         size does not exceed MAXSIZE.  Avoid cast.
71202         As suggested by Mark D. Baushke in
71203         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71204         if readlink fails with buffer size just under MAXSIZE, try again
71205         with MAXSIZE.
71206
71207 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71210
71211 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71212         and  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71215         (get_date): Overparenthesize to avoid GCC warning.
71216
71217 2004-11-02  Bruno Haible  <bruno@clisp.org>
71218
71219         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71220         returns void.
71221
71222 2004-11-02  Bruno Haible  <bruno@clisp.org>
71223
71224         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71225         function returns void.
71226
71227 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71230         fflush_unlocked, flockfile, funlockfile, funlockfile,
71231         fputs_unlocked, putc_unlocked.
71232
71233 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71236         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71237         already declared.
71238
71239 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71240
71241         * modules/getdate (Files): Add doc/getdate.texi.
71242         (Depends-on): Add setenv, xalloc.
71243
71244 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * lib/getdate.y: Add support for TZ="foo" within a date string.
71247         Fix some bugs near time_t boundaries.  Reject dates with
71248         out-of-range components, e.g., "Sept 31".
71249         Include <stdlib.h>, "setenv.h", "xalloc.h".
71250         (ISDIGIT_LOCALE): Remove; unused.
71251         Note that the TZ and time functions used here are not reentrant.
71252         (mktime_ok, get_tz): New functions.
71253         (TZBUFSIZE): New constant.
71254         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71255         This requires that we sometimes generate our own TZ="XXX..." setting.
71256
71257 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * doc/getdate.texi: New file, from coreutils with modifications for
71260         the new TZ parsing.
71261
71262 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71263
71264         * lib/mktime.c (not_equal_tm): Remove redundant check.
71265
71266 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * modules/regex (lib_SOURCES): Add regex.c.
71269         Reported by James Youngman in
71270         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71271
71272 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/getdate.y: Use Bison 1.875 features, and some minor
71275         code cleanups.  This change does not affect semantics.
71276         Don't include <stdlib.h>; no longer needed.
71277         Don't include unlocked-io.h; only the "#if TEST" code uses
71278         stdio, and performance isn't crucial there.
71279         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71280         Bison 1.875 features as described below.
71281         All uses of "PC." replaced by "pc->".
71282         (YYSTYPE): Add a forward declaration.
71283         (yylex, yyerror): Use full prototypes in forward decls.
71284         Use "%pure-parser" rather than obsolescent "%pure_parser".
71285         Use %parse-param and %lex-param instead of obsolescent
71286         YYPARSE_PARAM and YYLEX_PARAM.
71287         (meridian_table, month_and_day_table, time_units_table,
71288         relative_time_table, time_zone_table, military_table,
71289         lookup_zone, lookup_word, get_date):
71290         Use NULL instead of 0 where appropriate.
71291         (to_hour): Avoid abort (), to avoid a dependency on
71292         stdlib.h.
71293         (yyerror, yylex): Now accepts parser_control * arg.
71294         (main) [TEST]: Use '\0' rather than 0 for char.
71295
71296 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71299
71300 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71303         It's now the caller's responsibility to handle the case where
71304         !HAVE_GETPAGESIZE && !defined getpagesize.
71305
71306         * lib/mktime.c (leapyear): Arg is long int, not int.
71307
71308 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71311
71312 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71315         missing.  Problem reported by James Youngman.
71316
71317 2004-10-16  Simon Josefsson  <jas@extundo.com>
71318
71319         * gnulib-tool: Fix comments.  Fix parse problem.
71320         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71321
71322 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71325         implementation of getopt_long.  Problem reported by Alexander Taler in:
71326         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71327
71328 2004-10-15  Bruno Haible  <bruno@clisp.org>
71329
71330         * gnulib-tool: Untabify. Initialize supplied_libname.
71331         (func_usage): More homogenous output.
71332         (func_modules_transitive_closure, func_modules_to_filelist,
71333         func_emit_lib_Makefile_am): New functions.
71334         (func_import): New function, extracted from big case statement. Use
71335         func_get_license, func_modules_transitive_closure,
71336         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71337         opt_lgpl. Don't use test -a, as it's not portable.
71338         (func_create_testdir): Use func_modules_transitive_closure,
71339         func_modules_to_filelist, func_emit_lib_Makefile_am.
71340
71341 2004-10-15  Bruno Haible  <bruno@clisp.org>
71342
71343         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71344
71345 2004-10-15  Bruno Haible  <bruno@clisp.org>
71346
71347         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71348         the portions belonging to each module.
71349         Suggested by Derek Robert Price <derek@ximbiot.com>.
71350
71351 2004-10-12  Simon Josefsson  <jas@extundo.com>
71352
71353         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71354         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71355         to real functions.
71356
71357 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71358
71359         * modules/vsnprintf: New file.
71360
71361 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71362
71363         * m4/vsnprintf.m4: New file.
71364
71365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71366
71367         * lib/vsnprintf.h: New file.
71368         * lib/vsnprintf.c: New file.
71369
71370 2004-10-11  Bruno Haible  <bruno@clisp.org>
71371
71372         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71373         vsnprintf.
71374
71375 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71378
71379 2004-10-07  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71382         fits into the provided buffer.
71383
71384 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * lib/diacrit.c, diacrit.h: Add GPL notice.
71387
71388         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71389         notice.
71390         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71391         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71392         This avoids a potential constant-folding bug.
71393
71394 2004-10-05  Bruno Haible  <bruno@clisp.org>
71395
71396         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71397         for the declaration of strsep.
71398
71399 2004-10-05  Bruno Haible  <bruno@clisp.org>
71400
71401         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71402
71403 2004-10-04  Simon Josefsson  <jas@extundo.com>
71404
71405         * modules/memmem: New file.
71406         * tests/test-memmem.c: New file.
71407         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71408
71409 2004-10-04  Simon Josefsson  <jas@extundo.com>
71410
71411         * m4/memmem.m4: New file.
71412
71413 2004-10-04  Simon Josefsson  <jas@extundo.com>
71414
71415         * lib/memmem.h: New file.
71416         * lib/memmem.c: New file, taken from glibc.
71417
71418 2004-10-04  Simon Josefsson  <jas@extundo.com>
71419
71420         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71421         '#ifdef USE_UNLOCKED_IO'.
71422
71423 2004-10-04  Simon Josefsson  <jas@extundo.com>
71424
71425         * config/srclist.txt: Add memmem from glibc.
71426
71427 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71430
71431         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71432         modules/exclude, modules/getdate, modules/getline,
71433         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71434         modules/getusershell, modules/linebuffer, modules/md5,
71435         modules/mountlist, modules/posixtm, modules/readtokens,
71436         modules/readutmp, modules/regex, modules/sha1,
71437         modules/version-etc, modules/yesno:
71438         Remove dependency on unlocked-io.
71439
71440 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71443
71444         * m4/unlocked-io.m4: Add copyright notice.
71445         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71446
71447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71450         * lib/xmalloc.c (xmemdup): Likewise.
71451         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71452         XFREE): Remove these long-obsolescent macros.
71453         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71454         * lib/xstrdup.c: Remove.
71455
71456         * lib/regex.c (re_comp): Cast gettext return value to char *,
71457         Problem reported by Martin Neitzel via Mark D. Baushke.
71458
71459 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71462         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71463         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71464         regex.c, sha1.c, version-etc.c, yesno.c:
71465         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71466         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71467         the includer's responsibility.
71468
71469         Sync from coreutils.
71470
71471         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71472         points to the start of a string, as the C Standard says the
71473         resulting behavior is undefined.
71474
71475         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71476         simple -> simple_backups, numbered_existing ->
71477         numbered_existing_backups, numbered -> numbered_backups
71478         to avoid shadowing problems.  All uses changed.
71479         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71480         * lib/backupfile.c (check_extension, numbered_backup):
71481         Rename locals to avoid shadowing 'basename'.
71482         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71483         once.
71484
71485         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71486         * lib/.cvsignore: Add getopt.h.
71487
71488 2004-10-04  Bruno Haible  <bruno@clisp.org>
71489
71490         * modules/README: New file.
71491         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71492         not a module.
71493
71494 2004-10-02  Jim Meyering  <jim@meyering.net>
71495
71496         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71497
71498 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71499
71500         * modules/strsep: New file.
71501
71502 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71503
71504         * m4/strsep.m4: New file.
71505
71506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71507
71508         * lib/strsep.h: New file.
71509         * lib/strsep.c: New file.
71510
71511 2004-10-01  Simon Josefsson  <jas@extundo.com>
71512
71513         * lib/snprintf.c (snprintf): Handle size==0.
71514
71515 2004-10-01  Simon Josefsson  <jas@extundo.com>
71516             Bruno Haible  <bruno@clisp.org>
71517
71518         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71519         (snprintf): Declare 'args'.
71520
71521 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * lib/snprintf.c: Remove comments as to why each header is needed.
71524
71525 2004-10-01  Bruno Haible  <bruno@clisp.org>
71526
71527         * MODULES.html.sh: Add strsep.
71528
71529 2004-09-30  Simon Josefsson  <jas@extundo.com>
71530
71531         * modules/snprintf: New file.
71532
71533 2004-09-30  Simon Josefsson  <jas@extundo.com>
71534
71535         * m4/snprintf.m4: New file.
71536
71537 2004-09-30  Simon Josefsson  <jas@extundo.com>
71538
71539         * lib/snprintf.h, lib/snprintf.c: New files.
71540
71541 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71542
71543         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71544         (hol_entry_help): Never translate an empty string.
71545         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71546         * lib/argp.h (OPTION_NO_TRANS): New option.
71547
71548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * modules/argp (Maintainer): Replace Simon Josefsson
71551         by Sergey Poznyakoff.
71552
71553 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71556         changes merged back into glibc.
71557
71558 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71561
71562 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71563
71564         * lib/xvasprintf.c: Include xalloc.h.
71565         (xvasprintf): Use xalloc_die, not xmalloc_die.
71566
71567 2004-09-29  Bruno Haible  <bruno@clisp.org>
71568
71569         * modules/alloca-opt: New file, derived from modules/alloca.
71570         * modules/allocsa: Depend on alloca-opt instead of alloca.
71571         * modules/setenv: Likewise.
71572         * modules/vasnprintf: Likewise.
71573         * MODULES.html.sh: Add alloca-opt.
71574
71575 2004-09-28  Simon Josefsson  <jas@extundo.com>
71576
71577         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71578         LGPL, and to replace license template from GPL to LGPL.
71579
71580 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71581
71582         * modules/dummy: Change license to LGPL.
71583
71584 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71587
71588 2004-09-24  Simon Josefsson  <jas@extundo.com>
71589
71590         * modules/minmax (License): Change from GPL to LGPL.
71591
71592 2004-09-23  Simon Josefsson  <jas@extundo.com>
71593
71594         * gnulib-tool (--import): Typo.
71595
71596 2004-09-23  Simon Josefsson  <jas@extundo.com>
71597
71598         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71599
71600 2004-09-22  Bruno Haible  <bruno@clisp.org>
71601
71602         * modules/*: Add 'License' field.
71603         * gnulib-tool: Accept --extract-license option.
71604         (func_get_license): New function.
71605
71606 2004-09-21  Bruno Haible  <bruno@clisp.org>
71607
71608         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71609         Reported by Simon Josefsson.
71610
71611 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71614         gl_AC_TYPE_LONG_LONG.
71615
71616 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71619
71620 2004-09-18  Simon Josefsson  <jas@extundo.com>
71621         and  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71624         calls with autoreconf.  Define GL_LIB.
71625
71626 2004-09-14  Karl Berry  <karl@gnu.org>
71627
71628         * config/srclist.txt: unsync setenv.c, sigh.
71629
71630 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71631
71632         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71633         Problem reported by Bruno Haible in:
71634         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71635
71636 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * config/srclist.txt: Comment out argp-pvh.c.
71639
71640 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71641
71642         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71643         in case some system header has #define'd it.  Problem reported by
71644         Soeren D. Schulze in
71645         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71646
71647 2004-09-09  Karl Berry  <karl@gnu.org>
71648
71649         * regex.[ch]: delete from the root.  These were supposed to be
71650                 synced with emacs cvs, but this has not happened for about
71651                 a year, and anyway nothing else uses emacs regex.[ch].
71652                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71653                 lib/regex[.ch] is untouched.
71654
71655 2004-09-09  Bruno Haible  <bruno@clisp.org>
71656
71657         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71658
71659 2004-09-09  Bruno Haible  <bruno@clisp.org>
71660
71661         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71662         modifications.
71663         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71664
71665 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71666
71667         * modules/xvasprintf: New file.
71668         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71669
71670 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71671
71672         * lib/xvasprintf.h: New file.
71673         * lib/xvasprintf.c: New file.
71674         * lib/xasprintf.c: New file.
71675
71676 2004-09-08  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71679
71680 2004-09-08  Bruno Haible  <bruno@clisp.org>
71681
71682         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71683         length is > INT_MAX.
71684         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71685         more.
71686
71687 2004-09-08  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/stdint_.h: New file, taken from GNU clisp.
71690
71691 2004-09-08  Bruno Haible  <bruno@clisp.org>
71692             Oskar Liljeblad  <oskar@osk.mine.nu>
71693
71694         * modules/stdint: New file.
71695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71696
71697 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Import from coreutils.
71700         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71701         strings on unbounded length.  alloca's performance benefits aren't
71702         that important here.
71703         (V_STRDUP): Remove.
71704         (parse_with_separator): New function, with most of the internals
71705         of the old parse_user_spec.  Allow user to omit both user and group,
71706         for compatibility with FreeBSD.
71707         Clone only the user name, not the entire spec.
71708         Do not set *uid, *gid unless entirely successful.
71709         Avoid memory leak in some failing cases.
71710         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71711         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71712         (parse_user_spec): Rewrite to use parse_with_separator.
71713
71714 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * modules/userspec: Don't depend on alloca.
71717
71718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71721
71722 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71725         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71726         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71727
71728 2004-08-16  Simon Josefsson  <jas@extundo.com>
71729
71730         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71731         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71732         Add --dry-run for --import.
71733         Let user provided command line parameters override configure.ac
71734         settings.
71735
71736 2004-08-12  Simon Josefsson  <jas@extundo.com>
71737
71738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71739         as discussed with Paul Eggert in threads rooted at
71740         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71741         and
71742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71743         Before, the test was empty, and relied on ELIDE_CODE in source
71744         code.)
71745         (gl_PREREQ_GETOPT): New macro.
71746         (gl_GETOPT): Use them.
71747
71748 2004-08-12  Simon Josefsson  <jas@extundo.com>
71749
71750         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71751         * lib/getopt_.h: Renamed from getopt.h.
71752
71753 2004-08-12  Simon Josefsson  <jas@extundo.com>
71754
71755         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71756         Change default library name from libfoo to libgnu.
71757         Now, if you have a configure.ac that says:
71758                 gl_SOURCE_BASE(gl)
71759                 gl_M4_BASE(gl/m4)
71760                 gl_MODULES(error getopt etcetera)
71761                 gl_INIT
71762         you can import all you need by running:
71763                 ../gnulib/gnulib-tool --import
71764
71765         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71766         (Makefile.am): Rewrite, use logic from argz.
71767         (Include): Use <getopt.h> instead of "getopt.h".
71768
71769 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * modules/argp (Files): Add m4/unlocked-io.m4.
71772         (Depends-on): Add extensions.
71773
71774 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71777         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71778         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71779         Check for program_invocation_name, program_invocation_short_name,
71780         flockfile, funlockfile, features.h, _getopt_long_only_r.
71781
71782 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71785         its complicated substitute.
71786         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71787         and program_invocation_name.
71788         (__argp_basename) [!_LIBC]: Remove; the only use was
71789         replaced by its body.
71790         (__argp_short_program_name): Change condition from
71791         !defined __argp_short_program_name to
71792         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71793         to match argp-namefrob.h.
71794         (__argp_failure): Don't assume strerror_r returns char *.
71795         * lib/argp-parse.c (N_): Define unconditionally.
71796         (argp_default_options): Fill out initializers with 0 to avoid
71797         gcc warnings.
71798
71799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71802         getopt1.c.
71803
71804 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         Merge from coreutils.
71807
71808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71809
71810         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71811         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71812
71813 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         Merge from coreutils.
71816
71817         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71818         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71819         for Reliant Unix 5.43.
71820
71821         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71822         (union fooround): Use uintmax_t, not long int.
71823         The rest is a merge from libc:
71824         [defined _LIBC]: Include <shlib-compat.h>.
71825         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71826
71827         * lib/settime.c (settime): Recode to avoid warning with
71828         Sun Forte C 6U2.
71829
71830         * lib/strverscmp.c: Convert to UTF-8.
71831
71832 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71835         m4/uintmax_t.m4.
71836
71837 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * modules/xalloc-die: New file.
71840         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71841
71842         * modules/md5 (Files): Add m4/uint32_t.m4.
71843         * modules/sha1: Renamed from modules/sha.
71844         (Files):
71845         Rename lib/sha.h to lib/sha1.h.
71846         Rename lib/sha.c to lib/sha1.c.
71847         Rename m4/sha.m4 to m4/sha1.m4.
71848         (lib_SOURCES): Likewise.
71849         (configure.ac): Rename gl_SHA to gl_SHA1.
71850         (Include): sha.h -> sha1.h.
71851
71852 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71853
71854         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71855         * m4/sha1.m4: Renamed from sha.m4.
71856         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71857
71858 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/obstack.h (obstack_empty_p):
71861         Don't assume that chunk->contents is suitably aligned.
71862         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71863         Likewise. Problem reported by Benno in
71864         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71865
71866         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71867         readable.  This could be improved further but it'd take some work.
71868
71869 2004-08-08  Simon Josefsson  <jas@extundo.com>
71870
71871         * modules/xgethostname (Depends-on): Remove exit and error (not
71872         used).
71873
71874         * modules/getpass-gnu: Add getpass.h.
71875         (Depends-on): Add stdbool.
71876         * modules/getpass: Add getpass.h.
71877
71878 2004-08-08  Simon Josefsson  <jas@extundo.com>
71879
71880         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71881         Check getpass declaration.
71882
71883 2004-08-08  Simon Josefsson  <jas@extundo.com>
71884
71885         * lib/xgethostname.c: Don't include error.h (not used).
71886
71887         * lib/getpass.h: Add.
71888         * lib/getpass.c: Include getpass.h first.
71889
71890 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * lib/xalloc-die.c: New file.
71893         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71894         All uses removed.
71895         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71896         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71897         xalloc-die.c.
71898         (_, N_, xalloc_die): Move to xalloc-die.c.
71899         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71900         so that we needn't mess with xalloc_msg_memory_exhausted.
71901
71902         * lib/sha1.h: Renamed from sha.h.
71903         (SHA1_H): Renamed from _SHA_H.
71904         (sha1_ctx): Renamed from sha_ctx.
71905         (sha1_init_ctx): Renamed from sha_init_ctx.
71906         (sha1_process_block): Renamed from sha_process_block.
71907         (sha1_process_bytes): Renamed from sha_process_bytes.
71908         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71909         (sha1_read_ctx): Renamed from sha_read_ctx.
71910         (sha1_stream): Renamed from sha_stream.
71911         (sha1_buffer): Renamed from sha_buffer.
71912         * lib/sha1.c: Likewise; renamed from sha.c.
71913         Do not include <sys/types.h>.
71914         Include <stddef.h> rather than <stdlib.h>.
71915
71916 2004-08-08  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71919         FILESYSTEM_PREFIX_LEN.
71920         * lib/progreloc.c: Likewise.
71921         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71922
71923 2004-08-06  Simon Josefsson  <jas@extundo.com>
71924
71925         * modules/progname (Depends-on): Don't depend on stdbool.
71926
71927 2004-08-06  Simon Josefsson  <jas@extundo.com>
71928
71929         * modules/getsubopt: New file.
71930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71931         getsubopt.
71932
71933 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         More merge from coreutils.
71936
71937         * m4/utimens.m4, m4/utimecmp.m4: New files.
71938         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71939         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71940         prereq.m4, sha.m4: Import changes from coreutils.
71941
71942 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         More merge from coreutils.
71945         * modules/raise, modules/readtokens0, modules/utimens:
71946         * modules/utimecmp, module/xnanosleep: New files.
71947         * modules/strftime: Add lib/strftime.h.
71948         Change include from <time.h> to "strftime.h".
71949         * modules/yesno: Add lib/yesno.h.
71950         * modules/backupfile: Remove lib/addext.c.
71951         * modules/euidaccess: Add stat-macros.h.
71952         * modules/canonicalize, modules/euidaccess,
71953         modules/filemode, modules/lchown, modules/makepath,
71954         modules/rmdir, modules/stat: Likewise.
71955
71956 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         Merge from tar.
71959         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71960         SIZE_MAX is a valid preprocessor constant.
71961         (__argp_basename): Change from "#ifndef _LIBC"
71962         to "#ifndef __argp_short_program_name", so that
71963         we don't compile these functions for tar.
71964
71965         More merges from coreutils.
71966         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71967         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71968         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71969         * lib/addext.c: Remove; no longer needed.
71970         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71971         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71972         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71973         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71974         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71975         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71976         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71977         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71978         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71979         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71980         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71981         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71982         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71983         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71984         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71985         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71986         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71987         Import changes from coreutils.
71988
71989 2004-08-05  Simon Josefsson  <jas@extundo.com>
71990
71991         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71992
71993 2004-08-05  Simon Josefsson  <jas@extundo.com>
71994
71995         * m4/getsubopt.m4: New file.
71996
71997 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         Merge from coreutils.
72000
72001         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72002         * m4/getcwd-path-max.m4: New files.
72003
72004         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72005         FILESYSTEM_PREFIX_LEN ->
72006         FILE_SYSTEM_PREFIX_LEN.
72007         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72008         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72009         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72010         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72011
72012         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72013         prerequisite modules now handle the DOS stuff.
72014         Don't check for unistd.h.
72015
72016 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         Merge from coreutils.
72019
72020         * lib/.gdb-history: Remove; this doesn't belong here.
72021
72022         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72023         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72024         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72025         * lib/getcwd.c: New files.
72026
72027         * lib/dirname.h: Include <stdbool.h>.
72028         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72029         for consistency with POSIX terminology.  All uses changed.
72030         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72031         (strip_trailing_slashes): Use bool for booleans.
72032         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72033
72034         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72035         sometimes returns a positive errno value even when it succeeds.
72036         (print_errno_message) [!LIBC]: Fall back on strerror if
72037         __strerror_r fails.
72038
72039         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72040         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72041         (longest_relative_suffix): New function.
72042         (path_concat): Use it.  Assume first argument is not NULL.
72043         Port to DOS.  Omit redundant separators.
72044         Report an error instead of returning NULL.
72045         Use mempcpy instead of memcpy.
72046         (xpath_concat): Remove: not declared or used.
72047
72048         * lib/same.h: Include <stdbool.h>
72049         (same_name): Return bool, not int.
72050         * lib/same.c (same_name): Likewise.
72051         (errno): Don't declare; we assume C89 or better now.
72052
72053         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72054         if not already defined.
72055
72056         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72057         * lib/dup-safer.c (errno): Likewise.
72058
72059 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         Merge from coreutils.
72062         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72063         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72064         * modules/path-concat: Don't depend on strdup.
72065
72066 2004-08-03  Simon Josefsson  <jas@extundo.com>
72067
72068         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72069         * lib/progname.h: Don't include stdbool.h.
72070
72071 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72074         * MODULES.html.sh (func_all_modules): Remove fatal.
72075
72076 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72079
72080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72083         working.
72084
72085 2004-08-02  Simon Josefsson  <jas@extundo.com>
72086
72087         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72088         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72089         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72090
72091 2004-08-01  Simon Josefsson  <jas@extundo.com>
72092
72093         * lib/xgetdomainname.c: Include stdlib.h, for free().
72094
72095 2004-07-19  Bruno Haible  <bruno@clisp.org>
72096
72097         * MODULES.html.sh (func_all_modules): Add dummy.
72098
72099 2004-07-16  Simon Josefsson  <jas@extundo.com>
72100
72101         * modules/dummy: New file.
72102
72103 2004-07-16  Simon Josefsson  <jas@extundo.com>
72104
72105         * lib/dummy.c: New file.
72106
72107 2004-07-16  Bruno Haible  <bruno@clisp.org>
72108
72109         * lib/backupfile.h: Add extern "C" for C++.
72110         * lib/closeout.h: Likewise.
72111         * lib/copy-file.h: Likewise.
72112         * lib/findprog.h: Likewise.
72113         * lib/full-write.h: Likewise.
72114         * lib/pathname.h: Likewise.
72115         * lib/progname.h: Likewise.
72116         * lib/stpcpy.h: Likewise.
72117         * lib/stpncpy.h: Likewise.
72118         * lib/strcase.h: Likewise.
72119         * lib/strstr.h: Likewise.
72120         * lib/xalloc.h: Likewise.
72121
72122         * lib/mbswidth.h: Add extern "C" for C++.
72123         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72124
72125 2004-07-13  Robert Millan  <robertmh@gnu.org>
72126
72127         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72128
72129 2004-07-09  Simon Josefsson  <jas@extundo.com>
72130
72131         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72132         failed without this.)
72133
72134 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         * modules/chown (Files): Add lib/fchown-stub.c, since
72137         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72138
72139 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72140
72141         * lib/fchown-stub.c: New file.
72142
72143 2004-06-24  Jim Meyering  <jim@meyering.net>
72144
72145         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72146
72147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * modules/argz: Omit "#include".
72150
72151         * MODULES.html.sh (func_all_modules): Add calloc, to match
72152         2004-06-01 addition of calloc module.
72153
72154 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * m4/argz.m4: New file, which is autoupdated from libtool.
72157
72158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72161         libtool.
72162
72163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * config/srclist-update: Don't insist on "USA." before the
72166         close-comment, as libtool omits the period and puts the */ on a
72167         separate line.
72168         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72169         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72170
72171 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72172
72173         * modules/argz: New file.
72174         * MODULES.html.sh (func_all_modules): Add argz.
72175
72176 2004-06-12  Jim Meyering  <jim@meyering.net>
72177         and  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * modules/hash (Files): Add lib/xalloc.h.
72180         * modules/pipe (Depends-on): Add wait-process.
72181         * modules/stat (Depends-on): Add xalloc.
72182         * modules/userspec (Files): Add lib/userspec.h.
72183         * modules/xstrto
72184
72185         Upgrade from gettext-0.13.
72186         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72187         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72188         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72189
72190 2004-06-10  Jim Meyering  <jim@meyering.net>
72191
72192         * lib/calloc.c: New file.
72193
72194 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * lib/getdate.y (yylex): Allow space between sign and number.
72197         Problem reported by Dan Jacobson.
72198
72199 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         Merge from coreutils CVS.
72202
72203         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72204         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72205         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72206         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72207         xstrtol.m4: Fix copyright date and/or serial number.
72208
72209         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72210         See if we need an fchown replacement.
72211         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72212         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72213         and use the replacement function if we detect either defect.
72214
72215         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72216         gl_UTIMECMP.
72217
72218 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72219         and  Jim Meyering  <jim@meyering.net>
72220
72221         Merge from coreutils CVS.
72222
72223         * lib/stat-macros.h: New file, with contents from file-type.h
72224         and coreutils' system.h.
72225         * lib/file-type.c: Include "stat-macros.h".
72226         * lib/file-type.h (file_type): Move all macro definitions to new file,
72227         stat-macros.h.
72228
72229         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72230         Wrap old code with this conditional.
72231         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72232         function that does not dereference symlinks.
72233         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72234
72235         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72236         dependency problems.
72237         (xreadlink): Accept new arg SIZE, for efficiency.
72238         All decls and uses changed.
72239         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72240
72241         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72242         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72243
72244         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72245         sysexits.h.
72246
72247 2004-06-01  Jim Meyering  <jim@meyering.net>
72248
72249         * m4/calloc.m4: New file.
72250
72251 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72254         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72255         Also, fix a typo in a diagnostic.
72256
72257 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72260         or AC_FUNC_REALLOC.
72261
72262 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72265         macros to be defined.
72266         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72267         the allocator returns NULL because the requested size is zero.
72268
72269 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72272         var.  Add comment explaining why libc still defines it.  This
72273         merges the following patch from glibc:
72274         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72275
72276 2004-05-20  Andreas Schwab  <schwab@suse.de>
72277
72278         * m4/free.m4: Replace free if it not known to work, not the other
72279         way round.
72280
72281 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72284         present in glibc since revision 1.1 of this file.
72285         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72286         obstack_alignment_mask, obstack_alloc, obstack_base,
72287         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72288         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72289         obstack_grow0, obstack_init, obstack_int_grow,
72290         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72291         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72292         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72293         nonexistent functions.
72294
72295 2004-05-18  Karl Berry  <karl@gnu.org>
72296
72297         * config/srclist.txt: break link for vasnprintf.c.
72298
72299 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         Port obstack to the AS/400, where pointers are 16 bytes wide and
72302         you cannot cast an integer to a valid pointer.  This patch is
72303         currently waiting to be integrated into glibc; see
72304         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72305
72306         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72307         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72308         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72309         (struct obstack): temp member is now a union of a pointer and
72310         an integer, instead of an integer.  All integer uses changed.
72311         This does not affect the physical layout of struct obstack,
72312         except on hosts (like the AS/400) where the size or alignment of
72313         void * is greater than that of ptrdiff_t.
72314         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72315         __STDC__)]: Store temporary in pointer member of union, not
72316         integer member.
72317         * lib/obstack.c: Include <stddef.h>, for offsetof.
72318         (struct fooalign): Remove; it doesn't need a name.
72319         (union fooround): Change double to long double, and add void *.
72320         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72321         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72322         not a macro.  Hence the values are always int; so remove all
72323         casts-to-int in uses.
72324
72325 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72328         we can get this patch merged into glibc.
72329
72330 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72331             Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * m4/argp: Depend on alloca.
72334
72335 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72336             Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72339         freecoding.
72340
72341 2004-05-17  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72344         precision that consists of a '.' followed by an empty digit string.
72345         Patch by Tor Lillqvist <tml@iki.fi>.
72346
72347 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72350         for backward compatibility with older code.  We need our own
72351         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72352         it under some other name, and our alloca.h will define it.
72353
72354 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72355             Derek Price  <derek@ximbiot.com>
72356
72357         * lib/alloca.c: Include <alloca.h>, to get our interface.
72358         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72359         include <alloca.h> first.  Use C89 prototype for alloca; this
72360         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72361         Use #elif for simplicity, since we can assume C89 now.
72362         Don't try to source the system alloca.h since it will not be found
72363         and to prevent recursively including its replacement.
72364         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72365         * lib/regex.c: Likewise.
72366
72367 2004-05-16  Derek Price  <derek@ximbiot.com>
72368             Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         getline cleanup.  This changes the getndelim2 API: both order of
72371         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72372         no delimiter).
72373
72374         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72375         interface does that.
72376         (getline): Always use getdelim, so that we don't have two
72377         copies of this code.
72378         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72379         if available.
72380         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72381         (GETNDELIM2_MAXIMUM): New macro.
72382         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72383         instead of the old practice of delim2==0.  All callers changed.
72384         Return -1 on overflow, instead of returning junk.
72385         Do not set *linesize unless allocation succeeds.
72386         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72387         that we include sys/types.h.
72388         * lib/getnline.h: Likewise.
72389         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72390         (getndelim2): Reorder arguments.
72391         * lib/getnline.c (getnline, getndelim):
72392         Don't discard the NMAX argument.
72393         (getnline): Invoke getndelim, to avoid code duplication.
72394         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72395         of (size_t) -1 by callers of the getnline family.
72396
72397 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72400         Check for gettimeofday.
72401         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72402         Check for settimeofday, stime.
72403
72404 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * lib/nanosleep.c (suspended): Change its type from int to
72407         sig_atomic_t volatile.
72408         (first_call): Make it private to rpl_nanosleep, and have it
72409         be zero initially as that's a bit faster.
72410         (my_usleep): Round up fractional times instead of truncating them,
72411         as this is the usual meaning for 'sleep'.
72412
72413         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72414         doesn't work.
72415         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72416         (ENOSYS): Define if not defined.
72417         (settime): Fall back on stime if it exists and settimeofday fails.
72418         But don't bother with fallbacks if a method fails with errno == EPERM.
72419
72420 2004-05-11  Jim Meyering  <jim@meyering.net>
72421
72422         Prior to this change, the save_cwd caller required read access to the
72423         current directory on most systems (ones with the fchdir function).
72424
72425         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72426         fails, try write-only, and finally, resort to using xgetcwd.
72427
72428 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * lib/obstack.c, obstack.h: Import changes from libc.
72431
72432 2004-04-28  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72435         also implicitly appends .exe to executables.
72436         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72437         accepts Windows pathnames.
72438         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72439         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72440         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72441         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72442         Reported by Derek Robert Price <derek@ximbiot.com>.
72443
72444 2004-04-21  Karl Berry  <karl@gnu.org>
72445
72446         * config/srclist.txt (localcharset.c): break sync.
72447
72448 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72449
72450         * m4/host-os.m4: Add a copyright notice.
72451
72452 2004-04-20  Jim Meyering  <jim@meyering.net>
72453
72454         Change UTILS_ to gl_ in AC_DEFINE'd names.
72455         Change utils_- and jm_-prefixed variables, too.
72456         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72457         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72459
72460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72461         Don't emit trailing blanks.
72462         Also rename jm_-prefixed variables to have gl_ prefix.
72463
72464         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72465         Also rename jm_-prefixed variables to have gl_ prefix.
72466
72467         * m4/jm-macros.m4: Reflect the renamings.
72468         * m4/prereq.m4: Likewise.
72469
72470 2004-04-20  Jim Meyering  <jim@meyering.net>
72471
72472         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72473         memory.
72474
72475 2004-04-20  Jim Meyering  <jim@meyering.net>
72476             Bruno Haible  <bruno@clisp.org>
72477
72478         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72479         memory when realloc fails.
72480
72481 2004-04-19  Jim Meyering  <jim@meyering.net>
72482
72483         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72484         now that readutmp.c may call `free (0)'.
72485
72486 2004-04-19  Bruno Haible  <bruno@clisp.org>
72487
72488         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72489         * m4/inttypes_h.m4: Likewise.
72490         * m4/stdint_h.m4: Likewise.
72491         * m4/intmax_t.m4: Likewise.
72492         * m4/uintmax_t.m4: Likewise.
72493
72494 2004-04-18  Jim Meyering  <jim@meyering.net>
72495
72496         * m4/prereq.m4: Don't forbid jm_ prefix.
72497
72498         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72499         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72500         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72501         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72502         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72503         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72504         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72505         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72506         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72507         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72508         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72509         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72510         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72511         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72512         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72513         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72514         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72515         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72516         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72517
72518 2004-04-18  Jim Meyering  <jim@meyering.net>
72519
72520         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72521         failure, don't leak memory and do call END_UTMP_ENT.
72522
72523 2004-04-16  Jim Meyering  <jim@meyering.net>
72524
72525         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72526         coreutils' stat program.
72527         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72528
72529 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72530
72531         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72532         C89.
72533         (CHAR_BIT): Remove, since we assume C89.
72534         Include <stdint.h> if available, as per current Autoconf CVS advice.
72535
72536 2004-03-31  Jim Meyering  <jim@meyering.net>
72537
72538         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72539         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72540         * m4/xalloc.m4: Likewise.
72541
72542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72543
72544         Merge from coreutils.
72545
72546         * m4/inttostr.m4: New file.
72547         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72548         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72549         Require gl_CLOCK_TIME.
72550         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72551
72552 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72553
72554         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72555         not bool, to be more consistent with Unix conventions.
72556         Suggested by Bruno Haible.
72557
72558         Merge from coreutils.
72559
72560         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72561         * lib/umaxtostr.c: New files.
72562
72563         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72564         the usual <time.h> dance.
72565         (get_date): Change signature to support fractional time stamps.
72566         All callers changed.
72567         * lib/getdate.y: Include "getdate.h" first, as we can now
72568         assume C89 and don't need to worry about 'const'.
72569         Similarly, include "unlocked-io.h" near start, not in middle.
72570         Include <limits.h>.
72571         (textint.value): Use long int rather than int.
72572         (textint.digits): Use size_t rather than int.
72573         (BILLION, LOG10_BILLION): New constants.
72574         (parser_control): New member rel_ns.  Members day_ordinal,
72575         time_zone, month, day, hour, minutes, rel_year, rel_month,
72576         rel_day, rel_hour, rel_minutes, rel_seconds
72577         are now long int, not int.  Member seconds is now struct timespec,
72578         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72579         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72580         not int.
72581         (%union.intval): Now long int, not int.
72582         New member timespec.
72583         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72584         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72585         (spec): Now is a timespec or an item list.
72586         (timespec, items): New nonterminals.
72587         (time, rel, relunit, number, get_date):
72588         Add support for fractional seconds.
72589         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72590         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72591         (to_hour): First arg is now long int, not int.
72592         (to_year): Returns long int, not int.
72593         Don't treat year -70 like 70.
72594         (tm_diff): Returns long int, not int.
72595         (lookup_word): Use bool instead of int when appropriate.
72596         (yylex): Use size_t for count, not int.
72597         Detect overflow when parsing large integer constants.
72598         Add support for fractions.
72599         (get_date): Make pointers 'const' if possible.
72600         Use more-portable code to detect integer overflow.
72601         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72602         Don't use ctime; it's not reliable if the year has >4 digits.
72603
72604         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72605         This is for compatibility with BSD.
72606
72607         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72608         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72609         From coreutils' system.h.
72610
72611         * lib/userspec.c: Don't include "posixver.h".
72612         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72613         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72614         compatible extension.  Simplify code by removing a boolean int
72615         that was always nonzero if a string was nonnull.
72616
72617 2004-03-30  Jim Meyering  <jim@meyering.net>
72618
72619         Merge from coreutils.
72620
72621         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72622         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72623         on some systems one must include <grp.h> before it.
72624         Reported by Christian Krackowizer.
72625
72626 2004-03-30  Jim Meyering  <jim@meyering.net>
72627
72628         Merge from coreutils.
72629
72630         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72631
72632         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72633         an empty input stream.
72634
72635         * lib/readtokens.c: Include <stdbool.h>.
72636         (readtoken): Use `size_t' rather than int/long.
72637         All callers adjusted.
72638         Use `bool' rather than `int' where appropriate.
72639         Use memset rather than an explicit loop.
72640         Use x2nrealloc rather than xrealloc.
72641         Allow the use of `\0' as a delimiter.
72642         (readtokens): Likewise.
72643         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72644
72645 2004-03-30  Jim Meyering  <jim@meyering.net>
72646
72647         * m4/realloc.m4: Remove file, since now it does no more than
72648         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72649         the `configure.ac' section of module/realloc.
72650         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72651
72652 2004-03-30  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72655         nonnull.
72656
72657 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72658
72659         Merge changes to getloadavg.c from coreutils and Emacs.
72660
72661         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72662         Define to an expression, not to the empty string.
72663         Include cloexec.h and xalloc.h.
72664         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72665         Use set_cloexec_flag rather than rolling our own.
72666         * lib/cloexec.c, lib/cloexec.h: New files.
72667
72668 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72669
72670         * m4/cloexec.m4: New file.
72671
72672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72673
72674         * lib/getopt.h: Sync with libc CVS.
72675
72676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72677             Bruno Haible  <bruno@clisp.org>
72678
72679         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72680         mbswidth.
72681
72682 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72683             Bruno Haible  <bruno@clisp.org>
72684
72685         * lib/mbswidth.h: Include <wchar.h> only if
72686         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72687         <wchar.h>.
72688         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72689
72690 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72691
72692         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72693         Sync with libc CVS.
72694         * lib/getopt_int.h: New file, also synced from libc.
72695
72696 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72697
72698         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72699         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72700         Bring back getopt.c, getopt.h, getopt1.c.
72701
72702 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72703
72704         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72705         All uses changed.  Check for sa_sigaction member; this fixes
72706         a bug first reported by Jason Andrade in
72707         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72708
72709 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72710
72711         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72712         '#if' expressions.  Unlike the code it replaces, it does not
72713         depend on (defined _SC_PAGESIZE).  However, it does depend on
72714         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72715         first reported by Jason Andrade in
72716         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72717
72718 2004-02-25  Simon Josefsson  <jas@extundo.com>
72719
72720         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72721
72722 2004-02-25  Simon Josefsson  <jas@extundo.com>
72723
72724         * lib/strdup.h: New file.
72725         * lib/strdup.c: Include it.
72726         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72727         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72728
72729 2004-02-23  Karl Berry  <karl@gnu.org>
72730
72731         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72732         (from fencepost.gnu.org:/gd/gnuorg).
72733
72734 2004-02-23  Karl Berry  <karl@gnu.org>
72735
72736         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72737         * config/srclist.txt: add maintain/standards documents.
72738
72739 2004-02-18  Bruno Haible  <bruno@clisp.org>
72740
72741         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72742         Reported by Derek Robert Price <derek@ximbiot.com>.
72743
72744 2004-02-16  Karl Berry  <karl@gnu.org>
72745
72746         * config/mkinstalldirs, install-sh: update from automake.
72747
72748 2004-02-06  Karl Berry  <karl@gnu.org>
72749
72750         * m4/po.m4: update from gettext 0.14.1.
72751
72752 2004-02-06  Karl Berry  <karl@gnu.org>
72753
72754         * lib/config.charset: update from gettext 0.14.1.
72755
72756 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72757
72758         Add comments and code, prompted by suggestions from Bruno Haible
72759         for sh-quote.
72760         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72761         describing the enum quoting_style values.
72762         * lib/quotearg.c (quotearg_alloc): New function.
72763         (quotearg_buffer_restyled): Treat lone { and } as special.
72764         Treat = as special.  Work around bug with older shells
72765         that "see" a '\' that is really the 2nd byte of a multibyte char.
72766         Quote empty string with shell_quoting_style.
72767
72768 2004-02-03  Bruno Haible  <bruno@clisp.org>
72769
72770         * m4/pipe.m4: New file, from GNU gettext.
72771
72772 2004-02-03  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/pipe.h: New file, from GNU gettext.
72775         * lib/pipe.c: New file, from GNU gettext.
72776
72777 2004-01-27  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/execute.m4: New file, from GNU gettext.
72780
72781 2004-01-27  Bruno Haible  <bruno@clisp.org>
72782
72783         * lib/execute.h: New file, from GNU gettext.
72784         * lib/execute.c: New file, from GNU gettext.
72785         * lib/w32spawn.h: New file, from GNU gettext.
72786
72787 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72788
72789         Merge from diffutils.
72790
72791         * lib/file-type.c (file_type): Add typed memory objects.
72792         * lib/file-type.h (S_TYPEISTMO): New macro.
72793
72794         * lib/c-stack.h (c_stack_action): Remove argv argument.
72795         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72796         (die): Don't calculate message unless segv_action returns.
72797         (get_stack_location, min_address_from_argv, max_address_from_argv,
72798         volatile stack_base, volatile_stack_size): Remove.
72799         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72800         that every segmentation violation is a stack overflow.  (Ouch!)
72801         See Debian bug 136249 (still outstanding) for more info about why
72802         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72803
72804 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72805
72806         Exit-status fix from coreutils.
72807
72808         Use exit_failure consistently in place of EXIT_FAILURE,
72809         so that program exit statuses are consistent on failure.
72810
72811         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72812         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72813         * lib/argmatch.h: Comment fix to match the above.
72814         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72815         Now a macro referring to exit_failure, instead of a separate
72816         variable.  Include "exitfail.h" to get it.
72817         * lib/xstrtol.h: Include "exitfail.h".
72818         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72819
72820         * lib/long-options.c (parse_long_options): Use prototype
72821         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72822         for clarity.
72823
72824 2004-01-21  Jim Meyering  <jim@meyering.net>
72825
72826         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72827         so as not to conflict with a different-sized __mktime_internal
72828         function in GNU libc.
72829         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72830         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72831
72832 2004-01-20  Karl Berry  <karl@gnu.org>
72833
72834         * config/config.guess: update from config.
72835
72836         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72837
72838 2004-01-20  Bruno Haible  <bruno@clisp.org>
72839
72840         Safer stack allocation.
72841         * lib/setenv.c: Include allocsa.h.
72842         (alloca): Remove fallback definition.
72843         (freea): Remove macro.
72844         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72845         instead of freea.
72846
72847 2004-01-20  Bruno Haible  <bruno@clisp.org>
72848
72849         * m4/eealloc.m4: New file, from GNU gettext.
72850
72851 2004-01-20  Bruno Haible  <bruno@clisp.org>
72852
72853         * m4/allocsa.m4: New file, from GNU gettext.
72854
72855 2004-01-20  Bruno Haible  <bruno@clisp.org>
72856
72857         * lib/xallocsa.h: New file, from GNU gettext.
72858         * lib/xallocsa.c: New file, from GNU gettext.
72859
72860 2004-01-20  Bruno Haible  <bruno@clisp.org>
72861
72862         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72863
72864 2004-01-20  Bruno Haible  <bruno@clisp.org>
72865
72866         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72867         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72868         specially.
72869
72870 2004-01-20  Bruno Haible  <bruno@clisp.org>
72871
72872         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72873         patch.
72874
72875 2004-01-20  Bruno Haible  <bruno@clisp.org>
72876
72877         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72878
72879 2004-01-20  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/eealloc.h: New file.
72882
72883 2004-01-20  Bruno Haible  <bruno@clisp.org>
72884
72885         * lib/binary-io.h: Avoid warnings on Cygwin.
72886
72887 2004-01-20  Bruno Haible  <bruno@clisp.org>
72888
72889         * lib/allocsa.h: New file, from GNU gettext.
72890         * lib/allocsa.c: New file, from GNU gettext.
72891
72892 2004-01-18  Karl Berry  <karl@gnu.org>
72893
72894         * doc/gpl.texi, doc/lgpl.texi: new files.
72895
72896 2004-01-18  Karl Berry  <karl@gnu.org>
72897
72898         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72899         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72900
72901 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72902
72903         Merge from coreutils.
72904
72905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72906         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72907         (gl_DEFAULT_POSIX2_VERSION): Move
72908         the documentation from 'configure' into 'config.hin',
72909         so that 'configure --help' isn't burdened by it and
72910         we don't have to worry about its formatting there.
72911         Reword the documentation so that it's more succinct
72912         and can be run together into a single paragraph.
72913         * m4/same.m4 (gl_SAME): Check for pathconf.
72914
72915 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72916
72917         Merge from coreutils.
72918
72919         * lib/posixver.c: Include posixver.h.
72920
72921         * lib/same.c: Include <stdbool.h>, <limits.h>.
72922         (_POSIX_NAME_MAX): Define if not defined.
72923         (MIN): New macro.
72924         (same_name): If file names are silently truncated, report
72925         that the file names are the same if they are the same after
72926         the silent truncation.
72927
72928         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72929         conversion function.
72930         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72931         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72932         longer needed.
72933
72934 2004-01-15  Jim Meyering  <jim@meyering.net>
72935
72936         Merge from coreutils.
72937
72938         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72939         if no library is required.
72940         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72941         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72942         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72943         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72944         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72945         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72946         value, $ac_cv_search_crypt, if it's "none required".
72947         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72948         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72949         not gl_FUNC_GETLOADAVG.
72950         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72951         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72952
72953 2004-01-15  Jim Meyering  <jim@meyering.net>
72954
72955         Merge from coreutils.
72956
72957         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72958         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72959         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72960
72961         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72962         optional configure-time default.
72963
72964         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72965
72966         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72967
72968 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72969
72970         Merge from coreutils.
72971
72972         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72973         value, $ac_cv_search_nanosleep, if it's "none required".
72974
72975 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72976
72977         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72978         with like-named macro in fnmatch.c.
72979         (EXT): Use an internal constant instead.
72980
72981         Merge fnmatch patches from glibc.
72982         * lib/fnmatch.c (mbsinit): Remove define.
72983         Add libc_hidden_ver (__fnmatch, fnmatch).
72984         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72985         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72986
72987 2004-01-14  Karl Berry  <karl@gnu.org>
72988
72989         * config/install-sh: update from automake.
72990
72991 2004-01-13  Karl Berry  <karl@gnu.org>
72992
72993         * config/install-sh: update from automake.
72994
72995 2004-01-09  Karl Berry  <karl@gnu.org>
72996
72997         * config/install-sh: update from automake.
72998
72999 2004-01-05  Karl Berry  <karl@gnu.org>
73000
73001         * config/config.{sub,guess}: update from config.
73002
73003 2003-12-31  Karl Berry  <karl@gnu.org>
73004
73005         * config/depcomp: update from automake.
73006
73007 2003-12-14  Karl Berry  <karl@gnu.org>
73008
73009         * lib/config.charset: update from gettext-runtime.
73010
73011 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73012
73013         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73014         Bug reported by Alfred M. Szmidt.
73015
73016 2003-12-03  Bruno Haible  <bruno@clisp.org>
73017
73018         * m4/gettext.m4: Upgrade from gettext-0.13.
73019         * m4/po.m4: Upgrade from gettext-0.13.
73020         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73021         * m4/intmax.m4: New file, from gettext-0.13.
73022         * m4/printf-posix.m4: New file, from gettext-0.13.
73023
73024 2003-11-29  Karl Berry  <karl@gnu.org>
73025
73026         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73027
73028 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73029             Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/printf-parse.h: Don't include sys/types.h.
73032         (ARG_NONE): New macro.
73033         (char_directive): Change type of *arg_index fields to size_t.
73034         * lib/printf-parse.c: Don't include sys/types.h.
73035         (SSIZE_MAX): Remove macro.
73036         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73037         Remove unnecessary overflow check.
73038         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73039         fields.
73040
73041 2003-11-25  Bruno Haible  <bruno@clisp.org>
73042
73043         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73044
73045 2003-11-25  Bruno Haible  <bruno@clisp.org>
73046
73047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73048         gt_TYPE_SSIZE_T.
73049
73050 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73051
73052         * modules/alloca: Remove dependency on xalloc.
73053
73054 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73055
73056         * lib/alloca.c: Remove dependency on xalloc module.
73057         (xalloc_die): Remove.
73058         (memory_full) [!defined emacs]: New macro.
73059         [!defined emacs]: Don't include xalloc.h.
73060         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73061         address arithmetic overflows.  Change datatypes a bit to avoid
73062         unnecessary casts.
73063
73064 2003-11-22  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73067         s/size/size_t/.
73068
73069 2003-11-21  Karl Berry  <karl@gnu.org>
73070
73071         * config/config.{sub,guess}: update from config.
73072
73073 2003-11-18  Karl Berry  <karl@gnu.org>
73074
73075         * config/config.{sub,guess}: update from config.
73076
73077         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73078
73079 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73080
73081         * README: Mention that S+T cannot overflow if S is the size of
73082         an existing object and T is sufficiently small.
73083
73084 2003-11-17  Jim Meyering  <jim@meyering.net>
73085
73086         On systems without utime and without a utimes function capable of
73087         dealing with a NULL struct utimbuf* argument, this utime replacement
73088         could -- in unusual circumstances -- leak a file descriptor.
73089         * lib/utime.c: Include <unistd.h> and <errno.h>.
73090         (utime_null): Be sure to close `fd' and to preserve errno.
73091         Reported by Geoff Collyer via Arnold Robbins.
73092
73093 2003-11-17  Bruno Haible  <bruno@clisp.org>
73094
73095         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73096         (Depends-on): Add xsize.
73097
73098 2003-11-17  Bruno Haible  <bruno@clisp.org>
73099
73100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73101
73102 2003-11-17  Bruno Haible  <bruno@clisp.org>
73103
73104         * lib/vasnprintf.c (alloca): Remove fallback definition.
73105         (freea): Remove definition.
73106         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73107         Reported by Paul Eggert.
73108
73109 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73110             Bruno Haible  <bruno@clisp.org>
73111
73112         Protect against address arithmetic overflow.
73113         * lib/printf-args.h: Include stddef.h.
73114         (arguments): Change type of field 'count' to size_t.
73115         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73116         'unsigned int' where appropriate.
73117         * lib/printf-parse.h: Include sys/types.h.
73118         (char_directive): Change type of *arg_index fields to ssize_t.
73119         (char_directives): Change type of fields 'count', max_*_length to
73120         size_t.
73121         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73122         (SSIZE_MAX): Define fallback value.
73123         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73124         instead of 'int' where appropriate. Check a_allocated, d_allocated
73125         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73126         * lib/vasnprintf.c: Include xsize.h.
73127         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73128         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73129         overflow. Avoid wraparound when converting a width or precision from
73130         decimal to binary.
73131
73132 2003-11-16  Bruno Haible  <bruno@clisp.org>
73133
73134         Update from GNU gettext.
73135         * lib/printf-parse.c: Generalize to it can be compiled for wide
73136         strings.
73137         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73138         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73139         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73140         SNPRINTF): New macros.
73141         Don't include <alloca.h> if the file is used inside libintl.
73142         (local_wcslen): New function, for Solaris 2.5.1.
73143         (VASNPRINTF): Use it instead of wcslen.
73144
73145 2003-11-16  Bruno Haible  <bruno@clisp.org>
73146
73147         * lib/xsize.h (xmax): New function.
73148         (xsum, xsum3, xsum4): Declare as "pure" functions.
73149
73150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73151
73152         * modules/xalloc (Files): Undo latest change, since xalloc.h
73153         no longer needs SIZE_MAX or PTRDIFF_MAX.
73154
73155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73156
73157         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73158         gl_PTRDIFF_MAX.
73159
73160 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73161
73162         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73163         "return", to pacify some unknown compiler.  Problem reported
73164         by Joerg Schilling.
73165
73166 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73167
73168         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73169         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73170         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73171         heuristic is just as accurate as far as we know, and it removes a
73172         dependency on size_max.m4 and ptrdiff_max.m4.
73173
73174 2003-11-11  Bruno Haible  <bruno@clisp.org>
73175
73176         * modules/xsize (Files): Add m4/size_max.m4.
73177         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73178
73179 2003-11-11  Bruno Haible  <bruno@clisp.org>
73180
73181         * m4/size_max.m4: New file.
73182         * m4/ptrdiff_max.m4: New file.
73183         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73185         (gl_XALLOC): Invoke it.
73186
73187 2003-11-11  Bruno Haible  <bruno@clisp.org>
73188
73189         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73190         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73191         defined.
73192
73193 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73194
73195         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73196         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73197         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73198         From Bruno Haible.
73199         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73200         not (size_t) -1, since it's defined here.
73201
73202 2003-11-09  Karl Berry  <karl@gnu.org>
73203
73204         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73205
73206 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73207
73208         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73209         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73210         Reject sizes of exactly SIZE_MAX bytes.
73211         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73212         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73213
73214 2003-11-05  Bruno Haible  <bruno@clisp.org>
73215
73216         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73217         SIZE_MAX defined in <limits.h> on Solaris.
73218
73219 2003-11-04  Jim Meyering  <jim@meyering.net>
73220
73221         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73222         variable names, rather than @VAR@.
73223         * modules/poll: Likewise.
73224
73225 2003-11-04  Bruno Haible  <bruno@clisp.org>
73226
73227         * modules/xsize: New file.
73228         * modules/linebreak: Depend on xsize.
73229         * MODULES.html.sh (func_all_modules): Add xsize.
73230
73231 2003-11-04  Bruno Haible  <bruno@clisp.org>
73232
73233         * m4/xsize.m4: New file.
73234
73235 2003-11-04  Bruno Haible  <bruno@clisp.org>
73236
73237         * lib/xsize.h: New file.
73238         * lib/linebreak.c: Include xsize.h.
73239         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73240         argument for overflow.
73241         Suggested by Paul Eggert.
73242
73243 2003-11-03  Karl Berry  <karl@gnu.org>
73244
73245         * config/config.{guess,sub}: update from config.
73246
73247 2003-11-03  Jim Meyering  <jim@meyering.net>
73248
73249         * modules/userspec (lib_SOURCES): Add userspec.h.
73250         (Include): Add "userspec.h".
73251         Improve description.
73252
73253 2003-11-03  Jim Meyering  <jim@meyering.net>
73254
73255         * lib/userspec.c: Include "userspec.h".
73256         * lib/userspec.h: New file.
73257
73258 2003-11-03  Bruno Haible  <bruno@clisp.org>
73259
73260         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73261
73262 2003-11-03  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73265         available, to avoid (extremely rare) race condition.
73266         Suggested by Paul Eggert.
73267
73268 2003-11-02  Karl Berry  <karl@gnu.org>
73269
73270         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73271
73272 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73273
73274         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73275         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73276         (read_filesystem_list): Set and use me_type_malloced.
73277         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73278         whatever the type happens to be), for brevity and consistency.
73279         Check for size calculation overflow on Alphas running OSF/1.
73280
73281 2003-10-31  Jim Meyering  <jim@meyering.net>
73282
73283         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73284
73285         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73286
73287 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73288             Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73291         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73292
73293 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73296         netbsd*-gnu*.  Suggested by Robert Millan.
73297
73298 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73299
73300         * modules/group-member: Depend on stdbool.
73301
73302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73303
73304         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73305
73306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73307
73308         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73309         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73310         after the 'gnu' in these cases.  This fixes some bugs in the
73311         previous change, and is based on suggestions by Robert Millan.
73312
73313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73314
73315         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73316         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73317         no longer needed.
73318         * lib/quotearg.c (quotearg_n_options): Use it.
73319         * lib/group-member.c: Include <stdbool.h>.
73320         (free_group_info): Arg is now const *; don't free arg.
73321         (get_group_info): Now returns bool and accepts struct group_info *,
73322         rather than returning a malloc'ed struct group_info *.
73323         All uses changed.  Check for overflow in internal size calculation.
73324
73325         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73326         rather than xmalloc/xrealloc.
73327         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73328         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73329         conformance bug: the old code used a pointer after freeing the
73330         storage that it addressed.
73331         * lib/hash.c (hash_initialize): Simplify the code by using
73332         xalloc_oversized rather than doing it by hand.
73333         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73334         the buffer preserved.  Use free and xmalloc instead.
73335         * lib/quotearg.c (quotearg_n_options): Likewise.
73336         Use a simpler test for size overflow.  Don't use xalloc_oversized
73337         because unsigned int might be wider than size_t (!); this suggests
73338         that we should switch from unsigned int to size_t for slot numbers.
73339
73340 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73341
73342         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73343         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73344         NetBSD kernels.  Requested by Richard Stallman.
73345
73346 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73347
73348         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73349         to allocate the returned structure.  Do not allocate a subarray,
73350         as x2nrealloc will do that.
73351         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73352         instead of xnrealloc.
73353         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73354
73355 2003-10-27  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/stdbool_.h: Better support for BeOS.
73358
73359 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73360
73361         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73362         now uses inline.
73363
73364 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73365
73366         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73367         callers that want to do their own size-overflow checking.  Include
73368         <stdbool.h>, since xalloc_oversized returns bool.
73369         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73370         to use xalloc_oversized.
73371
73372         Add two functions x2realloc, x2nrealloc, for programs that grow
73373         arrays dynamically by doubling their sizes.
73374         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73375         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73376         New functions.
73377
73378         Port to C99 semantics for 'inline' of external functions.
73379         Bug reported by Bruno Haible.
73380         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73381         with the old contents of xnmalloc.
73382         (xnmalloc, xmalloc): Use it.
73383         (xnrealloc_inline): New static inline function,
73384         with the old contents of xnrealloc.
73385         (xnrealloc, xrealloc): Use it.
73386
73387         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73388         that.
73389
73390 2003-10-26  Karl Berry  <karl@gnu.org>
73391
73392         * config/srclist.txt (COPYING.DOC): no longer available from
73393         /gd/gnuorg; don't know where the ultimate source is.
73394
73395 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73396
73397         Fix several address-calculation bugs in the hash modules,
73398         plus some minor code cleanup.
73399
73400         * lib/hash.h: Include <stdbool.h>, for bool.
73401         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73402         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73403         hash_get_n_entries, hash_get_max_bucket_length,
73404         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73405         hash_rehash): Use size_t rather than unsigned.
73406         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73407         hash_get_n_buckets_used, hash_get_n_entries,
73408         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73409         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73410         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73411         Likewise.
73412         (SIZE_MAX): Define if not defined.
73413         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73414         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73415         hash_print):
73416         Use const * when possible.
73417         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73418         (check_tuning): Fix bug: if tuning parameters were very close to
73419         0 or 1, rounding errors could have caused subscript violations.
73420         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73421         (hash_initialize): Add 'fail:' label
73422         to free table and return NULL, and use it to simplify code.
73423         Use calloc rather than clearing the storage ourself.
73424         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73425         buffer size calculations.
73426         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73427         Include <stddef.h>, for size_t.
73428         * lib/hash-pjw.c (hash_pjw): Likewise.
73429         Switch to method described by Bruno Haible.
73430         Include <limits.h>, for CHAR_BIT.
73431         (SIZE_BITS): New macro.
73432
73433 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73434
73435         * m4/getline.m4 (AM_FUNC_GETLINE):
73436         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73437         hosts.  Problem reported by Derek Robert Price in
73438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73439         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73440         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73441
73442 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73443
73444         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73445         ceiling the allocation at NMAX bytes rather than silently
73446         discarding input bytes before NMAX is reached.  This makes
73447         a difference only if NMAX exceeds SIZE_MAX / 2.
73448
73449         * lib/obstack.c: Merge from glibc.
73450         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73451         Add libc_hidden_def (_obstack_newchunk).
73452         (_obstack_free) [! defined _LIBC]: Remove.
73453         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73454         a clone of the function body.
73455         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73456         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73457
73458         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73459         glibc.
73460         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73461         arg to memcpy.
73462
73463         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73464         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73465         Don't use lvalue casts, as GCC plans to remove support for them
73466         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73467         was also present in the non-GCC version, indicating that this
73468         code had always been buggy and had never been widely used.
73469         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73470         Use the fast variant of each macro, rather than copying the
73471         definiens of the fast variant; that way, we'll be more likely to
73472         catch future bugs in the fast variants.
73473
73474 2003-10-20  Bruno Haible  <bruno@clisp.org>
73475
73476         * modules/wait-process: New file.
73477         * MODULES.html.sh (func_all_modules): Add wait-process.
73478
73479 2003-10-20  Bruno Haible  <bruno@clisp.org>
73480
73481         * m4/wait-process.m4: New file.
73482
73483 2003-10-20  Bruno Haible  <bruno@clisp.org>
73484
73485         * lib/wait-process.h: New file, from GNU gettext.
73486         * lib/wait-process.c: New file, from GNU gettext.
73487
73488 2003-10-19  Jim Meyering  <jim@meyering.net>
73489
73490         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73491         HPUX 10.20.
73492
73493 2003-10-18  Karl Berry  <karl@gnu.org>
73494
73495         * config/config.guess: update from config.
73496
73497 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73498
73499         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73500         (getgroups): First arg is int, not size_t.
73501         Don't let 'free' mangle errno.
73502
73503 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73504
73505         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73506
73507 2003-10-16  Karl Berry  <karl@gnu.org>
73508
73509         * config/config.{guess,sub}: update from config.
73510
73511 2003-10-16  Jim Meyering  <jim@meyering.net>
73512
73513         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73514         memcpy.
73515
73516 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73517
73518         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73519         (SIZE_MAX): Remove.
73520         (new_exclude, add_exclude_file): Initial size no longer needs to
73521         be a power of 2.
73522         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73523         our own address arithmetic overflow checking.
73524
73525         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73526         (fnmatch): Do not alloca more than 2000 wide characters;
73527         instead, use malloc for large buffers.
73528         Check for address arithmetic overflow, and return -1
73529         with errno set to ENOMEM in that case.
73530         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73531         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73532         instead, return -1.  Check for address arithmetic overflow.
73533
73534 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73535
73536         Handle invalid suffixes and overflow independently, so that
73537         callers can treat them independently as needed.  Fix some bugs in
73538         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73539         suffix for a human-readable blocksize.  The major caller-visible
73540         change is the addition of a new
73541         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73542         that both overflow and suffix chars were found.
73543
73544         * lib/human.c (humblock): Don't check separately for invalid suffix
73545         char; that is xstrtoumax's job (now that its bug is fixed).
73546         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73547         INTMAX_MAX]: New macros.
73548         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73549         TYPE_MAXIMUM): New macros.
73550         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73551         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73552         if overflow occurs, as it's what __strtol does and it's more useful
73553         in practice.
73554         (__xstrtol): If __strtol reports some error other than ERANGE,
73555         reflect it to the caller as LONGINT_INVALID.  If it reports
73556         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73557         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73558         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73559         value.
73560         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73561         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73562         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73563         [defined UINTMAX_MAX]: New macros.
73564
73565 2003-10-14  Bruno Haible  <bruno@clisp.org>
73566
73567         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73568
73569 2003-10-14  Bruno Haible  <bruno@clisp.org>
73570
73571         * m4/sig_atomic_t: New file, from GNU gettext.
73572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73573
73574 2003-10-14  Bruno Haible  <bruno@clisp.org>
73575
73576         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73577         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73578         Also use volatile where needed.
73579
73580 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73581
73582         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73583         Change maintainer from Bruno Haible to 'all'.
73584
73585 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73586
73587         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73588
73589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73590
73591         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73592         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73593         and define in terms of the other primitives.
73594         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73595         (SIZE_MAX): Define if not already defined.
73596         (array_size_overflow): New function.
73597         (xalloc_die): Abort instead of exiting if 'error' returns.
73598         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73599         (xmalloc, xrealloc): Use them.
73600         (xcalloc): Check for address arithmetic overflow.
73601         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73602         a bit faster than strcpy.
73603
73604 2003-10-10  Simon Josefsson  <jas@extundo.com>
73605
73606         * modules/argp (Depends-on): Add restrict and strcase.
73607
73608 2003-10-10  Simon Josefsson  <jas@extundo.com>
73609
73610         * m4/argp.m4: Add AC_C_INLINE.
73611
73612 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73613
73614         Merge getpass from libc, plus a few fixes.
73615
73616         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73617         Include <stdbool.h>.
73618         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73619         __fsetlocking to empty.
73620         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73621         do include <bits/libc-lock.h>.
73622         Do not include <fcntl.h>; not needed.
73623         [_LIBC]: Include <wchar.h>.
73624         (NOTCANCEL_MODE): New macro.
73625         (flockfile, funlockfile) [_LIBC]: New macros.
73626         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73627         [!_LIBC]: New macros.
73628         (call_fclose): New function.
73629         (getpass): Use it.  Save tty stream separately; this simplifies the
73630         code and makes it more reliable if stdin happens to equal stdout.
73631         Invoke __fsetlocking on tty.
73632         Handle thread cancellation if needed.
73633         Namespace cleanup (use __tcgetattr, __getline).
73634         Use bool for Booleans.
73635         [USE_IN_LIBIO]: Handle wide streams.
73636         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73637         stream might go where.
73638
73639         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73640         doesn't have to include <stdio.h> before us.
73641         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73642         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73643         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73644         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73645         if not declared, so that we can use getpass.c code from libc without
73646         rewriting it.
73647         (flockfile, ftrylockfile, funlockfile): New macros.
73648
73649 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73650
73651         * modules/getpass: Depend on stdbool.
73652
73653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73654
73655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73656
73657 2003-10-07  Karl Berry  <karl@gnu.org>
73658
73659         * config/config.{guess,sub}: update from config.
73660
73661 2003-10-06  Jim Meyering  <jim@meyering.net>
73662             Bruno Haible  <bruno@clisp.org>
73663
73664         This lets translators provide better translations for the
73665         "Written by ..." part of --version output.
73666         * lib/version-etc.h: Include stdarg.h.
73667         (version_etc_copyright): Declare as readonly.
73668         (version_etc): Make this function variadic with a NULL-terminated list
73669         of author name strings.
73670         (version_etc_va): New declaration.
73671         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73672         (version_etc_copyright): Declare as readonly.
73673         (version_etc_va): New function. Provide a different translatable string
73674         for each possible number of authors < 10. Abbreviate when there are 10
73675         authors or more.
73676         (version_etc): Make this function variadic. Call version_etc_va.
73677         Suggestion from Gary V. Vaughan.
73678
73679         * lib/long-options.h (parse_long_options): Change prototype: the
73680         authors string is moved to the end and becomes variadic.
73681         * lib/long-options.c: Include stdarg.h.
73682         (parse_long_options): Make this function variadic, too.
73683         Call version_etc_va, not version_etc.
73684
73685 2003-10-06  Bruno Haible  <bruno@clisp.org>
73686
73687         * modules/version-etc-2: Remove file.
73688         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73689
73690 2003-10-06  Bruno Haible  <bruno@clisp.org>
73691
73692         * modules/fatal-signal: New file.
73693         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73694
73695 2003-10-06  Bruno Haible  <bruno@clisp.org>
73696
73697         * m4/fatal-signal.m4: New file.
73698         * m4/signalblocking.m4: New file, from GNU gettext.
73699
73700 2003-10-06  Bruno Haible  <bruno@clisp.org>
73701
73702         * lib/version-etc-2.h: Remove file.
73703         * lib/version-etc-2.c: Remove file.
73704
73705 2003-10-06  Bruno Haible  <bruno@clisp.org>
73706
73707         * lib/fatal-signal.h: New file, from GNU gettext.
73708         * lib/fatal-signal.c: New file, from GNU gettext.
73709
73710 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73711
73712         * README: Rework advice for preventing empty .o files.
73713         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73714         not <sys/types.h>.
73715
73716 2003-10-04  Karl Berry  <karl@gnu.org>
73717
73718         * lib/argp*: update from libc.
73719
73720 2003-10-04  Karl Berry  <karl@gnu.org>
73721
73722         * config/config.{guess,sub}: update from config.
73723
73724 2003-10-02  Bruno Haible  <bruno@clisp.org>
73725
73726         * modules/lchown (Include): Add lchown.h.
73727         * modules/time_r (Include): Use "..." syntax.
73728         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73729
73730 2003-10-01  Simon Josefsson  <jas@extundo.com>
73731
73732         * MODULES.html.sh (func_all_modules): Move gethostname from section
73733         'based on' to section 'lacking' POSIX:2001.
73734
73735 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73736
73737         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73738         to output mode on the same stream.
73739
73740 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73741
73742         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73743         Fix arg typo in previous patch.
73744
73745 2003-09-28  Jim Meyering  <jim@meyering.net>
73746
73747         * lib/error.c: Correct cpp indentation.
73748
73749 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73750
73751         * modules/free: New file.
73752
73753 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73754
73755         * m4/free.m4: New file.
73756
73757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73758
73759         * lib/minmax.h (MIN, MAX)
73760         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73761         Omit the special code that used __typeof__, since we worry that
73762         it could be more trouble than it's worth.  See:
73763         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73764         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73765
73766         * lib/free.c: New file.
73767
73768 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73769
73770         Trivial fixes to Makefile.am parts of module listings.
73771         * modules/strstr: Append strstr.h to lib_SOURCES.
73772         * modules/strcase: Likewise, for strcase.h.
73773
73774 2003-09-27  Karl Berry  <karl@gnu.org>
73775
73776         * config/mkinstalldirs: update from automake.
73777
73778 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73779
73780         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73781         (error_tail): Do not loop, reallocating temporary buffer, since
73782         the output cannot contain more wide characters than the input
73783         contains bytes, the size must be big enough already.  This avoids
73784         one potential size overflow calculation.  Check for size overflow
73785         when calculating temporary buffer size.  Free temporary buffer
73786         when done, if it was allocated with malloc; this plugs a memory
73787         leak.  Remove casts from void * to pointers, that are no longer
73788         needed now that we're assuming C89 or better.
73789
73790         Merge error changes from glibc.
73791
73792         * lib/error.c, error.h: Update copyright notice header to match glibc.
73793         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73794         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73795         Disable cancellation while printing error.
73796         * lib/error.h: Prepend __ to parameter names.
73797
73798 2003-09-26  Jim Meyering  <jim@meyering.net>
73799
73800         * lib/error.c (error_tail): Move some declarations
73801         into inner scope where the local variables are used.
73802
73803 2003-09-26  Bruno Haible  <bruno@clisp.org>
73804
73805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73806         stpncpy().
73807         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73808
73809 2003-09-26  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73812         (stpncpy): Define as alias for gnu_stpncpy.
73813         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73814
73815 2003-09-25  Simon Josefsson  <jas@extundo.com>
73816
73817         * lib/xgetdomainname.h: New file.
73818         * lib/xgetdomainname.c: New file.
73819
73820 2003-09-25  Simon Josefsson  <jas@extundo.com>
73821             Bruno Haible  <bruno@clisp.org>
73822
73823         * modules/getdomainname: New file.
73824         * modules/xgetdomainname: New file.
73825         * MODULES.html.sh (func_all_modules): Add getdomainname,
73826         xgetdomainname.
73827
73828 2003-09-25  Simon Josefsson  <jas@extundo.com>
73829             Bruno Haible  <bruno@clisp.org>
73830
73831         * m4/getdomainname.m4: New file.
73832
73833 2003-09-25  Simon Josefsson  <jas@extundo.com>
73834             Bruno Haible  <bruno@clisp.org>
73835
73836         * lib/getdomainname.h: New file.
73837         * lib/getdomainname.c: New file.
73838
73839 2003-09-25  Karl Berry  <karl@gnu.org>
73840
73841         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73842
73843 2003-09-25  Karl Berry  <karl@gnu.org>
73844
73845         * config/install-sh: update from automake.
73846
73847 2003-09-25  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/version-etc-2: New file, from modules/version-etc with
73850         modifications.
73851         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73852
73853 2003-09-25  Bruno Haible  <bruno@clisp.org>
73854
73855         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73856         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73857
73858 2003-09-24  Simon Josefsson  <jas@extundo.com>
73859
73860         * modules/xgethostname: Add xgethostname.h.
73861
73862 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73863
73864         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73865         the buffer associated with the argument.  Bug reported by
73866         Simon Josefsson.
73867
73868 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73869
73870         * README: Document assumptions that 'int' is at least 32 bits
73871         wide, that integer arithmetic is 2's complement without overflow,
73872         that there are no holes in integer values, that adding sizes of
73873         two nonoverlapping objects can't overflow, and that all-bits-zero
73874         yields scalar zero.  Fix spelling and capitalization typos.
73875
73876 2003-09-19  Karl Berry  <karl@gnu.org>
73877
73878         * lib/argp.h: update from libc.
73879
73880 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73881
73882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73883         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73884         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73885
73886 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73887
73888         * gnulib-tool: Use "test -h", not "test -L", for portability
73889         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73890         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73891         (sed_extract_prog): Issue s commands one-by-one, rather than
73892         using \| in one s command.
73893
73894 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73895
73896         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73897         input error, instead of returning NULL the next time we are called
73898         (and therefore losing track of errno).
73899
73900 2003-09-16  Bruno Haible  <bruno@clisp.org>
73901
73902         * gnulib-tool (func_create_testdir): Warn about duplicated
73903         dependencies.
73904
73905 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73906
73907         * modules/argmatch, modules/fatal, modules/obstack,
73908         modules/xalloc, modules/xgethostname: Sort dependencies by
73909         importance, not alphabetically.
73910
73911 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73912
73913         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73914         fails, so that the caller gets the proper errno.
73915
73916         * lib/readutmp.c (read_utmp): Likewise.
73917         Check for fstat error.  Close stream and free storage
73918         when failing.
73919
73920 2003-09-14  Karl Berry  <karl@gnu.org>
73921
73922         * config/srclist.txt (strdup.c): disable for c89 changes.
73923
73924 2003-09-14  Jim Meyering  <jim@meyering.net>
73925
73926         * lib/getloadavg.c: Correct cpp indentation.
73927         * lib/strdup.c: Likewise.
73928         * lib/vasnprintf.c: Likewise.
73929
73930 2003-09-14  Bruno Haible  <bruno@clisp.org>
73931
73932         * modules/fwriteerror: New file.
73933         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73934
73935 2003-09-14  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/fwriteerror.h: New file.
73938         * lib/fwriteerror.c: New file.
73939
73940 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73941
73942         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73943         modules/xgethostname, modules/xalloc: Depend on exit.
73944
73945 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73946
73947         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73948
73949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73950         and AC_MINIX, too, so that their extensions are available.
73951
73952         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73953         This macro has been superseded by gl_BACKUPFILE.
73954
73955         More patches to assume C89 or better.
73956
73957         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73958
73959         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73960         unconditionally.
73961         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73962         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73963         Include <string.h>, <stdlib.h> unconditionally.
73964         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73965         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73966         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73967         headers or for string.h.
73968         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73969         or strtoul.
73970
73971         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73972         headers.
73973         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73974         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73975         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73976         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73977         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73979         memcpy, memset.
73980         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73981         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73982         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73983         strtol.
73984         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73985         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73987         strtoul.
73988
73989 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73990
73991         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73992         * lib/obstack.c [!defined _LIBC]: Likewise.
73993         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73994         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73995         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73996
73997         More changes to assume C89 or better.
73998
73999         * lib/error.c (error_tail): Assume vprintf.
74000
74001         * lib/argmatch.c (getenv): Remove decl.
74002         * lib/progreloc.c (get_full_program_name): Define via prototype.
74003         * lib/setenv.c (clearenv): Likewise.
74004         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74005         needed.
74006         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74007         (malloc, memcpy): Remove decls.
74008         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74009         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74010         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74011         (memcpy): Remove macro.
74012         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74013         (__P): Remove.  All uses removed.
74014         (PTR): Remove.  All uses changed to void *.
74015         (CHAR_BIT, NULL): Remove.
74016         (spaces, zeros, memset_space, memset_zero)
74017         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74018         Remove.
74019         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74020         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74021         Define with prototype.
74022         Remove now-unnecessary prototype decl.
74023         (extra_args_spec): Assume ANSI C.  All uses changed.
74024         (extra_args_spec_iso): Remove.
74025         (my_strftime, emacs_strftimeu): Define via prototype.
74026         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74027         unconditionally.
74028         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74029         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74030         (strtoul, strtol): Remove decls.
74031         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74032         LONG_MAX): Remove.
74033         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74034         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74035         (LOCALE_PARAM_PROTO): New macro.
74036         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74037         (INTERNAL (strtol), strtol): Define with a prototype.
74038         (PARAMS): Remove.  All uses removed.
74039         * lib/tempname.c: Include <string.h> unconditionally.
74040         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74041         * lib/xgethostname.c (main): Define with a prototype.
74042         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74043         Include <stdlib.h> unconditionally.
74044         (calloc, malloc, realloc, free): Remove decls.
74045         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74046         Include <stdlib.h> unconditionally.  Sort include file names.
74047         (strtod): Remove.
74048         (xstrtod): Define with a prototype.
74049         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74050         (strtol, strtoul): Remove decls.
74051
74052 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74053
74054         More patches to assume C89 or better.
74055         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74056         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74057         string.h, memchr, STDC_HEADERS.
74058
74059 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74060
74061         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74062         Include <stdlib.h>, <string.h> unconditionally.
74063         Remove now-unnecessary cast to char *.
74064         * lib/strnlen.c: Include <string.h> unconditionally.
74065         * lib/yesno.c (yesno): Define with a prototype.
74066
74067 2003-09-11  Bruno Haible  <bruno@clisp.org>
74068
74069         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74070
74071 2003-09-10  Jim Meyering  <jim@meyering.net>
74072
74073         * lib/error.c: Correct indentation of cpp directives.
74074
74075 2003-09-10  Bruno Haible  <bruno@clisp.org>
74076
74077         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74078         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74079         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74080         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74081         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74082         <stdlib.h> and <string.h> checks.
74083         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74084         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74085
74086 2003-09-10  Bruno Haible  <bruno@clisp.org>
74087
74088         * lib/strcspn.c: Include <string.h> unconditionally.
74089         * lib/strpbrk.c: Include <string.h> unconditionally.
74090         * lib/strstr.c: Include <string.h> unconditionally.
74091         * lib/unicodeio.c: Include <string.h> unconditionally.
74092         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74093         * lib/unsetenv.c: Likewise.
74094         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74095         * lib/yesno.c: Include <stdlib.h> unconditionally.
74096         (rpmatch): Add prototype.
74097
74098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74099
74100         More patches to assume C89 or better.
74101         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74102         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74103         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74104         or for string.h.
74105         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74106         stdlib.h.
74107         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74108         C headers.
74109         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74110         string.h.
74111         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74112         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74113         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74114         or for string.h.
74115         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74116         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74117         C headers.
74118         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74119         memcpy.
74120         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74121         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74122         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74123         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74124         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74125         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74126         string.h, free.
74127         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74128         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74129         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74130         C headers, or for string.h.
74131         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74132         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74133         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74134         headers, memory.h, stdlib.h, string.h, strings.h.
74135         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74136         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74137         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74138         strchr.
74139         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74140         headers, memory.h, string.h.
74141         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74142         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74143         free.
74144         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74145         headers.
74146         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74147         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74148         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74149         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74150         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74151
74152 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74153
74154         More K&R removal.
74155
74156         * lib/acosl.c (main): Use a prototype.
74157         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74158         tanl.c: Likewise.
74159
74160         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74161
74162         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74163         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74164         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74165         with a prototype.
74166         * lib/getopt.c (const): Remove macro.
74167         Include <string.h> unconditionally.
74168         (my_index): Remove; all uses changed to strchr.
74169         (strlen): Remove decl.
74170         (exchange): Remove forward decl; no longer needed.
74171         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74172         Define with prototype.
74173         * lib/getopt1.c (const): Remove macro.
74174         (getopt_long, getopt_long_only, main): Define with prototype.
74175
74176         * lib/getugroups.c: Include <string.h> unconditionally.
74177
74178         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74179         (getusershell, setusershell, endusershell, readname, main):
74180         Define with prototypes.
74181
74182         * lib/group-member.c: Include group-member.h first.
74183         Include <stdlib.h> unconditionally.
74184
74185         * lib/hard-locale.c: Include hard-locale.h first.
74186         Include <stdlib.h>, <string.h> unconditionally.
74187
74188         * lib/hash.c (free, malloc): Remove decls.
74189         Include <stdlib.h> unconditionally.
74190
74191         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74192         (getenv): Do not declare.
74193
74194         * lib/idcache.c: Include <string.h> unconditionally.
74195
74196         * lib/long-options.c: Include long-options.h first, to test interface.
74197         Include <stdlib.h> unconditionally.
74198
74199         * lib/makepath.c: Include makepath.h first, to test interface.
74200         Include <stdlib.h> and <string.h> unconditionally.
74201
74202         * lib/linebuffer.c: Include <stdlib.h>.
74203         (free): Remove decl.
74204
74205         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74206         stddef.h. rpl_malloc returns void *, not char *.
74207         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74208         prototype.
74209
74210         * lib/md5.h: Include <limits.h> unconditionally.
74211         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74212         (__P): Remove; all uses removed.
74213         * lib/md5.c: Include "md5.h" first.
74214         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74215         md5_buffer, md5_process_bytes, md5_process_block):
74216         Define with prototypes.
74217         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74218         * lib/sha.c: Include "sha.h" first.
74219         Include <stdlib.h>, <string.h> unconditionally.
74220
74221         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74222         * lib/memcmp.c (__ptr_t): Likewise.
74223         * lib/memrchr.c (__ptr_t): Likewise.
74224         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74225         Include <string.h> unconditionally.
74226         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74227         * lib/memchr.c: Include <stdlib.h> unconditionally.
74228         * lib/memchr.c (LONG_MAX): Remove.
74229         * lib/memrchr.c (LONG_MAX): Likewise.
74230         * lib/memchr.c (__memchr): Define via a prototype.
74231         * lib/memrchr.c (__memrchr): Likewise.
74232         * lib/memcmp.c (__P): Remove, and remove all uses.
74233         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74234         Remove forward decls; no longer needed.
74235         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74236         Use types required by C89 in prototype.
74237
74238         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74239         * lib/savedir.c: Likewise.
74240         * lib/mkdir.c (free): Remove decl.
74241         * lib/rmdir.c (rmdir): Define with a prototype.
74242         * lib/savedir.c: Include savedir.h first, to test interface.
74243
74244         * lib/mktime.c (STDC_HEADERS): Remove.
74245         Include <stdlib.h>, <string.h> unconditionally.
74246
74247         * lib/modechange.c: Include <stdlib.h> unconditionally.
74248         (malloc): Remove decl.
74249
74250         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74251         (free): Remove decl.
74252
74253         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74254         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74255         (This type really should be intptr_t, but that's a C99ism.)
74256         (_obstack_memcpy): Remove: all uses changed to memcpy.
74257         Include <string.h> unconditionally.
74258         (struct obstack): Assume __STDC__ for types of members
74259         chunkfun, freefun, extra_arg.
74260         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74261         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74262         obstack_begin, obstack_specify_allocation,
74263         obstack_specify_allocation_with_arg, obstack_chunkfun,
74264         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74265         Remove unprototyped decls and the macros that use them.
74266         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74267         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74268         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74269         (defined __STDC__ && __STDC__)]:
74270         Remove nonprototyped code.
74271         Include <stdlib.h> unconditionally.
74272         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74273         _obstack_allocated_p, _obstack_free, obstack_free,
74274         _obstack_memory_used, print_and_abort):
74275         Define using prototypes.
74276         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74277         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74278         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74279         obstack_next_free, obstack_object_size, obstack_room) [0]:
74280         Remove unused, unprototyped code.
74281
74282         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74283
74284         * lib/physmem.c (physmem_total, physmem_available, main): Define
74285         with prototypes.
74286
74287         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74288         (main): Define with a prototype.
74289
74290         * lib/posixver.c (getenv): Remove decl.
74291
74292         * lib/putenv.c (malloc): Returns void *, not char *.
74293         Include <string.h> unconditionally.
74294         (strchr, memcpy, NULL): Do not define.
74295
74296         * lib/readtokens.c: Include readtokens.h first, to test interface.
74297         Include <stdlib.h>, <string.h> unconditionally.
74298         (init_tokenbuffer): Define with a prototype.
74299
74300         * lib/regex.c (PARAMS): Remove.  All uses removed.
74301         All uses of _RE_ARGS removed, too.
74302         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74303         unconditionally.
74304         (bzero): Assume memset exists.
74305         (memcmp, memcpy, NULL): Remove.
74306         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74307         char, or assignments to local vars of type signed char.
74308         (init_syntax_once, PREFIX(extract_number_and_incr),
74309         PREFIX(print_partial_compiled_pattern),
74310         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74311         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74312         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74313         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74314         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74315         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74316         wcs_compile_range, byte_compile_range, truncate_wchar,
74317         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74318         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74319         count_mbs_length, wcs_re_match_2_internal,
74320         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74321         PREFIX(alt_match_null_string_p),
74322         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74323         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74324         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74325         now-unnecessary declaration, if any.
74326         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74327         regcomp, regexec):
74328         Remove now-unnecessary casts among pointer types.
74329         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74330
74331         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74332         (free): Remove decl.
74333
74334         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74335
74336         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74337         (free): Remove decl.
74338
74339         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74340         * lib/xgetcwd.c: Likewise.
74341
74342         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74343         (free): Remove decl.
74344
74345         * lib/strchrnul.c (strchrnul): Define with a prototype.
74346         Fix bug: c_in was not converted to char before searching.
74347
74348         The following changes are not K&R related:
74349
74350         * lib/group-member.h: Include <sys/types.h>, so that this file is
74351         self-contained.
74352         * lib/makepath.h: Likewise.
74353
74354         * lib/getusershell.c (readname, default_index, line_size, readname):
74355         Use size_t, not int, for sizes.
74356         (readname): If the size overflows, report an error instead of
74357         looping forever.
74358
74359 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74360
74361         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74362         libc.
74363
74364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74365
74366         * README: New section: portability guidelines.
74367
74368 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74369
74370         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74371         C89 spec.
74372
74373 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74374
74375         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74376
74377 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74378
74379         Assume C89 or better; remove K&R cruft.
74380         A few of these changes were first proposed by Derek Robert Price
74381         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74382
74383         * lib/addext.c: Include <string.h> unconditionally.
74384         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74385         Don't declare getenv or malloc.
74386
74387         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74388         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74389         (NULL): Remove.
74390         (find_stack_direction, alloca): Use prototypes.
74391
74392         * lib/atexit.c (atexit): Define using a prototype.
74393
74394         * lib/basename.c, dirname.c, stripslash.c:
74395         Include <string.h> unconditionally.
74396
74397         * lib/bcopy.c: Include <stddef.h>.
74398         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74399
74400         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74401
74402         * lib/error.h (error, error_at_line, error_print_progname)
74403         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74404         * lib/error.c: Include error.h first, to check interface.
74405         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74406         (VA_START): Remove; all uses changeed to va_start.
74407         (exit, strerror): Remove decls.
74408         (error_print_progname): Prototype uncondionally.
74409         Don't include <errno.h>; no longer needed.
74410         (private_strerror): Remove.
74411         (error_tail): Always define.
74412         (error, error_at_line): Assume C89 or better; always use prototypes.
74413         * lib/fatal.c: Include "fatal.h" first, to test interface.
74414         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74415         (VA_START): Remove; all uses changed to va_start.
74416         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74417         this case.
74418         (exit): Remove decl.
74419         (fatal): Prototype unconditionally.  Assume va_start works.
74420         Abort at end, to pacify gcc.
74421
74422         * lib/euidaccess.c (main): Define with a prototype.
74423
74424         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74425
74426         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74427
74428         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74429         prototypes.
74430         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74431         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74432         (getenv): Remove decl.
74433         (fnmatch): Define using a prototype.
74434         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74435         (FCT): Define using a prototype.
74436
74437         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74438
74439         * lib/gethostname.c: Include <stddef.h>.
74440         (gethostname): Define with prototype.  Length is size_t, not int.
74441
74442 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74443
74444         Assume C89 or better; remove K&R cruft.
74445         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74446         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74447         string.h, getenv, malloc.
74448         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74449         headers.
74450         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74451         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74452         do not check for strerror.
74453         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74454         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74455         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74456         do not check for doprnt or vprintf.
74457         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74458         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74459
74460 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74461
74462         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74463         getversion.c should have been removed then, but was accidentally
74464         preserved.
74465
74466         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74467         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74468
74469 2003-09-08  Karl Berry  <karl@gnu.org>
74470
74471         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74472                 config, forget about prep.
74473
74474         * config/depcomp, missing: update from automake.
74475
74476 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74477
74478         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74480
74481 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74482
74483         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74484         copy_tm_result.  Bug reported by Simon Josefsson in
74485         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74486
74487 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74488
74489         * m4/time_r.m4: New file.
74490         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74492         is. Check for timegm declaration.
74493         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74494         Do not check for gmtime_r.
74495         Replace mktime if __mktime_internal does not exist and if mktime
74496         hasn't been replaced already.
74497
74498 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74499
74500         * lib/time_r.c, lib/time_r.h: New files.
74501
74502         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74503         __localtime_r.
74504         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74505         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74506
74507         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74508         __gmtime_r.
74509         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74510         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74511         Include <time_r.h>.
74512
74513         * lib/timegm.c: Switch to glibc implementation, with the following
74514         changes:
74515         [defined HAVE_CONFIG_H]: Include <config.h>.
74516         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74517         (__mktime_internal) [!defined _LIBC]: New decl.
74518         (__gmtime_r) [!defined _LIBC]: New macro and function.
74519         (timegm): Use a prototype, since gnulib assumes C89.
74520         Do not bother declaring tmp to be const, as it's not really usefu.
74521         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74522         (timegm): Declare only if HAVE_DECL_TIMEGM.
74523
74524 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74525
74526         * MODULES.html.sh (func_all_modules): Add time_r.
74527         * modules/time_r: New file.
74528         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74529         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74530
74531 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74532
74533         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74534         Bug reported by Lute Kamstra in
74535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74536
74537         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74538         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74539         course with correspondingly smaller numbers for tomorrow and
74540         yesterday.  From Tadayoshi Funaba.  Originally installed into
74541         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74542         coreutils merge?).
74543
74544 2003-08-31  Simon Josefsson  <jas@extundo.com>
74545
74546         * modules/timegm: New file.
74547         * MODULES.html.sh (func_all_modules): Add timegm.
74548
74549 2003-08-31  Simon Josefsson  <jas@extundo.com>
74550
74551         * m4/timegm.m4: New file.
74552
74553 2003-08-31  Simon Josefsson  <jas@extundo.com>
74554
74555         * lib/timegm.h: New file.
74556         * lib/timegm.c: New file.  Based on
74557         wget-1.8.2/src/http.c:mktime_from_utc.
74558
74559 2003-08-31  Karl Berry  <karl@gnu.org>
74560
74561         * lib/argp.h: update from libc.
74562
74563 2003-08-28  Bruno Haible  <bruno@clisp.org>
74564
74565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74566         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74567         followed by '#define fnmatch fnmatch_posix' gives an error.
74568
74569 2003-08-28  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74572         warning on QNX, which defines O_BINARY to 000000.
74573
74574 2003-08-27  Jim Meyering  <jim@meyering.net>
74575
74576         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74577         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74578         would fail after 32.  Reported by Danny Levinson.  Details here:
74579         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74580
74581 2003-08-24  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74584         MSVC7 <stdio.h> is included later.
74585
74586 2003-08-22  Simon Josefsson  <jas@extundo.com>
74587
74588         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74589
74590 2003-08-20  Karl Berry  <karl@gnu.org>
74591
74592         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74593
74594 2003-08-20  Bruno Haible  <bruno@clisp.org>
74595
74596         * modules/progname: New file.
74597         * MODULES.html.sh (func_all_modules): Add progname.
74598
74599 2003-08-20  Bruno Haible  <bruno@clisp.org>
74600
74601         * lib/progname.h: New file, from GNU gettext.
74602         * lib/progname.c: New file, from GNU gettext.
74603         * lib/progreloc.c: New file, from GNU gettext.
74604
74605 2003-08-19  Jim Meyering  <jim@meyering.net>
74606
74607         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74608         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74609
74610 2003-08-19  Bruno Haible  <bruno@clisp.org>
74611
74612         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74613         more.
74614
74615 2003-08-19  Bruno Haible  <bruno@clisp.org>
74616
74617         * lib/xstrdup.c: Assume <string.h> exists.
74618
74619 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74620
74621         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74622         in makefile rules.
74623
74624 2003-08-18  Jim Meyering  <jim@meyering.net>
74625
74626         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74627         * m4/lib-ld.m4: Likewise.
74628
74629 2003-08-18  Jim Meyering  <jim@meyering.net>
74630
74631         * lib/setenv.h: Indent nested cpp directive.
74632         * lib/vasnprintf.c: Remove trailing blanks.
74633
74634 2003-08-17  Simon Josefsson  <jas@extundo.com>
74635
74636         * modules/xstrndup: New file.
74637         * MODULES.html.sh (func_all_modules): Add xstrndup.
74638
74639 2003-08-17  Simon Josefsson  <jas@extundo.com>
74640
74641         * modules/argp: Fix autoconf macro name. Add more dependencies.
74642
74643 2003-08-17  Simon Josefsson  <jas@extundo.com>
74644
74645         * m4/xstrndup.m4: New file.
74646
74647 2003-08-17  Simon Josefsson  <jas@extundo.com>
74648
74649         * m4/argp.m4: New file.
74650
74651 2003-08-17  Simon Josefsson  <jas@extundo.com>
74652             Bruno Haible  <bruno@clisp.org>
74653
74654         * lib/xstrndup.h: New file.
74655         * lib/xstrndup.c: New file.
74656
74657 2003-08-17  Bruno Haible  <bruno@clisp.org>
74658
74659         * modules/strndup (Files, Include): Add lib/strndup.h.
74660
74661 2003-08-17  Bruno Haible  <bruno@clisp.org>
74662
74663         * modules/euidaccess (Files): Add lib/euidaccess.h.
74664
74665 2003-08-17  Bruno Haible  <bruno@clisp.org>
74666
74667         * lib/strndup.h: New file.
74668
74669 2003-08-17  Bruno Haible  <bruno@clisp.org>
74670
74671         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74672         like AC_GNU_SOURCE.
74673         * modules/extensions (configure.ac): Comment out the invocation of
74674         gl_USE_SYSTEM_EXTENSIONS.
74675
74676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74677
74678         Merges from coreutils, etc.
74679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74680         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74681         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74682         fixing a typo.
74683         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74684         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74685
74686 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74687
74688         Document merge from coreutils.
74689         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74690         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74691         * modules/utime: Add m4/utimes-null.m4.
74692
74693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74694
74695         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74696         space, undoing this 2003-08-12 change:
74697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74698
74699 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74700
74701         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74702         strtoul.c from libc, undoing this 2003-08-12 change:
74703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74704
74705 2003-08-16  Jim Meyering  <jim@meyering.net>
74706
74707         Merges from coreutils.
74708         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74709         prefix.  Adjust cache variables similarly.  Create 500 rather than
74710         just 300 files, to exercise bug on Darwin6.5, too.
74711         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74712         $missing_dir.
74713         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74714         AM_SYS_POSIX_TERMIOS.
74715         Reported by mkc@mathdogs.com.
74716         Also change use of $am_cv_sys_posix_termios
74717         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74718         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74719         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74720         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74721         in /proc/mounts until it finds one with matching device number.  This
74722         is unnecessary when the FILE argument *is* a mount point.  No stat call
74723         is necessary in that case.  So, disable the statvfs-testing code on
74724         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74725         as RedHat bug# 84846.
74726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74727         to 1MB, so as not to render systems with no stack size limit (e.g.,
74728         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74729         Include <unistd.h>.  On some systems,
74730         it is required for the definition of _SC_PAGESIZE.
74731
74732 2003-08-16  Jim Meyering  <jim@meyering.net>
74733
74734         Merge from coreutils.
74735         * lib/xstrtoimax.c: #else #if -> #elif.
74736         * lib/xstrtoumax.c: Likewise.
74737
74738 2003-08-16  Jim Meyering  <jim@meyering.net>
74739
74740         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74741         * m4/utimes.m4: Removed.
74742         * m4/utimes-null.m4: Renamed from utimes.m4.
74743
74744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74745         to 1MB, so as not to render systems with no stack size limit (e.g.,
74746         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74747         Include <unistd.h>.  On some systems,
74748         it is required for the definition of _SC_PAGESIZE.
74749
74750 2003-08-16  Jim Meyering  <jim@meyering.net>
74751         and Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         Merges from coreutils, etc.
74754
74755         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74756         using the latest version from cvs.  This avoids problems with #line
74757         directives using a vendor (Sun) compiler.
74758         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74759         Don't set GETGROUPS_LIB here; now it's
74760         done via getgroups.m4's wrapper function.
74761         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74762         rather than just in sh-util/configure.in, so that the
74763         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74764         same.
74765         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74766         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74767         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74768         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74769         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74770         Remove code that is now done by the newly-required macros.
74771         Append $(EXEEXT) to DF_PROG.
74772         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74773         Do not invoke or require the following here,
74774         since prereq.m4 or some gnulib .m4 now does this for us:
74775         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74776         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74777         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74778         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74779         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74780         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74781         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74782         AC_FUNC_OBSTACK.
74783         Do not replace the following functions, as this is now the job
74784         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74785         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74786         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74787         atexit getpass, strdup, getpagesize.
74788         Replace 'raise'.
74789         Do not check for the following functions, as this is now the job
74790         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74791         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74792         setregid.
74793         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74794         Check for sys/sysctl.h.
74795         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74796         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74797         of checking for ssize_t ourselves.
74798
74799         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74800         Require every macro that gnulib/modules/* suggests for us.
74801         (jm_PREREQ_ADDEXT): New macro.
74802         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74803         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74804
74805         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74806         (gl_PHYSMEM): Use it.
74807         Also check for `table' function.
74808         Check for new headers and functions.
74809         Add check for sys/sysmp.h.
74810         With suggestions from Kaveh Ghazi.
74811         Ignore headers that are present but cannot be compiled.  This
74812         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74813         C 5.4.
74814
74815 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74816
74817         Document merge from coreutils.
74818         * modules/userspec: Depend on posixver.
74819         * modules/strftime: Depend on tzset.
74820
74821 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74822
74823         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74824         rather than tab, after '#' in shell-script copyright notices.
74825         Suggested by Bruno Haible.
74826
74827 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74828
74829         * config/srclist-update: Use three spaces, rather than tab, after '#'
74830         in shell-script copyright notices.  Suggested by Bruno Haible.
74831         Remove unnecessary parenthesization in regular expression.
74832
74833 2003-08-15  Jim Meyering  <jim@meyering.net>
74834
74835         Merge from coreutils.
74836         * lib/xgethostname.c: Include <stdlib.h>.
74837         (xghostname): Don't exit for anything other than memory-related
74838         failure; just return NULL.
74839         * lib/userspec.c: Include "posixver.h".
74840         (parse_user_spec): Accept `.' as a separator only
74841         in pre-POSIX-200112 mode.
74842         * lib/strtoimax.c: Use #elif rather than #else #if.
74843         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74844         Remove function, now that we can rely on a working tzset function.
74845         [!_LIBC]: Ensure that the required autoconf test has been run.
74846         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74847         Use underlying_strftime for %r.
74848         * lib/sha.c: Merge in some clean-up and optimization changes from
74849         glibc.
74850         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74851         Ensure that it is a multiple of 64.
74852         Rearrange loop exit tests so as to avoid performing an
74853         additional fread after encountering an error or EOF.
74854         * lib/realloc.c: Update copyright date.
74855
74856 2003-08-15  Jim Meyering  <jim@meyering.net>
74857         and Paul Eggert  <eggert@twinsun.com>
74858
74859         Merge from coreutils.
74860         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74861         member but strut utmpx does not.  Needed for AIX 4.3.3.
74862         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74863
74864 2003-08-15  Jim Meyering  <jim@meyering.net>
74865         and Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         Merges from coreutils, etc.
74868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74869         Require gl_FUNC_TZSET_CLOBBER.
74870         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74871         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74872         members.
74873
74874 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74875
74876         Help the merge from coreutils.
74877         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74878         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74879         * m4/tzset.m4: Use it too.
74880
74881 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74882
74883         * modules/tzset: New file.
74884
74885 2003-08-14  Jim Meyering  <jim@meyering.net>
74886
74887         Merges from coreutils.
74888         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74889         variable names, rather than @FNMATCH_H@.
74890         * modules/alloca: Likewise for $(ALLOCA_H).
74891
74892         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74893         the three copies of the literal target, `fnmatch.h'.
74894         * modules/alloca (alloca.h): Likewise.
74895
74896 2003-08-14  Jim Meyering  <jim@meyering.net>
74897
74898         Merge from coreutils.
74899         * m4/tzset.m4: New file.
74900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74901         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74902         otherwise, AIX 5.1 systems would end up using the latter.
74903         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74904         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74905         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74906         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74907
74908 2003-08-14  Jim Meyering  <jim@meyering.net>
74909
74910         Merge from coreutils.
74911         * lib/obstack.h: Whitespace changes.
74912         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74913         and xcalloc return values.
74914         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74915         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74916         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74917         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74918         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74919         error from mntctl.
74920         Use mntctl's return value to drive the entry-processing loop, since
74921         we can't rely on the value of the vmt_length member in the last
74922         entry.  On some systems doing so could result in exhausting
74923         virtual memory.  Based in part on a patch from Mike Jetzer.
74924
74925 2003-08-14  Jim Meyering  <jim@meyering.net>
74926         and Paul Eggert  <eggert@twinsun.com>
74927
74928         Merges from coreutils, plus other fixes.
74929         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74930         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74931         for credits and details.  Thanks to Kaveh Ghazi for helping
74932         to keep these files in sync.
74933         (ARRAY_SIZE): Define it.
74934         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74935         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74936         (memcasecmp): Don't assume size_t fits in unsigned int.
74937         Remove casts and duplicate code.
74938         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74939         (memcpy): Remove definition.
74940         Merge in some clean-up and optimization changes from glibc.
74941         [BLOCKSIZE]: Move definition to top of file.
74942         Ensure that it is a multiple of 64.
74943         Rearrange loop exit tests so as to avoid performing an
74944         additional fread after encountering an error or EOF.
74945         * lib/md5.h (md5_uintptr): Define.
74946         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74947         return to the initial working directory.  Preserve errno
74948         for caller.
74949         * lib/idcache.c: Include "xalloc.h".
74950         (xmalloc, xrealloc): Remove decls.
74951         (getuser): Remove casts no longer required in C89.
74952         * lib/human.c: Include stdio.h, for sprintf.
74953         * lib/group-member.c: Include "xalloc.h".
74954         (xmalloc, xrealloc): Remove decls.
74955         (get_group_info): Remove casts no longer required in C89.
74956         * lib/getusershell.c (readname): Remove casts no longer required in
74957         C89.
74958         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74959         * lib/getline.c: Whitespace fix, from coreutils.
74960
74961 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74962
74963         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74964         Check for isascii.
74965
74966         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74967         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74968         Undo previous (whitespace-only) change.
74969
74970 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74971
74972         * lib/exclude.c: Include <ctype.h>
74973         (IN_CTYPE_DOMAIN): New macro.
74974         (is_space): New fn.
74975         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74976         and empty lines.
74977
74978         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74979         Undo previous (whitespace-only) change.
74980
74981 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74982
74983         * config/srclist-update: Change update back to the old behavior,
74984         leaving whitespace alone.  Use one 'sed' command rather than a
74985         pipeline.
74986         (fixlicense): Now a variable, not a function.
74987         (remove_trailing_blanks): Remove.
74988         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74989         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74990         Undo previous (whitespace-only) change.
74991
74992 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74993
74994         Merge from coreutils.
74995         * modules/euidaccess: Add lib_SOURCES, include for new
74996         file euidaccess.h
74997
74998 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74999
75000         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75001         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75002         Normalize leading white space and remove trailing white space.
75003
75004         Merge from coreutils
75005         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75006
75007         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75008         0.12.1.  These files are now being upgraded automatically by
75009         ../config/srclist-update.
75010
75011 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75012
75013         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75014         Normalize leading white space and remove trailing white space.
75015         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75016         notice, as per ../config/srclist-update.
75017
75018         Merge from coreutils.
75019         * lib/euidaccess.h: New file.
75020         * lib/euidaccess.c: Include it.
75021         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75022         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75023         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75024
75025 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75026
75027         * config/srclist-update: Add copyright notice.
75028         (remove_id_lines, remove_trailing_blanks): New constants.
75029         (fixfile): Use them to normalize spacing a bit in copied files.
75030         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75031         Normalize leading white space and remove trailing white space.
75032
75033         * config/texinfo.tex: Sync with texinfo.
75034
75035         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75036         strtoul.c from libc, to merge coreutils whitespace changes.
75037
75038         * config/srclist.txt: Get the following m4 files from gettext:
75039         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75040         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75041         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75042         wint_t.m4.
75043
75044 2003-08-12  Karl Berry  <karl@gnu.org>
75045
75046         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75047         been made.
75048
75049 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75050
75051         * modules/gnu-source, m4/gnu-source.m4:
75052         Remove; we're assuming Autoconf 2.54 or later now.
75053         Suggested by Bruno Haible.
75054         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75055
75056 2003-08-11  Bruno Haible  <bruno@clisp.org>
75057
75058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75059
75060 2003-08-11  Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75063         (vasnprintf): Use it instead of wcslen.
75064
75065 2003-08-11  Bruno Haible  <bruno@clisp.org>
75066
75067         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75068         value to ensure that _Bool promotes to int. Use #define for _Bool when
75069         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75070
75071 2003-08-10  Karl Berry  <karl@gnu.org>
75072
75073         * lib/regex.h: update from libc (whitespace fix).
75074
75075 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75076
75077         Merge some files from coreutils.  These changes were
75078         originally made by Jim Meyering.
75079         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75080         many older Unixes require this.
75081         * lib/alloca.c (alloca): Remove cast to argument of free;
75082         no longer needed in C89.
75083         * lib/alloca_.h, regex.h: Fix white space to match
75084         what GNU indent does.
75085
75086 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75087
75088         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75089         apparently Emacs's Unicode mode got confused before my 2003-08-05
75090         checkin.
75091
75092 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75093
75094         * m4/extensions.m4: New file.
75095         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75096         Require gl_USE_SYSTEM_EXTENSIONS.
75097         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75098         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75099
75100 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75101
75102         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75103         * modules/extensions, modules/gnu-source: New files.
75104         * modules/timespec, modules/unlocked-io: Depend on extensions.
75105
75106 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75107
75108         * modules/restrict: New file.
75109         * MODULES.html.sh (func_all_modules): Add restrict.
75110         * modules/regex: Depend on restrict.
75111
75112 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75113
75114         * m4/restrict.m4: New file.
75115         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75116
75117 2003-08-07  Bruno Haible  <bruno@clisp.org>
75118
75119         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75120         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75121
75122 2003-08-07  Bruno Haible  <bruno@clisp.org>
75123
75124         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75125         makes the module 'getndelim2' compatible with the module 'getline'.
75126
75127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75128
75129         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75130         byte with "\201" to avoid glitches when editing that source file
75131         with multi-gnome-terminal.
75132
75133 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75134
75135         * lib/bumpalloc.h: Remove.
75136
75137 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75138
75139         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75140         * modules/bumpalloc: Remove.
75141
75142 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75143
75144         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75145         GNU coding style.
75146
75147         Merge from coreutils.
75148         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75149         1. From glibc.
75150         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75151         from Karl Berry, implemented by Jim Meyering.
75152         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75153         from Dmitry V. Levin.
75154         Remove anachronistic cast of xrealloc.
75155         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75156         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75157         type. Otherwise, it wouldn't compile with at least /bin/cc on
75158         ymp-cray-unicos9.0.2.X.
75159         Combine two mostly-identical uses of alloca into one.
75160         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75161
75162 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75163
75164         [From Emacs.]
75165
75166         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75167         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75168         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75169         obsolete NLIST_NAME_UNION.
75170         [__GNU__]: Undef BSD and FSCALE.
75171         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75172
75173 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75174
75175         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75176         an enum type, so that it's guaranteed to promote to int.  See:
75177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75178
75179 2003-08-03  Karl Berry  <karl@gnu.org>
75180
75181         * config/depcomp: update from automake.
75182
75183 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75184
75185         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75186         (strerror): Don't assume that a printable int fits in 14 bytes.
75187
75188 2003-07-31  Bruno Haible  <bruno@clisp.org>
75189
75190         * modules/getpass-gnu: New file.
75191         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75192
75193 2003-07-31  Bruno Haible  <bruno@clisp.org>
75194
75195         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75196
75197 2003-07-24  Karl Berry  <karl@gnu.org>
75198
75199         * config/missing: update from automake.
75200
75201 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75202             Bruno Haible  <bruno@clisp.org>
75203
75204         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75205         * lib/getline.c (getline, getdelim): Likewise.
75206         Remove _GNU_SOURCE define; now it's defined in config.h through
75207         m4/getline.m4.
75208
75209 2003-07-23  Karl Berry  <karl@gnu.org>
75210
75211         * config/config.sub: update from prep.
75212
75213 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75214
75215         * modules/xalloc (Depends-on): Add exitfail.
75216         * modules/xmemcoll: Likewise.
75217
75218 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75219
75220         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75221         over-parenthesization in macros.
75222
75223         Sync with coreutils.
75224
75225         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75226         required by C99.
75227
75228         Use `exit_failure' for xalloc and xmemcoll instead of their own
75229         private exit-failure variables.
75230         * lib/xalloc.h (xalloc_exit_failure): Remove.
75231         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75232         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75233         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75234         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75235         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75236
75237 2003-07-20  Jim Meyering  <jim@meyering.net>
75238
75239         * modules/closeout (Depends-on): Add exitfail.
75240         Suggestion from Bruno Haible.
75241
75242 2003-07-19  Karl Berry  <karl@gnu.org>
75243
75244         * config/config.sub: update from prep.
75245
75246 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75247
75248         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75249         Remove.
75250         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75251         to test that it can stand by itself.  Include "exitfail.h".
75252         Clients should set exit_failure instead.
75253         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75254
75255 2003-07-18  Bruno Haible  <bruno@clisp.org>
75256
75257         * modules/getndelim2: New file.
75258         * modules/getline: Share files with module getndelim2.
75259         * modules/getnline: Depend on getndelim2 instead of sharing files with
75260         it. Add getnline.c to lib_SOURCES.
75261         * MODULES.html.sh (func_all_modules): Add getndelim2.
75262
75263 2003-07-18  Bruno Haible  <bruno@clisp.org>
75264
75265         * m4/getndelim2.m4: New file.
75266         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75267         invoke gl_PREREQ_GETNDELIM2.
75268         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75269         gl_PREREQ_GETNDELIM2.
75270         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75271         gl_GETNDELIM2.
75272
75273 2003-07-18  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/getndelim2.h: New file.
75276         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75277         getndelim2.h.
75278         (getndelim2): Make non-static. Change return type to ssize_t.
75279         * lib/getline.h: Change argument names.
75280         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75281         * lib/getnline.c: Include getndelim2.h.
75282
75283 2003-07-18  Andreas Schwab  <schwab@suse.de>
75284
75285         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75286
75287 2003-07-17  Karl Berry  <karl@gnu.org>
75288
75289         * config/config.sub: update from prep.
75290
75291 2003-07-17  Bruno Haible  <bruno@clisp.org>
75292
75293         * modules/getnline: New file.
75294         * modules/getline: Add lib/getndelim2.c to source file list.
75295         * MODULES.html.sh (func_all_modules): Add getnline.
75296
75297 2003-07-17  Bruno Haible  <bruno@clisp.org>
75298
75299         * m4/getnline.m4: New file.
75300
75301 2003-07-17  Bruno Haible  <bruno@clisp.org>
75302
75303         * m4/Makefile.am.in: Remove file.
75304         * m4/Makefile.am: Remove file.
75305         * m4/Makefile.in: Remove file.
75306
75307 2003-07-17  Bruno Haible  <bruno@clisp.org>
75308
75309         * lib/getnline.h: New file.
75310         * lib/getnline.c: New file.
75311         * lib/getndelim2.c: New file, extracted from getline.c.
75312         (getndelim2): Renamed from getdelim2, with added nmax argument.
75313         * lib/getline.c: Include getndelim2.c.
75314         (getdelim2): Moved out to getndelim2.c.
75315         (getline, getdelim): Update.
75316
75317 2003-07-17  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/Makefile.am: Remove file.
75320         * lib/Makefile.in: Remove file.
75321
75322 2003-07-17  Bruno Haible  <bruno@clisp.org>
75323
75324         * configure.in: Remove file.
75325         * Makefile.in: Remove file.
75326
75327 2003-07-17  Bruno Haible  <bruno@clisp.org>
75328
75329         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75330
75331 2003-07-16  Karl Berry  <karl@gnu.org>
75332
75333         * config/srclist-update: was running fixlicense twice, which caused
75334                 texinfo.tex to be nullified for some reason.  Simplify,
75335                 $gplsrc is no longer needed as far as I can see?
75336
75337 2003-07-16  Jim Meyering  <jim@meyering.net>
75338
75339         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75340
75341 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75342
75343         * config/srclist.txt: Get the following files from gettext-runtime/intl
75344         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75345         ref-del.sin.  From Bruno Haible.
75346         * config/srclist-update (fixfile): Change grep pattern again, since the
75347         previous fix didn't work (there was another trailing $).  Use
75348         '[$]' to escape the $s.
75349
75350 2003-07-15  Karl Berry  <karl@gnu.org>
75351
75352         * lib/vasnprintf.c: update from gettext.
75353
75354 2003-07-15  Karl Berry  <karl@gnu.org>
75355
75356         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75357         gets expanded when surrounded by '$'.
75358
75359 2003-07-15  Jim Meyering  <jim@meyering.net>
75360
75361         * modules/save-cwd: Don't depend on error.  From Derek Price.
75362
75363 2003-07-15  Jim Meyering  <jim@meyering.net>
75364
75365         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75366
75367 2003-07-14  Simon Josefsson  <jas@extundo.com>
75368
75369         * modules/mempcpy: New file.
75370         * MODULES.html.sh (func_all_modules): Add mempcpy.
75371
75372 2003-07-14  Simon Josefsson  <jas@extundo.com>
75373
75374         * m4/mempcpy.m4: New file.
75375
75376 2003-07-14  Simon Josefsson  <jas@extundo.com>
75377
75378         * lib/mempcpy.h: New file.
75379         * lib/mempcpy.c: New file.
75380
75381 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75382
75383         * modules/getdate, modules/posixtm: Depend on mktime.
75384
75385 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75386
75387         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75388         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75389         unicodeio.c, unicodeio.h, unlocked-io.h:
75390         Switch from LGPL to GPL.
75391
75392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75393
75394         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75395         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75396         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75397         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75398         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75399         updated automatically by ../config/srclist-update.  This changes
75400         their license from LPGL to GPL.
75401
75402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75403
75404         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75405         assumed to refer to the root of the most recent stable gettext version.
75406         * config/srclistvars.sh: Add defaults for eggert.
75407         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75408         Match "This program" as well as "The program".  This is needed
75409         for gettext.
75410
75411 2003-07-14  Jim Meyering  <jim@meyering.net>
75412
75413         Don't emit diagnostics.  Let callers do that.
75414         * lib/save-cwd.c: Don't include "error.h".
75415         (save_cwd): Don't call error.  Ensure that errno is valid
75416         when returning nonzero.
75417
75418         * lib/save-cwd.h (restore_cwd): Update prototype.
75419         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75420         Simplify.  Don't call error upon failure.  Let callers do that.
75421         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75422         when auditing is enabled.  But don't bother updating the #if.
75423
75424 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75425
75426         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75427         it breaks C++ compilation.
75428         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75429
75430 2003-07-10  Simon Josefsson  <jas@extundo.com>
75431
75432         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75433
75434 2003-07-10  Jim Meyering  <jim@meyering.net>
75435
75436         * m4/clock_time.m4: Remove trailing blank.
75437         * m4/intmax_t.m4: Likewise.
75438
75439 2003-07-10  Jim Meyering  <jim@meyering.net>
75440
75441         * lib/vasnprintf.c: Remove trailing blanks.
75442         Make cpp indentation consistent.
75443
75444 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75445
75446         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75447         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75448         Switch from LGPL to GPL.
75449
75450 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75451
75452         * config/srclist.txt: Sort sublists.  Add
75453         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75454         that differ from gnulib for one reason or another; we'd like this list
75455         to be smaller but for now let's document what we have.
75456
75457 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75458
75459         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75460         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75461         and sweeter "eval x=$x".
75462         * config/srclist.txt: Get lib/argp* from glibc.
75463
75464 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75465
75466         * lib/mktime.c: Fix some boundary cases and remove need for floating
75467         point.
75468
75469         Issue a compile-time diagnostic if time_t is floating point, or if
75470         two's complement arithmetic is not in effect, or if arithmetic
75471         right shift does not propagate the sign.  These assumptions were
75472         all in the original code but they weren't checked.
75473
75474         (TIME_T_MIDPOINT, verify): New macros.
75475         (__isleap): Remove; it has integer overflow problems.
75476         (leapyear): New function, without those problems.
75477         (ydhms_tm_diff): Remove; splitting into two parts.
75478         (ydhms_diff): New function, containing the arithmetic part of
75479         the old ydhms_tm_diff function.  Issue a compile-time
75480         diagnostic if we are not using C99 integer division.
75481         Avoid casts when possible.
75482         (guess_time_tm): New function, containing the checking part of
75483         the old ydhms_tm_diff function.  Return the new value, rather than
75484         the difference between it and the old.  Accept a new argument T
75485         so that *T specifies the old value.  Check for overflow in the result.
75486
75487         (__mktime_internal): Use a time_t offset, not a long int offset.
75488         This undoes the 2003-06-04 change, which is no longer needed now
75489         that we have better overflow checking.
75490         (localtime_offset): Likewise.
75491
75492         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75493         and long are 64-bit but int is only 32-bit.
75494         (ydhms_diff): Use long int to store year1 and yday1.
75495         Issue a compile-time diagnostic if long int is not wide enough.
75496
75497         (__mktime_internal): Use long int to store adjusted year and yday.
75498         Use plain C rather than preprocessor commands, if that doesn't
75499         affect efficiency.
75500         Check for overflow (and try to repair) after each probe
75501         rather than checking only at the very end.  This avoids some bugs
75502         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75503         does not equal GMT offset at maximum time).
75504         Use integer to check for overflow rather than floating point; this
75505         is more portable to non-IEEE hosts, and is a tad faster.
75506         When we detect that we are oscillating between two values,
75507         don't check whether tm_isdst has the requested value, since
75508         we already know the answer.  When tm_isdst has the wrong value,
75509         use a different heuristic to find the right one, based on the
75510         extreme values actually observed in practice in tz2003a,
75511         rather than the (overly optimistic) "previous 3 calendar quarters".
75512
75513         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75514         "T const" to accommodate glibc style.
75515         (check_result): Use less-confusing report format.  "long" -> "long int.
75516         (main): Likewise.
75517         Don't loop if the iteration overflows time_t.
75518         Allow a negative step in the iteration.
75519
75520 2003-07-06  Karl Berry  <karl@gnu.org>
75521
75522         * config/depcomp: update from automake.
75523         * config/config.sub: update from prep.
75524
75525 2003-07-03  Karl Berry  <karl@gnu.org>
75526
75527         * config/config.guess: update from prep.
75528
75529 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75530
75531         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75532         xreadlink.c now includes it unconditionally.
75533
75534 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75535
75536         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75537         having it depend on HAVE_SYS_TYPES_H.
75538
75539 2003-07-01  Bruno Haible  <bruno@clisp.org>
75540
75541         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75542         <sys/types.h> should be sufficient.
75543         Reported by Paul Eggert.
75544
75545 2003-06-26  Karl Berry  <karl@gnu.org>
75546
75547         * config/depcomp: update from automake.
75548
75549 2003-06-26  Bruno Haible  <bruno@clisp.org>
75550
75551         * modules/human: Depend on module stdbool.
75552
75553 2003-06-25  Bruno Haible  <bruno@clisp.org>
75554
75555         * modules/readlink: New file.
75556         * modules/xreadlink: Depend on it.
75557         * MODULES.html.sh (func_all_modules): Add readlink.
75558
75559 2003-06-25  Bruno Haible  <bruno@clisp.org>
75560
75561         * m4/readlink.m4: New file.
75562
75563 2003-06-25  Bruno Haible  <bruno@clisp.org>
75564
75565         * lib/readlink.c: New file.
75566
75567 2003-06-22  Karl Berry  <karl@gnu.org>
75568
75569         * config/srclist.txt: update mkinstalldirs from automake.
75570         * config/mkinstalldirs: update.
75571
75572 2003-06-22  Bruno Haible  <bruno@clisp.org>
75573
75574         Portability to mingw32.
75575         * m4/ssize_t.m4: New file, from GNU gettext.
75576         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75577         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75578
75579 2003-06-22  Bruno Haible  <bruno@clisp.org>
75580
75581         * modules/safe-read: Add m4/ssize_t.m4.
75582         * modules/xreadlink: Add m4/ssize_t.m4.
75583
75584 2003-06-20  Bruno Haible  <bruno@clisp.org>
75585
75586         Assume C89, so PARAMS isn't needed.
75587         * lib/unicodeio.h (PARAMS): Remove.
75588         * lib/unicodeio.c: Don't use PARAMS.
75589
75590 2003-06-18  Karl Berry  <karl@gnu.org>
75591
75592         * config/config.{guess,sub}: update from prep.
75593
75594 2003-06-18  Jim Meyering  <jim@meyering.net>
75595
75596         Merge changes from coreutils.
75597         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75598         Remove explicit declarations of xmalloc and realloc.
75599         Include xalloc.h.
75600         (read_utmp): Remove anachronistic cast of xmalloc.
75601
75602 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75603
75604         Assume C89, so PARAMS isn't needed.
75605         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75606         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75607         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75608         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75609         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75610         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75611         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75612         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75613         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75614         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75615         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75616         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75617         no longer needed. Anyway, config.h should always be included before any
75618         other file.
75619
75620 2003-06-11  Simon Josefsson  <jas@extundo.com>
75621
75622         * modules/sysexits: New file.
75623         * MODULES.html.sh (func_all_modules): Add sysexits.
75624
75625 2003-06-11  Simon Josefsson  <jas@extundo.com>
75626
75627         * lib/sysexit_.h: New file.
75628
75629 2003-06-11  Derek Price  <derek@ximbiot.com>
75630
75631         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75632         necessary.
75633
75634 2003-06-11  Bruno Haible  <bruno@clisp.org>
75635
75636         * m4/sysexits.m4: New file.
75637
75638 2003-06-10  Simon Josefsson  <jas@extundo.com>
75639
75640         * lib/argp.h: New file, from glibc.
75641         * lib/argp-ba.c: New file, from glibc.
75642         * lib/argp-eexst.c: New file, from glibc.
75643         * lib/argp-fmtstream.c: New file, from glibc.
75644         * lib/argp-fmtstream.h: New file, from glibc.
75645         * lib/argp-fs-xinl.c: New file, from glibc.
75646         * lib/argp-help.c: New file, from glibc.
75647         * lib/argp-namefrob.h: New file, from glibc.
75648         * lib/argp-parse.c: New file, from glibc.
75649         * lib/argp-pv.c: New file, from glibc.
75650         * lib/argp-pvh.c: New file, from glibc.
75651         * lib/argp-xinl.c: New file, from glibc.
75652
75653 2003-06-10  Simon Josefsson  <jas@extundo.com>
75654
75655         * modules/strchrnul: New file.
75656
75657 2003-06-10  Simon Josefsson  <jas@extundo.com>
75658
75659         * modules/argp: New file.
75660
75661 2003-06-10  Simon Josefsson  <jas@extundo.com>
75662
75663         * m4/strchrnul.m4: New file.
75664
75665 2003-06-10  Simon Josefsson  <jas@extundo.com>
75666
75667         * lib/strchrnul.h: New file.
75668         * lib/strchrnul.c: New file.
75669
75670 2003-06-10  Bruno Haible  <bruno@clisp.org>
75671
75672         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75673
75674 2003-06-07  Karl Berry  <karl@gnu.org>
75675
75676         * config/config.{guess,sub}: update from prep.
75677
75678 2003-06-07  Jim Meyering  <jim@meyering.net>
75679
75680         * modules/strtod: Use $(...) notation, not @...@ for
75681         AC_REPLACE'd variables.
75682         * modules/localcharset: Likewise.
75683
75684 2003-06-07  Jim Meyering  <jim@meyering.net>
75685
75686         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75687         in place of my name in the copyright comment.
75688         Remove definition and uses of __P.
75689
75690         From coreutils.
75691         * lib/stat.c: Don't declare xmalloc explicitly.
75692         Instead, include "xalloc.h".
75693         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75694         xrealloc, and xcalloc return values.
75695         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75696         Improve comment.
75697         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75698
75699 2003-06-07  Bruno Haible  <bruno@clisp.org>
75700
75701         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75702         avoid AC_CONFIG_LINKS.
75703         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75704         fnmatch.h, to avoid AC_CONFIG_LINKS.
75705         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75706
75707 2003-06-07  Bruno Haible  <bruno@clisp.org>
75708
75709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75710         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75711         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75712         directory.
75713         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75714         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75715         directory.
75716
75717 2003-06-06  Jim Meyering  <jim@meyering.net>
75718
75719         Merge from coreutils.
75720         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75721         Consolidate declarations and initializations of *_base* locals.
75722
75723         Merge from coreutils.
75724         This avoids a core dump on systems without GNU putenv,
75725         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75726         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75727         (unsetenv): New static function, from GNU libc.
75728         (rpl_putenv): Use it.
75729
75730         * lib/modechange.c: Remove trailing blanks.
75731
75732         Merge from coreutils.
75733         * lib/fsusage.c: Remove declaration of statfs.
75734         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75735
75736         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75737
75738 2003-06-06  Jim Meyering  <jim@meyering.net>
75739
75740         * lib/stdbool_.h: Renamed from stdbool.h.in.
75741
75742 2003-06-06  Jim Meyering  <jim@meyering.net>
75743             Bruno Haible  <bruno@clisp.org>
75744
75745         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75746         Adjust Makefile.am snippet not to redirect directly to target.
75747         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75748
75749 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75750
75751         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75752         mismatch, look in future quarters as well as past.  This fixes a
75753         bug when processing fall-backwards gaps immediately after a long
75754         period of daylight-saving time.
75755
75756         * lib/mktime.c: Assume freestanding C89 or better.
75757         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75758         (__P): Remove; not used.
75759         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75760         (mktime, not_equal_tm, print_tm, check_result,
75761         main): Use prototypes.  Use const * where appropriate.
75762         (main): Fix typo in testing code that uncovered by above changes.
75763         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75764
75765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75766
75767         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75768         locale.h, localeconv.  This merges changes from coreutils.
75769
75770         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75771         It can be removed after the next Autoconf is released.
75772         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75773         needed.
75774
75775 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75776
75777         * lib/mktime.c: Fix Debian bug 177940
75778         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75779         (localtime_offset): Now long int, not time_t, because we want it
75780         to be guaranteed to be signed.  All uses changed.
75781         (__mktime_internal): If overflow would occur when adding offset,
75782         don't add it.
75783
75784         Merge 'human' changes from coreutils.  Rewrite to support
75785         locale-specific notations like thousands separators.
75786         * lib/human.c: Simplify authorship notice.
75787         Include human.h immediately after config.h.
75788         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75789         <limits.h>: Do not include, since human.h does.
75790         (SIZE_MAX, UINTMAX_MAX): New macros.
75791         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75792         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75793         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75794         (power_letter): Renamed from suffixes.
75795         (generate_suffix_backwards): Remove.
75796         (adjust_value): Now takes int style (because of human.h changes)
75797         and long double value (for greater precision on some platforms).
75798         (group_number): New function.
75799         (human_readable): Use it.  Use integer options, not enum.
75800         Put the options before the sizes in the arg list.
75801         Support all the new options.
75802         The old human_readable function has been removed;
75803         use inttostr.h instead.
75804         (human_readable, default_block_size, humblock):
75805         Use uintmax_t, not int, for block sizes.
75806         (human_readable_inexact, block_size_types): Remove.
75807         (block_size_opts): New constant.
75808         (human_options): Renamed from human_block_size, with new signature
75809         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75810         * lib/human.h: Add copyright and authorship notice.
75811         Include <limits.h> and <stdbool.h> unconditionally.
75812         (PARAMS): Remove.  All uses removed.
75813         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75814         (enum human_inexact_style): Remove tag; now a nameless enum.
75815         (human_floor, human_ceiling, human_round_to_even): Now have
75816         values 2, 0, 1 rather than -1, 1, 0.
75817         (human_group_digits, human_suppress_point_zero, human_autoscale,
75818         human_base_1024, human_SI, human_B): New constants.
75819         (human_readable_inexact, human_block_size): Remove.
75820         (human_readable): Size args are now uintmax_t, not int.
75821         (human_options): New decl.
75822
75823         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75824         unnecessary now that we assume C89 or better.  This change
75825         imported from coreutils.
75826
75827         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75828         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75829         in the 2003-05-30 sync from glibc.
75830
75831         .h files should stand alone, but we shouldn't include <sys/types.h>
75832         if we can get away with just <stddef.h>.
75833
75834         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75835         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75836         rather than <sys/types.h>, as we merely need size_t.
75837         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75838         to get size_t.
75839         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75840         Include <stdio.h>, to get FILE.
75841         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75842         memcasecmp.h has included <stddef.h> and all we need is size_t.
75843         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75844         our interface, instead of including <sys/types.h>
75845
75846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75847
75848         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75849         now, as glibc mktime is buggy on non-glibc systems.
75850
75851 2003-06-03  Karl Berry  <karl@gnu.org>
75852
75853         * config/config.sub: update from prep.
75854
75855 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75856
75857         [from coreutils]
75858         Fix some minor time-related bugs with POSIX time arguments.
75859         Some valid time stamps were being rejected (notably -1, and
75860         time stamps before 1900 on 64-bit hosts).  And some invalid
75861         time stamps were being accepted, e.g. September 31.
75862
75863         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75864         that we can return (time_t) -1 successfully.
75865         * lib/posixtm.c: Likewise.
75866         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75867         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75868         (t): Remove static var.
75869         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75870         of static var.  All uses changed.
75871         (year): Do not reject years before 1900; they can occur with
75872         64-bit time_t.
75873         (posix_time_parse): Do not check for out-of-range components;
75874         that is now the caller's responsibility, since our checks were
75875         only approximations.
75876         (posixtime): Use mktime to check for out-of-range components,
75877         since it knows them exactly.
75878         If mktime returns (time_t) -1, check whether an error actually occurred
75879         by invoking localtime on -1.
75880         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75881         posixtime failures better.
75882         Improve the test data (in comments only).
75883
75884 2003-06-02  Karl Berry  <karl@gnu.org>
75885
75886         * config/mkinstalldirs (version): new variable.
75887         (--version): new option.
75888         (usage): improve message.
75889
75890 2003-05-30  Karl Berry  <karl@gnu.org>
75891
75892         * lib/mktime.c: update from libc.
75893
75894 2003-05-30  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75897         * config/config.rpath: Upgrade to gettext-0.12.1.
75898
75899 2003-05-30  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75902         * m4/nls.m4: New file, from gettext-0.12.1.
75903         * m4/po.m4: New file, from gettext-0.12.1.
75904         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75905
75906 2003-05-30  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75909         * lib/localcharset.h: Likewise.
75910         * lib/localcharset.c: Likewise.
75911
75912 2003-05-29  Karl Berry  <karl@gnu.org>
75913
75914         * config/config.rpath: update from gettext.
75915
75916 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75917
75918         Assume the headers required for C89 freestanding compilers.
75919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75920         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75921         * m4/human.m4 (gl_HUMAN): Likewise.
75922         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75923         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75924         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75925         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75927         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75928
75929 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75930
75931         Assume the headers required for C89 freestanding compilers.
75932         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75933         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75934         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75935         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75936         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75937         define, since <limits.h> is guaranteed to do that.
75938         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75939         * lib/exclude.c: Include <stdbool.h> unconditionally.
75940         * lib/tempname.c: Include <stddef.h> unconditionally.
75941         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75942         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75943         <stddef.h> does that.
75944         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75945         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75946         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75947         needed.
75948         * lib/xstrtol.c: Likewise.
75949         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75950         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75951
75952         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75953         warnings on some platforms.
75954
75955         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75956         arbitrarily.
75957
75958 2003-05-26  Jim Meyering  <jim@meyering.net>
75959
75960         Merge in a change from coreutils:
75961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75962         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75963         that condition, rather than `-1' which is slightly misleading.
75964         Change the name of the cache variable to have the gl_ prefix.
75965         Prompted by a patch from Richard Dawe for DJGPP.
75966
75967 2003-05-24  Karl Berry  <karl@gnu.org>
75968
75969         * config/config.guess: update from prep.
75970
75971 2003-05-22  Karl Berry  <karl@gnu.org>
75972
75973         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75974
75975 2003-05-20  Karl Berry  <karl@gnu.org>
75976
75977         * config/config.guess: update from prep.
75978
75979 2003-05-18  Karl Berry  <karl@gnu.org>
75980
75981         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75982         might actually be set by the user.
75983
75984         * config/depcomp, install-sh, mdate-sh: update from automake.
75985
75986 2003-05-17  Bruno Haible  <bruno@clisp.org>
75987
75988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75989         invalid expansion for AC_EGREP_CPP.
75990         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75991         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75992         Suggested by Akim Demaille <akim@epita.fr> in
75993         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75994
75995 2003-05-12  Jim Meyering  <jim@meyering.net>
75996
75997         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75998         the space-padded-by-default conversion specifiers, %e, %k, %l.
75999
76000 2003-05-12  Bruno Haible  <bruno@clisp.org>
76001
76002         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76003         the string is longer than 4 KB.
76004
76005 2003-05-11  Karl Berry  <karl@gnu.org>
76006
76007         * config/config.{guess,sub}: update from prep.
76008
76009 2003-05-09  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/error: Add m4/strerror_r.m4 to file list.
76012
76013 2003-05-03  Bruno Haible  <bruno@clisp.org>
76014
76015         Upgrade to Unicode-4.0.
76016         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76017         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76018         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76019         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76020         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76021         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76022         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76023         Change width of U+E0100..U+E01EF from 1 to 0.
76024
76025 2003-04-25  Jim Meyering  <jim@meyering.net>
76026
76027         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76028         of type size_t, not int.
76029
76030 2003-04-25  Bruno Haible  <bruno@clisp.org>
76031
76032         * lib/copy-file.c: Include <stddef.h>, for size_t.
76033
76034 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76035
76036         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76037         code which expansion is under static control.  Patch imported from
76038         Akim Demaille's patch to Bison; see
76039         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76040
76041 2003-04-14  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76044
76045 2003-04-11  Jim Meyering  <jim@meyering.net>
76046
76047         Merge changes from Coreutils.
76048
76049         2003-03-22  Jim Meyering  <jim@meyering.net>
76050
76051         * lib/strftime.c (widen): Cast alloca return value to proper type.
76052
76053         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76054
76055         From GNU libc.
76056         * lib/strftime.c (my_strftime): Handle very large width
76057         specifications for numeric values correctly.  Improve checks for
76058         overflow.
76059
76060         2003-01-19  Jim Meyering  <jim@meyering.net>
76061
76062         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76063         definitions.
76064         (nl_get_alt_digit) [! defined my_strftime]: Define.
76065         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76066         _nl_get_alt_digit and _nl_get_walt_digit.
76067
76068         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76069         libc. These changes have no effect outside of _LIBC.
76070
76071 2003-04-10  Bruno Haible  <bruno@clisp.org>
76072
76073         * modules/findprog: New file.
76074         * MODULES.html.sh (func_all_modules): Add it.
76075
76076 2003-04-10  Bruno Haible  <bruno@clisp.org>
76077
76078         * m4/findprog.m4: New file.
76079         * m4/eaccess.m4: New file.
76080
76081 2003-04-10  Bruno Haible  <bruno@clisp.org>
76082
76083         * lib/findprog.h: New file, from GNU gettext.
76084         * lib/findprog.c: New file, from GNU gettext.
76085
76086 2003-04-05  Jim Meyering  <jim@meyering.net>
76087
76088         Merge changes from Coreutils.
76089
76090         * lib/exclude.h (PARAMS): Remove definition and uses.
76091         * lib/exclude.c: Remove uses of `PARAMS'.
76092
76093         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76094         Add test-cases for DOS filenames. Declare program_name.
76095         (main): Set up program_name.  Patch by Rich Dawe.
76096
76097         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76098         error from mntctl.
76099         Use mntctl's return value to drive the entry-processing loop, since
76100         we can't rely on the value of the vmt_length member in the last
76101         entry.  On some systems doing so could result in exhausting
76102         virtual memory.  Based in part on a patch from Mike Jetzer.
76103
76104 2003-04-04  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/linebreak: New file.
76107         * MODULES.html.sh (func_all_modules): Add it.
76108
76109 2003-04-04  Bruno Haible  <bruno@clisp.org>
76110
76111         * m4/linebreak.m4: New file.
76112
76113 2003-04-04  Bruno Haible  <bruno@clisp.org>
76114
76115         * lib/linebreak.h: New file, from GNU gettext.
76116         * lib/linebreak.c: New file, from GNU gettext with slight
76117         modifications.
76118         * lib/lbrkprop.h: New file, from GNU gettext.
76119
76120 2003-04-03  Bruno Haible  <bruno@clisp.org>
76121
76122         * modules/utf8-ucs4: New file.
76123         * modules/utf16-ucs4: New file.
76124         * modules/ucs4-utf8: New file.
76125         * modules/ucs4-utf16: New file.
76126         * MODULES.html.sh (func_all_modules): Add them.
76127
76128 2003-04-03  Bruno Haible  <bruno@clisp.org>
76129
76130         * m4/utf-ucs4.m4: New file.
76131         * m4/ucs4-utf.m4: New file.
76132
76133 2003-04-03  Bruno Haible  <bruno@clisp.org>
76134
76135         * lib/utf8-ucs4.h: New file, from GNU gettext.
76136         * lib/utf16-ucs4.h: New file, from GNU gettext.
76137         * lib/ucs4-utf8.h: New file, from GNU gettext.
76138         * lib/ucs4-utf16.h: New file, from GNU gettext.
76139
76140 2003-04-02  Bruno Haible  <bruno@clisp.org>
76141
76142         * modules/binary-io: New file.
76143         * MODULES.html.sh (func_all_modules): Add it.
76144
76145 2003-04-02  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/binary-io.h: New file, from GNU gettext.
76148
76149 2003-04-01  Bruno Haible  <bruno@clisp.org>
76150
76151         * modules/pathname: New file.
76152         * MODULES.html.sh (func_all_modules): Add it.
76153
76154 2003-04-01  Bruno Haible  <bruno@clisp.org>
76155
76156         * lib/pathname.h: New file, from GNU gettext.
76157         * lib/concatpath.c: New file, from GNU gettext.
76158
76159 2003-03-30  Bruno Haible  <bruno@clisp.org>
76160
76161         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76162
76163 2003-03-30  Bruno Haible  <bruno@clisp.org>
76164
76165         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76166         function chown() doesn't exist.
76167
76168 2003-03-28  Bruno Haible  <bruno@clisp.org>
76169
76170         * modules/copy-file: New file.
76171         * MODULES.html.sh (func_all_modules): Add it.
76172
76173 2003-03-28  Bruno Haible  <bruno@clisp.org>
76174
76175         * m4/copy-file.m4: New file.
76176
76177 2003-03-28  Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/copy-file.h: New file, from GNU gettext.
76180         * lib/copy-file.c: New file, from GNU gettext.
76181
76182 2003-03-18  Jim Meyering  <jim@meyering.net>
76183
76184         * lib/quote.c (quote_n): Fix typo in comment.
76185
76186 2003-03-18  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76189         checking.
76190         * m4/onceonly_2_57.m4: Likewise.
76191
76192 2003-03-17  Bruno Haible  <bruno@clisp.org>
76193
76194         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76195         (m4_quote): Remove macro.
76196         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76197
76198 2003-03-14  Jim Meyering  <jim@meyering.net>
76199
76200         Merge changes from Coreutils.
76201         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76202         to be const, in order to avoid warnings.
76203         (obstack_room): Likewise.
76204         (obstack_empty_p): Likewise.
76205
76206 2003-03-14  Bruno Haible  <bruno@clisp.org>
76207
76208         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76209         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76210
76211 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76212
76213         Merge changes from Bison.
76214         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76215         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76216         when compiling Bison 1.875's `bitset bset = obstack_alloc
76217         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76218         * lib/hash.c: Include <stdbool.h> unconditionally.
76219
76220 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76221
76222         * m4/onceonly.m4 (m4_quote): New macro.
76223         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76224         Quote AC_FOREACH variable-expansions properly.
76225
76226 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76227
76228         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76229
76230 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76231
76232         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76233         Reported by Bruce Becker; see:
76234         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76235
76236 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76237             Bruno Haible  <bruno@clisp.org>
76238
76239         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76240         Reported by John Hughes, see
76241         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76242
76243 2003-02-20  Bruno Haible  <bruno@clisp.org>
76244
76245         * MODULES.html.sh (func_all_modules): Add poll.
76246
76247 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76248
76249         * modules/poll: New file.
76250
76251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76252
76253         * lib/poll_.h: New file.
76254         * lib/poll.c: New file.
76255
76256 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76257
76258         * m4/poll.m4: New file.
76259
76260 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76261
76262         * modules/mathl: New file.
76263
76264 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76265
76266         * lib/mathl.h: New file.
76267         * lib/acosl.c: New file.
76268         * lib/asinl.c: New file.
76269         * lib/atanl.c: New file.
76270         * lib/ceill.c: New file.
76271         * lib/cosl.c: New file.
76272         * lib/expl.c: New file.
76273         * lib/floorl.c: New file.
76274         * lib/frexpl.c: New file.
76275         * lib/ldexpl.c: New file.
76276         * lib/logl.c: New file.
76277         * lib/sincosl.c: New file.
76278         * lib/sinl.c: New file.
76279         * lib/sqrtl.c: New file.
76280         * lib/tanl.c: New file.
76281         * lib/trigl.c: New file.
76282         * lib/trigl.h: New file.
76283
76284 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76285
76286         * m4/mathl.m4: New file.
76287
76288 2003-02-18  Bruno Haible  <bruno@clisp.org>
76289
76290         * MODULES.html.sh (func_all_modules): Add mathl.
76291
76292 2003-02-17  Bruno Haible  <bruno@clisp.org>
76293
76294         * modules/mkdtemp: New module.
76295         * MODULES.html.sh (func_all_modules): Add it.
76296
76297 2003-02-17  Bruno Haible  <bruno@clisp.org>
76298
76299         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76300
76301 2003-02-17  Bruno Haible  <bruno@clisp.org>
76302
76303         * lib/mkdtemp.h: New file, from GNU gettext.
76304         * lib/mkdtemp.c: New file, from GNU gettext.
76305
76306 2003-02-02  Jim Meyering  <jim@meyering.net>
76307
76308         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76309         e.g. glibc-2.2.93.
76310
76311 2003-01-31  Bruno Haible  <bruno@clisp.org>
76312
76313         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76314         'rpl_rename'.
76315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76316         'rpl_strnlen'.
76317         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76318         'rpl_strtod'.
76319         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76320         'rpl_utime'.
76321
76322 2003-01-31  Bruno Haible  <bruno@clisp.org>
76323
76324         * lib/rename.c: #undef rename before defining rpl_rename.
76325         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76326
76327 2003-01-30  Bruno Haible  <bruno@clisp.org>
76328
76329         * modules/vasnprintf, modules/vasprintf: New modules.
76330         * MODULES.html.sh (func_all_modules): Add them.
76331
76332 2003-01-30  Bruno Haible  <bruno@clisp.org>
76333
76334         * m4/signed.m4: New file, from GNU gettext.
76335         * m4/longdouble.m4: New file, from GNU gettext.
76336         * m4/wchar_t.m4: New file, from GNU gettext.
76337         * m4/wint_t.m4: New file, from GNU gettext.
76338         * m4/vasnprintf.m4: New file.
76339         * m4/vasprintf.m4: New file.
76340
76341 2003-01-30  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/printf-args.h: New file, from GNU gettext.
76344         * lib/printf-args.c: New file, from GNU gettext.
76345         * lib/printf-parse.h: New file, from GNU gettext.
76346         * lib/printf-parse.c: New file, from GNU gettext.
76347         * lib/vasnprintf.h: New file, from GNU gettext.
76348         * lib/vasnprintf.c: New file, from GNU gettext.
76349         * lib/asnprintf.c: New file, from GNU gettext.
76350         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76351         * lib/vasprintf.c: New file, from GNU gettext.
76352         * lib/asprintf.c: New file, from GNU gettext.
76353
76354 2003-01-29  Bruno Haible  <bruno@clisp.org>
76355
76356         * modules/stpncpy: New module.
76357         * MODULES.html.sh (func_all_modules): Add it.
76358
76359 2003-01-29  Bruno Haible  <bruno@clisp.org>
76360
76361         * m4/stpncpy.m4: New file.
76362
76363 2003-01-29  Bruno Haible  <bruno@clisp.org>
76364
76365         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76366         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76367
76368 2003-01-28  Bruno Haible  <bruno@clisp.org>
76369
76370         * modules/c-ctype: New module.
76371         * MODULES.html.sh (func_all_modules): Add it.
76372
76373 2003-01-28  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76376         Paul Eggert.
76377         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76378         Paul Eggert.
76379
76380 2003-01-27  Bruno Haible  <bruno@clisp.org>
76381
76382         * modules/xsetenv: New module.
76383         * MODULES.html.sh (func_all_modules): Add it.
76384
76385 2003-01-27  Bruno Haible  <bruno@clisp.org>
76386
76387         * lib/xsetenv.h: New file, from GNU gettext.
76388         * lib/xsetenv.c: New file, from GNU gettext.
76389
76390 2003-01-23  Jim Meyering  <jim@meyering.net>
76391
76392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76393         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76394
76395 2003-01-23  Bruno Haible  <bruno@clisp.org>
76396
76397         * modules/minmax: New module.
76398         * MODULES.html.sh (func_all_modules): Add it.
76399
76400 2003-01-23  Bruno Haible  <bruno@clisp.org>
76401
76402         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76403         Eggert.
76404
76405 2003-01-22  Bruno Haible  <bruno@clisp.org>
76406
76407         * modules/exit: New module.
76408         * MODULES.html.sh (func_all_modules): Add it.
76409
76410 2003-01-22  Bruno Haible  <bruno@clisp.org>
76411
76412         * lib/exit.h: New file, from GNU gettext.
76413
76414 2003-01-19  Bruno Haible  <bruno@clisp.org>
76415
76416         * gnulib-tool: Recognize option --extract-maintainer.
76417         (func_get_maintainer): New function.
76418         * modules/*: Add Maintainer entry.
76419
76420 2003-01-16  Jim Meyering  <jim@meyering.net>
76421
76422         * m4/regex.m4: The `regex' struct is both input and output.
76423         Initialize it before each use.  Patch by Tim Waugh.
76424
76425 2003-01-16  Bruno Haible  <bruno@clisp.org>
76426
76427         * MODULES.html.sh: Add a table of contents. Add the module name as
76428         leftmost column. Add hyperlinks.
76429
76430 2003-01-15  Bruno Haible  <bruno@clisp.org>
76431
76432         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76433
76434 2003-01-15  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76438         suffix.
76439
76440 2003-01-15  Bruno Haible  <bruno@clisp.org>
76441
76442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76443
76444 2003-01-15  Bruno Haible  <bruno@clisp.org>
76445
76446         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76447         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76448
76449 2003-01-14  Jim Meyering  <jim@meyering.net>
76450
76451         * lib/same.c (same_name): Tweak a comment.
76452
76453 2003-01-14  Bruno Haible  <bruno@clisp.org>
76454
76455         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76456         when a string comparison is sufficient.
76457
76458 2003-01-14  Bruno Haible  <bruno@clisp.org>
76459
76460         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76461         'unsigned int'.
76462
76463 2003-01-14  Bruno Haible  <bruno@clisp.org>
76464
76465         * lib/hash-pjw.c: Add comment about low quality of this function.
76466
76467 2003-01-13  Bruno Haible  <bruno@clisp.org>
76468
76469         * modules/stpcpy: Distribute lib/stpcpy.h.
76470         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76471
76472 2003-01-13  Bruno Haible  <bruno@clisp.org>
76473
76474         * modules/*: Add a description.
76475         * modules/strpbrk: Fix Makefile.am snippet.
76476         * modules/strtoimax: Fix dependencies.
76477         * modules/strtoumax: Likewise.
76478
76479 2003-01-13  Bruno Haible  <bruno@clisp.org>
76480
76481         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76482         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76483         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76484
76485 2003-01-13  Bruno Haible  <bruno@clisp.org>
76486
76487         * gnulib-tool (func_create_testdir): Store config/* files in the main
76488         directory.
76489         * config.rpath: Move to ...
76490         * config/config.rpath: ... here.
76491         * modules/gettext: Contains config/config.rpath, not config.rpath.
76492         * modules/iconv: Likewise.
76493
76494 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76495
76496         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76497         to avoid collisions with libcurses and libreadline.
76498
76499         * m4/getstr.m4: Remove.
76500         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76501
76502 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76503
76504         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76505         to avoid collisions with libcurses and libreadline.
76506
76507         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76508         * lib/getstr.h, getstr.c: Remove.
76509         * lib/getline.c: Include "getline.h", to check interface.
76510         Move body of old getstr.c here: this defines MIN_CHUNK and
76511         declares getdelim2, which is renamed from getstr.
76512         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76513
76514         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76515         All uses changed.
76516         * lib/linebuffer.h: Likewise.
76517         (readline): Remove backward-compatibility macro.
76518
76519 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76520
76521         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76522         to avoid collisions with libcurses and libreadline.
76523         * getstr: Remove.
76524         * MODULES.html.sh: Remove getstr.
76525         * modules/getline: Depend on unlocked-io, not getstr.
76526
76527 2003-01-12  Jim Meyering  <jim@meyering.net>
76528
76529         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76530
76531 2003-01-10  Bruno Haible  <bruno@clisp.org>
76532
76533         * modules/alloca: Change Makefile.am requirements. Simplify Include
76534         requirements. Add lib/alloca_.h to file list.
76535
76536 2003-01-10  Bruno Haible  <bruno@clisp.org>
76537
76538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76539
76540 2003-01-10  Bruno Haible  <bruno@clisp.org>
76541
76542         * lib/alloca_.h: New file.
76543         * lib/getdate.y: Unconditionally include alloca.h.
76544         * lib/makepath.c: Likewise.
76545         * lib/setenv.c: Likewise.
76546         * lib/userspec.c: Likewise.
76547
76548 2003-01-09  Karl Berry  <karl@gnu.org>
76549
76550         * MODULES.html.sh: include `dirname $0` in PATH, to find
76551         gnulib-tool.
76552
76553 2003-01-09  Bruno Haible  <bruno@clisp.org>
76554
76555         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76556         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76557
76558 2003-01-09  Bruno Haible  <bruno@clisp.org>
76559
76560         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76561
76562 2003-01-09  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/stdbool.h.in: New file.
76565
76566 2003-01-09  Bruno Haible  <bruno@clisp.org>
76567
76568         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76569         * MODULES.html.sh: Likewise.
76570
76571 2003-01-08  Jim Meyering  <jim@meyering.net>
76572
76573         * lib/full-write.c: Undefine and define-away `const' after inclusion
76574         of errno.h, not before.  Suggestion from Bruno Haible.
76575
76576 2003-01-08  Bruno Haible  <bruno@clisp.org>
76577
76578         * modules/full-read: Depend on full-write.
76579
76580 2003-01-08  Bruno Haible  <bruno@clisp.org>
76581
76582         * lib/safe-read.c: Include specification header first, to ensure its
76583         selfcontainedness.
76584         * lib/full-write.c: Likewise.
76585
76586 2003-01-07  Jim Meyering  <jim@meyering.net>
76587
76588         * lib/full-write.c: Rework so that it may serve to define full_read,
76589         too.
76590         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76591
76592 2003-01-07  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76595         <inttypes.h>.
76596         * lib/xstrtol.h: Likewise.
76597         * lib/xstrtoimax.c: Likewise.
76598         * lib/xstrtoumax.c: Likewise.
76599         * lib/human.h: Likewise.
76600
76601         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76602         on systems that have <inttypes.h> but not <stdint.h>.
76603
76604 2003-01-07  Bruno Haible  <bruno@clisp.org>
76605
76606         * MODULES.html.sh: Add copyright notice.
76607         (missed_files): Omit CVS directory entries.
76608         (func_module): Make it work with sed-3.02.
76609         * MODULES.txt: Remove file.
76610
76611 2003-01-06  Jim Meyering  <jim@meyering.net>
76612
76613         * lib/version-etc.c: Update year in translatable copyright string.
76614
76615 2003-01-03  Karl Berry  <karl@gnu.org>
76616
76617         * config/config.{guess,sub}: update from prep.
76618
76619 2003-01-02  Karl Berry  <karl@gnu.org>
76620
76621         * doc/COPYING.DOC: belatedly updated to 1.2.
76622
76623 2003-01-01  Karl Berry  <karl@gnu.org>
76624
76625         * gnulib-tool (func_verify_module): report module name $module in
76626         error message, not $1.
76627         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76628         be created, only if it doesn't exist.
76629         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76630
76631 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76632
76633         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76634
76635 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76636
76637         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76638         memcmp if strcoll doesn't work.
76639
76640 2002-12-31  Bruno Haible  <bruno@clisp.org>
76641
76642         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76643         nonempty.
76644
76645 2002-12-31  Bruno Haible  <bruno@clisp.org>
76646
76647         * lib/memcoll.c (STRCOLL): New macro.
76648         (memcoll): Use it.
76649
76650 2002-12-31  Bruno Haible  <bruno@clisp.org>
76651
76652         * lib/localcharset.h: New file.
76653         * lib/localcharset.c: Include it.
76654         * lib/unicodeio.c: Likewise.
76655
76656 2002-12-31  Bruno Haible  <bruno@clisp.org>
76657
76658         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76659         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76660
76661 2002-12-31  Bruno Haible  <bruno@clisp.org>
76662
76663         * lib/getline.h: Include <stddef.h>, for size_t.
76664
76665         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76666         * lib/unicodeio.c: Don't include <stddef.h>.
76667
76668 2002-12-31  Bruno Haible  <bruno@clisp.org>
76669
76670         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76671         HAVE_TM_ZONE.
76672
76673 2002-12-24  Karl Berry  <karl@gnu.org>
76674
76675         * config/config.guess: update from prep.
76676
76677 2002-12-24  Bruno Haible  <bruno@clisp.org>
76678
76679         General infrasructure.
76680         * m4/README: Rewritten.
76681         * m4/onceonly.m4: New file.
76682         * m4/onceonly_2_57.m4: New file.
76683
76684         Module atexit.
76685         * m4/atexit.m4: New file.
76686
76687         Module strtod.
76688         * m4/strtod.m4: New file.
76689
76690         Module strtol.
76691         * m4/strtol.m4: New file.
76692
76693         Module strtoul.
76694         * m4/strtoul.m4: New file.
76695
76696         Module memchr.
76697         * m4/memchr.m4: New file.
76698
76699         Module memcmp.
76700         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76701         (jm_FUNC_MEMCMP): Invoke it.
76702
76703         Module memcpy.
76704         * m4/memcpy.m4: New file.
76705
76706         Module memmove.
76707         * m4/memmove.m4: New file.
76708
76709         Module memset.
76710         * m4/memset.m4: New file.
76711
76712         Module strcspn.
76713         * m4/strcspn.m4: New file.
76714
76715         Module strpbrk.
76716         * m4/strpbrk.m4: New file.
76717
76718         Module strstr.
76719         * m4/strstr.m4: New file.
76720
76721         Module strerror.
76722         * m4/strerror.m4: New file.
76723
76724         Module mktime.
76725         * m4/mktime.m4: Renamed from jm-mktime.m4.
76726         (gl_PREREQ_MKTIME): New macro.
76727         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76728
76729         Module malloc.
76730         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76731         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76732         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76733
76734         Module realloc.
76735         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76736         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76737         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76738
76739         Module strftime.
76740         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76742         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76743         gl_TM_GMTOFF.
76744         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76745
76746         Module xalloc.
76747         * m4/xalloc.m4: New file.
76748
76749         Module alloca.
76750         * m4/alloca.m4: New file.
76751
76752         Module putenv.
76753         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76754         (jm_FUNC_PUTENV): Invoke it.
76755
76756         Module setenv.
76757         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76758         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76759         when invoked twice.
76760         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76761         gt_FUNC_SETENV.
76762
76763         Module memrchr.
76764         * m4/memrchr.m4: New file.
76765
76766         Module stpcpy.
76767         * m4/stpcpy.m4: New file.
76768
76769         Module strcase.
76770         * m4/strcase.m4: New file.
76771
76772         Module strdup.
76773         * m4/strdup.m4: New file.
76774
76775         Module strnlen.
76776         * m4/strnlen.m4: New file.
76777
76778         Module strndup.
76779         * m4/strndup.m4: New file.
76780
76781         Module xstrtod.
76782         * m4/xstrtod.m4: New file.
76783
76784         Module xstrtol.
76785         * m4/xstrtol.m4: New file.
76786
76787         Module getdate.
76788         * m4/getdate.m4: New file.
76789
76790         Module unlocked-io.
76791         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76792         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76793         * m4/jm-glibc-io.m4n: Remove file.
76794
76795         Module long-options.
76796         * m4/long-options.m4: New file.
76797
76798         Module md5.
76799         * m4/md5.m4: New file.
76800
76801         Module sha.
76802         * m4/sha.m4: New file.
76803
76804         Module getstr.
76805         * m4/getstr.m4: New file.
76806
76807         Module getline.
76808         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76809         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76810         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76811         simply getline. Infoke gl_PREREQ_GETLINE.
76812
76813         Module obstack.
76814         * m4/obstack.m4: New file.
76815
76816         Module hash.
76817         * m4/hash.m4: New file.
76818
76819         Module readtokens.
76820         * m4/readtokens.m4: New file.
76821
76822         Module strverscmp.
76823         * m4/strverscmp.m4: New file.
76824
76825         Module stdbool.
76826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76827         OSF/1.
76828
76829         Module strtoll.
76830         * m4/strtoll.m4: New file.
76831
76832         Module strtoull.
76833         * m4/strtoull.m4: New file.
76834
76835         Module strtoimax.
76836         * m4/strtoimax.m4: New file.
76837
76838         Module strtoumax.
76839         * m4/strtoumax.m4: New file.
76840
76841         Module xstrtoimax.
76842         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76843         jm_AC_PREREQ_XSTRTOIMAX.
76844         Moved the strtol prerequisites to strtol.m4.
76845         Moved the strtoll prerequisites to strtoll.m4.
76846         Moved the strtoimax prerequisites to strtoimax.m4.
76847
76848         Module xstrtoumax.
76849         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76850         jm_AC_PREREQ_XSTRTOUMAX.
76851         Moved the strtoul prerequisites to strtoul.m4.
76852         Moved the strtoull prerequisites to strtoull.m4.
76853         Moved the strtoumax prerequisites to strtoumax.m4.
76854
76855         Module chown.
76856         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76857         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76858
76859         Module dup2.
76860         * m4/dup2.m4: New file.
76861
76862         Module ftruncate.
76863         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76864         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76865
76866         Module getgroups.
76867         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76868         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76869
76870         Module gettimeofday.
76871         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76872         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76873         gl_PREREQ_GETTIMEOFDAY.
76874
76875         Module mkdir.
76876         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76877         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76878
76879         Module mkstemp.
76880         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76881         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76882         jm_AC_TYPE_UINTMAX_T.
76883         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76884
76885         Module stat.
76886         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76887         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76888
76889         Module lstat.
76890         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76891         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76892
76893         Module timespec.
76894         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76895         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76896         * m4/st_mtim.m4: Indentation.
76897
76898         Module nanosleep.
76899         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76900         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76901         gl_PREREQ_NANOSLEEP.
76902
76903         Module regex.
76904         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76905         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76906         (gl_REGEX): New macro.
76907
76908         Module rename.
76909         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76910         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76911
76912         Module rmdir.
76913         * m4/rmdir.m4: New file.
76914
76915         Module utime.
76916         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76917         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76918         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76919
76920         Module dirname.
76921         * m4/dirname.m4: New file.
76922
76923         Module getopt.
76924         * m4/getopt.m4: New file.
76925
76926         Module unistd-safer.
76927         * m4/unistd-safer.m4: New file.
76928
76929         Module fnmatch.
76930         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76931         declaration.
76932         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76933         (gl_FUNC_FNMATCH_POSIX): New macro.
76934         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76935         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76936         simply fnmatch.
76937
76938         Module exclude.
76939         * m4/exclude.m4: New file.
76940
76941         Module human.
76942         * m4/human.m4: New file.
76943
76944         Module acl.
76945         * m4/acl.m4: Nop.
76946
76947         Module backupfile.
76948         * m4/backupfile.m4: New file.
76949         * m4/d-ino.m4: Indentation.
76950
76951         Module fsusage.
76952         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76953         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76954         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76955
76956         Module dirfd.
76957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76958         requirements.
76959
76960         Module euidaccess.
76961         * m4/euidaccess.m4: New file.
76962
76963         Module file-type.
76964         * m4/file-type.m4: New file.
76965
76966         Module fileblocks.
76967         * m4/fileblocks.m4: New file.
76968
76969         Module filemode.
76970         * m4/filemode.m4: New file.
76971
76972         Module isdir.
76973         * m4/isdir.m4: New file.
76974
76975         Module lchown.
76976         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76977         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76978
76979         Module makepath.
76980         * m4/makepath.m4: New file.
76981
76982         Module modechange.
76983         * m4/modechange.m4: New file.
76984
76985         Module mountlist.
76986         * m4/mountlist.m4: New file.
76987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76988         Indentation.
76989
76990         Module path-concat.
76991         * m4/path-concat.m4: New file.
76992
76993         Module pathmax.
76994         * m4/pathmax.m4: New file.
76995
76996         Module same.
76997         * m4/same.m4: New file.
76998
76999         Module save-cwd.
77000         * m4/save-cwd.m4: New file.
77001
77002         Module savedir.
77003         * m4/savedir.m4: New file.
77004
77005         Module xgetcwd.
77006         * m4/xgetcwd.m4: New file.
77007         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77008
77009         Module xreadlink.
77010         * m4/xreadlink.m4: New file.
77011
77012         Module safe-read.
77013         * m4/safe-read.m4: New file.
77014
77015         Module safe-write.
77016         * m4/safe-write.m4: New file.
77017
77018         Module closeout.
77019         * m4/closeout.m4: New file.
77020
77021         Module stdio-safer.
77022         * m4/stdio-safer.m4: New file.
77023
77024         Module getpass.
77025         * m4/getpass.m4: New file.
77026
77027         Module getugroups.
77028         * m4/getugroups.m4: New file.
77029
77030         Module group-member.
77031         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77032         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77033
77034         Module idcache.
77035         * m4/idcache.m4: New file.
77036
77037         Module userspec.
77038         * m4/userspec.m4: New file.
77039
77040         Module gettime.
77041         * m4/clock_time.m4: New file.
77042         * m4/gettime.m4: New file.
77043
77044         Module settime.
77045         * m4/settime.m4: New file.
77046
77047         Module posixtm.
77048         * m4/posixtm.m4: New file.
77049
77050         Module gethostname.
77051         * m4/gethostname.m4: New file.
77052
77053         Module canon-host.
77054         * m4/canon-host.m4: New file.
77055
77056         Module gettext.
77057         * m4/codeset.m4: New file, from gettext-0.11.5.
77058         * m4/gettext.m4: New file, from gettext-0.11.5.
77059         * m4/glibc21.m4: New file, from gettext-0.11.5.
77060         * m4/iconv.m4: New file, from gettext-0.11.5.
77061         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77062         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77063         * m4/inttypes.m4: New file, from gettext-0.11.5.
77064         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77065         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77066         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77067         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77068         * m4/lib-link.m4: New file, from gettext-0.11.5.
77069         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77070         * m4/progtest.m4: New file, from gettext-0.11.5.
77071         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77072         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77073         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77074
77075         Module localcharset.
77076         * m4/localcharset.m4: New file.
77077
77078         Module hard-locale.
77079         * m4/hard-locale.m4: New file.
77080
77081         Module mbswidth.
77082         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77083         onceonly macros.
77084         * m4/mbrtowc.m4: Add comment.
77085
77086         Module memcasecmp.
77087         * m4/memcasecmp.m4: New file.
77088
77089         Module memcoll.
77090         * m4/memcoll.m4: New file.
77091
77092         Module unicodeio.
77093         * m4/unicodeio.m4: New file.
77094
77095         Module rpmatch.
77096         * m4/rpmatch.m4: New file.
77097
77098         Module yesno.
77099         * m4/yesno.m4: New file.
77100
77101         Module exitfail.
77102         * m4/exitfail.m4: New file.
77103
77104         Module c-stack.
77105         * m4/c-stack.m4 (gl_C_STACK): New macro.
77106         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77107
77108         Module error.
77109         * m4/error.m4 (gl_ERROR): New macro.
77110         (jm_PREREQ_ERROR): Use onceonly macros.
77111
77112         Module fatal.
77113         * m4/fatal.m4: New file.
77114
77115         Module getloadavg.
77116         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77117         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77118
77119         Module getpagesize.
77120         * m4/getpagesize.m4: New file.
77121
77122         Module getusershell.
77123         * m4/getusershell.m4: New file.
77124
77125         Module physmem.
77126         * m4/physmem.m4: New file.
77127
77128         Module posixver.
77129         * m4/posixver.m4: New file.
77130
77131         Module quotearg.
77132         * m4/quotearg.m4: New file.
77133
77134         Module quote.
77135         * m4/quote.m4: New file.
77136
77137         Module readutmp.
77138         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77139
77140         Module sig2str.
77141         * m4/sig2str.m4: New file.
77142
77143         Other.
77144         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77145         ulonglong.m4.
77146         * m4/intmax_t.m4: New file.
77147         * m4/d-type.m4: Indentation.
77148         * m4/jm-macros.m4: Update.
77149         * m4/prereq.m4 (jm_PREREQ): Update.
77150         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77151         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77152         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77153         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77154         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77155         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77156         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77157         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77158         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77159         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77160         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77161         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77162         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77163         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77164         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77165         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77166         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77167         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77168         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77169
77170 2002-12-24  Bruno Haible  <bruno@clisp.org>
77171
77172         * MODULES.txt: Update according to m4/ changes.
77173
77174         Module gettext.
77175         * config.rpath: New file, from gettext-0.11.5.
77176
77177         * modules/*: New module descriptions.
77178         * gnulib-tool: New file.
77179         * MODULES.html.sh: New file.
77180
77181 2002-12-21  Karl Berry  <karl@gnu.org>
77182
77183         * doc/fdl.texi: update to version 1.2.
77184
77185 2002-12-19  Karl Berry  <karl@gnu.org>
77186
77187         * config/config.guess: update from prep.
77188
77189 2002-12-18  Bruno Haible  <bruno@clisp.org>
77190
77191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77192         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77193
77194 2002-12-17  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77197         stdlib.h, string.h.
77198
77199 2002-12-17  Bruno Haible  <bruno@clisp.org>
77200
77201         * lib/canon-host.c (strdup): Remove unused declaration.
77202
77203         * lib/fsusage.c: Include full_read.h.
77204         (get_fs_usage): Use full_read instead of safe_read.
77205
77206         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77207
77208 2002-12-12  Karl Berry  <karl@gnu.org>
77209
77210         * config/config.guess: update from prep.
77211
77212 2002-12-11  Bruno Haible  <bruno@clisp.org>
77213
77214         * m4/setenv.m4: New file, from gettext-0.11.5.
77215
77216 2002-12-11  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77219         not unsetenv().
77220         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77221         modifications:
77222
77223         2002-12-11  Bruno Haible  <bruno@clisp.org>
77224
77225                 * setenv.c (alloca): Fall back to malloc.
77226                 (freea): New macro.
77227                 (setenv): Use freea() to free memory allocated with alloca().
77228
77229         2002-11-13  Bruno Haible  <bruno@clisp.org>
77230
77231                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77232                 function declarations.
77233                 * unsetenv.c (unsetenv): Likewise.
77234
77235         2002-03-04  Bruno Haible  <bruno@clisp.org>
77236
77237                 Portability to AIX 4.3.3.
77238                 * unsetenv.c: New file, extracted from setenv.c.
77239                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77240
77241         2001-12-20  Bruno Haible  <bruno@clisp.org>
77242
77243                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77244                 use malloc instead. For SunOS 4.
77245
77246         2001-12-11  Bruno Haible  <bruno@clisp.org>
77247
77248                 * setenv.c: Declare alloca.
77249                 (compar_fn_t): New typedef.
77250                 (KNOWN_VALUE, STORE_VALUE): Use it.
77251
77252         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77253         setenv.h.
77254
77255 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77256
77257         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77258         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77259         Choose values that are less likely to collide with system fnmatch
77260         options.
77261         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77262         defined (e.g., a pure POSIX system).
77263         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77264         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77265
77266 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77267
77268         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77269         a pain in practice to deal with generated m4 files.  This change
77270         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77271
77272         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77273         and jm-glibc-io.m4, as they are no longer a special case.
77274         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77275         kludge and the auto-generation stuff.  Check only whether the
77276         functions are declared, not whether they exist, since older hosts
77277         that don't declare the functions can't use the optimization anyway.
77278
77279 2002-12-06  Jim Meyering  <jim@meyering.net>
77280
77281         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77282
77283         Merge in changes from libc's misc/error.c, in preparation
77284         for the merge of gnulib's changes back into libc.
77285
77286         * lib/error.c (_): Define only if not already defined.
77287         Move definition to follow all #include directives.
77288         Include unlocked-io.h only if !_LIBC.
77289         [_LIBC]: Include <libio/libioP.h>.
77290         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77291         (fflush): Tweak definition to use INTUSE.
77292         (putc): Define.
77293
77294 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77295
77296         * lib/alloca.c [defined emacs]: Include "lisp.h".
77297         (xalloc_die) [defined emacs]: New macro.
77298         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77299         [! defined emacs]: Include <xalloc.h>.
77300         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77301         (pointer): Typedef to POINTER_TYPE *.
77302         (malloc): Remove decl; we now always use xmalloc.
77303         (alloca): Use old-style definition, since Emacs needs this.
77304         Check for arithmetic overflow when computing combined size.
77305
77306 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77307
77308         Do not generate unlocked-io.h automatically, since it's easier to
77309         maintain it by hand.
77310
77311         * lib/unlocked-io.h: New file, from GNU diffutils,
77312         but with proper copyright notice and attribution.
77313         * lib/gen-uio: Remove.
77314         * lib/Makefile.am: Add copyright notice.
77315         (libfetish_a_SOURCES): Add unlocked-io.h.
77316         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77317         (DISTCLEANFILES, io_functions): Remove macros.
77318         (EXTRA_DIST): Remove gen_uio.
77319         (unlocked-io.h): Remove rule.
77320
77321 2002-12-04  Jim Meyering  <jim@meyering.net>
77322
77323         Reflect the fact that stat.c and lstat.c are no longer generated.
77324         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77325         (DISTCLEANFILES): Likewise.
77326         (EXTRA_DIST): Likewise.
77327         (all_local): Don't depend on stat.c or lstat.c.
77328         (stat.c, lstat.c): Remove rules.
77329         (EXTRA_DIST): Remove xstat.in.
77330
77331         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77332         * lib/stat.c: New file.  Contents mostly from xstat.in.
77333         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77334         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77335
77336         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77337         too.
77338         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77339
77340 2002-12-03  Jim Meyering  <jim@meyering.net>
77341
77342         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77343         but not semantics, to minimize the differences between these two files.
77344         (safe_read): Change comment to mention SAFE_READ_ERROR.
77345
77346         * lib/safe-read.c (IS_EINTR): Define.
77347         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77348
77349 2002-12-02  Jim Meyering  <jim@meyering.net>
77350
77351         * lib/safe-read.c (EINTR): Define.
77352         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77353         (INT_MAX): Provide fallback.
77354         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77355
77356         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77357
77358 2002-12-02  Bruno Haible  <bruno@clisp.org>
77359
77360         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77361         Define, taken from safe-read.c.
77362         (INT_MAX): Provide fallback.
77363         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77364         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77365
77366         * lib/safe-read.c (EINTR): Remove definition.
77367         (safe_read): Don't use EINTR if it is absent.
77368
77369 2002-12-01  Jim Meyering  <jim@meyering.net>
77370
77371         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77372         zero.
77373         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77374
77375 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77376
77377         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77378         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77379         with `if (! (value < limit)) abort ();', for readability.
77380
77381 2002-11-26  Karl Berry  <karl@gnu.org>
77382
77383         * lib/strdup.c: copy from libc again, with jim's ok.
77384         * lib/.cppi-disable: re-add strdup.c
77385
77386 2002-11-25  Karl Berry  <karl@gnu.org>
77387
77388         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77389         instead of "strtol.c".
77390
77391 2002-11-25  Karl Berry  <karl@gnu.org>
77392
77393         * config/install-sh: update from automake for variable quoting, $0 in
77394         error msgs, etc.
77395
77396         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77397         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77398         entry.
77399
77400 2002-11-25  Jim Meyering  <jim@meyering.net>
77401
77402         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77403
77404 2002-11-24  Karl Berry  <karl@gnu.org>
77405
77406         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77407         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77408
77409 2002-11-24  Jim Meyering  <jim@meyering.net>
77410
77411         Update from coreutils:
77412
77413         * lib/mktime.c: Merge in changes from libc.
77414
77415         Avoid a link-time failure on some Linux systems.
77416         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77417         (otherwise).
77418         (__mon_yday): Declare with the STATIC attribute.
77419         (__mktime_internal): Likewise.
77420         Based on a report from Greg Schafer.
77421
77422 2002-11-23  Jim Meyering  <jim@meyering.net>
77423
77424         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77425         Use `unsigned', not `int', as type of index.
77426
77427         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77428
77429         * lib/fsusage.c: Remove unneeded parentheses around operands of
77430         `defined'.
77431
77432 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77435         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77436         so that we can be included first.
77437         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77438         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77439         No need to include stddef.h or sys/types.h any more.
77440         Surround local include files with "", not "<>".
77441         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77442         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77443         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77444         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77445         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77446         (ISPRINT): Remove; no longer needed now that we assume C89.
77447
77448         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77449         Preserve errno.
77450
77451         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77452         quotearg_char): Use SIZE_MAX rather than
77453         (size_t) -1 when we are talking about "infinity".
77454
77455         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77456
77457 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77458
77459         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77460         hint that one should use `if (! x) abort ();' rather than `assert
77461         (x);', and anyway it's one less thing to worry about configuring.
77462         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77463         hash_rehash, hash_insert): Use abort rather than assert.
77464
77465 2002-11-22  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/safe-read.h: Assume C89. Add comments.
77468         (safe_read): Change return type to size_t.
77469         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77470         byte counts > SSIZE_MAX correctly.
77471         * lib/safe-write.h: New file.
77472         * lib/safe-write.c: New file.
77473         * lib/full-read.h: New file.
77474         * lib/full-read.c: New file.
77475         * lib/full-write.h: Assume C89. Add comments.
77476         * lib/full-write.c: Include safe-write.h.
77477         (full_write): Rewritten to use safe_write.
77478         Suggested by Jim Meyering and Paul Eggert.
77479
77480 2002-11-21  Jim Meyering  <jim@meyering.net>
77481
77482         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77483
77484         Merge in changes from the coreutils.
77485
77486         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77487         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77488         <stdint.h>.
77489         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77490         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77491         int.  Work more efficiently if X is the same width as uintmax_t.
77492         Do not compare X to -1, to avoid bogus compiler warning.
77493         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77494         Don't assume that f_frsize and f_bsize are the same type.
77495
77496         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77497         warning on FreeBSD.
77498
77499         * lib/makepath.c (make_path): Restore umask *before* creating the final
77500         component.
77501         (make_path): Minor reformatting.
77502
77503         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77504         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77505         HAVE_MALLOC/HAVE_REALLOC.
77506
77507         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77508         dummy ones.  At least on GNU/Linux systems, `auto' means something
77509         else.
77510         From Michael Stone.
77511
77512 2002-11-21  Bruno Haible  <bruno@clisp.org>
77513
77514         Remove case insensitive option matching.
77515         * lib/argmatch.h (argcasematch): Remove declaration.
77516         (ARGCASEMATCH): Remove macro.
77517         (__xargmatch_internal): Remove case_sensitive argument.
77518         (XARGMATCH): Update.
77519         (XARGCASEMATCH): Remove macro.
77520         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77521         case_sensitive argument.
77522         (argcasematch): Remove function.
77523         (__xargmatch_internal): Remove case_sensitive argument.
77524         (main): Use XARGMATCH instead of XARGCASEMATCH.
77525
77526         * lib/xmalloc.c: Change compile-time error message. Add comment about
77527         required autoconf version.
77528
77529 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77530
77531         Merge argmatch cleanups from Bison.  Assume C89.
77532
77533         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77534         Include stdlib.h, for EXIT_FAILURE.
77535         Always include <string.h>, since we assume C89.
77536         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77537         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77538         Include <stddef.h> instead, since it's all we need for size_t.
77539         (PARAMS): Remove.  All uses removed.
77540         (ARRAY_CARDINALITY): Do not bother to #undef.
77541         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77542         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77543         Remove unnecessary parentheses.
77544         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77545         Insert necessary parentheses.
77546         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77547         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77548
77549 2002-11-19  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77552         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77553
77554         * lib/mbswidth.h (PARAMS): Remove macro.
77555         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77556         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77557
77558         * lib/gcd.h (PARAMS): Remove macro.
77559         (gcd): Use ANSI C function declarations.
77560         * lib/gcd.c (gcd): Likewise.
77561
77562 2002-11-15  Bruno Haible  <bruno@clisp.org>
77563
77564         * lib/strcspn.c: Include <stddef.h>.
77565         (strcspn): Use ANSI C function declaration. Change return type to
77566         size_t. Use NULL.
77567         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77568         (strpbrk): Use NULL.
77569         * lib/strpbrk.h (PARAMS): Remove macro.
77570         (strpbrk): Use ANSI C function declaration.
77571         * lib/strstr.c: Don't include <sys/types.h>.
77572         * lib/strstr.h (PARAMS): Remove macro.
77573         (strstr): Use ANSI C function declarations.
77574
77575 2002-11-14  Karl Berry  <karl@gnu.org>
77576
77577         * config/mkinstalldirs: `do' on separate line, instead of
77578         `for var; do'.
77579
77580 2002-11-06  Bruno Haible  <bruno@clisp.org>
77581
77582         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77583         * lib/gcd.c (gcd): Likewise.
77584
77585 2002-11-05  Bruno Haible  <bruno@clisp.org>
77586
77587         * lib/gcd.h: New file, from gettext-0.11.5.
77588         * lib/gcd.c: New file, from gettext-0.11.5.
77589
77590 2002-11-05  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77593         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77594         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77595         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77596
77597         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77598         <libintl.h>.
77599         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77600         <libintl.h>.
77601
77602         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77603         * lib/human.c: Include gettext.h instead of <libintl.h>.
77604         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77605         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77606         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77607         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77608         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77609         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77610         (textdomain): Remove definition.
77611         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77612
77613         * lib/long-options.c: Remove include of <libintl.h> and definition of
77614         _.
77615         * lib/same.c: Remove include of <libintl.h> and definition of _.
77616
77617 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77618
77619         * lib/config.charset: A few additions for Solaris.
77620
77621 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77622
77623         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77624         * lib/localcharset.c (locale_charset): Declare as extern "C".
77625
77626 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77627
77628         * lib/config.charset: msdos in uk_UA uses CP1125.
77629
77630 2002-11-04  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77633         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77634         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77635         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77636         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77637
77638 2002-11-04  Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/localcharset.c (locale_charset): Don't return an empty string.
77641
77642 2002-11-04  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77645         aliases.
77646
77647 2002-11-04  Bruno Haible  <bruno@clisp.org>
77648
77649         * lib/config.charset: Update for newest glibc. Add canonical names
77650         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77651
77652 2002-11-04  Bruno Haible  <bruno@clisp.org>
77653
77654         * lib/config.charset: Add support for NetBSD.
77655
77656 2002-11-04  Bruno Haible  <bruno@clisp.org>
77657
77658         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77659
77660 2002-11-01  Bruno Haible  <bruno@clisp.org>
77661
77662         * configure.in: Add AC_CONFIG_AUX_DIR call.
77663         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77664         test/Makefile.
77665         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77666
77667 2002-09-28  Karl Berry  <karl@gnu.org>
77668
77669         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77670         installed automake until the next release, since changes have been
77671         made.
77672
77673 2002-09-25  Karl Berry  <karl@gnu.org>
77674
77675         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77676         * lib/getopt*: copy from libc/posix.
77677         * lib/gettext.h: copy from gettext.
77678         * lib/.cppi-disable: add strdup.c, gettext.h.
77679
77680 2002-09-25  Karl Berry  <karl@gnu.org>
77681
77682         * config/srclist.txt: enable gettext.h check.
77683         * config/config.{guess,sub}: update from prep.
77684         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77685                 from automake 1.6.3.
77686         See srclist*.
77687
77688 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77689
77690         * regex.c (PATFETCH): Remove the translating fetch.
77691         (PATFETCH_RAW): Rename to PATFETCH.
77692         (set_image_of_range): New fun.
77693         (SET_RANGE_TABLE_WORK_AREA): Use it.
77694         (regex_compile): Don't translate the pattern chars so eagerly.
77695         Only do it when inserting an `exactn' bytecode or when handling
77696         a char-range.
77697         (mutually_exclusive_p): Avoid empty statement.
77698
77699 2002-07-06  Jim Meyering  <meyering@lucent.com>
77700
77701         * m4/README: Don't mention Makefile.am.in.
77702         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77703
77704 2002-07-01  Jim Meyering  <meyering@lucent.com>
77705
77706         * lib/c-stack.c: Include sys/time.h.
77707         From Volker Borchert.
77708
77709 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77710
77711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77712
77713 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77714
77715         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77716         New macro.  Use it uniformly instead of
77717         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77718         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77719         reported by Vin Shelton.
77720
77721 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77722
77723         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77724         Do not assume SA_SIGINFO behavior.
77725         Bug reported by Jim Meyering on NetBSD 1.5.2.
77726
77727 2002-06-22  Jim Meyering  <meyering@lucent.com>
77728
77729         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77731
77732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77733         now that configure.ac uses AC_GNU_SOURCE.
77734         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77735         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77736
77737         Update to latest tools.  Suggestions from Paul Eggert.
77738         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77739         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77740         * m4/fnmatch.m4: Likewise.
77741         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77742         to AC_HEADER_STDBOOL
77743
77744 2002-06-22  Jim Meyering  <meyering@lucent.com>
77745
77746         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77747         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77748
77749 2002-06-22  Jim Meyering  <meyering@lucent.com>
77750
77751         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77752
77753         * lib/exitfail.c, exitfail.h: Likewise.
77754         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77755
77756         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77757         of fnmatch.h.
77758         (EXTRA_DIST): Add fnmatch_loop.c.
77759         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77760
77761         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77762         * lib/fnmatch.c: Update from diffutils-2.8.2.
77763         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77764         * lib/fnmatch.h: Remove file.
77765
77766 2002-06-21  Jim Meyering  <meyering@lucent.com>
77767
77768         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77769         * m4/mbrtowc.m4: Likewise.
77770
77771         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77772         * m4/mbswidth.m4: Reflect name change:
77773         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77775
77776         * m4/lib-link.m4: Update from gettext-0.11.2.
77777         * m4/gettext.m4: Likewise.
77778
77779         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77780         From Alfred M. Szmidt.
77781
77782 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77783
77784         * lib/file-type.h: Report an error if neither S_ISREG nor
77785         S_IFREG is defined, instead of using a test specific to glibc
77786         2.2.  This should be safe, since POSIX requires S_ISREG and
77787         Unix Version 7 had S_IFREG.  We don't need to check for
77788         <sys/types.h> since we don't use any symbols that it defines.
77789
77790 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77791
77792         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77793         $@-t, so that each temporary file name is unique and valid in the first
77794         8 characters, for operation under DOS.
77795
77796 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77797
77798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77799
77800 2002-06-15  Jim Meyering  <meyering@lucent.com>
77801
77802         Work even with DJGPP 2.03, which lacks support for symlinks.
77803         From Richard Dawe.
77804         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77805         is defined.
77806         * lib/lchown.c (S_ISLNK): Likewise.
77807
77808 2002-06-15  Jim Meyering  <meyering@lucent.com>
77809
77810         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77811         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77812         have been included before this file.
77813
77814 2002-06-14  Jim Meyering  <meyering@lucent.com>
77815
77816         * lib/file-type.h: Use the version from diffutils-2.8.2.
77817         * lib/file-type.c: Likewise.
77818
77819 2002-06-07  Jim Meyering  <meyering@lucent.com>
77820
77821         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77822         They're needed at least for NetBSD 1.5.2.
77823         ($statxfs_includes): Include those same headers.
77824         ($statxfs_includes): Include sys/vfs.h if available.
77825         ($statxfs_includes): Likewise for sys/statvfs.h.
77826         Check for the following members in both structs statfs and statvfs:
77827         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77828
77829 2002-06-01  Jim Meyering  <meyering@lucent.com>
77830
77831         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77832         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77833
77834 2002-05-28  Jim Meyering  <meyering@lucent.com>
77835
77836         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77837         Reported by Volker Borchert.
77838
77839 2002-05-27  Jim Meyering  <meyering@lucent.com>
77840
77841         Fix a problem seen only on nonconforming systems whereby ls.c's
77842         use of localtime, and then of gettimeofday would cause trouble:
77843         the localtime call used to initialize rpl_gettimeofday's save
77844         mechanism would clobber ls's current local time information so
77845         that in any long listing the first file would always be listed
77846         with date 1970-01-01.  Analysis by Volker Borchert.
77847
77848         * lib/gettimeofday.c (localtime): Undefine.
77849         (rpl_localtime): New function.
77850
77851 2002-05-27  Jim Meyering  <meyering@lucent.com>
77852
77853         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77854         localtime.
77855
77856         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77857         use the replacement function; it wouldn't resolve at link time.
77858         Reported by Volker Borchert.
77859
77860 2002-05-22  Jim Meyering  <meyering@lucent.com>
77861
77862         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77863         file-type.h.
77864         * lib/file-type.h: New file.
77865         * lib/file-type.c (file_type): New file/function.  Extracted from
77866         diffutils.
77867
77868 2002-04-30  Jim Meyering  <meyering@lucent.com>
77869
77870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77871
77872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77873
77874         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77875
77876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77877
77878         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77879         Do not check for alloca.h (no longer used) or stdbool.h (was never
77880         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77881
77882 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77883
77884         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77885
77886 2002-04-29  Jim Meyering  <meyering@lucent.com>
77887
77888         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77889         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77890         Use AC_FUNC_STRNLEN here instead.
77891
77892         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77893         With autoconf-2.53a, it's part of AC_PROG_CC.
77894
77895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77896
77897         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77899
77900 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77901
77902         * lib/sig2str.h, lib/sig2str.c: New files.
77903         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77904
77905 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77906
77907         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77908         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77909         of 127, since 64 is the largest conceivable number for ancient
77910         nonstandard hosts.
77911         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77912
77913 2002-04-28  Jim Meyering  <meyering@lucent.com>
77914
77915         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77916
77917 2002-04-24  Jim Meyering  <meyering@lucent.com>
77918
77919         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77920         (jm_PREREQ): Use it.
77921
77922         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77923         mach/mach.h fcntl.h.
77924         Check for this function: setlocale.
77925
77926 2002-04-24  Jim Meyering  <meyering@lucent.com>
77927
77928         * lib/gettext.h: New file, from Gettext.
77929         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77930         (libfetish_a_SOURCES): Add gettext.h.
77931
77932 2002-04-16  Jim Meyering  <meyering@lucent.com>
77933
77934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77935         ut_pid, ut_id, ut_exit.
77936
77937 2002-04-16  Jim Meyering  <meyering@lucent.com>
77938
77939         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77940         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77941         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77942
77943 2002-04-12  Jim Meyering  <meyering@lucent.com>
77944
77945         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77946         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77947         existence of the getmntinfo function.  Needed for Darwin 5.3.
77948
77949         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77950         This is necessary at least on Darwin 5.3.
77951
77952         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77953         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77954         strnlen.o in the library, and that makes some versions of ranlib
77955         object.
77956
77957 2002-04-12  Jim Meyering  <meyering@lucent.com>
77958
77959         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77960
77961 2002-04-09  Jim Meyering  <meyering@lucent.com>
77962
77963         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77964         to be more precise.  Rather than saying we're checking whether the
77965         function `works', say what we're testing.
77966         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77967         Reported by Bruno Haible.
77968
77969 2002-03-10  Jim Meyering  <meyering@lucent.com>
77970
77971         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77972         Suggestion from Santiago Vila.
77973
77974 2002-03-08  Jim Meyering  <meyering@lucent.com>
77975
77976         * lib/rename.c: Mention that this wrapper is needed also on
77977         mips-dec-ultrix4.4 systems.
77978
77979 2002-03-02  Jim Meyering  <meyering@lucent.com>
77980
77981         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77982         not HAVE_CLOCK_SETTIME.
77983
77984 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77985
77986         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77987         Check for clock_settime.
77988
77989 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77990
77991         * lib/nanosleep.h: Rename to....
77992         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77993
77994         * lib/gettime.c: New file.
77995         * lib/settime.c: New file.
77996         * lib/stime.c: Remove.
77997
77998         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77999         timespec.h.  Remove nanosleep.h.
78000
78001 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78002
78003         * m4/acl.m4: New file.
78004         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78005         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78006
78007 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78008
78009         * lib/acl.c, lib/acl.h: New files.
78010         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78011
78012 2002-02-24  Jim Meyering  <meyering@lucent.com>
78013
78014         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78015         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78016         cause trouble.  Reported by Nelson Beebe.
78017
78018 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78019
78020         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78021         compilers that don't know that xalloc_die never returns.
78022
78023 2002-02-20  Jim Meyering  <meyering@lucent.com>
78024
78025         * lib/getdate.c: Regenerate using bison-1.33.
78026
78027 2002-02-17  Jim Meyering  <meyering@lucent.com>
78028
78029         * config/config.guess (main): Don't use `head -1'; it's no longer
78030         portable. Use `sed 1q' instead.
78031
78032 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78033
78034         * m4/codeset.m4: Upgrade to gettext-0.11.
78035         * m4/gettext.m4: Upgrade to gettext-0.11.
78036         * m4/glibc21.m4: Upgrade to gettext-0.11.
78037         * m4/iconv.m4: Upgrade to gettext-0.11.
78038         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78039         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78040         * m4/lib-ld.m4: New file, from gettext-0.11.
78041         * m4/lib-link.m4: New file, from gettext-0.11.
78042         * m4/lib-prefix.m4: New file, from gettext-0.11.
78043         * m4/progtest.m4: Upgrade to gettext-0.11.
78044
78045 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78046
78047         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78048         (jm_PREREQ): Use it.
78049
78050 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78051
78052         * lib/posixver.c, lib/posixver.h: New files.
78053         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78054
78055 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78056             Bruno Haible  <bruno@clisp.org>
78057
78058         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78059         (fwrite_success_callback): New declaration.
78060         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78061         print_unicode_char. Call failure callback instead of error.
78062         (fwrite_success_callback): New function.
78063         (exit_failure_callback): New function.
78064         (fallback_failure_callback): New function.
78065         (print_unicode_char): Call unicode_to_mb.
78066
78067 2002-01-26  Jim Meyering  <meyering@lucent.com>
78068
78069         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78070         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78071
78072 2002-01-26  Jim Meyering  <meyering@lucent.com>
78073
78074         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78075
78076 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78077
78078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78079
78080 2002-01-22  Jim Meyering  <meyering@lucent.com>
78081
78082         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78083         Otherwise, some versions of automake would omit the rule that makes
78084         Makefile from Makefile.in.
78085
78086 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78087
78088         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78089         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78090         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78091         (memcoll): Set errno to zero if there is no error.
78092
78093         * lib/quotearg.c (quotearg_buffer_restyled):
78094         Fix bug with quoting buffers containing NUL when backslashing escapes.
78095         This bug was exposed by the other changes in this patch.
78096         (quotearg_n_options): New arg ARGSIZE.
78097         All callers changed.
78098         (quoting_options_from_style): New function.
78099         (quotearg_n_style): Use it.
78100         (quotearg_n_style_mem): New function.
78101
78102         * lib/quotearg.h (quotearg_n_style_mem): New function.
78103
78104 2002-01-19  Jim Meyering  <meyering@lucent.com>
78105
78106         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78107         Remove useless quotes: DF_PROG="df".
78108         * m4/strnlen.m4: New file.
78109
78110 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78111
78112         * lib/backupfile.c (ISDIGIT): Comment fix.
78113         * lib/getdate.y (ISDIGIT): Likewise.
78114         * lib/posixtm.c (ISDIGIT, year): Likewise.
78115         * lib/strverscmp.c (ISDIGIT): Likewise.
78116         * lib/userspec.c (ISDIGIT): Likewise.
78117
78118 2002-01-16  Jim Meyering  <meyering@lucent.com>
78119
78120         * lib/getdate.y: Add three semicolons, each just before a closing
78121         brace. Bison (as of version 1.31) no longer papers over that mistake.
78122
78123 2002-01-05  Jim Meyering  <meyering@lucent.com>
78124
78125         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78126
78127 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78128
78129         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78130         not silently exit merely because the output buffer happens to
78131         have nothing pending.
78132
78133 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78134
78135         See the big note in ../ChangeLog.
78136         * lib/human.c (suffixes): Prefer K to k for 1024.
78137         (generate_suffix_backwards): New function.
78138         (human_readable_inexact): Use it.
78139         * lib/xstrtol.c (__xstrtol): If there is no number but there
78140         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78141         Accept 'K' as well as 'k'.
78142
78143 2001-12-15  Jim Meyering  <meyering@lucent.com>
78144
78145         * lib/regex.h (__restrict_arr): Update from libc.
78146
78147         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78148         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78149         (STREQ): Define.
78150
78151 2001-12-14  Jim Meyering  <meyering@lucent.com>
78152
78153         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78154         Suggestion from Bruno Haible.
78155
78156 2001-12-10  Jim Meyering  <meyering@lucent.com>
78157
78158         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78159         xrealloc, Instead, include "xalloc.h".
78160         (initbuffer): Don't cast xmalloc return value to char*.
78161         (readline): Reword comment.
78162         Don't cast xrealloc return value to char*
78163         Return NULL, not 0.
78164
78165 2001-12-09  Jim Meyering  <meyering@lucent.com>
78166
78167         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78168         about `signed and unsigned type in conditional expression'.
78169         * lib/posixtm.c (posix_time_parse): Likewise.
78170
78171         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78172
78173         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78174         to avoid a pedantic warning.
78175
78176         * lib/getstr.c: Don't include assert.h.
78177         (getstr): Remove warning-evoking assertions.
78178         Return -1 if offset parameter is out of bounds.
78179         Change the type of a local from int to size_t.
78180
78181         * lib/strftime.c (my_strftime_localtime_r): Include this function
78182         definition in the `#if ! HAVE_TM_GMTOFF' block.
78183
78184         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78185         Include xalloc.h instead.
78186
78187 2001-12-02  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78190         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78191         included.
78192
78193         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78194         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78195
78196 2001-11-30  Akim Demaille  <akim@epita.fr>
78197
78198         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78199         before being defined.
78200
78201 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78202
78203         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78204         First arg is int, not unsigned.
78205         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78206         (SIZE_MAX, UINT_MAX): New macros.
78207         (quotearg_n_options): Abort if N is negative.
78208         Avoid overflow check on hosts where size_t is 64 bits and int
78209         is 32 bits, as overflow is impossible there.
78210         Fix off-by-one typo that caused unnecessary reallocation.
78211
78212 2001-11-27  Jim Meyering  <meyering@lucent.com>
78213
78214         * lib/tempname.c: Merge with version from libc.
78215         * lib/regex.c: Likewise.
78216
78217         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78218         systems for which STDC_HEADERS is 0, it was not included, resulting in
78219         a warning about an integer-to-pointer conversion problem with getenv.
78220         Reported by Volker Borchert.
78221
78222 2001-11-26  Jim Meyering  <meyering@lucent.com>
78223
78224         * lib/gtod.h: Remove file.
78225         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78226         * lib/gettimeofday.c: Don't include gtod.h.
78227         (GTOD_init): Remove function.
78228         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78229         Suggestion from Volker Borchert.
78230
78231 2001-11-23  Jim Meyering  <meyering@lucent.com>
78232
78233         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78234         it.
78235         * lib/hash.c (struct hash_table): Define it here instead.
78236
78237 2001-11-22  Jim Meyering  <meyering@lucent.com>
78238
78239         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78240
78241 2001-11-20  Jim Meyering  <meyering@lucent.com>
78242
78243         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78244         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78245
78246 2001-11-19  Jim Meyering  <meyering@lucent.com>
78247
78248         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78249         directory.  Use "conftestXXXXXX" as the template.
78250         Suggestion from Paul Eggert.
78251
78252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78253         immediately, so the test doesn't mistakenly hit the max-open-files
78254         limit.
78255
78256 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78257
78258         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78259         (TEMPORARIES): New macro.
78260         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78261         removes an artificial limitation (e.g. HP-UX 10.20, where
78262         TMP_MAX is 17576).
78263
78264 2001-11-18  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78267
78268 2001-11-18  Jim Meyering  <meyering@lucent.com>
78269
78270         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78271         on SunOS 4.
78272
78273         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78274         files will be created before anything else.
78275
78276 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78277
78278         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78279         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78280
78281 2001-11-17  Jim Meyering  <meyering@lucent.com>
78282
78283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78284         Prompted by a report from Bob Proulx.
78285
78286         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78287         Instead, require UTILS_FUNC_MKSTEMP.
78288
78289 2001-11-17  Jim Meyering  <meyering@lucent.com>
78290
78291         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78292         Now, that's done as part of AC_FUNC_STRTOD.
78293
78294 2001-11-17  Jim Meyering  <meyering@lucent.com>
78295
78296         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78297         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78298         rather than group writable.  Patch by Juan F. Codagnone.
78299
78300         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78301         xrealloc, Instead, include "xalloc.h".
78302
78303         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78304         Remove explicit declarations of xmalloc, xrealloc,
78305         and xstrdup.  Instead, include "xalloc.h".
78306
78307         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78308         unlocked-io.h.
78309         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78310         Likewise.
78311         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78312
78313         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78314         Reported by Padraig Brady.
78315
78316         * lib/mkstemp.c: #undef mkstemp.
78317         Include config.h.
78318         (rpl_mkstemp): Rename from mkstemp.
78319         Protoize.
78320
78321 2001-11-16  Jim Meyering  <meyering@lucent.com>
78322
78323         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78324         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78325         determine the amount of total physical memory, use pstat_getstatic.
78326         HPUX-11 doesn't define _SC_PHYS_PAGES.
78327         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78328         If sysconf couldn't be used to determine the amount of available
78329         physical memory, use both pstat_getstatic and pstat_getdynamic.
78330         Based on a patch from Bob Proulx.
78331
78332 2001-11-10  Jim Meyering  <meyering@lucent.com>
78333
78334         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78335         (jm_PREREQ): Use it.
78336
78337 2001-11-09  Jim Meyering  <meyering@lucent.com>
78338
78339         * m4/jm-macros.m4: Require autoconf-2.52f.
78340         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78341         Use these AC_-prefixed names, not the AM_-prefixed ones.
78342
78343         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78344
78345 2001-11-05  Jim Meyering  <meyering@lucent.com>
78346
78347         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78348
78349 2001-11-04  Jim Meyering  <meyering@lucent.com>
78350
78351         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78352         $DEFS.
78353
78354 2001-11-03  Jim Meyering  <meyering@lucent.com>
78355
78356         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78357         of AC_DEFUN.
78358
78359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78360         know the name of the variable in the macro definition.
78361
78362 2001-11-03  Jim Meyering  <meyering@lucent.com>
78363
78364         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78365         in argmatch_to_argument call.
78366
78367         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78368         argument.
78369
78370         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78371         e.g., a fault due to an attempt to free a NULL pointer.
78372
78373 2001-11-01  Jim Meyering  <meyering@lucent.com>
78374
78375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78376         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78377
78378 2001-11-01  Jim Meyering  <meyering@lucent.com>
78379
78380         * lib/dirfd.c, lib/dirfd.h: New files.
78381         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78382
78383         * lib/hash.c (hash_print) [TESTING]: Clean up.
78384
78385 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78386
78387         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78388         to avoid a warning if -Wall.
78389
78390 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78391
78392         * README: New file
78393         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78394         (per RMS's instructions, this is now the canonical source)
78395         * lgpl/, gpl/: New directories.
78396
78397 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78398
78399         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78400
78401 2001-10-21  Jim Meyering  <meyering@lucent.com>
78402
78403         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78404         this code would end up calling gettext even in packages built
78405         with --disable-nls.
78406         * lib/getopt.c (_): Likewise.
78407         * lib/regex.c (_): Likewise.
78408
78409 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78410
78411         * m4/error.m4 (jm_PREREQ_ERROR):
78412         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78413         AC_FUNC_STRERROR_R does that.
78414         Check for strerror declaration.
78415
78416         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78417         are supposed to have them these days.
78418         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78419         Merge changes from latest Autoconf CVS.
78420         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78421         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78422         POSIX decided to standardize on the int flavor of strerror_r.
78423
78424 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78425
78426         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78427         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78428         Use strerror_r that is only a macro, even if it is not a function.
78429         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78430         (private_strerror): Use prototypes, not old-style function definition.
78431         (print_errno_message): New function.
78432         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78433         char*-flavored one.
78434         (error_tail, error, error_at_line): Use it.
78435
78436 2001-10-11  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78439         and quote_n (1, ... to avoid clobbering a buffer.
78440
78441 2001-10-05  Jim Meyering  <meyering@lucent.com>
78442
78443         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78444         hash-pjw.h.
78445         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78446         * lib/hash-pjw.h: New file.
78447
78448 2001-09-30  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78451         `struct fsstat' has the `f_fstypename' member.
78452         Use that to define FS_TYPE, which is now used to make
78453         the getfsstat link test tighter.
78454
78455 2001-09-30  Jim Meyering  <meyering@lucent.com>
78456
78457         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78458         Include <sys/ucred.h>, for Apple Darwin.
78459         Include sys/mount.h and sys/fs_types.h only if available.
78460         (FS_TYPE): Define.
78461         (read_filesystem_list): Use FS_TYPE.
78462
78463 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78464
78465         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78466         a boolean context.
78467
78468 2001-09-29  Jim Meyering  <meyering@lucent.com>
78469
78470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78471         [one-argument getmntent function]): Include stdio.h before mntent.h.
78472         SunOS 4.1.x needs it for the declaration of `FILE'.
78473         Patch by Volker Borchert.
78474
78475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78476         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78477         sys/fs_types.h, and make the link-test for getfsstat guard #include
78478         directives with appropriate #if HAVE_*_H tests so that we can
78479         detect getfsstat on Apple Darwin1.3.7 systems.
78480         Reported by Nelson Beebe.
78481         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78482
78483 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78484
78485         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78486         #defines strtoimax.  Also treat the other strto* functions
78487         like strtoimax.
78488
78489         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78490         Check for strtoul and strtoumax,
78491         as those declarations are made even in the signed case.
78492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78493         Likewise, for strtol and strtoimax.
78494
78495 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78496
78497         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78498         #defines strtoimax.  Also treat the other strto* functions
78499         like strtoimax.
78500
78501         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78502         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78503         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78504
78505 2001-09-26  Jim Meyering  <meyering@lucent.com>
78506
78507         Most macros in unlocked-io.h had the wrong number of arguments.
78508         * lib/gen-uio: New script.
78509         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78510         * lib/unlocked-io.hin: Remove file.
78511         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78512         rather than trying to embed it here.
78513         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78514         Reported by Padraig Brady.
78515
78516 2001-09-25  Volker Borchert  <bt@teknon.de>
78517
78518         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78519         `result'.
78520
78521 2001-09-24  Jim Meyering  <meyering@lucent.com>
78522
78523         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78524
78525 2001-09-23  Jim Meyering  <meyering@lucent.com>
78526
78527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78528         instead of the mere test for existence of mntent.h.  The latter
78529         would get a false-positive on AIX 3.4 systems.
78530         In the outer getmntent if-block, don't die if neither of the getmntent
78531         tests succeeds.  Instead, just fall through and continue with the
78532         remaining tests.
78533
78534 2001-09-23  Jim Meyering  <meyering@lucent.com>
78535
78536         * lib/mountlist.c: Remove useless parentheses in #if directives.
78537         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78538         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78539
78540 2001-09-22  Jim Meyering  <meyering@lucent.com>
78541
78542         * m4/gettext.m4: New file.  From gettext.
78543         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78544         * m4/progtest.m4: Likewise
78545         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78546         * m4/glibc21.m4: Likewise.
78547
78548         * m4/libintl.m4: Remove.  No longer used.
78549
78550 2001-09-22  Jim Meyering  <meyering@lucent.com>
78551
78552         * lib/localcharset.c: Update from latest gettext.
78553         * lib/config.charset: Likewise.
78554
78555 2001-09-20  Jim Meyering  <meyering@lucent.com>
78556
78557         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78558         strtoimax.
78559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78560         strtoumax.
78561
78562 2001-09-20  Jim Meyering  <meyering@lucent.com>
78563
78564         * lib/xstrtol.c (strtoimax): Guard declaration with
78565         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78566         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78567         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78568         (strtoumax): Likewise, for completeness (it wasn't necessary).
78569
78570 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78571
78572         * lib/strtoimax.c (HAVE_LONG_LONG):
78573         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78574         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78575         to work around bug in IBM C compiler.
78576
78577 2001-09-17  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78580         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78581         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78582         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78583         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78584         whenever the right hand side need not be expanded by the shell.
78585
78586 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78587
78588         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78589         library.  It's not correct, as some older glibcs are buggy.
78590         fnmatch wasn't fixed until glibc 2.2.
78591
78592         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78593         special shell magic here.
78594
78595 2001-09-16  Jim Meyering  <meyering@lucent.com>
78596
78597         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78598         * m4/jm-macros.m4: Require it.
78599
78600 2001-09-16  Jim Meyering  <meyering@lucent.com>
78601
78602         * lib/mkdir.c: New file.
78603
78604 2001-09-15  Jim Meyering  <meyering@lucent.com>
78605
78606         * m4/jm-macros.m4: Check for help2man.
78607
78608 2001-09-11  Jim Meyering  <meyering@lucent.com>
78609
78610         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78611         The body, by Paul Eggert, was moved here from configure.in.
78612         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78613
78614 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78615
78616         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78617         (jm_PREREQ): Use it.
78618
78619 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78620
78621         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78622         Use ssize_t, not int, to store result of readlink.
78623         Check for ssize_t overflow as well as size_t overflow,
78624         as POSIX says the result of readlink is implementation-defined
78625         when ssize_t overflows.
78626         Remove unnecessary cast to char*.
78627         Use free+malloc instead of realloc, as the storage doesn't need
78628         to be preserved and it's clearer and can be more efficient that way.
78629         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78630         * lib/xreadlink.h (xreadlink): Update prototype.
78631
78632 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78633
78634         * lib/xgetcwd.c: Revert some of the previous change; intead,
78635         fix the HAVE_GETCWD_NULL code to behave more like the
78636         !HAVE_GETCWD_NULL code used to.
78637
78638         Include "xalloc.h".
78639         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78640         invoke xalloc_die.
78641
78642 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78643
78644         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78645         sys/param.h, as pathmax.h includes them.
78646
78647 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78648
78649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78650         (jm_PREREQ_XGETCWD): New macro.
78651
78652         * m4/getcwd.m4: New file.
78653
78654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78655
78656         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78657         like the HAVE_GETCWD_NULL code.
78658         Include pathmax.h if not HAVE_GETCWD.
78659         Do not include xalloc.h.
78660         (INITIAL_BUFFER_SIZE): New symbol.
78661         Do not use xmalloc / xrealloc, since the caller is responsible for
78662         handling errors.  Preserve errno around `free' during failure.
78663         Do not overrun buffer when using getwd.
78664
78665 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78666
78667         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78668         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78669         getcwd (NULL, 0).
78670
78671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78672
78673         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78674         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78675         spotted by Jim Meyering.
78676
78677 2001-09-03  Jim Meyering  <meyering@lucent.com>
78678
78679         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78680         failure.
78681
78682 2001-09-02  Jim Meyering  <meyering@lucent.com>
78683
78684         * lib/error.c: Update from GNU libc.
78685
78686 2001-09-01  Jim Meyering  <meyering@lucent.com>
78687
78688         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78689         Used by df.
78690
78691 2001-09-01  Jim Meyering  <meyering@lucent.com>
78692
78693         * lib/xreadlink.c: New file.
78694         * lib/xreadlink.h: New file.
78695         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78696         xreadlink.h.
78697
78698         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78699         doesn't conflict with sparc Solaris 7's definition in
78700         /usr/include/sys/int_types.h.
78701
78702         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78703         files.
78704         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78705         and strncasecmp as r-values.  Unixware didn't have declarations.
78706
78707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78708
78709         * lib/xstrtol.h: Add copyright notice.
78710         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78711         LONGINT_INVALID_SUFFIX_CHAR.
78712
78713 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78714
78715         * lib/xstrtol.c (strtoimax): New decl.
78716
78717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78718
78719         * lib/xgetcwd.c: Don't include pathmax.h.
78720         Include stdlib.h and unistd.h if available.
78721         Include xalloc.h.
78722         (xmalloc, xstrdup, free): Remove decls.
78723         (xgetcwd): Don't assume sizes fit in unsigned.
78724         Check for overflow when computing sizes.
78725         Simplify reallocation code.
78726
78727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78728
78729         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78730         a directory's st_size can have an arbitrary value, so the old
78731         usage could waste an arbitrary amount of memory.  All uses
78732         changed.
78733         * lib/savedir.h: Update prototype.
78734
78735 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78736
78737         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78738
78739         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78740         old strtoimax.c.
78741
78742         Also, make the following further changes to make this file's
78743         configuration more similar to that of strtol.c:
78744         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78745         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78746         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78747         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78748         changed to signed values.
78749
78750         And make the following changes as well:
78751         Fix copyright notice, as 1999 was missing.
78752         (verify): New macro.
78753         (strtoimax): Check sizes at compile-time, not run-time.
78754         Prefer strtol to strtoll if both work.
78755         (main): Remove; it was not that useful and was a pain to maintain.
78756
78757         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78758
78759 2001-08-31  Jim Meyering  <meyering@lucent.com>
78760
78761         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78762         Use an initial, malloc'd, buffer of length 128 rather than
78763         a statically allocated one of length 1024.
78764
78765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78766
78767         Simplify code, partly by assuming autoconf 2.52 semantics.
78768
78769         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78770
78771         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78772         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78773         All uses removed.
78774         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78775         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78776         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78777         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78778         jm_AC_HEADER_INTTYPES_H.
78779         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78780
78781         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78782
78783         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78784         Quote first arg of AC_DEFUN.
78785         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78786         since they are needed to parse the include file even if we need
78787         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78789         but with opposite signedness.
78790
78791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78792
78793         Merge 'exclude' changes from tar 1.13.22.
78794         This fixes one or two unlikely storage allocation overflow bugs,
78795         but doesn't change user-visible behavior otherwise.
78796
78797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78798
78799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78800         (jm_PREREQ_EXCLUDE): New macro.
78801
78802 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78803
78804         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78805         tm to be declared.
78806
78807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78808
78809         * lib/hash.c: Remove '2001' from copyright notice.
78810
78811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78812
78813         * lib/full-write.h: New file.
78814         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78815         * lib/full-write.c: Correct credits, as cccp.c no longer
78816         exists and anyway it was so heavily changed from the old cccp
78817         code as to be unrecognizable.  Include full-write.h.
78818         (full_write): Return size_t, with short writes meaning failure.
78819         All callers changed.  This fixes a bug with large buffers
78820         on 64-bit hosts.
78821         * lib/utime.c: Include full-write.h.
78822
78823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78824
78825         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78826         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78827         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78828         Include if available.
78829         (<xalloc.h>): Include
78830         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78831         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78832         collide with FNM macros.
78833         (struct patopts): New struct.
78834         (struct exclude): Use it, as exclude patterns now come with options.
78835         (new_exclude): Support above changes.
78836         (new_exclude, add_exclude_file):
78837         Initial size must now be a power of two to simplify overflow checking.
78838         (free_exclude, fnmatch_no_wildcards): New function.
78839         (excluded_filename): No longer requires options arg, as the options
78840         are determined by add_exclude.  Now returns bool, not int.
78841         (excluded_filename, add_exclude):
78842         Add support for the fancy new exclusion options.
78843         (add_exclude, add_exclude_file): Now takes int options arg.
78844         Check for arithmetic overflow when computing sizes.
78845         (add_exclude_file): xrealloc might modify errno, so don't
78846         realloc until after errno might be used.
78847
78848         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78849         New macros.
78850         (free_exclude): New decl.
78851         (add_exclude, add_exclude_file): Now takes int options arg.
78852         (excluded_filename): No longer requires options arg, as the options
78853         are determined by add_exclude.  Now returns bool, not int.
78854
78855 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78856
78857         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78858
78859 2001-08-27  Jim Meyering  <meyering@lucent.com>
78860
78861         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78862
78863         * lib/version-etc.c (N_): Remove definition.
78864         Revert most of last change.
78865         Instead, simply don't mark the `Copyright...' string for translation.
78866         Based on advice from Paul Eggert.
78867
78868         * lib/strtoxmax.c: Tweak comment.
78869
78870 2001-08-26  Jim Meyering  <meyering@lucent.com>
78871
78872         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78873
78874         * m4/xstrtoimax.m4: New file.
78875         * m4/xstrtoumax.m4: Add comments explaining why we
78876         AC_REPLACE_FUNCS(strtol).
78877
78878 2001-08-26  Jim Meyering  <meyering@lucent.com>
78879
78880         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78881         of copyright with `%s' so translators don't get an untranslated
78882         message in 2002.
78883         (COPYRIGHT_YEAR): Define.
78884         (version_etc): Use fprintf rather than fputs.
78885         Suggestion from Ulrich Drepper.
78886
78887         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78888
78889         * lib/strtoll.c: New file, from GNU libc.
78890         * lib/xstrtoimax.c: New file.
78891
78892         * lib/xstrtol.h: Add xstrtoimax.
78893         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78894         * lib/strtoimax.c: New file.  Likewise, but first define
78895         STRTOUXMAX_SIGNED.
78896
78897         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78898         ...
78899         * lib/strtoxmax.c: ... then renamed to this.
78900
78901 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78902
78903         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78904         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78905         (jm_AC_TYPE_INTMAX_T): New macro.
78906         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78907
78908         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78909
78910         * m4/longlong.m4: Renamed from ulonglong.m4.
78911         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78912         * m4/uintmax_t.m4: Removed.
78913
78914 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78915
78916         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78917         Port to Solaris 8, where 'sed' requires a space after the 'r'
78918         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78919         Redirect output to $tmp just once.
78920
78921 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78922
78923         * lib/addext.c (<errno.h>): Include.
78924         (errno): Declare if not defined.
78925         (addext): Work correctly when pathconf returns -1 and leaves
78926         errno alone because there is no limit.  Also, work even if
78927         pathconf returns a value greater than SIZE_MAX.
78928
78929 2001-08-12  Jim Meyering  <meyering@lucent.com>
78930
78931         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78932         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78933         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78934         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78935         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78936         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78937         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78938         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78939         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78940         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78941         utime.m4, utimes.m4, xstrtoumax.m4:
78942         Quote the first argument in each use of AC_DEFUN.
78943
78944 2001-08-12  Jim Meyering  <meyering@lucent.com>
78945
78946         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78947         Simply `return getcwd (NULL, 0);'.
78948         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78949         Use 1300 as initial value for length, not PATH_MAX.
78950
78951         * lib/pathmax.h: Clean up cpp syntax.
78952
78953 2001-08-12  Jim Meyering  <meyering@lucent.com>
78954
78955         * lib/gettimeofday.c: New file.
78956         * lib/gtod.h: New file.
78957         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78958
78959 2001-08-05  Jim Meyering  <meyering@lucent.com>
78960
78961         * m4/jm-macros.m4: Require autoconf-2.52.
78962
78963 2001-08-04  Jim Meyering  <meyering@lucent.com>
78964
78965         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78966         stmt, to get in sync with glibc.
78967
78968 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78969
78970         The following changes are from gettext 0.10.39 as maintained by
78971         Bruno Haible.
78972
78973         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78974         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78975         with inverted sense.  All uses changed.
78976
78977         * lib/mbswidth.c: Don't include <limits.h>.
78978         Include <stdlib.h> and <string.h> unconditionally.
78979         (iswcntrl, mbsinit, ISCNTRL): New macros.
78980         (mbsnwidth): Use K&R style function declarations.
78981         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78982         can optimize it when MB_CUR_MAX == 1.
78983         The width of control characters is zero, not 1.
78984
78985 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78986
78987         The following changes are from gettext 0.10.39 as maintained by
78988         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78989
78990         * m4/codeset.m4: Upgrade to serial AM1.
78991         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78992         all uses changed.  Quote first arg of AC_DEFUN.
78993         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78994
78995         * m4/iconv.m4: Upgrade to serial AM2.
78996         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78997         Add --with-libconv-prefix.
78998         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78999         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79000         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79001         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79002         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79003
79004         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79005         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79006         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79007         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79008         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79009         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79010         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79011         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79012         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79013
79014         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79015         string.h any more.
79016
79017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79018         not the default value.
79019
79020         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79021         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79022         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79023         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79024         Also check for iswcntrl, used for wcwidth fallback.
79025         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79026         to Autoconf 2.13.
79027
79028 2001-08-03  Jim Meyering  <meyering@lucent.com>
79029
79030         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79031         as it was in the original.  Reported by Paul Eggert.
79032
79033 2001-07-16  Jim Meyering  <meyering@lucent.com>
79034
79035         * m4/gettimeofday.m4: New file.
79036         Prompted by a report from Bernhard Baehr.
79037
79038 2001-07-15  Jim Meyering  <meyering@lucent.com>
79039
79040         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79041         stuff. Now it's in ../Makefile.cfg.
79042
79043 2001-07-15  Jim Meyering  <meyering@lucent.com>
79044
79045         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79046         (BUILT_SOURCES): Add unlocked-io.h.
79047         (io_functions): Define.
79048         (unlocked-io.h): New rule.
79049         (DISTCLEANFILES): Add unlocked-io.h.
79050         (all-local): Depend on unlocked-io.h, to ensure it is created.
79051
79052         * lib/unlocked-io.hin: New file
79053
79054         * lib/regex.c: Update from glibc.
79055
79056 2001-07-05  Jim Meyering  <meyering@lucent.com>
79057
79058         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79059         recommendation.
79060         (libfetish_a_SOURCES): Put all .h files here instead.
79061         Remove a thus-exposed (better checks in automake) duplicate and
79062         two unnecessary .h files.
79063
79064 2001-07-04  Jim Meyering  <meyering@lucent.com>
79065
79066         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79067         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79068         distcheck failure.
79069
79070 2001-07-02  Jim Meyering  <meyering@lucent.com>
79071
79072         The following changes were prompted by suggestions from Bruno Haible.
79073
79074         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79075         is now generated.
79076         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79077         definition of EXTRA_DIST.
79078         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79079         ensure that the generated file is created/updated whenever the list
79080         of $(unlocked_functions) is changed.
79081         (jm-glibc-io.m4): New rule.
79082         (unlocked-io.h): New rule -- currently unused.
79083
79084 2001-06-24  Jim Meyering  <meyering@lucent.com>
79085
79086         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79087         unmatched right bracket, rather than kludging it with an extra,
79088         falsely-matching quote in a comment.  Patch by Akim Demaille.
79089
79090 2001-06-11  Jim Meyering  <meyering@lucent.com>
79091
79092         * lib/regex.c: Update from GNU libc.
79093
79094 2001-05-27  Jim Meyering  <meyering@lucent.com>
79095
79096         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79097         Check for ut_type in struct utmp.
79098
79099 2001-05-27  Jim Meyering  <meyering@lucent.com>
79100
79101         * lib/readutmp.h (UT_TYPE): Define.
79102
79103 2001-05-24  Jim Meyering  <meyering@lucent.com>
79104
79105         * lib/argmatch.c: Include "quote.h".
79106         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79107         quote function.  Reported by Göran Uddeborg.
79108
79109 2001-05-22  Jim Meyering  <meyering@lucent.com>
79110
79111         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79112         now that we use the package-supplied version unconditionally.
79113         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79114
79115 2001-05-21  Jim Meyering  <meyering@lucent.com>
79116
79117         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79118         shell syntax errors.
79119
79120 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79121
79122         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79123
79124 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79125
79126         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79127         Don't bother to check library strftime, since
79128         we'll be using our own my_strftime function anyway.
79129         Define my_strftime instead of strftime.
79130
79131 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79132
79133         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79134         which is not yet declared.
79135
79136 2001-05-15  Jim Meyering  <meyering@lucent.com>
79137
79138         * m4/regex.m4: Use proper quoting so brackets appear in the test
79139         program.
79140         Reported by, and with help from, Bruno Haible.
79141
79142 2001-05-13  Jim Meyering  <meyering@lucent.com>
79143
79144         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79145         undefined.
79146
79147 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79148
79149         dirname code cleanup.  base_name now behaves more compatibly
79150         with POSIX basename when given file names that have trailing
79151         slashes, and similarly for dir_name.  Add new primitives
79152         base_len and dir_len.  Put the directory-name-related decls
79153         into dirname.h.
79154
79155         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79156         * lib/backupfile.c (base_name): Likewise.
79157         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79158         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79159         * lib/makepath.c (strip_trailing_slashes): Likewise.
79160         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79161         ISSLASH): Likewise.
79162         * lib/rename.c (strip_trailing_slashes): Likewise.
79163         * lib/same.c (base_name): Likewise.
79164         * lib/stripslash.c (ISSLASH): Likewise.
79165
79166         * lib/addext.c: Include <dirname.h> after size_t is defined.
79167         * lib/backupfile.c: Likewise.
79168
79169         * lib/addext.c (addext): Use base_len to trim redundant
79170         trailing slashes instead of doing it ourselves.
79171         But do not trim the last slash if it is not redundant.
79172
79173         * lib/backupfile.c (find_backup_file_name,
79174         max_backup_version): Use base_len instead of rolling it ourselves.
79175         Handle the case of "" and (on DOS) "C:" correctly.
79176
79177         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79178         needed. Include <string.h>, <dirname.h>.
79179         (base_name): Allow file names ending in slashes, other than names
79180         that are all slashes.  In this case, return the basename followed
79181         by the slashes.  This is more general, and can be used in places
79182         where the original base_name purposely had an assertion failure.
79183         (base_len): New function.
79184
79185         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79186         Do not include <assert.h>; no longer needed.
79187         Include xalloc.h.
79188         (memrchr): Remove decl.
79189         (dir_name_r): Remove.
79190         (dir_len): Renamed from dirlen.  All callers changed.
79191         Rewrite in terms of base_name, for simplicity and consistency.
79192         (dir_name): Never return NULL.  All callers changed.
79193         Do not include <stdlib.h> in test program; no longer needed.
79194         return 0; is fine for test program.
79195
79196         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79197         New macros.
79198         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79199
79200         * lib/path-concat.c (path_concat): Use base_len to compute
79201         base length, not strlen; this means we cannot rely on memcpy
79202         to null-terminate.
79203
79204         * lib/same.c (STREQ): Remove.
79205         (same_name): Handle the case where the basename ends in trailing '/'.
79206
79207         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79208         a slash was stripped.  Do not strip the last slash after a
79209         file system prefix.
79210
79211 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79212
79213         * lib/Makefile.am (libfetish_a_SOURCES):
79214         Add strftime.c, since we now compile it on all hosts.
79215
79216         * lib/strftime.c (my_strftime):
79217         Define to nstrftime if emacs, but only if my_strftime is not defined.
79218         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79219         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79220         Add one more extra argument: a nanoseconds value.
79221         All uses changed.
79222         (ns): New macro.
79223         (my_strftime function): Add %N format.
79224         (emacs_strftimeu): Renamed from emacs_strftime,
79225         with extra ut argument.
79226
79227 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79228
79229         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79230
79231 2001-04-21  Jim Meyering  <meyering@lucent.com>
79232
79233         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79234         doesn't interfere.
79235
79236 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79237
79238         * m4/ftruncate.m4: Check for chsize.
79239         Link with ftruncate.o unconditionally if ftruncate is missing.
79240         This was required when cross-compiling to i586-mingw32msvc.
79241
79242 2001-04-08  Jim Meyering  <meyering@lucent.com>
79243
79244         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79245         recomputed; that's necessary when the offset spans a DST transition.
79246         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79247
79248 2001-04-02  Jim Meyering  <meyering@lucent.com>
79249
79250         * lib/regex.h, regex.c: Update from GNU libc.
79251
79252 2001-03-24  Jim Meyering  <meyering@lucent.com>
79253
79254         * m4/jm-macros.m4: Require autoconf-2.49d.
79255
79256 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79257
79258         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79259
79260 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79261
79262         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79263
79264 2001-03-17  Jim Meyering  <meyering@lucent.com>
79265
79266         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79267         now that the version in autoconf is equivalent.
79268         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79269
79270         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79271         Suggestion from Akim Demaille.
79272
79273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79274         (jm_PREREQ_TEMPNAME): New function.
79275
79276 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79277
79278         * lib/tempname.c (uint64_t): Define to uintmax_t if
79279         not defined, and if UINT64_MAX is not defined.
79280         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79281         Reported by John David Anglin.
79282
79283 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79284
79285         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79286         resolve alias if codeset is empty.
79287         * lib/config.charset (BeOS): Use wildcard syntax.
79288
79289 2001-03-13  Jim Meyering  <meyering@lucent.com>
79290
79291         * lib/path-concat.c (path_concat)
79292         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79293         concatenating e.g., `C:' and `foo'.
79294         From Bruno Haible.
79295
79296 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79297
79298         * lib/localcharset.c (locale_charset): Don't use
79299         setlocale(LC_CTYPE,NULL). Don't return NULL.
79300         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79301
79302 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79303
79304         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79305         support for DOS/DJGPP.
79306
79307 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79308
79309         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79310         lacks mkstemp.  Compile our own tempname.c if we compile our own
79311         mkstemp.c, as mkstemp relies on tempname.
79312
79313 2001-03-01  Jim Meyering  <meyering@lucent.com>
79314
79315         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79316         AH_VERBATIM really does output its argument verbatim.
79317
79318 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79319
79320         * lib/Makefile.am (libfetish_a_SOURCES):
79321         Add dup-safer.c, fopen-safer.c.
79322         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79323
79324         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79325         * lib/unistd-safer.h: New files.
79326
79327 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79328
79329         The mkstemp replacement is taken from glibc 2.2.2, with some
79330         portability fixes for use outside glibc, as follows:
79331
79332         * lib/tempname.c (struct_stat64): New macro.
79333         (direxists, __gen_tempname): Use it.
79334         This avoids a portability problem with Solaris 8.
79335
79336         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79337         (<stddef.h>, <stdint.h>, <string.h>):
79338         Include only if STDC_HEADERS || _LIBC.
79339         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79340         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79341         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79342         (__set_errno): Define this macro if <errno.h> doesn't.
79343         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79344         Define these macros if <stdio.h> doesn't.
79345         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79346         Define these macros if <sys/stat.h>
79347         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79348         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79349         __xstat64): Define if not _LIBC.
79350         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79351         (__gen_tempname): Invoke gettimeofday only if
79352         HAVE_GETTIMEOFDAY || _LIBC;
79353         otherwise, fall back on plain "time".
79354         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79355
79356         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79357
79358         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79359
79360 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79361
79362         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79363
79364 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79365
79366         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79368         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79369         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79370
79371 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79372
79373         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79374         Remove workaround macros for hosts that have mbrtowc but not
79375         mbstate_t, as we now insist on proper declarations for both
79376         before using mbrtowc.
79377
79378 2001-02-17  Jim Meyering  <meyering@lucent.com>
79379
79380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79381         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79382         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79383         UnixWare 7.1.1.
79384
79385         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79386         rather than AC_CACHE_VAL.
79387
79388 2001-02-17  Jim Meyering  <meyering@lucent.com>
79389
79390         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79391         around included file name.
79392
79393         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79394
79395         * lib/strftime.c: Update from GNU libc (the only changes were to
79396         comments).
79397
79398 2001-02-17  Jim Meyering  <meyering@lucent.com>
79399
79400         * lib/regex.c: Update from libc.
79401
79402 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79403
79404         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79405         clash.
79406
79407 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79408
79409         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79410         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79411         Reported by Mark Hounschell via Paul Eggert.
79412
79413 2001-02-07  Jim Meyering  <meyering@lucent.com>
79414
79415         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79416
79417 2001-02-05  Jim Meyering  <meyering@lucent.com>
79418
79419         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79420         it includes the patch required for `large file' support with at least
79421         HP-UX's 10.20 /bin/cc.
79422
79423 2001-02-03  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79426         AS_IF, now that it works once again (mysteriously).
79427         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79428
79429 2001-01-30  Jim Meyering  <meyering@lucent.com>
79430
79431         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79432         * m4/chown.m4: Rename conftestchown to conftest.chown.
79433         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79434         s/conftestdir2/conftest.d2/.
79435         * m4/utimes.m4: s/conftestdata/conftest.data/
79436         Inspired by Pavel Roskin's change in autoconf.
79437
79438 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79439
79440         * lib/config.charset: Update for FreeBSD 4.2.
79441
79442 2001-01-27  Jim Meyering  <meyering@lucent.com>
79443
79444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79445         a use of AS_IF.
79446         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79447
79448 2001-01-26  Jim Meyering  <meyering@lucent.com>
79449
79450         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79451         quotearg.c includes it.
79452
79453 2001-01-26  Jim Meyering  <meyering@lucent.com>
79454
79455         * lib/quotearg.c: Include stddef.h.
79456         * lib/quote.c: Include stddef.h.
79457         Reported by Axel Kittenberger.
79458
79459         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79460         line in double quotes so that it evokes a better diagnostic.
79461         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79462         Reported by Axel Kittenberger.
79463
79464 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79465
79466         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79467         as if it was a `charset'.
79468
79469 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79470
79471         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79472         has const.
79473
79474 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79475
79476         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79477         to avoid a warning.  Add back 'const' to inptr.
79478
79479 2001-01-20  Jim Meyering  <meyering@lucent.com>
79480
79481         Be sure that headers are checked before used in code compiled
79482         for the type checks.
79483         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79484         In place of that, invoke jm_CHECK_ALL_TYPES.
79485         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79486         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79487         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79488         The check for ssize_t was mistakenly run before the test for unistd.h.
79489
79490         The configure-time check for stdbool.h was missing.
79491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79492         (jm_PREREQ_HASH): New function.
79493
79494 2001-01-17  Jim Meyering  <meyering@lucent.com>
79495
79496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79497         for autoconf-2.49c.
79498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79499
79500 2001-01-16  Jim Meyering  <meyering@lucent.com>
79501
79502         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79503         From Bruno Haible.
79504
79505 2001-01-14  Jim Meyering  <meyering@lucent.com>
79506
79507         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79508         foo and bar.  Create conftestdir/ in the script, not in the C code.
79509         Remove directories in the script, not in the C code.
79510         Remove conftestdir{,2} before trying to create the directory.
79511         Make the entire configure script fail if the mkdir fails.
79512
79513 2001-01-14  Jim Meyering  <meyering@lucent.com>
79514
79515         * lib/rename.c: New file.  From Volker Borchert.
79516         Include stdlib.h, string.h or strings.h, and xalloc.h.
79517         Use strip_trailing_slashes rather than open-coding it.
79518
79519 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79520
79521         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79522
79523 2001-01-03  Jim Meyering  <meyering@lucent.com>
79524
79525         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79526         of local `inptr' to avoid warning with some system declarations of
79527         iconv.
79528
79529 2001-01-02  Volker Borchert  <bt@teknon.de>
79530
79531         * m4/rename.m4: New file.
79532         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79533
79534 2001-01-01  Jim Meyering  <meyering@lucent.com>
79535
79536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79537         even on systems with utmpx.h.  It's necessary for the declaration of
79538         utmp's ut_user member.  Reported by Andreas Jaeger.
79539
79540         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79541         available. They are required for the declarations of getgrgid and
79542         getpwuid resp.
79543         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79544         Reported by Andreas Jaeger.
79545
79546 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79547
79548         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79549         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79550         so `make install' also works in VPATH builds.
79551
79552 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79553
79554         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79555         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79556         can be used in subdirectories.
79557
79558 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79559
79560         * lib/modechange.c: Do not assume that mode_t uses the
79561         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79562         the other-execute bit of FOO even if S_IXOTH != 1.
79563
79564         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79565         WOTH, XOTH, ALLM): New macros.
79566         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79567          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79568         Use them.
79569         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79570         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79571         (mode_compile):
79572         No need to use uintmax_t; unsigned long is long enough.
79573         Don't bother to get suffix since we don't use it.
79574
79575 2000-12-26  Jim Meyering  <meyering@lucent.com>
79576
79577         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79578         better with autoheader.
79579
79580 2000-12-24  Jim Meyering  <meyering@lucent.com>
79581
79582         * lib/hash.c (is_prime): Return explicit boolean values.
79583         (hash_get_first): Return NULL to appease Irix5.6's 89.
79584         Reported by Nelson Beebe.
79585
79586 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79587
79588         * lib/localcharset.c (locale_charset): Add support for Win32.
79589
79590 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79591
79592         * lib/physmem.h, lib/physmem.c: New files.
79593
79594         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79595         (noinst_HEADERS): Add physmem.h.
79596
79597         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79598         't' for compatibility with Solaris 8 sort.
79599
79600 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79601
79602         * lib/config.charset: Add support for BeOS.
79603
79604 2000-12-17  Jim Meyering  <meyering@lucent.com>
79605
79606         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79607         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79608
79609 2000-12-16  Jim Meyering  <meyering@lucent.com>
79610
79611         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79612         N and M) would have treated it like `chown N:N FILE'.
79613
79614         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79615
79616 2000-12-16  Jim Meyering  <meyering@lucent.com>
79617
79618         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79619         SHELLS_FILE to a file name that's useful on djgpp systems.
79620         Include stdlib.h.
79621         (ADDITIONAL_DEFAULT_SHELLS): Define.
79622         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79623         Based mostly on a patch from Prashant TR.
79624
79625 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79626
79627         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79628         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79629         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79630
79631 2000-12-08  Andreas Schwab  <schwab@suse.de>
79632
79633         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79634         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79635
79636 2000-12-07  Jim Meyering  <meyering@lucent.com>
79637
79638         * lib/stripslash.c (ISSLASH): Define.
79639         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79640         `/'.
79641         From Prashant TR.
79642
79643         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79644         (dir_name_r): Declare this function as static.
79645         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79646         manifest itself on a name containing a mix of slashes and
79647         backslashes.
79648         Make this function work with names starting with a DOS-style
79649         drive letter and colon prefix.
79650         (dir_name): Append `.' if necessary.
79651         Based mostly on patches from Prashant TR and Eli Zaretskii.
79652
79653         * lib/dirname.h (dir_name_r): Remove prototype.
79654
79655 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79656
79657         * m4/off_t-format.m4: Remove this file.
79658         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79659
79660 2000-12-06  Jim Meyering  <meyering@lucent.com>
79661
79662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79663         replacement strtoull, we may well need the replacement strtoul, too.
79664         Check for declarations of strtoul and strtoull.
79665         Check for strtol.  Mainly as a cue to cause automake to include
79666         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79667         Check for limits.h -- strtol.c needs it.
79668
79669 2000-12-05  Jim Meyering  <meyering@lucent.com>
79670
79671         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79672
79673 2000-12-04  Jim Meyering  <meyering@lucent.com>
79674
79675         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79676         Also include memory.h, stdlib.h, unistd.h if appropriate.
79677         Reported by Andreas Jaeger (conflicting declaration of malloc).
79678
79679 2000-12-02  Jim Meyering  <meyering@lucent.com>
79680
79681         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79682         * m4/jm-macros.m4 (jm_MACROS): require it.
79683
79684 2000-12-02  Jim Meyering  <meyering@lucent.com>
79685
79686         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79687
79688 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79689
79690         * lib/memrchr.c: Include <config.h> before any system include file.
79691
79692 2000-11-30  Jim Meyering  <meyering@lucent.com>
79693
79694         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79695
79696 2000-11-30  Jim Meyering  <meyering@lucent.com>
79697
79698         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79699
79700 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79701
79702         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79703
79704 2000-11-26  Jim Meyering  <meyering@lucent.com>
79705
79706         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79707
79708 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79709
79710         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79711         size of (size_t) -1; it's not portable.
79712
79713 2000-11-17  Jim Meyering  <meyering@lucent.com>
79714
79715         * lib/strstr.c: Update from GNU libc.
79716
79717 2000-11-17  Akim Demaille  <akim@epita.fr>
79718
79719         * lib/obstack.h: Formatting changes.
79720         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79721         prevent type checking.
79722         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79723         cast the value to (void *): assigning a `foo *' to a `void *'
79724         variable is valid.
79725         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79726
79727 2000-11-16  Jim Meyering  <meyering@lucent.com>
79728
79729         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79730
79731 2000-11-11  Jim Meyering  <meyering@lucent.com>
79732
79733         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79734
79735 2000-11-10  Jim Meyering  <meyering@lucent.com>
79736
79737         * lib/obstack.h: Update from GNU libc.
79738         * lib/obstack.c: Likewise.
79739
79740 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79741
79742         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79743
79744 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79745
79746         * lib/getusershell.c (setusershell): Use rewind rather than
79747         fseek/fseeko, to avoid configuration hassles with fseeko.
79748         Don't bother opening SHELLS_FILE if shellstream is NULL;
79749         it's not necessary.
79750
79751 2000-11-05  Jim Meyering  <meyering@lucent.com>
79752
79753         * lib/makepath.h (make_dir): Declare.
79754         * lib/makepath.c (make_dir): Remove `static' attribute.
79755         Tweak a comment.
79756
79757 2000-11-04  Jim Meyering  <meyering@lucent.com>
79758
79759         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79760
79761 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79762
79763         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79764         last one in a bucket, advance to the next bucket.
79765
79766 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79767
79768         * lib/fnmatch.c: Do not comment out all the code if we are using
79769         the GNU C library, because in some cases we are replacing buggy
79770         code in the GNU C library itself.
79771
79772 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79773
79774         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79775         (regex_compile): Catch bogus \(\1\).
79776
79777 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79778
79779         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79780         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79781         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79782
79783 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79784
79785         * lib/error.h, getline.h, modechange.h:
79786         Remove "2000" from Copyright line, as the file hasn't been
79787         changed this year other than in the copyright notice.
79788
79789         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79790         was changed this year.
79791
79792 2000-10-29  Jim Meyering  <meyering@lucent.com>
79793
79794         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79795         renaming.
79796         * m4/ls-mntd-fs.m4: Likewise
79797
79798 2000-10-29  Jim Meyering  <meyering@lucent.com>
79799
79800         * lib/xstat.in: Fix grammar in comment.
79801
79802 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79803
79804         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79805         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79806         doesn't define __restrict_arr.
79807
79808 2000-10-28  Jim Meyering  <meyering@lucent.com>
79809
79810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79811         (jm_PREREQ_MEMCHR): New function.
79812
79813 2000-10-28  Jim Meyering  <meyering@lucent.com>
79814
79815         * lib/memchr.c: Update from libc.
79816         Adjust for portability:
79817         [HAVE_STDLIB_H]: Include stdlib.h.
79818         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79819         Undef __memchr, too.
79820         [!weak_alias]: Define __memchr to memchr.
79821
79822         * lib/regex.c: Update from libc.
79823         * lib/regex.h: Likewise.
79824         * lib/getopt1.c: Likewise.
79825         * lib/memcmp.c: Likewise.
79826
79827         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79828         Avoid using fseek, when possible -- it's broken by design.
79829         Patch by Ulrich Drepper.
79830
79831 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79832
79833         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79834         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79835         Giving in to popular pressure to shut up the compiler with casts.
79836
79837 2000-10-26  Jim Meyering  <meyering@lucent.com>
79838
79839         * lib/strftime.c: Update from libc.
79840
79841 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79842
79843         * regex.c: More `unsigned char' -> `re_char' changes.
79844         Also change several `int' into `re_wchar_t'.
79845         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79846         (PUSH_FAILURE_POINTER): Don't cast any more.
79847         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79848         We want GCC to complain, since this piece of code makes
79849         re_match non-reentrant, which *should* be fixed.
79850         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79851         (EXTEND_BUFFER): Use RETALLOC.
79852         (SET_LIST_BIT): Don't cast.
79853         (re_wchar_t): New type.
79854         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79855         that those two functions will always properly return.
79856         (IMMEDIATE_QUIT_CHECK): Cast to void.
79857         (analyse_first): Use recursion rather than an explicit stack.
79858         (re_compile_fastmap): Can't fail anymore.
79859         (re_search_2): Don't check re_compile_fastmap for failure.
79860         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79861         Now also sets the new value (passed in a new argument).
79862         (re_match_2_internal): Use it.
79863         Also, use a new var `reg' of type size_t when looping through regs
79864         rather than reuse the inappropriate `mcnt'.
79865
79866 2000-10-25  Jim Meyering  <meyering@lucent.com>
79867
79868         * lib/obstack.c: Update from libc.
79869
79870 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79871
79872         * regex.c (regex_compile): Change the way of handling a range from
79873         a char less than 256 to a char not less than 256.
79874
79875 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79876
79877         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79878         NT-Emacs only.
79879         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79880         so that re_search functions only quit when callers expect them to.
79881
79882 2000-10-23  Jim Meyering  <meyering@lucent.com>
79883
79884         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79885         wrong.  That set_locale call must not have any side effects.
79886         From Paul Eggert.
79887
79888 2000-10-22  Jim Meyering  <meyering@lucent.com>
79889
79890         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79891         [CYCLIC]: Remove now-unused definition.
79892
79893         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79894         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79895         Suggestion from Ulrich Drepper.
79896
79897 2000-10-21  Jim Meyering  <meyering@lucent.com>
79898
79899         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79900         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79901         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79902
79903 2000-10-21  Jim Meyering  <meyering@lucent.com>
79904
79905         * lib/dirname.c (memrchr): Declare if necessary.
79906         (dir_name): Remove the restriction that there be no
79907         trailing slashes.  Now, this code skips past them, effectively
79908         ignoring them.
79909         [TEST_DIRNAME] (main): New unit tests.
79910
79911         * lib/memrchr.c: New file from GNU libc.
79912         Undef __memrchr, too.
79913         [!weak_alias]: Define __memrchr to memrchr.
79914         Guard weak_alias use with `#ifdef weak_alias'.
79915
79916 2000-10-21  Jim Meyering  <meyering@lucent.com>
79917
79918         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79919         (dir_name): Use dir_name_r.
79920         * lib/dirname.h (dir_name_r): Declare it.
79921
79922 2000-10-17  Jim Meyering  <meyering@lucent.com>
79923
79924         * lib/quote.h (PARAMS): Define and use.
79925         Reported by Akim Demaille.
79926
79927         * lib/getopt.c: Update from libc.
79928
79929 2000-10-16  Jim Meyering  <meyering@lucent.com>
79930
79931         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79932         setlocale.
79933         From Jan Fedak.
79934
79935 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79936
79937         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79938
79939 2000-09-25  Jim Meyering  <meyering@lucent.com>
79940
79941         * lib/md5.h (rol): Define (from GnuPG).
79942
79943         * lib/sha.c: Give credit (GnuPG) where due.
79944         (M): Use rol rather than open-coding it.
79945         Add a FIXME comment.
79946
79947 2000-09-21  Jim Meyering  <meyering@lucent.com>
79948
79949         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79950         Reported by Michael Stone.
79951
79952 2000-09-20  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79955         (noinst_HEADERS): Add sha.h.
79956         Based on code from Scott G. Miller and from GnuPG.
79957
79958 2000-09-18  Jim Meyering  <meyering@lucent.com>
79959
79960         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79961         LIBS. Otherwise, everyone ends up linking with -lelf for some
79962         configurations.
79963         Reported by Mike Stone.
79964
79965 2000-09-15  Jim Meyering  <meyering@lucent.com>
79966
79967         * lib/regex.c: Update from libc.
79968
79969 2000-09-10  Jim Meyering  <meyering@lucent.com>
79970
79971         * lib/getopt.c (_getopt_internal): Update from glibc.
79972
79973 2000-09-09  Jim Meyering  <meyering@lucent.com>
79974
79975         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79976         think it should be used as a general replacement for isascii.
79977         * lib/fnmatch.c: Likewise.
79978         * lib/mbswidth.c: Likewise
79979         * lib/regex.c: Likewise.
79980
79981         Don't use atoi.
79982         * lib/userspec.c: Include sys/param.h and limits.h.
79983         Include xstrtol.h.
79984         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79985         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79986         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79987         UID, GID.  Check range.
79988
79989 2000-09-06  Jim Meyering  <meyering@lucent.com>
79990
79991         * lib/getopt.c (_getopt_internal): Update from glibc.
79992
79993 2000-08-30  Jim Meyering  <meyering@lucent.com>
79994
79995         * lib/strftime.c: Merge in changes from GNU libc.
79996
79997 2000-08-26  Jim Meyering  <meyering@lucent.com>
79998
79999         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80000         * m4/fpending.m4: New file.
80001
80002 2000-08-26  Jim Meyering  <meyering@lucent.com>
80003
80004         * lib/closeout.c: Include "__fpending.h".
80005         (close_stdout_status): Return right away if there's nothing to flush.
80006
80007         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80008         * lib/__fpending.c: New file.
80009         * lib/__fpending.h: New file.
80010
80011 2000-08-20  Jim Meyering  <meyering@lucent.com>
80012
80013         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80014         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80015         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80016
80017 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80018
80019         Improve fileutils installation on systems where running
80020         programs (like install) can't be unlinked.
80021         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80022         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80023
80024 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80025
80026         Standardize on "memory exhausted" instead of "Memory exhausted"
80027         or "virtual memory exhausted".
80028         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80029         "virtual memory exhausted".
80030         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80031         our own message.
80032         * lib/userspec.c (parse_user_spec): Likewise.
80033         * lib/bumpalloc.h: comment fix
80034         * lib/same.c, userspec.c: Include xalloc.h.
80035
80036         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80037         not char *const and pointing to a constant array.
80038         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80039         (xrealloc): Comment fix.
80040
80041         * lib/userspec.c (parse_user_spec):
80042         Don't translate a message until just before returning,
80043         to avoid unnecessary translation.
80044
80045 2000-08-07  Jim Meyering  <meyering@lucent.com>
80046
80047         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80048         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80049         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80050         getgroups.c, gethostname.c, getopt.h, group-member.c,
80051         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80052         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80053         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80054         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80055         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80056         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80057         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80058         yesno.c: Back out Copyright date changes for each file with no change
80059         this year.  This eases coordination with other programs using the same
80060         source code modules.  From Paul Eggert.
80061
80062 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80063
80064         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80065         not char, for compatibility with glibc 2.1.3 strftime.c.
80066
80067 2000-08-03  Greg McGary  <greg@mcgary.org>
80068
80069         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80070         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80071         (EXTEND_BUFFER): Use them.
80072
80073 2000-08-01  Jim Meyering  <meyering@lucent.com>
80074
80075         * lib/dirname.c (ISSLASH): Define.
80076         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80077         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80078         both `\' and `/' may be use as path separators.
80079         Based on a patch from Prashant TR.
80080
80081 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80082
80083         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80084         slot vector a constant, since it might get modified.
80085
80086 2000-07-31  Jim Meyering  <meyering@lucent.com>
80087
80088         * lib/xmalloc.c: Use `virtual memory exhausted', not
80089         `Memory exhausted'.
80090         * lib/obstack.c (print_and_abort): Likewise.
80091
80092 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80093
80094         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80095         buffer, so that the caller can always quote one small
80096         component of a "memory exhausted" message in slot 0.
80097         From a suggestion by Jim Meyering.
80098
80099 2000-07-30  Jim Meyering  <meyering@lucent.com>
80100
80101         * lib/makepath.c (make_path): Quote the other instance, too.
80102
80103         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80104         (STATIC_BUF_SIZE): Define.
80105         (quotearg_n_options): Use only statically allocated storage when
80106         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80107         than STATIC_BUF_SIZE.
80108
80109 2000-07-29  Jim Meyering  <meyering@lucent.com>
80110
80111         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80112         * lib/dirname.c (dir_name): Likewise.
80113
80114         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80115         `/'.
80116
80117         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80118         (dir_name): Assert that there are no trailing slashes.
80119
80120 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80121
80122         * lib/mbswidth.h (mbswidth): Add a flags argument.
80123         (mbswidth): New declaration.
80124         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80125         * lib/mbswidth.c (mbswidth): Add a flags argument.
80126         (mbsnwidth): New function.
80127
80128 2000-07-24  Jim Meyering  <meyering@lucent.com>
80129
80130         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80131
80132 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80133
80134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80135
80136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80137
80138         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80139         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80140         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80141         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80142         invoke multibyte primitives.
80143
80144 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80145
80146         * lib/quotearg.c:
80147         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80148         so that mbstate_t is always defined.
80149
80150         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80151         be 1 in at least one GCC installation, and this configuration
80152         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80153         performance on hosts that have mbrtowc but have only unibyte
80154         locales, but I assume these hosts are rare.
80155
80156 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80157
80158         * lib/mbswidth.c (_XOPEN_SOURCE):
80159         Don't define; this causes problems on Solaris 7.
80160         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80161
80162 2000-07-23  Jim Meyering  <meyering@lucent.com>
80163
80164         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80165         too: getgrgid, getpwuid, getuid.
80166
80167 2000-07-23  Jim Meyering  <meyering@lucent.com>
80168
80169         * lib/basename.c (base_name): Add an assertion.
80170
80171 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80172
80173         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80174         shadow its mbsinit function.
80175
80176 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80177
80178         * lib/mbswidth.h: New file.
80179         * lib/mbswidth.c: New file.
80180         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80181         (noinst_HEADERS): Add mbswidth.h.
80182
80183 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80184
80185         * lib/config.charset: Add support for FreeBSD. Improve support for
80186         HP-UX and IRIX 6.
80187
80188 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80189
80190         * m4/mbswidth.m4: New file.
80191         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80192
80193 2000-07-15  Jim Meyering  <meyering@lucent.com>
80194
80195         * lib/makepath.c: Include quote.h.
80196         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80197         corresponding argument in a `quote (...)' call.
80198         Give better diagnostics.
80199
80200         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80201         (noinst_HEADERS): Add quote.h.
80202
80203         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80204         from tar's src/misc.c.
80205         * lib/quote.h: New file.  Prototypes for same.
80206
80207 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80208
80209         From a suggestion by Bruno Haible.
80210         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80211         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80212         to decide whether to define the BeOS workaround macro;
80213         this adjusts to the change to AC_MBSTATE_T.
80214
80215 2000-07-14  Jim Meyering  <meyering@lucent.com>
80216
80217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80218         jm_AC_TYPE_UINTMAX_T.
80219
80220 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80221
80222         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80223
80224         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80225         quotearg_buffer_restyled): Add support for
80226         clocale_quoting_style.  Undo previous change to
80227         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80228         and "{RIGHT QUOTATION MARK}" msgids.
80229
80230 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80231
80232         From a suggestion by Bruno Haible.
80233         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80234         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80235         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80236         and mbstate_t, to a single-part test that simply defines mbstate_t.
80237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80238         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80239
80240 2000-07-10  Jim Meyering  <meyering@lucent.com>
80241
80242         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80243
80244         * m4/gnu-source.m4: Output to confdefs.h directly.
80245         Suggestion from Akim Demaille.
80246
80247 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80248
80249         The old behavior of quoting `like this' doesn't look good with
80250         newer, ISO-style fonts.  See:
80251         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80252
80253         Instead, quote "like this" by default.  Let the translator
80254         tailor the locale-specific quoting behavior by providing
80255         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80256
80257         * lib/quotearg.c (N_): New macro.
80258         (gettext_default): New function.
80259         (quotearg_buffer_restyled): Use
80260         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80261         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80262
80263 2000-07-09  Jim Meyering  <meyering@lucent.com>
80264
80265         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80266         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80267
80268         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80270
80271 2000-07-09  Jim Meyering  <meyering@lucent.com>
80272
80273         * lib/Most files: Update copyright dates to include 2000.
80274
80275 2000-07-08  Jim Meyering  <meyering@lucent.com>
80276
80277         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80278         if not defined.
80279         (xgethostname): Remove now-unnecessary #ifdef.
80280         Move declaration of `err' into loop where it's used.
80281
80282 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80283         and Bruno Haible  <haible@clisp.cons.org>
80284
80285         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80286         only if the test for an object-type mbstate_t fails.  This
80287         prevents us from mistakenly reporting that mbstate_t is a
80288         system object type after we "#define mbstate_t int" to work
80289         around its lack.
80290
80291 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80292         and Bruno Haible  <haible@clisp.cons.org>
80293
80294         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80295
80296 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80297
80298         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80299         to strerror_r.
80300         Include <ctype.h> for use of isalpha.
80301
80302 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80303
80304         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80305         by allocating a larger buffer. Test the gethostname return value for
80306         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80307         returns an error and ENAMETOOLONG isn't defined.
80308
80309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80310
80311         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80312         dimension.
80313
80314 2000-07-04  Jim Meyering  <meyering@lucent.com>
80315
80316         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80317         of the deprecated AC_CHECKING.
80318
80319 2000-07-04  Jim Meyering  <meyering@lucent.com>
80320
80321         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80322         Reported by Bruno Haible.
80323
80324 2000-07-04  Jim Meyering  <meyering@lucent.com>
80325
80326         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80327         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80328         lacks mbrtowc.
80329
80330 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80331
80332         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80333         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80334
80335 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80336         and Bruno Haible  <haible@clisp.cons.org>
80337
80338         * lib/quotearg.c (mbrtowc):
80339         Assign to *pwc, and return 1 only if result is nonzero.
80340         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80341
80342 2000-07-03  Jim Meyering  <meyering@lucent.com>
80343
80344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80345
80346 2000-07-03  Jim Meyering  <meyering@lucent.com>
80347
80348         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80349         This is necessary to get a definition of e.g., UTMP_FILE on
80350         HP-UX 10.20.
80351         From Bob Proulx.
80352
80353 2000-07-02  Jim Meyering  <meyering@lucent.com>
80354
80355         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80356
80357         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80358         AC_LIBOBJ(function_name).
80359         * m4/chown.m4: Likewise.
80360         * m4/fnmatch.m4: Likewise.
80361         * m4/ftruncate.m4: Likewise.
80362         * m4/getgroups.m4: Likewise.
80363         * m4/getline.m4: Likewise.
80364         * m4/group-member.m4: Likewise.
80365         * m4/jm-macros.m4: Likewise.
80366         * m4/lstat.m4: Likewise.
80367         * m4/malloc.m4: Likewise.
80368         * m4/memcmp.m4: Likewise.
80369         * m4/nanosleep.m4: Likewise.
80370         * m4/putenv.m4: Likewise.
80371         * m4/realloc.m4: Likewise.
80372         * m4/regex.m4: Likewise.
80373         * m4/stat.m4: Likewise.
80374         * m4/strftime.m4: Likewise.
80375
80376 2000-07-02  Jim Meyering  <meyering@lucent.com>
80377
80378         * lib/quotearg.c (mbstate_t): Don't define here.
80379
80380 2000-07-02  Jim Meyering  <meyering@lucent.com>
80381
80382         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80383
80384 2000-07-01  Jim Meyering  <meyering@lucent.com>
80385
80386         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80387
80388 2000-07-01  Jim Meyering  <meyering@lucent.com>
80389
80390         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80391         problem.
80392
80393 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80394
80395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80396         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80397
80398 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80399
80400         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80401         per change in ../m4/ls-mntd-fs.m4.
80402         (read_filesystem_list): Ignore symbolic links.
80403
80404 2000-06-29  Jim Meyering  <meyering@lucent.com>
80405
80406         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80407         for declaration of strcmp.
80408
80409         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80410
80411         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80412         Avoid warning by casting result to `char *' to remove `const'.
80413
80414 2000-06-28  Jim Meyering  <meyering@lucent.com>
80415
80416         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80417         included by quotearg.c, for which we perform this test.  From
80418         Bruno Haible.
80419
80420 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80421
80422         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80423         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80424         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80425
80426 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80427
80428         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80429
80430 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80431
80432         savedir now sets errno on failure and invokes xmalloc to get memory.
80433         Fix a couple of other minor bugs while we're at it.
80434
80435         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80436         (NAMLEN): Remove macro.
80437         (malloc, realloc): Remove decls.
80438         (stpcpy): Likewise.
80439         ("xalloc.h"): Include.
80440         (NAME_SIZE_DEFAULT): New macro.
80441         (savedir): Use xmalloc / xrealloc to allocate memory.
80442         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80443         Skip "" directory entries.
80444         Use strlen to calculate directory entry length, since the old method
80445         is rarely used these days and isn't worth supporting.
80446         Don't use a pointer after freeing it.
80447         Check for integer overflow when calculating allocation size.
80448         Use memcpy to copy entries, instead of stpcpy.
80449         Set errno properly when returning NULL.
80450         Check for readdir error.
80451
80452 2000-06-26  Jim Meyering  <meyering@lucent.com>
80453
80454         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80455
80456 2000-06-25  Jim Meyering  <meyering@lucent.com>
80457
80458         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80459         Linux header bug when _XOPEN_SOURCE is defined to 500.
80460
80461 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80462
80463         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80464         deficiency.
80465
80466 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80467
80468         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80469         Include xalloc.h.
80470         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80471
80472 2000-06-24  Jim Meyering  <meyering@lucent.com>
80473
80474         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80475         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80476         for which strerror does return char*, but which lacks a conveniently
80477         accessible declaration of the function.  If the compile-test says
80478         strerror_r doesn't work, then resort to a `run'-test that works on
80479         BeOS and segfaults on DEC Unix.
80480
80481 2000-06-24  Jim Meyering  <meyering@lucent.com>
80482
80483         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80484
80485 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80486
80487         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80489
80490 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80491
80492         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80493         (mbrtowc, mbstate_t): Define substitutes if
80494         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80495         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80496         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80497
80498 2000-06-23  Jim Meyering  <meyering@lucent.com>
80499
80500         * m4/afs.m4: Add missing AC_MSG_RESULT.
80501         Reported by Bruno Haible.
80502
80503         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80504         Suggestion from Bruno Haible.
80505
80506 2000-06-23  Jim Meyering  <meyering@lucent.com>
80507
80508         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80509
80510 2000-06-21  Jim Meyering  <meyering@lucent.com>
80511
80512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80513
80514 2000-06-21  Jim Meyering  <meyering@lucent.com>
80515
80516         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80517         (noinst_HEADERS): Add getstr.h.
80518
80519         * lib/getline.c (getstr): Move into a separate file.
80520         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80521         the following changes: new parameter, delim2; both delim[12]
80522         parameters have type `int', not `char'.  The latter would lose
80523         with 8-bit delimiters.
80524         * lib/getstr.h: New file.
80525
80526 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80527
80528         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80529         than 1024, return a memory chunk of least possible size, instead
80530         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80531         Use free/xmalloc instead of xrealloc to avoid copying for very long
80532         paths.
80533
80534 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80535
80536         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80537         the empty string.
80538
80539 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80540
80541         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80542         address, not strdup.  Include <stdlib.h> and don't declare free().
80543
80544 2000-06-19  Jim Meyering  <meyering@lucent.com>
80545
80546         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80547
80548 2000-06-18  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80551
80552         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80553         `checking whether...' message to be consistent with that of the
80554         lstat test.
80555
80556 2000-06-18  Jim Meyering  <meyering@lucent.com>
80557
80558         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80559         Besides, these days every porting target provides a mkdir function.
80560
80561         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80562         needed. (this snippet comes from src/system.h).
80563
80564 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80565
80566         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80567
80568 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80569
80570         * lib/human.c (adjust_value): New function.
80571         (human_readable_inexact): Apply rounding style even when
80572         printing approximate values.
80573
80574 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80575
80576         * lib/human.c (human_readable_inexact): Allow an input block
80577         size that is not a multiple of the output block size, and vice versa.
80578         Reported by Piergiorgio Sartor.
80579
80580 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80581
80582         * lib/getdate.y (get_date): Apply relative times after time
80583         zone indicator, not before.  Reported by Todd A. Jacobs.
80584
80585 2000-06-13  Jim Meyering  <meyering@lucent.com>
80586
80587         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80588
80589         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80590
80591 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80594
80595 2000-06-12  Jim Meyering  <meyering@lucent.com>
80596
80597         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80598         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80599         optional argument.
80600         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80601         the optional argument, `lib'.
80602
80603 2000-06-08  Jim Meyering  <meyering@lucent.com>
80604
80605         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80606
80607 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80608
80609         Rewrite largefile configuration so that we don't need to run
80610         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80611         AC_CANONICAL_HOST in configure.in -- jmm]
80612
80613         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80614         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80615         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80616         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80617         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80618         All uses changed.
80619         Instead of inspecting the output of getconf, try to compile the
80620         test program without and with the macro definition.
80621         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80622         for getconf.  Instead, check for the needed flags by compiling
80623         test programs.
80624
80625 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80626
80627         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80628
80629 2000-06-04  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80632         SunOS 4.1.4 for which gid_t is an unsigned type.
80633
80634 2000-06-03  Jim Meyering  <meyering@lucent.com>
80635
80636         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80637         now that autoconf requires that.
80638
80639         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80640         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80641         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80642
80643 2000-06-03  Jim Meyering  <meyering@lucent.com>
80644
80645         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80646
80647 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80648
80649         * m4/glibc21.m4: New file.
80650         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80651
80652 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80653
80654         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80655         newer, don't install charset.alias.
80656         * lib/config.charset: Change the Linux/glibc rules so they become empty
80657         on glibc-2.1 or newer.
80658
80659 2000-06-02  Jim Meyering  <meyering@lucent.com>
80660
80661         * lib/mountlist.c: Back out last change.  Instead, do this...
80662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80663         me_dummy member using the same `ignore'-testing code.
80664         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80665         fs_type strings.
80666         From Mark D. Roth.
80667
80668 2000-05-29  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80671         mounts with the `ignore' attribute.  Based on a patch from
80672         Mark D. Roth.
80673
80674 2000-05-28  Jim Meyering  <meyering@lucent.com>
80675
80676         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80677         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80678         * m4/stat.m4: Likewise.
80679         * m4/lstat.m4: Likewise.
80680         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80681
80682         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80683         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80684
80685 2000-05-26  Jim Meyering  <meyering@lucent.com>
80686
80687         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80688
80689 2000-05-24  Jim Meyering  <meyering@lucent.com>
80690
80691         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80692         autoconf requires that.
80693         * m4/lib-check.m4: Likewise.
80694         * m4/jm-macros.m4: Likewise.
80695         * m4/strftime.m4: Likewise.
80696
80697         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80698         AC_CHECK_DECLS, now that autoconf requires that.
80699
80700 2000-05-22  Jim Meyering  <meyering@lucent.com>
80701
80702         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80703         * m4/lstat.m4: Likewise.
80704
80705 2000-05-22  Jim Meyering  <meyering@lucent.com>
80706
80707         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80708
80709 2000-05-20  Jim Meyering  <meyering@lucent.com>
80710
80711         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80712         (jm_PREREQ): Use it.
80713
80714 2000-05-18  Jim Meyering  <meyering@lucent.com>
80715
80716         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80717         back, too, since it may have been modified by allocate_entry.
80718         (hash_delete): Rewrite to use neither the assignment operator
80719         nor the comma operator in an if-expression.
80720
80721 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80722
80723         * lib/closeout.c:
80724         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80725         Remove; no longer needed.
80726         "quotearg.h": Add include.
80727         (file_name): Do not bother to explicitly initialize to NULL; it's less
80728         efficient on some hosts.
80729         (close_stdout_status): Remove test as to whether stdout was already
80730         closed; it breaks for the case "echo x | sort >&-".
80731         Quote file name colons.
80732         Do not assume that _("write error") lacks format strings.
80733
80734 2000-05-15  Jim Meyering  <meyering@lucent.com>
80735
80736         * lib/version-etc.c (version_etc_copyright): Update the copyright
80737         string used in all --version output.
80738
80739 2000-05-14  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/closeout.c (close_stdout_set_file_name): New function.
80742         (close_stdout_status): Use new file-scoped global.
80743         Return right away if fstat says the stdout file descriptor is invalid.
80744         * lib/closeout.h (close_stdout_set_file_name): Declare.
80745
80746 2000-05-10  Jim Meyering  <meyering@lucent.com>
80747
80748         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80749         (close_stdout_set_status): New function.
80750         * lib/closeout.h (close_stdout_set_status): Declare.
80751
80752 2000-05-09  Jim Meyering  <meyering@lucent.com>
80753
80754         * m4/gettext.m4: Rename this...
80755         * m4/libintl.m4: ...to this.
80756
80757 2000-05-08  Jim Meyering  <meyering@lucent.com>
80758
80759         * lib/long-options.c: Don't include closeout.h.
80760         (parse_long_options): Don't call close_stdout for --version.
80761
80762 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80763
80764         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80765         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80766         2.1.3 bug.  This avoids a clash when files like regex.c define
80767         _GNU_SOURCE.
80768
80769 2000-05-06  Jim Meyering  <meyering@lucent.com>
80770
80771         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80772         (AC_REPLACE_FUNCS): Add strnlen.
80773
80774         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80775         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80776
80777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80778         AC_SEARCH_LIBS call for nanosleep.
80779         (LIB_NANOSLEEP): Set and AC_SUBST.
80780
80781 2000-05-06  Jim Meyering  <meyering@lucent.com>
80782
80783         * lib/strnlen.c: Undefine __strnlen and strnlen.
80784         [!weak_alias]: Define __strnlen to strnlen.
80785
80786         * lib/atexit.c: New file, from libiberty.
80787
80788 2000-05-06  Jim Meyering  <meyering@lucent.com>
80789
80790         * lib/closeout.c (close_stdout_status): Also check for errors on the
80791         stderr stream.
80792
80793 2000-05-05  Jim Meyering  <meyering@lucent.com>
80794
80795         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80796         AC_SEARCH_LIBS call for clock_gettime.
80797         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80798
80799         * m4/search-libs.m4: Update from autoconf.
80800
80801         su doesn't work on Solaris 2.6.
80802         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80803         <shadow.h>.  Reported by Dragos Harabor.
80804
80805 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80806
80807         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80808         memcpy instead of xmalloc, xrealloc, path_concat.
80809         (locale_charset): Treat empty environment variables as absent.
80810         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80811
80812 2000-05-04  Jim Meyering  <meyering@lucent.com>
80813
80814         * lib/getopt.c: Update from glibc.
80815         * lib/obstack.c: Likewise.
80816         * lib/obstack.h: Likewise.
80817         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80818         file
80819
80820         * lib/regex.h: Likewise.
80821         * lib/strndup.c: Likewise.
80822         * lib/strnlen.c: New file, from glibc.
80823
80824 2000-05-03  Jim Meyering  <meyering@lucent.com>
80825
80826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80827
80828 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80829
80830         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80831         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80832         compile-time test, rather than inspecting host and OS, to
80833         decide whether to define _LARGEFILE_SOURCE.
80834
80835 2000-05-01  Jim Meyering  <meyering@lucent.com>
80836
80837         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80838
80839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80840         Based on a patch from Bruno Haible.
80841
80842 2000-05-01  Jim Meyering  <meyering@lucent.com>
80843
80844         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80845
80846 2000-04-29  Jim Meyering  <meyering@lucent.com>
80847
80848         * lib/path-concat.c: Declare strdup only if it's not defined.
80849         * lib/canon-host.c: Likewise.
80850
80851 2000-04-28  Jim Meyering  <meyering@lucent.com>
80852
80853         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80854         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80855         is included first, then limits.h is included by locale.h by libintl.h.
80856         From John David Anglin.
80857
80858 2000-04-25  Jim Meyering  <meyering@lucent.com>
80859
80860         * lib/makepath.c (S_IRWXUGO): Define.
80861         (make_path): Always perform explicit chmod if MODE specifies any
80862         of the `special' permission bits.  Prompted by a bug report against
80863         install from Mate Wierdl and Joost van Baal.
80864
80865 2000-04-18  Jim Meyering  <meyering@lucent.com>
80866
80867         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80868         (jm_PREREQ): Use it.
80869
80870 2000-04-18  Jim Meyering  <meyering@lucent.com>
80871
80872         * lib/README: New file.
80873
80874         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80875         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80876
80877 2000-04-17  Jim Meyering  <meyering@lucent.com>
80878
80879         Get it right :-)
80880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80881         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80882         Suggestion from Akim Demaille.
80883
80884 2000-04-17  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80887         the definition of it to rpl_strftime also defined-away the system's
80888         declaration.
80889
80890 2000-04-15  Jim Meyering  <meyering@lucent.com>
80891
80892         Use `C' to denote so-called `contiguous' files, the same way
80893         that tar does.
80894         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80895         (ftypelet): Use S_ISCTG.
80896         From Michael Deutschmann.
80897
80898 2000-04-14  Jim Meyering  <meyering@lucent.com>
80899
80900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80901         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80902         clobbered.
80903
80904 2000-04-14  Jim Meyering  <meyering@lucent.com>
80905
80906         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80907
80908 2000-04-13  Jim Meyering  <meyering@lucent.com>
80909
80910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80911         AH_VERBATIM to insert required #ifndef into config.h.in.
80912         Suggestion from Akim Demaille.
80913
80914 2000-04-12  Jim Meyering  <meyering@lucent.com>
80915
80916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80917         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80918         Christian Krackowizer.
80919
80920         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80921         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80922         (AC_SYS_LARGEFILE): Require.
80923         (AM_C_PROTOTYPES): Require.
80924
80925 2000-04-08  Jim Meyering  <meyering@lucent.com>
80926
80927         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80928         names don't conflict.  Reported by Eli Zaretskii.
80929
80930 2000-04-07  Jim Meyering  <meyering@lucent.com>
80931
80932         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80933         sys/types.h, to work around system header problems on AIX 3.2.5.
80934         From Bruno Haible.
80935
80936 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80937
80938         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80939         bug.  Deal with the different error behavior of Irix iconv.
80940
80941 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80942
80943         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80944         IRIX if the installer said otherwise.
80945
80946 2000-04-05  Jim Meyering  <meyering@lucent.com>
80947
80948         Portability tweaks required for ultrix4.3.
80949         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80950         (jm_CHECK_DECLS): Add getutent to the list of functions.
80951         (_jm_DECL_HEADERS): Add utmpx.h.
80952         From John David Anglin.
80953
80954         * m4/strftime.m4: Back out the 2000-04-02 change.
80955         Instead of that change, simply undefine putenv in the test program.
80956
80957 2000-04-05  Jim Meyering  <meyering@lucent.com>
80958
80959         Portability tweaks required for ultrix4.3.
80960         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80961         getutent.
80962         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80963         * lib/canon-host.c: Declare strdup.
80964         * lib/path-concat.c: Likewise.
80965         From John David Anglin.
80966
80967 2000-04-04  Jim Meyering  <meyering@lucent.com>
80968
80969         Be more DOS 8.3-friendly.
80970         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80971         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80972         * lib/Makefile.am: Reflect renaming.
80973         Reported by Eli Zaretskii.
80974
80975         Use a temporary file name that won't clash with `charset.alias'
80976         in the DOS 8.3 name space.
80977         * lib/Makefile.am (charset_tmp): Define.
80978         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80979         (uninstall-local): Likewise.
80980         Reported by Eli Zaretskii.
80981
80982 2000-04-03  Jim Meyering  <meyering@lucent.com>
80983
80984         * m4/gettext.m4: Fix typo in comment.
80985
80986         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80987         textutils/configure.in).  Suggestion from Paul Eggert.
80988         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80989
80990 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80991
80992         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80993         variable in the shell rather than using putenv, which isn't
80994         portable.  This avoids the configure-time inter-test dependency
80995         on the potentially-renamed putenv function.
80996
80997 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80998
80999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81000         before checking struct stat.st_blksize, so that
81001         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81002
81003 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81004
81005         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81006         since strftime.c uses HAVE_STRFTIME to decide whether to use
81007         the underlying strftime.
81008
81009 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81010
81011         * lib/time/strftime.c (my_strftime): Make sure we call the system
81012         strftime, not ourselves, when invoking the underlying strftime.
81013
81014 2000-03-24  Jim Meyering  <meyering@lucent.com>
81015
81016         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81017         (charset_alias): Define.
81018         (install-exec-local): Factor out common code.
81019         (uninstall-local): Split lines longer than 80.
81020         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81021         (SUFFIXES): Define.
81022         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81023         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81024
81025 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81026
81027         * lib/config.charset: Output a line containing "Packages using this
81028         file".
81029         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81030         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81031         ref-del.sed): New rules.
81032
81033 2000-03-17  Jim Meyering  <meyering@lucent.com>
81034
81035         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81036         Otherwise, include <strings.h>
81037
81038 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81039
81040         * lib/unicodeio.c (utf8_wctomb): New function.
81041         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81042         format instead of in UCS-4 with platform dependent endianness.
81043
81044 2000-03-10  Jim Meyering  <meyering@lucent.com>
81045
81046         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81047         From Marco Franzen.
81048
81049 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81050
81051         * lib/savedir.c (savedir): Work even if directory size is
81052         negative; this can happen with some screwy NFS configurations.
81053
81054 2000-03-06  Jim Meyering  <meyering@lucent.com>
81055
81056         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81057         if it's NULL (because we ran out of memory).  From Bruno Haible.
81058
81059 2000-03-05  Jim Meyering  <meyering@lucent.com>
81060
81061         * lib/localcharset.c ("path-concat.h"): Include.
81062         (get_charset_aliases): Use path_concat instead of ANSI string
81063         concatenation.
81064
81065         * lib/unicodeio.h (PARAMS): Define.
81066         Use it to guard prototype.
81067
81068 2000-03-04  Jim Meyering  <meyering@lucent.com>
81069
81070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81071         for lib/localcharset.c.
81072
81073 2000-03-04  Jim Meyering  <meyering@lucent.com>
81074
81075         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81076         installing into it.
81077         (uninstall-local): Uncomment this rule so `make distcheck' works
81078         once again.
81079
81080         * lib/unicodeio.c (<errno.h>): Include it.
81081         (errno): Declare if not defined.
81082
81083         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81084
81085         * lib/config.charset: New version, incorporating remarks from a linux
81086         i18n mailing list.  From Bruno Haible.
81087
81088 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81089
81090         * m4/codeset.m4: New file.
81091         * m4/iconv.m4: New file.
81092         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81093
81094 2000-03-03  Jim Meyering  <meyering@lucent.com>
81095
81096         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81097
81098 2000-03-02  Jim Meyering  <meyering@lucent.com>
81099
81100         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81101         the messages come out on separate lines.
81102
81103         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81104         rather than jm_CHECK_DECLARATIONS.
81105         * m4/decl.m4: Remove now-unused file.
81106
81107         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81108         geteuid.
81109
81110 2000-03-02  Jim Meyering  <meyering@lucent.com>
81111
81112         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81113
81114 2000-03-01  Jim Meyering  <meyering@lucent.com>
81115
81116         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81117         * lib/unicodeio.c: Likewise.
81118
81119 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81120
81121         * lib/config.charset: New file.
81122         * lib/localcharset.c: New file.
81123         * lib/unicodeio.h, lib/unicodeio.c: New files.
81124         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81125         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81126         (noinst_HEADERS): Add unicodeio.h.
81127         (all-local, install-exec-local, charset.alias): New targets.
81128
81129 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81130
81131         * lib/quotearg.c (ALERT_CHAR): New macro.
81132         (quotearg_buffer_restyled): Use it.
81133
81134 2000-02-27  Jim Meyering  <meyering@lucent.com>
81135
81136         * m4/check-decl.m4: Add getenv to the list.
81137
81138 2000-02-27  Jim Meyering  <meyering@lucent.com>
81139
81140         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81141         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81142
81143         * lib/backupfile.c: Guard inclusion of stdlib.h with
81144         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81145         Declare malloc if needed.
81146
81147         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81148         `#ifndef HAVE_DECL..'
81149         now that autoconf always defines the HAVE_DECL_ symbols.
81150         * lib/human.c: Likewise.
81151         * lib/same.c: Likewise.
81152         * lib/strtoumax.c: Likewise.
81153
81154         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81155         declaration check was not run.
81156         * lib/hash.c: Likewise.
81157         * lib/human.c: Likewise.
81158         * lib/same.c: Likewise.
81159         * lib/strtoumax.c: Likewise.
81160
81161         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81162         `.', then first look up the entire `.'-containing string as a login
81163         name.
81164
81165 2000-02-23  Jim Meyering  <meyering@lucent.com>
81166
81167         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81168         in place of my hack.
81169
81170 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81171
81172         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81173         (textint): New typedef.
81174         (parser_control): Member year changed from int to textint.
81175         All uses changed.
81176         (YYSTYPE): Removed; replaced by %union with int and textint members.
81177         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81178         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81179         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81180         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81181         (date, number, to_year): Use width of number in digits, not its value,
81182         to determine whether it's a 2-digit year, or a 2-digit time.
81183         (yylex): Store number of digits of numeric tokens.
81184         Reported by John Kendall.
81185
81186         (parser_control): Changed from struct parser_control to typedef (for
81187         consistency).  All uses changed.
81188
81189         (tID): Removed; not used.
81190         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81191
81192 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81195         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81196
81197 2000-02-12  Jim Meyering  <meyering@lucent.com>
81198
81199         * lib/userspec.c (ISDIGIT): Define it.
81200         (isdigit): Remove definition.
81201         (is_number): Use ISDIGIT, not isdigit.
81202         <libintl.h>: Include.
81203         (_ and N_): Define.
81204         (parse_user_spec): Mark translatable strings.
81205
81206 2000-02-10  Jim Meyering  <meyering@lucent.com>
81207
81208         With these changes, nanosleep.[ch] are finally enough like the other
81209         lib/* replacement files to compile on a few more losing systems.
81210
81211         * lib/nanosleep.h: Don't include config.h.
81212         Remove prototype from declaration of nanosleep.
81213         (PARAMS): Remove now-unneeded definition.
81214         * lib/nanosleep.c: #undef nanosleep.
81215         (rpl_nanosleep): Rename from nanosleep.
81216
81217 2000-02-10  Jim Meyering  <meyering@lucent.com>
81218
81219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81220         gnu_nanosleep to rpl_nanosleep.
81221
81222 2000-02-09  Jim Meyering  <meyering@lucent.com>
81223
81224         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81225         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81226
81227 2000-02-08  Akim Demaille  <akim@epita.fr>
81228
81229         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81230         `[' and `]' and remove uses of `changequote'.
81231         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81232         (AC_SYS_LARGEFILE): Likewise.
81233         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81234         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81235         of changequote.
81236         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81237         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81238         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81239         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81240
81241 2000-02-05  Jim Meyering  <meyering@lucent.com>
81242
81243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81244         Remove explicit use of AC_HEADER_TIME.  It is required by
81245         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81246         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81247         in autoconf whereby the expansion of the latter ended up preceding
81248         the expansion of its prerequisite, AC_HEADER_TIME.
81249         Reported by Volker Borchert.
81250
81251 2000-02-03  Jim Meyering  <meyering@lucent.com>
81252
81253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81254
81255 2000-02-03  Jim Meyering  <meyering@lucent.com>
81256
81257         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81258         rather than with `#if HAVE_UTMPNAME'.
81259
81260 2000-02-02  Jim Meyering  <meyering@lucent.com>
81261
81262         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81263         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81264         Reported by Eli Zaretskii.
81265
81266 2000-02-01  Jim Meyering  <meyering@lucent.com>
81267
81268         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81269
81270 2000-01-31  Jim Meyering  <meyering@lucent.com>
81271
81272         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81273         functions.  Add the time.h and sys/time.h headers along with the
81274         AC_REQUIRE'ment of AC_HEADER_TIME.
81275
81276 2000-01-31  Jim Meyering  <meyering@lucent.com>
81277
81278         * lib/nanosleep.h (nanosleep): Guard declaration with
81279         `#if ! HAVE_DECL_NANOSLEEP'.
81280         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81281         the declaration in that vendor's sys/timers.h.
81282         Reported by Christian Krackowizer.
81283
81284         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81285         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81286         (ISPRINT): Likewise.
81287         Reported by Tom Tromey.
81288
81289 2000-01-30  Jim Meyering  <meyering@lucent.com>
81290
81291         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81292
81293         * m4/prereq.m4 (utmp_includes): Define.
81294         Check for ut_user and ut_name members in both struct utmpx
81295         and struct utmp.
81296
81297 2000-01-30  Jim Meyering  <meyering@lucent.com>
81298
81299         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81300         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81301         header files where only utmpx.ut_user is declared.
81302
81303         * lib/readutmp.h (UT_USER): Define.
81304
81305 2000-01-29  Jim Meyering  <meyering@lucent.com>
81306
81307         * m4/lib-check.m4: New file containing library-related checks from
81308         fileutils and sh-utils (textutils had none).
81309
81310 2000-01-28  Jim Meyering  <meyering@lucent.com>
81311
81312         * m4/perl.m4: Change format of warning message to look more like that
81313         from the missing script.  Suggestion from François Pinard.
81314
81315 2000-01-25  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81318         well as time.h in the compile check.
81319         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81320         Fix typo in cross-compiling case: s/yes/no/.
81321
81322 2000-01-23  Jim Meyering  <meyering@lucent.com>
81323
81324         * m4/jm-macros.m4: Move df-related tests here from
81325         fileutils/configure.in
81326
81327         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81328         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81329
81330         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81331         s/space/ac_fsusage_space/.
81332         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81333
81334         * m4/ftruncate.m4: New file (derived from part of
81335         fileutils/configure.in).
81336         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81337         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81338
81339         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81340         AC_SUBST these here, rather than just in sh-util/configure.in, so
81341         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81342         all the same.
81343         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81344         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81345         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81346         (AC_SUBST(POW_LIBM)): Likewise.
81347         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81348
81349 2000-01-23  Jim Meyering  <meyering@lucent.com>
81350
81351         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81352         obstack.c.
81353
81354 2000-01-22  Jim Meyering  <meyering@lucent.com>
81355
81356         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81357
81358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81359
81360         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81361         configure.in
81362         (AC_CHECK_HEADERS): Likewise for sh-utils.
81363         (AC_CHECK_HEADERS): Likewise for textutils.
81364         Merge the three lists of headers.
81365
81366         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81367         from fileutils' configure.in.
81368
81369         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81370         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81371         check-decl.m4.
81372
81373         * m4/check-decl.m4: Use #if rather than #ifdef.
81374         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81375         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81376         (_jm_DECL_HEADERS): Define new function.
81377         (jm_CHECK_DECLARATIONS): Require it.
81378
81379 2000-01-22  Jim Meyering  <meyering@lucent.com>
81380
81381         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81382         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81383         Required for some AIX systems.  Reported by Christian Krackowizer.
81384         [TESTING] (main): New function.
81385
81386         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81387         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81388         letters.
81389
81390         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81391         iswprint.
81392
81393         * lib/strverscmp.c (ISDIGIT): Define.
81394         (strverscmp): Use ISDIGIT, not isdigit.
81395
81396 2000-01-19  Jim Meyering  <meyering@lucent.com>
81397
81398         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81399         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81400         defines `struct timespec' in <sys/time.h>
81401
81402         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81403         Thanks to Akim for explaining.
81404
81405 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81406
81407         * lib/nanosleep.c (nanosleep):
81408         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81409         POSIX.1 doesn't require SA_INTERRUPT and some systems
81410         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81411         it's been part of POSIX.1 since day 1 (in 1988).
81412
81413 2000-01-17  Jim Meyering  <meyering@lucent.com>
81414
81415         * lib/interlock: Remove unused file.  Reported by François Pinard.
81416
81417 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81418
81419         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81420         alert, backslash, formfeed, and vertical tab unnecessarily in
81421         shell quoting style.
81422
81423 2000-01-16  Jim Meyering  <meyering@lucent.com>
81424
81425         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81426         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81427         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81428         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81429
81430 2000-01-16  Jim Meyering  <meyering@lucent.com>
81431
81432         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81433         because the latter didn't work.
81434
81435 2000-01-15  Jim Meyering  <meyering@lucent.com>
81436
81437         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81438         (AC_REPLACE_FUNCS): Add memcpy and memset.
81439         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81440         Add strpbrk.
81441         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81442
81443 2000-01-12  Jim Meyering  <meyering@lucent.com>
81444
81445         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81446         (jm_PREREQ): Use it.
81447         (jm_PREREQ_READUTMP): New macro.
81448         (jm_PREREQ): Use it.
81449
81450 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81451
81452         Quote multibyte characters correctly.
81453         * m4/c-bs-a.m4: New file.
81454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81455         (jm_PREREQ): Use it.
81456
81457 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81458
81459         * m4/uintmax_t.m4: Port to autoconf 2.13.
81460
81461 2000-01-08  Jim Meyering  <meyering@ascend.com>
81462
81463         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81464         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81465
81466 2000-01-04  Jim Meyering  <meyering@ascend.com>
81467
81468         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81469         jm_STRUCT_DIRENT_D_TYPE.
81470         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81471         jm_STRUCT_DIRENT_D_INO.
81472         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81473         jm_STRUCT_UTIMBUF.
81474         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81475         renamings.
81476         * m4/utime.m4: Likewise.
81477
81478         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81479         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81480
81481 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81482
81483         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81484         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81485
81486 2000-01-02  Jim Meyering  <meyering@ascend.com>
81487
81488         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81489         remember if this is necessary.
81490
81491 1999-12-26  Jim Meyering  <meyering@ascend.com>
81492
81493         * m4/jm-macros.m4: Use it here.
81494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81495
81496 1999-12-23  Jim Meyering  <meyering@ascend.com>
81497
81498         * m4/jm-macros.m4: Check for clock_gettime (moved from
81499         fileutils/configure.in)
81500         Check for gettimeofday.
81501
81502 1999-12-20  Jim Meyering  <meyering@ascend.com>
81503
81504         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81505         autoconf-2.14a-1999-12-20.
81506
81507 1999-12-19  Jim Meyering  <meyering@ascend.com>
81508
81509         * m4/lstat-slash.m4: New file.
81510         * m4/jm-macros.m4: Use the new macro:
81511         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81512
81513 1999-12-07  Jim Meyering  <meyering@ascend.com>
81514
81515         * m4/perl.m4: Require that File::Compare be available, too.
81516         Too many systems seem to lack it.
81517
81518         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81519         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81520
81521 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81522
81523         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81524         problem with the QNX 4.25 shell, which doesn't propagate exit
81525         status of failed commands inside shell assignments.
81526
81527 1999-11-17  Jim Meyering  <meyering@ascend.com>
81528
81529         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81530
81531 1999-11-07  Jim Meyering  <meyering@ascend.com>
81532
81533         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81534
81535 1999-11-06  Jim Meyering  <meyering@ascend.com>
81536
81537         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81538         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81539
81540 1999-11-05  Jim Meyering  <meyering@ascend.com>
81541
81542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81543         configure.in of textutils, fileutils, and sh-utils into this one
81544         (shared between those packages) file.
81545         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81546         AC_STRUCT_ST_BLKSIZE.
81547
81548 1999-11-03  Jim Meyering  <meyering@ascend.com>
81549
81550         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81551         of AC_CHECK_TYPE checks includes unistd.h.
81552         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81553         Suggestion from Akim Demaille.
81554
81555 1999-10-30  Jim Meyering  <meyering@ascend.com>
81556
81557         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81558         m4-quoted string.
81559         * m4/ls-mntd-fs.m4: Likewise.
81560         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81561         * m4/jm-winsz1.m4: Likewise.
81562
81563         * m4/const.m4: Remove file, since the fix made it into the experimental
81564         version of autoconf.
81565         * m4/mktime.m4: Likewise.
81566
81567         * m4/check-type.m4: Remove file, now that the latest version of
81568         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81569
81570         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81571         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81572         AC_CHECK_TYPE.
81573
81574 1999-10-04  Jim Meyering  <meyering@ascend.com>
81575
81576         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81577
81578 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81579
81580         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81581         2.95.1 bug with HP-UX 10.20.
81582
81583 1999-09-17  Jim Meyering  <meyering@ascend.com>
81584
81585         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81586         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81587         due to missing strdup (against sh-utils-2.0).
81588
81589 1999-08-29  Jim Meyering  <meyering@ascend.com>
81590
81591         * m4/jm-macros.m4: Require jm_BISON.
81592         * m4/bison.m4: New file.
81593
81594 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81595
81596         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81597         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81598
81599 1999-08-05  Jim Meyering  <meyering@ascend.com>
81600
81601         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81602         to avoid conflicts with `conftest' on 8+3 filesystems.
81603         Suggestion from Eli Zaretskii.
81604
81605 1999-08-04  Jim Meyering  <meyering@ascend.com>
81606
81607         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81608         fileutils and sh-utils (textutils's getline test was inadequate).
81609         (AM_FUNC_GETLINE): Run this test.
81610         (AC_CHECK_FUNCS): Check for getdelim.
81611         Reported by Bob Proulx.
81612
81613 1999-08-02  Jim Meyering  <meyering@ascend.com>
81614
81615         * m4/jm-macros.m4: Add a comment.
81616
81617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81618
81619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81620         <inttypes.h> defines strtoumax as a macro (and not as a
81621         function).
81622
81623 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81624
81625         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81626         that we can shift, multiply and divide unsigned long long
81627         values; Ultrix cc can't do it.
81628
81629 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81630
81631         * m4/mktime.m4: New file, which is a preview of what should appear
81632         in the next public autoconf release.
81633
81634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81635
81636         * m4/lfs.m4: Remove this file.
81637         * m4/largefile.m4: New file.  It contains the old contents of
81638         lfs.m4, except that all names with prefix AC_LFS have been
81639         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81640         compatible with future autoconf versions.  Also, some minor m4
81641         quoting problems have been fixed.
81642
81643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81644
81645         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81646         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81647         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81648         and simplify the shell code.
81649
81650 1999-08-01  Jim Meyering  <meyering@ascend.com>
81651
81652         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81653         m4.
81654
81655 1999-07-20  Jim Meyering  <meyering@ascend.com>
81656
81657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81658
81659 1999-07-15  Jim Meyering  <meyering@ascend.com>
81660
81661         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81662
81663 1999-05-22  Jim Meyering  <meyering@ascend.com>
81664
81665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81666
81667 1999-05-20  Jim Meyering  <meyering@ascend.com>
81668
81669         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81670         Add a colon after each `then' in case $4 is empty.
81671
81672 1999-05-16  Jim Meyering  <meyering@ascend.com>
81673
81674         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81675
81676 1999-05-10  Jim Meyering  <meyering@ascend.com>
81677
81678         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81679
81680         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81681         AC_FUNC_MKTIME.
81682
81683 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81684
81685         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81686
81687 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81688
81689         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81690         not CPPFLAGS, so that linking works correctly in IRIX.
81691
81692 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81693
81694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81695
81696 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81697
81698         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81699         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81701         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81702         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81703
81704         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81705
81706 1999-04-20  Jim Meyering  <meyering@ascend.com>
81707
81708         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81709         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81710         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81711
81712 1999-04-18  Jim Meyering  <meyering@ascend.com>
81713
81714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81715         * m4/jm-macros.m4: Use it.
81716
81717 1999-04-06  Jim Meyering  <meyering@ascend.com>
81718
81719         * m4/strftime.m4: Remove test for %f.
81720
81721 1999-03-29  Jim Meyering  <meyering@ascend.com>
81722
81723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81724         superset of the AC_TYPE_* checks in the textutils, fileutils,
81725         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81726         AC_TYPE_PID_T.
81727
81728 1999-03-28  Jim Meyering  <meyering@ascend.com>
81729
81730         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81731         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81732         replaced e.g., in the *.sh files of the sh-utils.
81733
81734 1999-03-20  Jim Meyering  <meyering@ascend.com>
81735
81736         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81737         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81738         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81739
81740 1999-03-19  Jim Meyering  <meyering@ascend.com>
81741
81742         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81743
81744 1999-03-12  Jim Meyering  <meyering@ascend.com>
81745
81746         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81747
81748 1999-03-07  Jim Meyering  <meyering@ascend.com>
81749
81750         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81751         declared.
81752
81753 1999-02-17  Jim Meyering  <meyering@ascend.com>
81754
81755         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81756         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81757
81758 1999-02-07  Jim Meyering  <meyering@ascend.com>
81759
81760         * m4/group-member.m4: New file -- extracted from sh-utils'
81761         configure.in.
81762
81763         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81764         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81765
81766 1999-02-06  Jim Meyering  <meyering@ascend.com>
81767
81768         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81769         * m4/fnmatch.m4: Likewise.
81770         * m4/getgroups.m4: Likewise.
81771         * m4/lstat.m4: Likewise.
81772         * m4/malloc.m4: Likewise.
81773         * m4/putenv.m4: Likewise.
81774         * m4/realloc.m4: Likewise.
81775         * m4/regex.m4: Likewise.
81776         * m4/stat.m4: Likewise.
81777         * m4/strftime.m4: Likewise.
81778         Suggestion from Alain Magloire.
81779
81780         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81781         * m4/fnmatch.m4: Likewise.
81782         * m4/getgroups.m4: Likewise.
81783         * m4/getline.m4: Likewise.
81784         * m4/lstat.m4: Likewise.
81785         * m4/malloc.m4: Likewise.
81786         * m4/memcmp.m4: Likewise.
81787         * m4/putenv.m4: Likewise.
81788         * m4/realloc.m4: Likewise.
81789         * m4/regex.m4: Likewise.
81790         * m4/stat.m4: Likewise.
81791         * m4/strftime.m4: Likewise.
81792         Suggestion from Alain Magloire.
81793
81794         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81795         an argument.
81796
81797         * m4/regex.m4: Add a run-time Test for proper operation of
81798         re_compile_pattern.
81799
81800 1999-01-31  Jim Meyering  <meyering@ascend.com>
81801
81802         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81803
81804 1999-01-30  Jim Meyering  <meyering@ascend.com>
81805
81806         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81807
81808         * m4/jm-mktime.m4: Make this a wrapper around the official
81809         AM_FUNC_MKTIME rather than my private copy, now that the official one
81810         is up to date.
81811         * m4/mktime.m4: Remove file.
81812
81813         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81814         * m4/uptime.m4: Likewise.
81815         * m4/uintmax_t.m4: Likewise.
81816
81817 1999-01-28  Jim Meyering  <meyering@ascend.com>
81818
81819         * m4/jm-macros.m4: Use jm_AFS.
81820         * m4/afs.m4: New file (from fileutils' configure.in).
81821
81822         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81823         * m4/chown.m4: Likewise.
81824         * m4/d-ino.m4: Likewise.
81825         * m4/d-type.m4: Likewise.
81826         * m4/fnmatch.m4: Likewise.
81827         * m4/getgroups.m4: Likewise.
81828         * m4/gettext.m4: Likewise.
81829         * m4/jm-mktime.m4: Likewise.
81830         * m4/jm-winsz2.m4: Likewise.
81831         * m4/lcmessage.m4: Likewise.
81832         * m4/ls-mntd-fs.m4: Likewise.
81833         * m4/malloc.m4: Likewise.
81834         * m4/memcmp.m4: Likewise.
81835         * m4/putenv.m4: Likewise.
81836         * m4/realloc.m4: Likewise.
81837         * m4/st_mtim.m4: Likewise.
81838         * m4/strftime.m4: Likewise.
81839
81840 1999-01-16  Jim Meyering  <meyering@ascend.com>
81841
81842         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81843         (ARGMATCH_DIE_DECL): Define.
81844
81845 1999-01-12  Jim Meyering  <meyering@ascend.com>
81846
81847         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81848         Reported by Lars Hecking.
81849
81850 1999-01-10  Jim Meyering  <meyering@ascend.com>
81851
81852         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81853         gross kludge.
81854         * m4/inttypes_h.m4: Likewise.
81855         * m4/lstat.m4: Likewise.
81856         * m4/malloc.m4: Likewise.
81857         * m4/readdir.m4: Likewise.
81858         * m4/realloc.m4: Likewise.
81859         * m4/st_dm_mode.m4: Likewise.
81860         * m4/stat.m4: Likewise.
81861         * m4/utimbuf.m4: Likewise.
81862         * m4/utimes.m4: Likewise.
81863
81864         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81865         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81866         comments in config.h.in are meaningful.
81867
81868         * m4/jm-macros.m4: Require autoconf-2.13 here.
81869
81870         * m4/regex.m4: By default, don't use the included regex.c on systems
81871         with glibc 2.  Suggestion from Uli Drepper.
81872
81873 1999-01-02  Jim Meyering  <meyering@ascend.com>
81874
81875         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81876
81877 1998-12-18  Jim Meyering  <meyering@ascend.com>
81878
81879         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81880         Based on a suggestion from Lars Hecking.
81881
81882 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81883
81884         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81885
81886 1998-11-16  Jim Meyering  <meyering@ascend.com>
81887
81888         * m4/lfs.m4: Double-quote the `uname...` expression.
81889
81890 1998-11-14  Jim Meyering  <meyering@ascend.com>
81891
81892         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81893         * m4/stat.m4: Likewise.
81894
81895 1998-11-03  Jim Meyering  <meyering@ascend.com>
81896
81897         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81898         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81899
81900 1998-10-18  Jim Meyering  <meyering@ascend.com>
81901
81902         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81903
81904 1998-10-17  Jim Meyering  <meyering@ascend.com>
81905
81906         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81907         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81908         calls for those previously hard-coded headers.  Instead, take a new
81909         parameter.
81910         (jm_CHECK_DECLARATIONS): Reflect interface change.
81911         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81912         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81913
81914         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81915
81916 1998-10-14  Jim Meyering  <meyering@ascend.com>
81917
81918         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81919         instead of "TZ=America/Vancouver".  From Paul Eggert.
81920
81921 1998-10-11  Jim Meyering  <meyering@ascend.com>
81922
81923         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81924         This adds a test for a recently added compatibility fix for mktime.c.
81925         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81926
81927 1998-09-27  Jim Meyering  <meyering@ascend.com>
81928
81929         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81930
81931         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81932         ../configure.in, including a change from Gordon Matzigkeit to allow
81933         cross-compiling for the Hurd.
81934
81935         * m4/glibc.m4: New file/macro to test for the GNU C Library
81936         versions 1 and 2.  From Gordon Matzigkeit.
81937         Indent.
81938
81939 1998-09-21  Jim Meyering  <meyering@ascend.com>
81940
81941         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81942
81943 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81944
81945         Port nanosecond-resolution times to UnixWare 2.1.2 and
81946         pedantic Solaris 2.6.
81947
81948         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81949         AC_STRUCT_ST_MTIM.
81950         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81951         Generate name of ns member, instead of just 1 or undef.
81952         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81953
81954 1998-08-15  Jim Meyering  <meyering@ascend.com>
81955
81956         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81957         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81958         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81959         instead of jm_TYPE_SSIZE_T.
81960
81961 1998-08-12  Jim Meyering  <meyering@ascend.com>
81962
81963         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81964
81965 1998-08-02  Jim Meyering  <meyering@ascend.com>
81966
81967         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81968         in acconfig.h manually.
81969
81970 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81971
81972         * m4/st_mtim.m4: New file.
81973
81974 1998-07-28  Jim Meyering  <meyering@ascend.com>
81975
81976         * m4/utimes.m4: Undef stat.
81977
81978 1998-07-25  Jim Meyering  <meyering@ascend.com>
81979
81980         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81981         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81982
81983 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81984
81985         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81986         uid and gid actually remain unchanged.
81987
81988 1998-07-07  Jim Meyering  <meyering@ascend.com>
81989
81990         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81991
81992 1998-07-04  Jim Meyering  <meyering@ascend.com>
81993
81994         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81995         to prove that this macro can be used in packages without regex.c.
81996
81997 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81998
81999         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82000         is to be used.
82001
82002 1998-07-03  Jim Meyering  <meyering@ascend.com>
82003
82004         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82005
82006         * m4/gettext.m4: New file -- from gettext-0.10.35.
82007         * m4/lcmessage.m4: Likewise.
82008         * m4/progtest.m4: Likewise.
82009
82010         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82011         * m4/jm-macros.m4: Require the new macro.
82012
82013 1998-06-29  Jim Meyering  <meyering@ascend.com>
82014
82015         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82016         for the definition of NGROUPS (used in a system header included
82017         by sys/mount.h).
82018
82019 1998-06-28  Jim Meyering  <meyering@ascend.com>
82020
82021         * m4/ls-mntd-fs.m4: New file.
82022         * m4/fstypename.m4: New file.
82023
82024         * m4/jm-macros.m4: Require the new macro.
82025         * m4/jm-glibc-io.m4: New file.
82026
82027 1998-05-19  Jim Meyering  <meyering@ascend.com>
82028
82029         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82030         * m4/lchown.m4: New file.
82031
82032         * m4/Makefile.am.in: New file.
82033         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82034
82035 1998-05-14  Jim Meyering  <meyering@ascend.com>
82036
82037         * m4/Makefile.am (EXTRA_DIST): Add them.
82038         * m4/jm-macros.m4: New file.
82039         * m4/utimbuf.m4: New file.
82040
82041 1998-05-12  Jim Meyering  <meyering@ascend.com>
82042
82043         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82044
82045 1998-05-11  Jim Meyering  <meyering@ascend.com>
82046
82047         * m4/isc-posix.m4: New file.
82048
82049 1998-05-10  Jim Meyering  <meyering@ascend.com>
82050
82051         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82052
82053 1998-05-09  Jim Meyering  <meyering@ascend.com>
82054
82055         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82056         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82057         with automake.
82058
82059         * m4/ssize_t.m4: New file.
82060         * m4/mktime.m4: Remove file -- the new automake has this now.
82061
82062 1998-04-26  Jim Meyering  <meyering@ascend.com>
82063
82064         * m4/assert.m4: New file.
82065         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82066
82067 1998-04-05  Jim Meyering  <meyering@ascend.com>
82068
82069         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82070         (jm_PREREQ): Use it here.
82071
82072 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82073
82074         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82075         in acconfig.h.
82076
82077 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82078
82079         * m4/prereq.m4: New file.
82080         * m4/error.m4: New file.
82081         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82082
82083 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82084
82085         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82086         cache-check for the same variable -- that defeated the purpose of
82087         the test; the test program was never run.  This was a problem only
82088         on systems with losing getline functions -- HP-UX 10.20 is one.
82089         Reported by Bjorn Helgaas.
82090
82091 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82092
82093         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82094
82095 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82096
82097         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82098
82099         * m4/const.m4: New file.  Use an initializer in this declaration
82100         typedef int charset[2]; const charset x;
82101         Reported by Bob Glickstein.
82102
82103 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82104
82105         * m4/chown.m4: Fix reversed types on -1 args to chown.
82106         From Kaveh Ghazi.
82107
82108 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82109
82110         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82111         Add lseek and memchr.
82112
82113         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82114         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82115         have a 20-character limit on names.
82116
82117 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82118
82119         * m4/inttypes_h.m4: New file.
82120         * m4/uintmax_t.m4: New file.
82121         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82122
82123
82124         -----
82125
82126         Local Variables:
82127         coding: utf-8
82128         End:
82129
82130         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82131
82132         Copying and distribution of this file, with or without
82133         modification, are permitted provided the copyright notice
82134         and this notice are preserved.